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
When I am restarting the Aspire application, sometimes the ports are still bound from the last run.
This causes the following logs in the app host.
info: Aspire.Hosting.DistributedApplication[0]
Aspire version: 9.0.0+01ed51919f8df692ececce51048a140615dc759d
info: Aspire.Hosting.DistributedApplication[0]
Distributed application starting.
info: Aspire.Hosting.DistributedApplication[0]
Application host directory is: C:\Repos\Revive\src\Hosting\Revive.AppHost
info: Aspire.Hosting.DistributedApplication[0]
Now listening on: https://localhost:17243
info: Aspire.Hosting.DistributedApplication[0]
Login to the dashboard at https://localhost:17243/login?t=c3f11510-4bb8-4bce-ba6f-088ce5e13531
fail: Aspire.Hosting.Dcp.dcpctrl.ServiceReconciler[0]
could not start the proxy {"ServiceName": {"name":"ui"}, "Reconciliation": 3, "error": "could not start the proxy for the service: listen tcp 127.0.0.1:6001: bind: Only one usage of each socket address (protocol/network address/port) is normally permitted."}
fail: Aspire.Hosting.Dcp.dcpctrl.ServiceReconciler[0]
could not start the proxy {"ServiceName": {"name":"api"}, "Reconciliation": 4, "error": "could not start the proxy for the service: listen tcp 127.0.0.1:5001: bind: Only one usage of each socket address (protocol/network address/port) is normally permitted."}
fail: Aspire.Hosting.Dcp.dcpctrl.ServiceReconciler[0]
could not start the proxy {"ServiceName": {"name":"api"}, "Reconciliation": 5, "error": "could not start the proxy for the service: listen tcp 127.0.0.1:5001: bind: Only one usage of each socket address (protocol/network address/port) is normally permitted."}
info: Aspire.Hosting.DistributedApplication[0]
Distributed application started. Press Ctrl+C to shut down.
fail: Aspire.Hosting.Dcp.dcpctrl.ServiceReconciler[0]
could not start the proxy {"ServiceName": {"name":"ui"}, "Reconciliation": 6, "error": "could not start the proxy for the service: listen tcp 127.0.0.1:6001: bind: Only one usage of each socket address (protocol/network address/port) is normally permitted."}
Expected Behavior
The restart should dispose/wait for the ports to be freed and successfully start up.
Steps To Reproduce
We haven't fully gotten the application running within random ports and whatnot. At the moment our UI & API projects are hardcoded ports, 5001 & 6001.
Is there an existing issue for this?
Describe the bug
When I am restarting the Aspire application, sometimes the ports are still bound from the last run.
This causes the following logs in the app host.
Expected Behavior
The restart should dispose/wait for the ports to be freed and successfully start up.
Steps To Reproduce
We haven't fully gotten the application running within random ports and whatnot. At the moment our UI & API projects are hardcoded ports, 5001 & 6001.
The AppHost is
Note that the dashboard starts successfully saying the apps are running fine:
Exceptions (if any)
Included exceptions in the app host logs above
.NET Version info
Anything else?
It sometimes works when clicking restart, and it usually works when hitting stop all, wait a few seconds, then start again.
The text was updated successfully, but these errors were encountered: