Open afscrome opened 2 months ago
Yes this is known. Are you using 8.2?
cc @karolz-ms
Yup, I started seeing this after upgrading to 8.2.
This is an old bug, we just have much better logs now we can pinpoint the issue. I agree it would be ideal if we could not orphan the dashboard (we're not sure why this happens), and if we could kill the previous one if it was still running, that would require keeping state around somewhere...
This is surprising; we made some extra changes to ensure nothing gets orphaned by accident in 8.2. @afscrome can you reproduce consistently?
Sorry @karolz-ms haven't seen this much recently, but I've also been pulled away from aspire work for a bit. Feel free to close this and I can re-open if I encounter it again.
Can confirm this is still happening in Aspire 8.2.1 (seen on amd64 & arm64) /cc @karolz-ms We cannot repro consistently. It just eventually happens after a sufficient amount of stop/start debugging sessions.
Having the same problem, but it feels pretty damn consistent. I have to clean/rebuild between all successful runs before it kills the dashboard. Every second attempt to start AppHost up fails with a port in use error for the dashboard.
What version of aspire are you using ?
Did not happen with 8.2.1, upgraded to 9 rc1 then it started happening, tried the nightly builds, same thing. Implementing IDisposable on the AppHost fixed it for me.
Are you using AddNpmApp?
I'm using a few dapr sidecars and components, redis, sqlserver and azure storage emulator and 3 web apis + Blazor Web App.
Is there an existing issue for this?
Describe the bug
Not entirely sure how I've managed this, but I somehow ended up with an orphaned
Aspire.Dashboard.exe
process. Once this process was orphaned, all further attempts to start my aspire projects failed with the below logs.Expected Behavior
Steps To Reproduce
End up with an orphaned
Aspire.Dashboard.exe
from one aspire runExceptions (if any)
No response
.NET Version info
Anything else?
No response