Skip to content

[WebToolsE2E][Aspire][Mac] Failed to launch the dashboard when Using VS Code to Debug Aspire App: 'Time out while waiting for the dashboard to be responsive'. #2007

Closed

Description

@v-gaolisa

REGRESSION INFO: Not repro on Aspire 8.0.0-preview.2.23619.3

INSTALL STEPS

Clean machine: MacOS
Install VS Code[1.85.2]
Install C# Dev Kit[1.3.8]
Install SDK 8.0.200
Install Aspire Preview 3 latest build 8.0.0-preview.3.24080.10
Apply NuGet Feeds

REPRO STEPS

  1. Create .NET Project > .NET Aspire Application > give a name > Create
  2. Right-click xxx.AppHost name > Open In Integrated Terminal > dotnet run

Note:
This issue is very unstable on Windows machine.

ACTUAL
Run aspire project with error: 'Time out while waiting for the dashboard to be responsive'
image
fail: Microsoft.Extensions.Hosting.Internal.Host[11]
Hosting failed to start
Aspire.Hosting.DistributedApplicationException: Timed out after 00:01:00 while waiting for the dashboard to be responsive.
at Aspire.Hosting.Dcp.ApplicationExecutor.WaitForHttpSuccessOrThrow(Uri url, TimeSpan timeout, CancellationToken cancellationToken) in //src/Aspire.Hosting/Dcp/ApplicationExecutor.cs:line 307
at Aspire.Hosting.Dcp.ApplicationExecutor.CheckDashboardAvailabilityAsync(String delimitedUrlList, CancellationToken cancellationToken) in /
/src/Aspire.Hosting/Dcp/ApplicationExecutor.cs:line 263
at Aspire.Hosting.Dcp.ApplicationExecutor.StartDashboardAsDcpExecutableAsync(CancellationToken cancellationToken) in //src/Aspire.Hosting/Dcp/ApplicationExecutor.cs:line 239
at Aspire.Hosting.Dcp.ApplicationExecutor.RunApplicationAsync(CancellationToken cancellationToken) in /
/src/Aspire.Hosting/Dcp/ApplicationExecutor.cs:line 92
at Aspire.Hosting.Dcp.DcpHostService.StartAsync(CancellationToken cancellationToken) in //src/Aspire.Hosting/Dcp/DcpHostService.cs:line 65
at Microsoft.Extensions.Hosting.Internal.Host.b__15_1(IHostedService service, CancellationToken token)
at Microsoft.Extensions.Hosting.Internal.Host.ForeachService[T](IEnumerable1 services, CancellationToken token, Boolean concurrent, Boolean abortOnFirstException, List1 exceptions, Func3 operation) Unhandled exception. System.AggregateException: One or more errors occurred. (Timed out after 00:01:00 while waiting for the dashboard to be responsive.) ---> Aspire.Hosting.DistributedApplicationException: Timed out after 00:01:00 while waiting for the dashboard to be responsive. at Aspire.Hosting.Dcp.ApplicationExecutor.WaitForHttpSuccessOrThrow(Uri url, TimeSpan timeout, CancellationToken cancellationToken) in /_/src/Aspire.Hosting/Dcp/ApplicationExecutor.cs:line 307 at Aspire.Hosting.Dcp.ApplicationExecutor.CheckDashboardAvailabilityAsync(String delimitedUrlList, CancellationToken cancellationToken) in /_/src/Aspire.Hosting/Dcp/ApplicationExecutor.cs:line 263 at Aspire.Hosting.Dcp.ApplicationExecutor.StartDashboardAsDcpExecutableAsync(CancellationToken cancellationToken) in /_/src/Aspire.Hosting/Dcp/ApplicationExecutor.cs:line 239 at Aspire.Hosting.Dcp.ApplicationExecutor.RunApplicationAsync(CancellationToken cancellationToken) in /_/src/Aspire.Hosting/Dcp/ApplicationExecutor.cs:line 92 at Aspire.Hosting.Dcp.DcpHostService.StartAsync(CancellationToken cancellationToken) in /_/src/Aspire.Hosting/Dcp/DcpHostService.cs:line 65 at Microsoft.Extensions.Hosting.Internal.Host.<StartAsync>b__15_1(IHostedService service, CancellationToken token) at Microsoft.Extensions.Hosting.Internal.Host.ForeachService[T](IEnumerable1 services, CancellationToken token, Boolean concurrent, Boolean abortOnFirstException, List1 exceptions, Func3 operation)
at Microsoft.Extensions.Hosting.Internal.Host.StartAsync(CancellationToken cancellationToken)
at Microsoft.Extensions.Hosting.HostingAbstractionsHostExtensions.RunAsync(IHost host, CancellationToken token)
at Microsoft.Extensions.Hosting.HostingAbstractionsHostExtensions.RunAsync(IHost host, CancellationToken token)
at Aspire.Hosting.DistributedApplication.RunAsync(CancellationToken cancellationToken) in /
/src/Aspire.Hosting/DistributedApplication.cs:line 132
--- End of inner exception stack trace ---
at System.Threading.Tasks.Task.ThrowIfExceptional(Boolean includeTaskCanceledExceptions)
at System.Threading.Tasks.Task.Wait(Int32 millisecondsTimeout, CancellationToken cancellationToken)
at System.Threading.Tasks.Task.Wait()
at Aspire.Hosting.DistributedApplication.Run() in /_/src/Aspire.Hosting/DistributedApplication.cs:line 153
at Program.

