Hi,
Ah OK, that might make sense. Let me make sure I have Redis explicitly set up in the EnvVars. Just in appsettings now, as so:
"Redis": {
"Configuration": "hathor.redis.cache.windows.net:6380,password=XXXXXXXXXXXXXXXXXXXXXXXXXXXX=,ssl=True,abortConnect=False"
},
I have 2 completely separate environments now, not using Deployment Slots. One for Test, one for Production, running the exact same codebase. Using the same Redis connection string for both environments, all AppServices.
Is that OK, would you suggest a different setup / configuration? I plan now to move the Redis config into the EnvVars in Azure to have a bit better control. I will let you know how that works.
Any other suggestions?
Thanks,
Karim
Hi, I have given you access.
Here are the full debug logs for all 3 appservices:
https://drive.google.com/file/d/1tAimv5aRdwYhnA0LvwKTcaGj9_WoxdUS/view?usp=drive_link
Hi,
This just started to happen, when I log in to our production (test) environment everything is OK for a few seconds, then I seem to be losing authentication, and getting an 'Unauthorized' exception when calling a service method on the homepage. I have a video of this here:
https://drive.google.com/file/d/1xJpaKd_RJFRgb90Ol0IxINk0oW9c6n6Y/view?usp=drive_link
I have detailed errors on so I can see the exception in the browser console:
Do you know why / how this is happening and how to fix?
Thanks,
Karim Ainsworth
Hi,
You have access to this repo in GitHub, it is the same repo as before. The problem is though that this doesn't happen locally, it is only showing up when we deploy to Azure. And not all the time.
I just need to figure out a fix or workaround for this in some way so that we can deploy properly. If you have any ideas or can look at the code and see if there is anything obviously wrong with the Auth project that would be great.
Thanks,
Karim
Hi,
OK I copied the .map file into the libs folder and that seems to have fixed it, thanks,
Karim
Hi,
I am getting a 404 returned on every login in production, due to there being a missing moment.min.js.map file.
This is causing a noticeable 404 Error Page flashing on screen for 1 second before the login page loads.
Here are the sections of the logs that show this :
2024-09-07 03:43:25.154 +00:00 [INF] > Minified /libs/timeago/jquery.timeago.js (7636 bytes -> 4107 bytes) 2024-09-07 03:43:25.157 +00:00 [DBG] - /libs/bootstrap-datepicker/bootstrap-datepicker.min.js (33878 bytes) 2024-09-07 03:43:25.157 +00:00 [DBG] > Already minified. 2024-09-07 03:43:25.161 +00:00 [DBG] - /libs/moment/moment.min.js (58891 bytes) 2024-09-07 03:43:25.161 +00:00 [DBG] > Already minified.
2024-09-07 03:46:01.711 +00:00 [INF] Request starting HTTP/1.1 GET https://esv2-auth-test.azurewebsites.net/__bundles/moment.min.js.map; - null null 2024-09-07 03:46:01.712 +00:00 [DBG] The request path /__bundles/moment.min.js.map; does not match a supported file type 2024-09-07 03:46:01.712 +00:00 [DBG] No candidates found for the request path '/__bundles/moment.min.js.map;' 2024-09-07 03:46:01.712 +00:00 [DBG] Request did not match any endpoints 2024-09-07 03:46:01.715 +00:00 [INF] Request finished HTTP/1.1 GET https://esv2-auth-test.azurewebsites.net/__bundles/moment.min.js.map; - 302 null null 3.4218ms 2024-09-07 03:46:01.715 +00:00 [INF] Request reached the end of the middleware pipeline without being handled by application code. Request path: GET https://esv2-auth-test.azurewebsites.net/__bundles/moment.min.js.map;, Response status code: 302 2024-09-07 03:46:01.834 +00:00 [INF] Executing ContentResult with HTTP Response ContentType of application/javascript 2024-09-07 03:46:01.835 +00:00 [INF] Executed action Volo.Abp.AspNetCore.Mvc.Localization.AbpApplicationLocalizationScriptController.GetAsync (Volo.Abp.AspNetCore.Mvc) in 2397.8982ms 2024-09-07 03:46:01.835 +00:00 [INF] Executed endpoint 'Volo.Abp.AspNetCore.Mvc.Localization.AbpApplicationLocalizationScriptController.GetAsync (Volo.Abp.AspNetCore.Mvc)' 2024-09-07 03:46:01.856 +00:00 [INF] Request finished HTTP/1.1 GET https://esv2-auth-test.azurewebsites.net/Abp/ApplicationLocalizationScript?cultureName=en - 200 91128 application/javascript 2427.1567ms 2024-09-07 03:46:02.131 +00:00 [INF] Request starting HTTP/1.1 GET https://esv2-auth-test.azurewebsites.net/Error?httpStatusCode=404 - null null
How can I fix this problem?
Thanks,
Karim Ainsworth
Hi,
OK I commented out the // Application = await OpenIdApplicationRepository.GetListAsync(); line,
I am still getting the : [ERR] An error occurred using the connection to database 'ESv2-testing' on server 'tcp:hathor-hk.database.windows.net,1433'. error intermittently.
Any idea of what I can try next on this? This is a pretty critical error, we can deploy our app reliably at this point. Any help would be much appreciated.
Thanks,
Karim
OK that's great, thanks for your help and explanation.
Hi,
Yes, that works! Great, thank you. Can you explain to me though why that caused the problem?
Thanks,
Karim