Open toby-freemarket opened 1 year ago
Looking a little deeper into healthchecks services.AddHealthChecks().AddDbContextCheck<DbContext>()
does a .CanConnectAsync()
to test if the database is there. Instead of 2 health checks you could do the checks this way using AddDbContextCheck with customTestQuery
.AddDbContextCheck<TConfigurationDbContext>("ConfigurationDbContext", customTestQuery: (context, token) => context.ApiResources.AnyAsync(token))
Nice, can you send a PR with this one? thank you
Sure should be able to do it tomorrow
Hi @toby-freemarket ,
I've got also health check issues for Identity Server. We are running inside K8S on a dev environment.
This is all I've got in the logs (see above).
Have you got this type of issues before?
Thanks.
Describe the bug
This is an issue with Identity Server Admin UI Hi I've found and issue if you add namespaces to your database contexts, the code that adds the healthchecks is here https://github.com/skoruba/Duende.IdentityServer.Admin/blob/a07a55f2bf12f53e385eff861328637d90a7d1f6/src/Skoruba.Duende.IdentityServer.Admin.UI/Helpers/DependencyInjection/AdminUIServiceCollectionExtensions.cs#L190-L193
There is a factory but it only allows me to add extra ones not replace the current ones. When I do it crashes on start up saying I'm trying to add duplicates. This is causes me an issue as it's always unhealthly in azure app services.
Here is the healthchecks I would like to do.