Xabaril / AspNetCore.Diagnostics.HealthChecks

Enterprise HealthChecks for ASP.NET Core Diagnostics Package
Apache License 2.0
4.1k stars 801 forks source link

Azure App Service error with Addressing on Health Check UI #2054

Open jameswoodley opened 1 year ago

jameswoodley commented 1 year ago

Please, fill the following sections to help us fix the issue

What happened: When deploying to an Azure App Service (running Linux), the UI will report "IPv4 address 0.0.0.0 and IPv6 address ::0 are unspecified addresses that cannot be used as a target address. (Parameter 'hostName') ([::]:8080)"

What you expected to happen: The UI reports a healthy service

How to reproduce it (as minimally and precisely as possible): Deploy to Azure App Service, using code below

Source code sample:

services.AddHealthChecks().AddNpgSql(configuration.GetConnectionString("Default") ?? throw new ArgumentNullException("Default ConnectionString not found", (Exception?)null));

services.AddHealthChecksUI(options =>
{
        options.SetEvaluationTimeInSeconds(10);
        options.MaximumHistoryEntriesPerEndpoint(60);
        options.SetApiMaxActiveRequests(1);
        options.AddHealthCheckEndpoint("Application Core", "/healthz");
}).AddInMemoryStorage();

Anything else we need to know?:

Environment:

ahmed-abdelrazek commented 7 months ago

same issue with .net 8 and AspNetCore.HealthChecks.UI" Version="8.0.0"

ricardoschroeder commented 7 months ago

Same here. Any updates?

xDaevax commented 2 months ago

Confirmed still an issue with .NET 8 Seems related to #410 when hosting in Azure App Service on Linux