Open cisionmarkwalls opened 3 days ago
I also created a project from scratch. The only part I added was Pg and PgAdmin. Same unhealthy error out of the box. And note while running this that the redis cache is also marked as unhealthy.
Does it stay unhealthy forever?
Yes, I left it running for about an hour. I'm wondering if it is Rancher Desktop, so I'm installing Podman and see if that makes a difference.
@davidfowl That is it. Rancher Desktop doesn't work with the healthchecks correctly. Podman does out of the box.
Ah this makes sense, we don’t support rancher desktop. I’ll add this to the list of rancher specific problems.
Looks like a networking issue with the health checks talking to the container for some reason.
See https://github.com/dotnet/aspire/issues/6002#issuecomment-2414941401 - something between aspire 9.0 & rancher's networking does not play ball. You can work around this by setting .WithLifetime(ContainerLifetime.Persistent)
on each and every container.
Is there an existing issue for this?
Describe the bug
I upgraded from Aspire 8 to 9. The dashboard itself is running correctly. I have pulled the PG and PGAdmin docker images that are the defaults for 9.
I added postgres and pgadmin like this:
This is the error that the Postgres image gives in the Aspire dashboard:
Looking into the container details for the postgres image from VS I get:
That looks different to me than the following for the ports.
But it matches what VS containers says the ports for that image are:
Expected Behavior
That the dashboard starts up with healthy postgres and PG Admin.
Steps To Reproduce
Exceptions (if any)
No response
.NET Version info
.NET SDK: Version: 9.0.100 Commit: 59db016f11 Workload version: 9.0.100-manifests.c6f19616 MSBuild version: 17.12.7+5b8665660
Runtime Environment: OS Name: Windows OS Version: 10.0.22631 OS Platform: Windows RID: win-x64 Base Path: C:\Program Files\dotnet\sdk\9.0.100\
.NET workloads installed: [aspire] Installation Source: VS 17.12.35514.174 Manifest Version: 8.2.2/8.0.100 Manifest Path: C:\Program Files\dotnet\sdk-manifests\8.0.100\microsoft.net.sdk.aspire\8.2.2\WorkloadManifest.json Install Type: Msi
[maui-windows] Installation Source: VS 17.12.35514.174 Manifest Version: 9.0.0/9.0.100 Manifest Path: C:\Program Files\dotnet\sdk-manifests\9.0.100\microsoft.net.sdk.maui\9.0.0\WorkloadManifest.json Install Type: Msi
[maccatalyst] Installation Source: VS 17.12.35514.174 Manifest Version: 18.0.9617/9.0.100 Manifest Path: C:\Program Files\dotnet\sdk-manifests\9.0.100\microsoft.net.sdk.maccatalyst\18.0.9617\WorkloadManifest.json Install Type: Msi
[ios] Installation Source: VS 17.12.35514.174 Manifest Version: 18.0.9617/9.0.100 Manifest Path: C:\Program Files\dotnet\sdk-manifests\9.0.100\microsoft.net.sdk.ios\18.0.9617\WorkloadManifest.json Install Type: Msi
[android] Installation Source: VS 17.12.35514.174 Manifest Version: 35.0.7/9.0.100 Manifest Path: C:\Program Files\dotnet\sdk-manifests\9.0.100\microsoft.net.sdk.android\35.0.7\WorkloadManifest.json Install Type: Msi
Configured to use loose manifests when installing new manifests.
Host: Version: 9.0.0 Architecture: x64 Commit: 9d5a6a9aa4
.NET SDKs installed: 9.0.100 [C:\Program Files\dotnet\sdk]
.NET runtimes installed: Microsoft.AspNetCore.App 6.0.36 [C:\Program Files\dotnet\shared\Microsoft.AspNetCore.App] Microsoft.AspNetCore.App 8.0.11 [C:\Program Files\dotnet\shared\Microsoft.AspNetCore.App] Microsoft.AspNetCore.App 9.0.0 [C:\Program Files\dotnet\shared\Microsoft.AspNetCore.App] Microsoft.NETCore.App 6.0.36 [C:\Program Files\dotnet\shared\Microsoft.NETCore.App] Microsoft.NETCore.App 8.0.11 [C:\Program Files\dotnet\shared\Microsoft.NETCore.App] Microsoft.NETCore.App 9.0.0 [C:\Program Files\dotnet\shared\Microsoft.NETCore.App] Microsoft.WindowsDesktop.App 6.0.36 [C:\Program Files\dotnet\shared\Microsoft.WindowsDesktop.App] Microsoft.WindowsDesktop.App 8.0.11 [C:\Program Files\dotnet\shared\Microsoft.WindowsDesktop.App] Microsoft.WindowsDesktop.App 9.0.0 [C:\Program Files\dotnet\shared\Microsoft.WindowsDesktop.App]
Other architectures found: x86 [C:\Program Files (x86)\dotnet] registered at [HKLM\SOFTWARE\dotnet\Setup\InstalledVersions\x86\InstallLocation]
Environment variables: Not set
global.json file: Not found
Learn more: https://aka.ms/dotnet/info
Download .NET: https://aka.ms/dotnet/download
Anything else?
No response