Hi, I have deployed my app to AKS, and when start AKS at the first time, some service is freeze and not responding, at that time, I have to stop and start only that service (in AKS I have to delete that pod and it will create again), then that service can be able to run normally.
There is no any exception and stack trace, because it is freeze at the line like the image log below
In the local environment, I don't get this problem
3 Answer(s)
-
0
Hi,
Do you deploy database in the cluster at the same time, too?
Since there is no error log it's pretty hard to understand the problem but there can be some connection problems such as trying to connect redis or database or other services if it's a microservice application -
0
No, It is separated. I use Azure Services for database, redis cache.
Today, when the service is started by schedule, I got another freeze like the picture belowWhen I notice the log in the end before freezing, it's all about related to
Identity
But mostly it stucked at "Volo.Abp.IdentityModel.AbpIdentityModelModule" when initializing -
0
It seems it stucks while trying acuiring lock for IdentitySessionCleanupBackgroundWorker. The log says it already acquired the lock but this process takes a lot of time or it cannot perform the action:
https://github.com/abpframework/abp/blob/d5087c6b940320a3e932be348812d32fe06255a8/modules/identityserver/src/Volo.Abp.IdentityServer.Domain/Volo/Abp/IdentityServer/Tokens/TokenCleanupBackgroundWorker.cs#L38-L41Since it has
"Start cleanup."
logs at the beginning of the method:
https://github.com/abpframework/abp/blob/d5087c6b940320a3e932be348812d32fe06255a8/modules/openiddict/src/Volo.Abp.OpenIddict.Domain/Volo/Abp/OpenIddict/Tokens/TokenCleanupService.cs#L36Probably one of its dependencies cannot be resolved or causes a problem.
Can you try disabling background workers and deploy it again to make sure if it's the reason or not?
https://abp.io/docs/latest/framework/infrastructure/background-workers#optionsAnd also, you can set LogLevel as
Debug
to see more details about what happens before freezing