$(String[] args) in /Users/vs/lisa3/aspire1/aspire1.AppHost/Program.cs:line 3

EXPECTED
No error and warning shows with run the project.

Activity

  1. ghost added
    area-app-model
    on Jan 31, 2024
  2. davidfowl commented on Jan 31, 2024

    @davidfowl
    Collaborator

    Mitch Denny (@mitchdenny) we have so few logs now this is hard to debug 😄. We only print the URL if we can successfully hit the endpoint.

  3. davidfowl commented on Jan 31, 2024

    @davidfowl
    Collaborator

    Lisa Gao (@v-gaolisa) I am using 8.0.0-preview.3.24080.8 and I don't see this issue.

  4. v-gaolisa commented on Jan 31, 2024

    @v-gaolisa
    Author

    I am confused, and I can also repro this issue using latest 8.0.0-preview.3.24080.10, can you share your installed steps.

  5. changed the title [-][WebToolsE2E][Aspire] Failed to launch the dashboard when Using VS Code to Debug Aspire App: 'Time out while waiting for the dashboard to be responsive'.[/-] [+][WebToolsE2E][Aspire][Mac] Failed to launch the dashboard when Using VS Code to Debug Aspire App: 'Time out while waiting for the dashboard to be responsive'.[/+] on Jan 31, 2024
  6. davidfowl commented on Jan 31, 2024

    @davidfowl
    Collaborator

    I can reproduce this on MacOS

  7. davidfowl commented on Jan 31, 2024

    @davidfowl
    Collaborator

    OK I figured this out. It seems like the dashboard isn't an executable on MacOS:

    image

    Seems like we have a publishing/packaging issue here.

    Thoughts David Negstad (@danegsta) Drew Noakes (@drewnoakes)?

    cc Jose Perez Rodriguez (@joperezr)

  8. added and removed
    area-app-model
    on Jan 31, 2024
  9. drewnoakes commented on Jan 31, 2024

    @drewnoakes
    Member

    Mitch Denny (@mitchdenny) in this case the dashboard would have failed to start. Could the ApplicationExecutor know that and bypass the one minute timeout, waiting for HTTP to come online?

  10. mitchdenny commented on Jan 31, 2024

    @mitchdenny
    Member

    I think if the dashboard is supposed to start and it doesn't then we should fail. So failure here is the correct response. Perhaps what is missing is diagnostics on WHY the dashboard failed to start. Perhaps we should dump the console logs if we reach timeout with the dashboard having spun up?

  11. 13 remaining items

  12. mo3in commented on Feb 19, 2024

    @mo3in

    i replaced AppHost launchSettings.json with new project launchSetting, now its run and working!

  13. anikitsiuk commented on Mar 25, 2024

    @anikitsiuk

    I had the same issue in Windows, Mo3in (@mo3in) your workaround helped.
    I had an issue with an empty Dashboard, and then I changed the applicationUrl in launchSettings.json, and got this timeout issue.

    After creating a sample project I took its launchSettings.json and everything works fine. Here is the diff
    image

    UPD: I have Aspire 8.0.0-preview.4.24156.9

    UPD2: I have to do that daily. After some time my Dashboard starts empty, and only the creation of the new Aspire project and usage of its launch settings helps.

  14. vskliam commented on Apr 12, 2024

    @vskliam

    Migrated from preview 3 to preview 4. Updated Visual Studio, updated workload. Got same issue - Timed out after 00:01:00 while waiting for the dashboard to be responsive.
    Changing ports in launchsettings did not help.

  15. anikitsiuk commented on Apr 12, 2024

    @anikitsiuk

    Try Preview 5, it's already available. I don't have this issue anymore

  16. bhogiraju commented on Apr 14, 2024

    @bhogiraju

    image
    i am getting the error after upgrading. anyone have work around on this?

  17. davidfowl commented on Apr 14, 2024

    @davidfowl
    Collaborator

    What version of the aspire workload are you using? Run:

    dotnet workload list
    
  18. bhogiraju commented on Apr 14, 2024

    @bhogiraju

    image

  19. davidfowl commented on Apr 14, 2024

    @davidfowl
    Collaborator

    And check the package version of Aspire.Hosting in the application you are running. It actually prints the version in the console output as one of the first things when you run an aspire app host.

  20. bhogiraju commented on Apr 14, 2024

    @bhogiraju

    Aspire version: 8.0.0-preview.4.24156.9+692dc41a65da572a7df25d53a9f2880afe59fdd8

  21. davidfowl commented on Apr 14, 2024

    @davidfowl
    Collaborator

    Seems like you're using eshop, it's been updated to preview 5.

  22. bhogiraju commented on Apr 14, 2024

    @bhogiraju

    Yes you are correct, what would be next work around?

  23. davidfowl commented on Apr 14, 2024

    @davidfowl
    Collaborator

    Update your eshop bits and you'll have the new version that uses preview 5.

  24. bhogiraju commented on Apr 14, 2024

    @bhogiraju

    but, while upgrading, identified many of them are deprecated packages.

  25. bhogiraju commented on Apr 14, 2024

    @bhogiraju

    Working as expected after upgrading all

  26. locked and limited conversation to collaborators on May 15, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Type

No type

Projects

No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions