Activities of "okains"

Hi,

Also here are the logs for that test run:

https://1drv.ms/u/s!AkJmGuHQuob7kqdJN7sF0etJ-CbLzQ?e=GYNaHp

Exception being thrown in API here:

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 NullCancellationTokenProvider instead HttpContextCancellationTokenProvider to troubleshoot the A task was canceled. problem

 
public 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

Hi,

The error logs of the An error occurred using the connection to database are caused by TaskCanceledException: A task was canceled in the Index page.

I thought it was the other way around, the DB error was causing the TaskCancelledException. If the TaskCancelledException is causing the db error, then what is the root cause of the TaskCancelledException?

OK I commented out the // Application = await OpenIdApplicationRepository.GetListAsync(); line,

I uncommented that line, put it back in as it didn't seem to have any effect on the error. Are you asking me to comment out again and send logs?

Thanks,

Karim

Hi,

I have full AppService logs here:

https://1drv.ms/u/s!AkJmGuHQuob7kqUl46X837Ty84Ga_Q?e=zyRTum

If you are after database logs can you be more specific about what you need?

Thanks,

Karim

Showing 21 to 30 of 139 entries
Made with ❤️ on ABP v9.1.0-preview. Updated on November 01, 2024, 05:35