You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
We are using Aspire for local development and integration tests via XUnit.
On the developer machine with Windows, I just click "Run all tests" from Visual Studio, and it works flawlessly: XUnit boots Aspire, Aspire starts apps and Docker containers, test succeeds. On Linux it also works by running dotnet test in the solution root: I have tried it as a standalone Hyper-V virtual machine and as a WSL distro using Ubuntu 24.04.
Now I am trying to run the same tests on a build agent in Azure DevOps. The base image is the same: Ubuntu 24.04. all dependencies (Docker, .NET SDK 8.0.413, etc) are installed. However, I get the following logs:
/home/vsts/work/1/s/XXX/XXX.Internal.Api.Tests.Integration.Aspire.CORE/bin/Debug/net8.0/XXX.Internal.Api.Tests.Integration.Aspire.CORE.dll
[xUnit.net 00:00:00.00] xUnit.net VSTest Adapter v2.8.2+699d445a1a (64-bit .NET 8.0.19)
[xUnit.net 00:00:00.09] Discovering: XXX.Internal.Api.Tests.Integration.Aspire.CORE
[xUnit.net 00:00:00.17] Discovered: XXX.Internal.Api.Tests.Integration.Aspire.CORE
[xUnit.net 00:00:00.18] Starting: XXX.Internal.Api.Tests.Integration.Aspire.CORE
info: Aspire.Hosting.DistributedApplication[0]
Aspire version: 9.1.0+2a8f48ea5811f317a26405eb315aa315cc9e3cea
info: Aspire.Hosting.DistributedApplication[0]
Distributed application starting.
info: Aspire.Hosting.DistributedApplication[0]
Application host directory is: /home/vsts/work/1/s/XXX/XXX.AspireHost
info: XXX.AspireHost.Resources.public-api[0]
1: 2025-09-02T10:01:17.5084780Z Waiting for resource 'postgres' to enter the 'Running' state.
info: XXX.AspireHost.Resources.public-api[0]
2: 2025-09-02T10:01:17.5137872Z Waiting for resource 'xxx-database' to enter the 'Running' state.
info: XXX.AspireHost.Resources.public-api[0]
3: 2025-09-02T10:01:17.5138577Z Waiting for resource 'rabbitmq' to enter the 'Running' state.
info: XXX.AspireHost.Resources.public-api[0]
4: 2025-09-02T10:01:17.5139027Z Waiting for resource 'redis' to enter the 'Running' state.
info: XXX.AspireHost.Resources.public-api[0]
5: 2025-09-02T10:01:30.4836798Z Waiting for resource 'redis' to become healthy.
info: XXX.AspireHost.Resources.public-api[0]
6: 2025-09-02T10:01:30.7492372Z Waiting for resource ready to execute for 'redis'.
info: XXX.AspireHost.Resources.public-api[0]
7: 2025-09-02T10:01:30.7496655Z Finished waiting for resource 'redis'.
info: XXX.AspireHost.Resources.public-api[0]
8: 2025-09-02T10:01:31.6917191Z Waiting for resource 'postgres' to become healthy.
info: XXX.AspireHost.Resources.public-api[0]
9: 2025-09-02T10:01:31.6917859Z Waiting for resource ready to execute for 'xxx-database'.
info: XXX.AspireHost.Resources.public-api[0]
10: 2025-09-02T10:01:33.3885049Z Waiting for resource ready to execute for 'postgres'.
info: XXX.AspireHost.Resources.public-api[0]
11: 2025-09-02T10:01:33.3885546Z Finished waiting for resource 'postgres'.
info: XXX.AspireHost.Resources.public-api[0]
12: 2025-09-02T10:01:33.3895313Z Finished waiting for resource 'xxx-database'.
info: XXX.AspireHost.Resources.public-api[0]
13: 2025-09-02T10:01:42.5408331Z Waiting for resource 'rabbitmq' to become healthy.
info: XXX.AspireHost.Resources.public-api[0]
14: 2025-09-02T10:01:52.7378980Z Waiting for resource ready to execute for 'rabbitmq'.
info: XXX.AspireHost.Resources.public-api[0]
15: 2025-09-02T10:01:52.7380866Z Finished waiting for resource 'rabbitmq'.
info: XXX.AspireHost.Resources.internal-api[0]
1: 2025-09-02T10:01:17.5182698Z Waiting for resource 'postgres' to enter the 'Running' state.
info: XXX.AspireHost.Resources.internal-api[0]
2: 2025-09-02T10:01:17.5183319Z Waiting for resource 'xxx-database' to enter the 'Running' state.
info: XXX.AspireHost.Resources.internal-api[0]
3: 2025-09-02T10:01:31.6918194Z Waiting for resource 'postgres' to become healthy.
info: XXX.AspireHost.Resources.internal-api[0]
4: 2025-09-02T10:01:31.6918411Z Waiting for resource ready to execute for 'xxx-database'.
info: XXX.AspireHost.Resources.internal-api[0]
5: 2025-09-02T10:01:33.3885867Z Waiting for resource ready to execute for 'postgres'.
info: XXX.AspireHost.Resources.internal-api[0]
6: 2025-09-02T10:01:33.3885995Z Finished waiting for resource 'postgres'.
info: XXX.AspireHost.Resources.internal-api[0]
7: 2025-09-02T10:01:33.3895434Z Finished waiting for resource 'xxx-database'.
info: XXX.AspireHost.Resources.notifications-dispatcher[0]
1: 2025-09-02T10:01:17.5184305Z Waiting for resource 'rabbitmq' to enter the 'Running' state.
info: XXX.AspireHost.Resources.notifications-dispatcher[0]
2: 2025-09-02T10:01:42.5403883Z Waiting for resource 'rabbitmq' to become healthy.
info: XXX.AspireHost.Resources.notifications-dispatcher[0]
3: 2025-09-02T10:01:52.7378988Z Waiting for resource ready to execute for 'rabbitmq'.
info: XXX.AspireHost.Resources.notifications-dispatcher[0]
4: 2025-09-02T10:01:52.7380866Z Finished waiting for resource 'rabbitmq'.
info: Aspire.Hosting.DistributedApplication[0]
Distributed application started. Press Ctrl+C to shut down.
fail: Aspire.Hosting.ApplicationModel.ResourceNotificationService[0]
Stopped waiting for resource 'internal-api' to become healthy because it failed to start.
fail: Aspire.Hosting.Dcp.dcpctrl.ExecutableReconciler[0]
could not persist Endpoint object {"Executable": {"name":"notifications-dispatcher-nsxvdbap-751a7de9"}, "Reconciliation": 24, "ServiceName": "notifications-dispatcher-https-751a7de9", "Workload": "/notifications-dispatcher-nsxvdbap-751a7de9", "error": "Endpoint.usvc-dev.developer.microsoft.com \"notifications-dispatcher-nsxvdbap-751a7de9-68pturnnm4\" is invalid: <nil>: Forbidden: new resources cannot be created because the API server is shutting down"}
fail: Aspire.Hosting.Dcp.dcpctrl.ExecutableReconciler[0]
could not persist Endpoint object {"Executable": {"name":"notifications-dispatcher-nsxvdbap-751a7de9"}, "Reconciliation": 24, "ServiceName": "notifications-dispatcher-http-751a7de9", "Workload": "/notifications-dispatcher-nsxvdbap-751a7de9", "error": "Endpoint.usvc-dev.developer.microsoft.com \"notifications-dispatcher-nsxvdbap-751a7de9-u6in4mrnk8\" is invalid: <nil>: Forbidden: new resources cannot be created because the API server is shutting down"}
fail: Aspire.Hosting.Dcp.dcpctrl.ExecutableReconciler[0]
could not persist Endpoint object {"Executable": {"name":"notifications-dispatcher-nsxvdbap-751a7de9"}, "Reconciliation": 24, "ServiceName": "notifications-dispatcher-signalr-751a7de9", "Workload": "/notifications-dispatcher-nsxvdbap-751a7de9", "error": "Endpoint.usvc-dev.developer.microsoft.com \"notifications-dispatcher-nsxvdbap-751a7de9-ctdeo4iqv8\" is invalid: <nil>: Forbidden: new resources cannot be created because the API server is shutting down"}
fail: Aspire.Hosting.Dcp.dcpctrl.ExecutableReconciler[0]
could not persist Endpoint object {"Executable": {"name":"public-api-vvuecrxp-751a7de9"}, "Reconciliation": 25, "ServiceName": "public-api-https-751a7de9", "Workload": "/public-api-vvuecrxp-751a7de9", "error": "Endpoint.usvc-dev.developer.microsoft.com \"public-api-vvuecrxp-751a7de9-nrhst0nr1c\" is invalid: <nil>: Forbidden: new resources cannot be created because the API server is shutting down"}
fail: Aspire.Hosting.Dcp.dcpctrl.ExecutableReconciler[0]
could not persist Endpoint object {"Executable": {"name":"public-api-vvuecrxp-751a7de9"}, "Reconciliation": 25, "ServiceName": "public-api-http-751a7de9", "Workload": "/public-api-vvuecrxp-751a7de9", "error": "Endpoint.usvc-dev.developer.microsoft.com \"public-api-vvuecrxp-751a7de9-u5ji7qcb34\" is invalid: <nil>: Forbidden: new resources cannot be created because the API server is shutting down"}
The message "Stopped waiting for resource 'internal-api' to become healthy because it failed to start." provides no helpful information. Is there any way to get a more detailed log to figure out what's wrong?
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
Uh oh!
There was an error while loading. Please reload this page.
-
We are using Aspire for local development and integration tests via XUnit.
On the developer machine with Windows, I just click "Run all tests" from Visual Studio, and it works flawlessly: XUnit boots Aspire, Aspire starts apps and Docker containers, test succeeds. On Linux it also works by running
dotnet test
in the solution root: I have tried it as a standalone Hyper-V virtual machine and as a WSL distro using Ubuntu 24.04.Now I am trying to run the same tests on a build agent in Azure DevOps. The base image is the same: Ubuntu 24.04. all dependencies (Docker, .NET SDK 8.0.413, etc) are installed. However, I get the following logs:
The message "Stopped waiting for resource 'internal-api' to become healthy because it failed to start." provides no helpful information. Is there any way to get a more detailed log to figure out what's wrong?
Beta Was this translation helpful? Give feedback.
All reactions