Hi,
Sorry for late reply, was travelling. I will add this in and do some further testing, if the db issues are no longer in the logs then that will be great. My only concern is that there is a lot of extra code / configuration to get to this point and that might have other unintended effects. I am going to be doing some heavy load testing on this app next week so I want to make sure we haven't introduced any issues that might come up during testing.
For now please keep this ticket open until I can finish my testing and confirm that things are OK.
Thanks,
Karim
Hi,
OK I configured the test environment with the test redis db, and removed the initial DB call from the Index page, however when I go to the next page (Dashboard) I am still getting the Unauthorized:
I am not sure where you want me to put the MyIdentitySessionChecker code, can you let me know where that goes and I will give that a try?
Thanks,
Karim
Hi,
Can you tell me where to put the MyIdentitySessionChecker code so I can test this possible solution?
Thanks,
Karim
Hi,
OK I have commented out the AppService call in Index, and also the db call in Index in the Auth project. I don't see any of those DB errors in the logs now, though still having ABPAuthentication errors ( different support ticket ).
Here are the new logs:
https://1drv.ms/u/s!AkJmGuHQuob7kqdJN7sF0etJ-CbLzQ?e=GYNaHp
Is there a way for me to fix this so that I can add back my code? Is this related to the OpenIDDict db context? Hope to be able to find a proper fix for this so that I can continue working.
Thanks,
Karim
Hi,
OK I configured the test environment with the test redis db, and removed the initial DB call from the Index page, however when I go to the next page (Dashboard) I am still getting the Unauthorized:
I am not sure where you want me to put the MyIdentitySessionChecker code, can you let me know where that goes and I will give that a try?
Thanks,
Karim
Btw You can try using
NullCancellationTokenProviderinsteadHttpContextCancellationTokenProviderto troubleshoot theA task was canceled.problempublic override void ConfigureServices(ServiceConfigurationContext context) { context.Services.Replace(ServiceDescriptor.Transient<ICancellationTokenProvider, NullCancellationTokenProvider>()); }
Getting an error here:
Any idea on how to get this to work?
Thanks,
Karim
Hi,
at ESv2.Pages.IndexModel.OnGetAsync() in D:\a\Hathor\Hathor\aspnet-core\src\ESv2.AuthServer\Pages\Index.cshtml.cs:line 30
OK that is in the Auth project, the line that I added back in as it didn't have any effect previously on these issues. I will comment this out again and update the CancellationTokenProvider and send logs.
Thanks,
Karim
Hi,
Yeah Redis does seem like it could be the problem here. I did set up a separate Redis server for Test, but I am not using it, Test is configured using the Production Redis db for now so that I can keep everything consistent for troubleshooting.
Any other ideas on what we can try here?
Thanks,
Karim
Hi,
I have removed the db call from the Index Page. Just hardcoding the ID needed now. Still getting many of the same db connection issues in the logs, both AUTH and API. At this point though the behavior is that the App loses authentication after a few seconds, this is the same issue as documented in my other open ticket.
Here are the logs for this deployment to https://test-dashboard.hathor.events :
https://1drv.ms/u/s!AkJmGuHQuob7kqZeKS0nlUov2TXVHQ?e=ComGjG
Thanks,
Karim
Hi,
OK I have sent the login details to your email.
Thanks,
Karim