aspire
aspire copied to clipboard
Error disposing log descriptor
Is there an existing issue for this?
- [X] I have searched the existing issues
Describe the bug
Saw this in one of my recent runs with latest aspire 9.0.0-preview.4.24477.2. I have only seen it hte one time, and so am not entirely sure how to reproduce it in the first place:
Expected Behavior
No error
Steps To Reproduce
Unknown
Exceptions (if any)
fail: Aspire.Hosting.Dcp.start-apiserver.api-server.container-logstreamer.LogDescriptorSet[0]
Error disposing log descriptor {"ResourceName": {"name":"sql-hdybgbqz"}, "ResourceUID": "9921b1da-2aff-41ba-b67c-a9a35b07de16", "error": "remove C:\\Users\\alex\\AppData\\Local\\Temp\\aspire.jx2teh13.xwq\\sql-hdybgbqz_out_9921b1da-2aff-41ba-b67c-a9a35b07de16_toov: The process cannot access the file because it is being used by another process.\nremove C:\\Users\\alex\\AppData\\Local\\Temp\\aspire.jx2teh13.xwq\\sql-hdybgbqz_err_9921b1da-2aff-41ba-b67c-a9a35b07de16_toov: The process cannot access the file because it is being used by another process."}
.NET Version info
No response
Anything else?
Not sure if it's relevant, but the code I was using at the time would have been:
var sql = builder.AddSqlServer("sql");
var migrator = builder.AddExecutable("migrator", "pwsh", ".",
"-NoProfile",
"-NoLogo",
"-NonInteractive",
"-Command",
"Write-Host 'Starting Migration'; Start-Sleep -Seconds 10; Write-Host 'Done'")
.WaitFor(sql);
var db = sql.AddDatabase("whatever")
.WaitFor(migrator);
DCP Version: C:\Users\alex.nuget\packages\aspire.hosting.orchestration.win-x64\9.0.0-preview.4.24477.2\tools