Skip to content
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

[WebToolsE2E][Aspire] After starting a stopped container, there is error in Console logs: "Error executing command 'resource-start'. Aspire.Hosting.DistributedApplicationException: Failed to delete 'cache-nskrejxr' successfully before restart." #6901

Open
vmykagapuz opened this issue Dec 9, 2024 · 2 comments
Labels
area-orchestrator untriaged New issue has not been triaged

Comments

@vmykagapuz
Copy link

vmykagapuz commented Dec 9, 2024

REFRESSION INFO

  1. Reproduced in Aspire 9.0.1

INSTALL STEPS

  1. Clean machine: Win11 x64 23h2
  2. Install VS 17.13 P3 (with Aspire 9.0.0)
  3. Install Podman Desktop

REPRO STEPS

  1. Create .NET Aspire Starter App > .NET 9.0 (Standard Term Support) > Check "Use Redis for caching" > Create
  2. Build and F5
  3. Stop and Start the container and navigate to Console logs.

NOTE

  1. This issue is unstable and shows different error messages when rerunning the project.
  2. This is also reproduce in .NET 8.0 framework.

ACTUAL
Starting the container again after stopping it shows an error message in Console logs and CMD.

CONSOLE LOGS:
Image
Error message:

Error executing command 'resource-start'.
Aspire.Hosting.DistributedApplicationException: Failed to delete 'cache-nskrejxr' successfully before restart.
   at Aspire.Hosting.Dcp.ApplicationExecutor.<>c__DisplayClass81_2`1.<<StartResourceAsync>b__2>d.MoveNext() in /_/src/Aspire.Hosting/Dcp/ApplicationExecutor.cs:line 2133
--- End of stack trace from previous location ---
   at Polly.ResiliencePipeline.<>c.<<ExecuteAsync>b__3_0>d.MoveNext()
--- End of stack trace from previous location ---
   at Polly.Outcome`1.GetResultOrRethrow()
   at Polly.ResiliencePipeline.ExecuteAsync(Func`2 callback, CancellationToken cancellationToken)
   at Aspire.Hosting.Dcp.ApplicationExecutor.<>c__DisplayClass81_0.<<StartResourceAsync>g__StartExecutableOrContainerAsync|0>d`1.MoveNext() in /_/src/Aspire.Hosting/Dcp/ApplicationExecutor.cs:line 2128
--- End of stack trace from previous location ---
   at Aspire.Hosting.Dcp.ApplicationExecutor.StartResourceAsync(String resourceName, CancellationToken cancellationToken) in /_/src/Aspire.Hosting/Dcp/ApplicationExecutor.cs:line 2074
   at Aspire.Hosting.ApplicationModel.CommandsConfigurationExtensions.<>c.<<AddLifeCycleCommands>b__3_1>d.MoveNext() in /_/src/Aspire.Hosting/ApplicationModel/CommandsConfigurationExtensions.cs:line 29
--- End of stack trace from previous location ---
   at Aspire.Hosting.Dashboard.DashboardCommandExecutor.ExecuteCommandAsync(String resourceId, ResourceCommandAnnotation annotation, CancellationToken cancellationToken) in /_/src/Aspire.Hosting/Dashboard/DashboardCommandExecutor.cs:line 31
   at Aspire.Hosting.Dashboard.DashboardServiceData.ExecuteCommandAsync(String resourceId, String type, CancellationToken cancellationToken) in /_/src/Aspire.Hosting/Dashboard/DashboardServiceData.cs:line 99

CMD:

  1. Image

  2. Image

EXPECTED
There should be no errors when stopping and starting the container.

@vmykagapuz vmykagapuz changed the title [WebToolsE2E][Aspire] After starting a stopped container again, there is error in Console logs: "Error executing command 'resource-start'. Aspire.Hosting.DistributedApplicationException: Failed to delete 'cache-nskrejxr' successfully before restart." [WebToolsE2E][Aspire] After starting a stopped container, there is error in Console logs: "Error executing command 'resource-start'. Aspire.Hosting.DistributedApplicationException: Failed to delete 'cache-nskrejxr' successfully before restart." Dec 9, 2024
@joperezr joperezr added the untriaged New issue has not been triaged label Dec 9, 2024
@vmykagapuz
Copy link
Author

Im not sure if this issue is the same as #5972, which was fixed in Aspire 9.1 but this issue is reproduced in Aspire 9.0.0 and 9.0.1.

@vmykagapuz
Copy link
Author

For aspire 9.1 with the same repro steps, I also encountered this issue as mentioned in #5972 (comment)
Image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area-orchestrator untriaged New issue has not been triaged
Projects
None yet
Development

No branches or pull requests

2 participants