-
Notifications
You must be signed in to change notification settings - Fork 543
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Weird behaviour on starting up Aspire app #2539
Comments
The dashboard can't connect to the resource server (the app host) for some reason. Is it consistent? I'm going to close this and link the issue here |
A few questions:
|
Yes, happens every hour or two.
In VS
Just F5
How can I do that? |
This is good news, we might be able to pin it down.
https://learn.microsoft.com/en-us/sysinternals/downloads/process-explorer I'm guessing that something gets into a bad state wrt the ports chosen causing some errors. Can you also turn the logging verbosity up on the AppHost project once it starts happening? (in appsettings.json) |
As soon as I encounter that issue again, I'll debug it with that tool.
I believe that that might be the case because changing the localhost port on launchsettings doesn't work, the dashboard does not launch, at least on preview 3, on preview 5 haven't tested |
Adding
Today didn't happen yet, still waiting for it to debug it and provide extra info. |
@adamtrip can you give more explanation about how to fix it? Don't update any port of my application, but I've the same error. https://github.com/joaojvf/AspirePoc/blob/add-aspire/src/AspirePoc.UI.Api/appsettings.json |
@joaojvf I've updated to |
@adamtrip do you update the .NET Aspire for this version? Because the last one that I found is the 8.0.0-preview.3.24105.21. |
@joaojvf you can use the daily builds: https://github.com/dotnet/aspire/blob/main/docs/using-latest-daily.md |
The rule about using daily builds is that you are following the commits to understand the changes. We're in rapid fire mode to beware of breakage 😄 |
Thank you guys! I tried re-implement the Aspire in my project, and worked! I use this project to create a medium post for my company initiative. If you like to see the code and post are here: |
@davidfowl since I reported it, it never happened but it happened today. here's the env vars |
The dashboard is connecting to 55072 and it’s failing. Unfortunately I think we need to add logs to narrow this down. It’s possible the app hosts’ resource server failed to start or there’s some caching bug that we have reporting the wrong url |
out of curiosity I did a net stat and with the app stopped I saw this
|
Take a look at the TCP/IP section on the apphost process. |
The apphost should be listening as well. |
Found this port missmatch on the logs
|
Different port. that's the orchestrator not aspire.hosting (even though logs come through that console) |
Sometimes on starting an Aspire app via VS 2022, it immediately launches the browser saying "No resources found" and throws an error.
Sometimes it fixes itself, with a VS restart, and other times I have to reboot my PC to make it work again.
This did happen on preview versions 3, 4 and 5 so no specific version bound to this (I think)
The text was updated successfully, but these errors were encountered: