Skip to content

Stopping and restarting services is very unreliable #9379

Closed
@davidfowl

Description

@davidfowl

I built this watch and reload extension using resources for process coordination the dcp logs and app host logs are really noisy with failures. IT seems like really often the process fails to stop or start and it's unclear

fail: Aspire.Hosting.Dcp.dcpctrl.ExecutableReconciler[0]
      could not remove process's standard error file    {"Executable": {"name":"build-api-rpebgrac"}, "Reconciliation": 29, "path": "C:\\Users\\<user>\\AppData\\Local\\Temp\\aspire.0owymtsl.qse\\build-api-rpebgrac_err_6536104e-8a99-47bb-b84b-837a8a7e8356", "error": "remove C:\\Users\\<user>\\AppData\\Local\\Temp\\aspire.0owymtsl.qse\\build-api-rpebgrac_err_6536104e-8a99-47bb-b84b-837a8a7e8356: The process cannot access the file because it is being used by another process.\ncontext deadline exceeded"}
fail: Aspire.Hosting.Dcp.dcpctrl.ExecutableReconciler[0]
      could not remove process's standard output file   {"Executable": {"name":"build-api-rpebgrac"}, "Reconciliation": 29, "path": "C:\\Users\\<user>\\AppData\\Local\\Temp\\aspire.0owymtsl.qse\\build-api-rpebgrac_out_6536104e-8a99-47bb-b84b-837a8a7e8356", "error": "remove C:\\Users\\<user>\\AppData\\Local\\Temp\\aspire.0owymtsl.qse\\build-api-rpebgrac_out_6536104e-8a99-47bb-b84b-837a8a7e8356: The process cannot access the file because it is being used by another process.\ncontext deadline exceeded"}
info: FileWatcherResourceExtension[0]
      File watcher started for resource: api in C:\\<repo>\\apps\my94app\my94app.ApiService
info: FileWatcherResourceExtension[0]
      Watching for file changes...
info: FileWatcherResourceExtension[0]
      Restarting resource due to file change...C:\\<repo>\\apps\my94app\my94app.ApiService\Program.cs
fail: Aspire.Hosting.Dcp.dcpctrl.ExecutableReconciler[0]
      could not remove process's standard output file   {"Executable": {"name":"build-api-rpebgrac"}, "Reconciliation": 55, "path": "C:\\Users\\<user>\\AppData\\Local\\Temp\\aspire.0owymtsl.qse\\build-api-rpebgrac_out_f157c3b2-4a7e-4899-ae56-7d845a84756d", "error": "remove C:\\Users\\<user>\\AppData\\Local\\Temp\\aspire.0owymtsl.qse\\build-api-rpebgrac_out_f157c3b2-4a7e-4899-ae56-7d845a84756d: The process cannot access the file because it is being used by another process.\ncontext deadline exceeded"}
fail: Aspire.Hosting.Dcp.dcpctrl.ExecutableReconciler[0]
      could not remove process's standard error file    {"Executable": {"name":"build-api-rpebgrac"}, "Reconciliation": 55, "path": "C:\\Users\\<user>\\AppData\\Local\\Temp\\aspire.0owymtsl.qse\\build-api-rpebgrac_err_f157c3b2-4a7e-4899-ae56-7d845a84756d", "error": "remove C:\\Users\\<user>\\AppData\\Local\\Temp\\aspire.0owymtsl.qse\\build-api-rpebgrac_err_f157c3b2-4a7e-4899-ae56-7d845a84756d: The process cannot access the file because it is being used by another process.\ncontext deadline exceeded"}
info: FileWatcherResourceExtension[0]
      File watcher started for resource: api in C:\\<repo>\\apps\my94app\my94app.ApiService
info: FileWatcherResourceExtension[0]
      Watching for file changes...
info: FileWatcherResourceExtension[0]
      Restarting resource due to file change...C:\\<repo>\\apps\my94app\my94app.ApiService\Program.cs
fail: Aspire.Hosting.Dcp.dcpctrl.ExecutableReconciler[0]
      could not remove process's standard error file    {"Executable": {"name":"build-api-rpebgrac"}, "Reconciliation": 82, "path": "C:\\Users\\<user>\\AppData\\Local\\Temp\\aspire.0owymtsl.qse\\build-api-rpebgrac_err_4ace52c5-976c-4bda-a29f-e6c34324dcf3", "error": "remove C:\\Users\\<user>\\AppData\\Local\\Temp\\aspire.0owymtsl.qse\\build-api-rpebgrac_err_4ace52c5-976c-4bda-a29f-e6c34324dcf3: The process cannot access the file because it is being used by another process.\ncontext deadline exceeded"}
fail: Aspire.Hosting.Dcp.dcpctrl.ExecutableReconciler[0]
      could not remove process's standard output file   {"Executable": {"name":"build-api-rpebgrac"}, "Reconciliation": 82, "path": "C:\\Users\\<user>\\AppData\\Local\\Temp\\aspire.0owymtsl.qse\\build-api-rpebgrac_out_4ace52c5-976c-4bda-a29f-e6c34324dcf3", "error": "remove C:\\Users\\<user>\\AppData\\Local\\Temp\\aspire.0owymtsl.qse\\build-api-rpebgrac_out_4ace52c5-976c-4bda-a29f-e6c34324dcf3: The process cannot access the file because it is being used by another process.\ncontext deadline exceeded"}
info: FileWatcherResourceExtension[0]
      File watcher started for resource: api in C:\\<repo>\\apps\my94app\my94app.ApiService
info: FileWatcherResourceExtension[0]
      Watching for file changes...
info: FileWatcherResourceExtension[0]
      Restarting resource due to file change...C:\\<repo>\\apps\my94app\my94app.ApiService\Program.cs
fail: Aspire.Hosting.Dcp.dcpctrl.ExecutableReconciler[0]
      could not remove process's standard output file   {"Executable": {"name":"build-api-rpebgrac"}, "Reconciliation": 108, "path": "C:\\Users\\<user>\\AppData\\Local\\Temp\\aspire.0owymtsl.qse\\build-api-rpebgrac_out_f9d6e407-b178-4f8c-8409-7d77c49f09f2", "error": "remove C:\\Users\\<user>\\AppData\\Local\\Temp\\aspire.0owymtsl.qse\\build-api-rpebgrac_out_f9d6e407-b178-4f8c-8409-7d77c49f09f2: The process cannot access the file because it is being used by another process.\ncontext deadline exceeded"}
fail: Aspire.Hosting.Dcp.dcpctrl.ExecutableReconciler[0]
      could not remove process's standard error file    {"Executable": {"name":"build-api-rpebgrac"}, "Reconciliation": 108, "path": "C:\\Users\\<user>\\AppData\\Local\\Temp\\aspire.0owymtsl.qse\\build-api-rpebgrac_err_f9d6e407-b178-4f8c-8409-7d77c49f09f2", "error": "remove C:\\Users\\<user>\\AppData\\Local\\Temp\\aspire.0owymtsl.qse\\build-api-rpebgrac_err_f9d6e407-b178-4f8c-8409-7d77c49f09f2: The process cannot access the file because it is being used by another process.\ncontext deadline exceeded"}
info: FileWatcherResourceExtension[0]
      File watcher started for resource: api in C:\\<repo>\\apps\my94app\my94app.ApiService
info: FileWatcherResourceExtension[0]
      Watching for file changes...
info: FileWatcherResourceExtension[0]
      Restarting resource due to file change...C:\\<repo>\\apps\my94app\my94app.ApiService\Program.cs
fail: Aspire.Hosting.Dcp.dcpctrl.ExecutableReconciler[0]
      could not remove process's standard output file   {"Executable": {"name":"build-api-rpebgrac"}, "Reconciliation": 131, "path": "C:\\Users\\<user>\\AppData\\Local\\Temp\\aspire.0owymtsl.qse\\build-api-rpebgrac_out_37a5f12f-6036-4a12-9f3c-2f8e9487f912", "error": "remove C:\\Users\\<user>\\AppData\\Local\\Temp\\aspire.0owymtsl.qse\\build-api-rpebgrac_out_37a5f12f-6036-4a12-9f3c-2f8e9487f912: The process cannot access the file because it is being used by another process.\ncontext deadline exceeded"}
fail: Aspire.Hosting.Dcp.dcpctrl.ExecutableReconciler[0]
      could not remove process's standard error file    {"Executable": {"name":"build-api-rpebgrac"}, "Reconciliation": 131, "path": "C:\\Users\\<user>\\AppData\\Local\\Temp\\aspire.0owymtsl.qse\\build-api-rpebgrac_err_37a5f12f-6036-4a12-9f3c-2f8e9487f912", "error": "remove C:\\Users\\<user>\\AppData\\Local\\Temp\\aspire.0owymtsl.qse\\build-api-rpebgrac_err_37a5f12f-6036-4a12-9f3c-2f8e9487f912: The process cannot access the file because it is being used by another process.\ncontext deadline exceeded"}
info: FileWatcherResourceExtension[0]
      File watcher started for resource: api in C:\\<repo>\\apps\my94app\my94app.ApiService
info: FileWatcherResourceExtension[0]
      Watching for file changes...
info: FileWatcherResourceExtension[0]
      Restarting resource due to file change...C:\\<repo>\\apps\my94app\my94app.ApiService\Program.cs
fail: Aspire.Hosting.Dcp.dcpctrl.ExecutableReconciler[0]
      could not remove process's standard error file    {"Executable": {"name":"build-api-rpebgrac"}, "Reconciliation": 159, "path": "C:\\Users\\<user>\\AppData\\Local\\Temp\\aspire.0owymtsl.qse\\build-api-rpebgrac_err_667927d8-a24c-40dc-a06c-8bb934b677f2", "error": "remove C:\\Users\\<user>\\AppData\\Local\\Temp\\aspire.0owymtsl.qse\\build-api-rpebgrac_err_667927d8-a24c-40dc-a06c-8bb934b677f2: The process cannot access the file because it is being used by another process.\ncontext deadline exceeded"}
fail: Aspire.Hosting.Dcp.dcpctrl.ExecutableReconciler[0]
      could not remove process's standard output file   {"Executable": {"name":"build-api-rpebgrac"}, "Reconciliation": 159, "path": "C:\\Users\\<user>\\AppData\\Local\\Temp\\aspire.0owymtsl.qse\\build-api-rpebgrac_out_667927d8-a24c-40dc-a06c-8bb934b677f2", "error": "remove C:\\Users\\<user>\\AppData\\Local\\Temp\\aspire.0owymtsl.qse\\build-api-rpebgrac_out_667927d8-a24c-40dc-a06c-8bb934b677f2: The process cannot access the file because it is being used by another process.\ncontext deadline exceeded"}
info: FileWatcherResourceExtension[0]
      File watcher started for resource: api in C:\\<repo>\\apps\my94app\my94app.ApiService
info: FileWatcherResourceExtension[0]
      Watching for file changes...
info: FileWatcherResourceExtension[0]
      Restarting resource due to file change...C:\\<repo>\\apps\my94app\my94app.ApiService\Program.cs
fail: Aspire.Hosting.Dcp.dcpctrl.ExecutableReconciler[0]
      could not remove process's standard output file   {"Executable": {"name":"build-api-rpebgrac"}, "Reconciliation": 182, "path": "C:\\Users\\<user>\\AppData\\Local\\Temp\\aspire.0owymtsl.qse\\build-api-rpebgrac_out_33f97409-5aad-498b-be71-1f0469cf64f5", "error": "remove C:\\Users\\<user>\\AppData\\Local\\Temp\\aspire.0owymtsl.qse\\build-api-rpebgrac_out_33f97409-5aad-498b-be71-1f0469cf64f5: The process cannot access the file because it is being used by another process.\ncontext deadline exceeded"}
fail: Aspire.Hosting.Dcp.dcpctrl.ExecutableReconciler[0]
      could not remove process's standard error file    {"Executable": {"name":"build-api-rpebgrac"}, "Reconciliation": 182, "path": "C:\\Users\\<user>\\AppData\\Local\\Temp\\aspire.0owymtsl.qse\\build-api-rpebgrac_err_33f97409-5aad-498b-be71-1f0469cf64f5", "error": "remove C:\\Users\\<user>\\AppData\\Local\\Temp\\aspire.0owymtsl.qse\\build-api-rpebgrac_err_33f97409-5aad-498b-be71-1f0469cf64f5: The process cannot access the file because it is being used by another process.\ncontext deadline exceeded"}
info: FileWatcherResourceExtension[0]
      File watcher started for resource: api in C:\\<repo>\\apps\my94app\my94app.ApiService
info: FileWatcherResourceExtension[0]
      Watching for file changes...
info: FileWatcherResourceExtension[0]
      Restarting resource due to file change...C:\\<repo>\\apps\my94app\my94app.ApiService\Program.cs
fail: Aspire.Hosting.Dcp.dcpctrl.ExecutableReconciler[0]
      could not remove process's standard error file    {"Executable": {"name":"build-api-rpebgrac"}, "Reconciliation": 209, "path": "C:\\Users\\<user>\\AppData\\Local\\Temp\\aspire.0owymtsl.qse\\build-api-rpebgrac_err_59f56f14-197e-4639-a848-79d05c0fc8a2", "error": "remove C:\\Users\\<user>\\AppData\\Local\\Temp\\aspire.0owymtsl.qse\\build-api-rpebgrac_err_59f56f14-197e-4639-a848-79d05c0fc8a2: The process cannot access the file because it is being used by another process.\ncontext deadline exceeded"}
fail: Aspire.Hosting.Dcp.dcpctrl.ExecutableReconciler[0]
      could not remove process's standard output file   {"Executable": {"name":"build-api-rpebgrac"}, "Reconciliation": 209, "path": "C:\\Users\\<user>\\AppData\\Local\\Temp\\aspire.0owymtsl.qse\\build-api-rpebgrac_out_59f56f14-197e-4639-a848-79d05c0fc8a2", "error": "remove C:\\Users\\<user>\\AppData\\Local\\Temp\\aspire.0owymtsl.qse\\build-api-rpebgrac_out_59f56f14-197e-4639-a848-79d05c0fc8a2: The process cannot access the file because it is being used by another process.\ncontext deadline exceeded"}
info: FileWatcherResourceExtension[0]
      File watcher started for resource: api in C:\\<repo>\\apps\my94app\my94app.ApiService
info: FileWatcherResourceExtension[0]
      Watching for file changes...
info: FileWatcherResourceExtension[0]
      Restarting resource due to file change...C:\\<repo>\\apps\my94app\my94app.ApiService\Program.cs
fail: Aspire.Hosting.Dcp.dcpctrl.ExecutableReconciler[0]
      could not remove process's standard output file   {"Executable": {"name":"build-api-rpebgrac"}, "Reconciliation": 237, "path": "C:\\Users\\<user>\\AppData\\Local\\Temp\\aspire.0owymtsl.qse\\build-api-rpebgrac_out_176d444f-39f3-4989-803f-bac705b177e8", "error": "remove C:\\Users\\<user>\\AppData\\Local\\Temp\\aspire.0owymtsl.qse\\build-api-rpebgrac_out_176d444f-39f3-4989-803f-bac705b177e8: The process cannot access the file because it is being used by another process.\ncontext deadline exceeded"}
fail: Aspire.Hosting.Dcp.dcpctrl.ExecutableReconciler[0]
      could not remove process's standard error file    {"Executable": {"name":"build-api-rpebgrac"}, "Reconciliation": 237, "path": "C:\\Users\\<user>\\AppData\\Local\\Temp\\aspire.0owymtsl.qse\\build-api-rpebgrac_err_176d444f-39f3-4989-803f-bac705b177e8", "error": "remove C:\\Users\\<user>\\AppData\\Local\\Temp\\aspire.0owymtsl.qse\\build-api-rpebgrac_err_176d444f-39f3-4989-803f-bac705b177e8: The process cannot access the file because it is being used by another process.\ncontext deadline exceeded"}
info: FileWatcherResourceExtension[0]
      File watcher started for resource: api in C:\\<repo>\\apps\my94app\my94app.ApiService
info: FileWatcherResourceExtension[0]
      Watching for file changes...
info: FileWatcherResourceExtension[0]
      Restarting resource due to file change...C:\\<repo>\\apps\my94app\my94app.ApiService\Program.cs
fail: Aspire.Hosting.Dcp.dcpctrl.ExecutableReconciler[0]
      could not remove process's standard output file   {"Executable": {"name":"build-api-rpebgrac"}, "Reconciliation": 264, "path": "C:\\Users\\<user>\\AppData\\Local\\Temp\\aspire.0owymtsl.qse\\build-api-rpebgrac_out_bf166cab-abea-41e0-8b1c-2b98136c3fbc", "error": "remove C:\\Users\\<user>\\AppData\\Local\\Temp\\aspire.0owymtsl.qse\\build-api-rpebgrac_out_bf166cab-abea-41e0-8b1c-2b98136c3fbc: The process cannot access the file because it is being used by another process.\ncontext deadline exceeded"}
fail: Aspire.Hosting.Dcp.dcpctrl.ExecutableReconciler[0]
      could not remove process's standard error file    {"Executable": {"name":"build-api-rpebgrac"}, "Reconciliation": 264, "path": "C:\\Users\\<user>\\AppData\\Local\\Temp\\aspire.0owymtsl.qse\\build-api-rpebgrac_err_bf166cab-abea-41e0-8b1c-2b98136c3fbc", "error": "remove C:\\Users\\<user>\\AppData\\Local\\Temp\\aspire.0owymtsl.qse\\build-api-rpebgrac_err_bf166cab-abea-41e0-8b1c-2b98136c3fbc: The process cannot access the file because it is being used by another process.\ncontext deadline exceeded"}
info: FileWatcherResourceExtension[0]
      File watcher started for resource: api in C:\\<repo>\\apps\my94app\my94app.ApiService
info: FileWatcherResourceExtension[0]
      Watching for file changes...
info: FileWatcherResourceExtension[0]
      Restarting resource due to file change...C:\\<repo>\\apps\my94app\my94app.ApiService\Program.cs
fail: Aspire.Hosting.Dcp.dcpctrl.ExecutableReconciler[0]
      could not remove process's standard output file   {"Executable": {"name":"build-api-rpebgrac"}, "Reconciliation": 290, "path": "C:\\Users\\<user>\\AppData\\Local\\Temp\\aspire.0owymtsl.qse\\build-api-rpebgrac_out_d2533e41-c83f-4d34-9105-9321e5f67f02", "error": "remove C:\\Users\\<user>\\AppData\\Local\\Temp\\aspire.0owymtsl.qse\\build-api-rpebgrac_out_d2533e41-c83f-4d34-9105-9321e5f67f02: The process cannot access the file because it is being used by another process.\ncontext deadline exceeded"}
fail: Aspire.Hosting.Dcp.dcpctrl.ExecutableReconciler[0]
      could not remove process's standard error file    {"Executable": {"name":"build-api-rpebgrac"}, "Reconciliation": 290, "path": "C:\\Users\\<user>\\AppData\\Local\\Temp\\aspire.0owymtsl.qse\\build-api-rpebgrac_err_d2533e41-c83f-4d34-9105-9321e5f67f02", "error": "remove C:\\Users\\<user>\\AppData\\Local\\Temp\\aspire.0owymtsl.qse\\build-api-rpebgrac_err_d2533e41-c83f-4d34-9105-9321e5f67f02: The process cannot access the file because it is being used by another process.\ncontext deadline exceeded"}
info: FileWatcherResourceExtension[0]
      File watcher started for resource: api in C:\\<repo>\\apps\my94app\my94app.ApiService
info: FileWatcherResourceExtension[0]
      Watching for file changes...
info: FileWatcherResourceExtension[0]
      Restarting resource due to file change...C:\\<repo>\\apps\my94app\my94app.ApiService\Program.cs
fail: Aspire.Hosting.Dcp.dcpctrl.ExecutableReconciler[0]
      could not remove process's standard output file   {"Executable": {"name":"build-api-rpebgrac"}, "Reconciliation": 318, "path": "C:\\Users\\<user>\\AppData\\Local\\Temp\\aspire.0owymtsl.qse\\build-api-rpebgrac_out_3679d594-6f60-4698-8297-af8bc9646b46", "error": "remove C:\\Users\\<user>\\AppData\\Local\\Temp\\aspire.0owymtsl.qse\\build-api-rpebgrac_out_3679d594-6f60-4698-8297-af8bc9646b46: The process cannot access the file because it is being used by another process.\ncontext deadline exceeded"}
fail: Aspire.Hosting.Dcp.dcpctrl.ExecutableReconciler[0]
      could not remove process's standard error file    {"Executable": {"name":"build-api-rpebgrac"}, "Reconciliation": 318, "path": "C:\\Users\\<user>\\AppData\\Local\\Temp\\aspire.0owymtsl.qse\\build-api-rpebgrac_err_3679d594-6f60-4698-8297-af8bc9646b46", "error": "remove C:\\Users\\<user>\\AppData\\Local\\Temp\\aspire.0owymtsl.qse\\build-api-rpebgrac_err_3679d594-6f60-4698-8297-af8bc9646b46: The process cannot access the file because it is being used by another process.\ncontext deadline exceeded"}
info: FileWatcherResourceExtension[0]
      File watcher started for resource: api in C:\\<repo>\\apps\my94app\my94app.ApiService
info: FileWatcherResourceExtension[0]
      Watching for file changes...
info: FileWatcherResourceExtension[0]
      Restarting resource due to file change...C:\\<repo>\\apps\my94app\my94app.ApiService\Program.cs
fail: Aspire.Hosting.Dcp.dcpctrl.os-executor[0]
      could not stop root process       {"root": 37344, "error": "process 37344 not found: no process found with PID 37344"}
fail: Aspire.Hosting.Dcp.dcpctrl.ExecutableReconciler[0]
      could not stop the Executable     {"Executable": {"name":"build-api-rpebgrac"}, "Reconciliation": 348, "RunID": "37344", "error": "process 37344 not found: no process found with PID 37344"}
info: FileWatcherResourceExtension[0]
      File watcher started for resource: api in C:\\<repo>\\apps\my94app\my94app.ApiService
info: FileWatcherResourceExtension[0]
      Watching for file changes...
info: FileWatcherResourceExtension[0]
      Restarting resource due to file change...C:\\<repo>\\apps\my94app\my94app.ApiService\Program.cs
fail: Aspire.Hosting.Dcp.dcpctrl.ExecutableReconciler[0]
      could not remove process's standard error file    {"Executable": {"name":"build-api-rpebgrac"}, "Reconciliation": 382, "path": "C:\\Users\\<user>\\AppData\\Local\\Temp\\aspire.0owymtsl.qse\\build-api-rpebgrac_err_a3c6e8fa-0c08-4a1a-9769-6c229ab59e23", "error": "remove C:\\Users\\<user>\\AppData\\Local\\Temp\\aspire.0owymtsl.qse\\build-api-rpebgrac_err_a3c6e8fa-0c08-4a1a-9769-6c229ab59e23: The process cannot access the file because it is being used by another process.\ncontext deadline exceeded"}
fail: Aspire.Hosting.Dcp.dcpctrl.ExecutableReconciler[0]
      could not remove process's standard output file   {"Executable": {"name":"build-api-rpebgrac"}, "Reconciliation": 382, "path": "C:\\Users\\<user>\\AppData\\Local\\Temp\\aspire.0owymtsl.qse\\build-api-rpebgrac_out_a3c6e8fa-0c08-4a1a-9769-6c229ab59e23", "error": "remove C:\\Users\\<user>\\AppData\\Local\\Temp\\aspire.0owymtsl.qse\\build-api-rpebgrac_out_a3c6e8fa-0c08-4a1a-9769-6c229ab59e23: The process cannot access the file because it is being used by another process.\ncontext deadline exceeded"}
info: FileWatcherResourceExtension[0]
      File watcher started for resource: api in C:\\<repo>\\apps\my94app\my94app.ApiService
info: FileWatcherResourceExtension[0]
      Watching for file changes...
info: FileWatcherResourceExtension[0]
      Restarting resource due to file change...C:\\<repo>\\apps\my94app\my94app.ApiService\Program.cs
fail: Aspire.Hosting.Dcp.dcpctrl.ExecutableReconciler[0]
      could not remove process's standard error file    {"Executable": {"name":"build-api-rpebgrac"}, "Reconciliation": 409, "path": "C:\\Users\\<user>\\AppData\\Local\\Temp\\aspire.0owymtsl.qse\\build-api-rpebgrac_err_38df41a1-abf4-4790-95ab-c4e13a26c7af", "error": "remove C:\\Users\\<user>\\AppData\\Local\\Temp\\aspire.0owymtsl.qse\\build-api-rpebgrac_err_38df41a1-abf4-4790-95ab-c4e13a26c7af: The process cannot access the file because it is being used by another process.\ncontext deadline exceeded"}
fail: Aspire.Hosting.Dcp.dcpctrl.ExecutableReconciler[0]
      could not remove process's standard output file   {"Executable": {"name":"build-api-rpebgrac"}, "Reconciliation": 409, "path": "C:\\Users\\<user>\\AppData\\Local\\Temp\\aspire.0owymtsl.qse\\build-api-rpebgrac_out_38df41a1-abf4-4790-95ab-c4e13a26c7af", "error": "remove C:\\Users\\<user>\\AppData\\Local\\Temp\\aspire.0owymtsl.qse\\build-api-rpebgrac_out_38df41a1-abf4-4790-95ab-c4e13a26c7af: The process cannot access the file because it is being used by another process.\ncontext deadline exceeded"}
info: FileWatcherResourceExtension[0]
      File watcher started for resource: api in C:\\<repo>\\apps\my94app\my94app.ApiService
info: FileWatcherResourceExtension[0]
      Watching for file changes...
info: FileWatcherResourceExtension[0]
      Restarting resource due to file change...C:\\<repo>\\apps\my94app\my94app.ApiService\Program.cs
fail: Aspire.Hosting.Dcp.dcpctrl.ExecutableReconciler[0]
      could not remove process's standard error file    {"Executable": {"name":"build-api-rpebgrac"}, "Reconciliation": 437, "path": "C:\\Users\\<user>\\AppData\\Local\\Temp\\aspire.0owymtsl.qse\\build-api-rpebgrac_err_4d05f6f9-8d4a-449d-bfc9-c852c11ccf90", "error": "remove C:\\Users\\<user>\\AppData\\Local\\Temp\\aspire.0owymtsl.qse\\build-api-rpebgrac_err_4d05f6f9-8d4a-449d-bfc9-c852c11ccf90: The process cannot access the file because it is being used by another process.\ncontext deadline exceeded"}
fail: Aspire.Hosting.Dcp.dcpctrl.ExecutableReconciler[0]
      could not remove process's standard output file   {"Executable": {"name":"build-api-rpebgrac"}, "Reconciliation": 437, "path": "C:\\Users\\<user>\\AppData\\Local\\Temp\\aspire.0owymtsl.qse\\build-api-rpebgrac_out_4d05f6f9-8d4a-449d-bfc9-c852c11ccf90", "error": "remove C:\\Users\\<user>\\AppData\\Local\\Temp\\aspire.0owymtsl.qse\\build-api-rpebgrac_out_4d05f6f9-8d4a-449d-bfc9-c852c11ccf90: The process cannot access the file because it is being used by another process.\ncontext deadline exceeded"}
info: FileWatcherResourceExtension[0]
      File watcher started for resource: api in C:\\<repo>\\apps\my94app\my94app.ApiService
info: FileWatcherResourceExtension[0]
      Watching for file changes...
info: FileWatcherResourceExtension[0]
      Restarting resource due to file change...C:\\<repo>\\apps\my94app\my94app.ApiService\Program.cs
fail: Aspire.Hosting.Dcp.dcpctrl.ExecutableReconciler[0]
      could not remove process's standard error file    {"Executable": {"name":"build-api-rpebgrac"}, "Reconciliation": 466, "path": "C:\\Users\\<user>\\AppData\\Local\\Temp\\aspire.0owymtsl.qse\\build-api-rpebgrac_err_88c499e0-0b81-4084-9a44-f23453eb33d0", "error": "remove C:\\Users\\<user>\\AppData\\Local\\Temp\\aspire.0owymtsl.qse\\build-api-rpebgrac_err_88c499e0-0b81-4084-9a44-f23453eb33d0: The process cannot access the file because it is being used by another process.\ncontext deadline exceeded"}
fail: Aspire.Hosting.Dcp.dcpctrl.ExecutableReconciler[0]
      could not remove process's standard output file   {"Executable": {"name":"build-api-rpebgrac"}, "Reconciliation": 466, "path": "C:\\Users\\<user>\\AppData\\Local\\Temp\\aspire.0owymtsl.qse\\build-api-rpebgrac_out_88c499e0-0b81-4084-9a44-f23453eb33d0", "error": "remove C:\\Users\\<user>\\AppData\\Local\\Temp\\aspire.0owymtsl.qse\\build-api-rpebgrac_out_88c499e0-0b81-4084-9a44-f23453eb33d0: The process cannot access the file because it is being used by another process.\ncontext deadline exceeded"}
info: FileWatcherResourceExtension[0]
      File watcher started for resource: api in C:\\<repo>\\apps\my94app\my94app.ApiService
info: FileWatcherResourceExtension[0]
      Watching for file changes...
info: FileWatcherResourceExtension[0]
      Restarting resource due to file change...C:\\<repo>\\apps\my94app\my94app.ApiService\Program.cs
fail: Aspire.Hosting.Dcp.dcpctrl.os-executor[0]
      could not stop root process       {"root": 19940, "error": "process 19940 not found: no process found with PID 19940"}
fail: Aspire.Hosting.Dcp.dcpctrl.ExecutableReconciler[0]
      could not stop the Executable     {"Executable": {"name":"build-api-rpebgrac"}, "Reconciliation": 495, "RunID": "19940", "error": "process 19940 not found: no process found with PID 19940"}
info: FileWatcherResourceExtension[0]
      File watcher started for resource: api in C:\\<repo>\\apps\my94app\my94app.ApiService
info: FileWatcherResourceExtension[0]
      Watching for file changes...
info: FileWatcherResourceExtension[0]
      Restarting resource due to file change...C:\\<repo>\\apps\my94app\my94app.ApiService\Program.cs
fail: Aspire.Hosting.Dcp.dcpctrl.ExecutableReconciler[0]
      could not remove process's standard output file   {"Executable": {"name":"build-api-rpebgrac"}, "Reconciliation": 527, "path": "C:\\Users\\<user>\\AppData\\Local\\Temp\\aspire.0owymtsl.qse\\build-api-rpebgrac_out_42c02063-62f8-4f5c-835a-6cea765221b5", "error": "remove C:\\Users\\<user>\\AppData\\Local\\Temp\\aspire.0owymtsl.qse\\build-api-rpebgrac_out_42c02063-62f8-4f5c-835a-6cea765221b5: The process cannot access the file because it is being used by another process.\ncontext deadline exceeded"}
fail: Aspire.Hosting.Dcp.dcpctrl.ExecutableReconciler[0]
      could not remove process's standard error file    {"Executable": {"name":"build-api-rpebgrac"}, "Reconciliation": 527, "path": "C:\\Users\\<user>\\AppData\\Local\\Temp\\aspire.0owymtsl.qse\\build-api-rpebgrac_err_42c02063-62f8-4f5c-835a-6cea765221b5", "error": "remove C:\\Users\\<user>\\AppData\\Local\\Temp\\aspire.0owymtsl.qse\\build-api-rpebgrac_err_42c02063-62f8-4f5c-835a-6cea765221b5: The process cannot access the file because it is being used by another process.\ncontext deadline exceeded"}
fail: Aspire.Hosting.Dcp.DcpExecutor[0]
      Failed to start resource api
      Aspire.Hosting.DistributedApplicationException: Resource 'build-api' has entered the 'Finished' state with exit code '1', expected '0'.
         at Aspire.Hosting.ApplicationModel.ResourceNotificationService.<>c__DisplayClass21_0.<<WaitUntilCompletionAsync>g__Core|1>d.MoveNext() in /_/src/Aspire.Hosting/ApplicationModel/ResourceNotificationService.cs:line 345
      --- End of stack trace from previous location ---
         at Aspire.Hosting.ApplicationModel.ResourceNotificationService.WaitUntilCompletionAsync(IResource resource, IResource dependency, Int32 exitCode, CancellationToken cancellationToken) in /_/src/Aspire.Hosting/ApplicationModel/ResourceNotificationService.cs:line 319
         at Aspire.Hosting.ApplicationModel.ResourceNotificationService.WaitForDependenciesAsync(IResource resource, CancellationToken cancellationToken) in /_/src/Aspire.Hosting/ApplicationModel/ResourceNotificationService.cs:line 390
         at Aspire.Hosting.Orchestrator.ApplicationOrchestrator.WaitForInBeforeResourceStartedEvent(BeforeResourceStartedEvent event, CancellationToken cancellationToken) in /_/src/Aspire.Hosting/Orchestrator/ApplicationOrchestrator.cs:line 85
         at Aspire.Hosting.Eventing.DistributedApplicationEventing.<>c__DisplayClass4_0`1.<<Subscribe>b__0>d.MoveNext() in /_/src/Aspire.Hosting/Eventing/DistributedApplicationEventing.cs:line 82
      --- End of stack trace from previous location ---
         at Aspire.Hosting.Eventing.DistributedApplicationEventing.PublishAsync[T](T event, EventDispatchBehavior dispatchBehavior, CancellationToken cancellationToken) in /_/src/Aspire.Hosting/Eventing/DistributedApplicationEventing.cs:line 69
         at Aspire.Hosting.Orchestrator.ApplicationOrchestrator.OnResourceStarting(OnResourceStartingContext context) in /_/src/Aspire.Hosting/Orchestrator/ApplicationOrchestrator.cs:line 167
         at Aspire.Hosting.Dcp.DcpExecutorEvents.PublishAsync[T](T context) in /_/src/Aspire.Hosting/Dcp/DcpExecutorEvents.cs:line 33
         at Aspire.Hosting.Dcp.DcpExecutor.StartResourceAsync(IResourceReference resourceReference, CancellationToken cancellationToken) in /_/src/Aspire.Hosting/Dcp/DcpExecutor.cs:line 1562
fail: FileWatcherResourceExtension[0]
      Failed to restart resource after file change: C:\\<repo>\\apps\my94app\my94app.ApiService\Program.cs
      Aspire.Hosting.DistributedApplicationException: Resource 'build-api' has entered the 'Finished' state with exit code '1', expected '0'.
         at Aspire.Hosting.ApplicationModel.ResourceNotificationService.<>c__DisplayClass21_0.<<WaitUntilCompletionAsync>g__Core|1>d.MoveNext() in /_/src/Aspire.Hosting/ApplicationModel/ResourceNotificationService.cs:line 345
      --- End of stack trace from previous location ---
         at Aspire.Hosting.ApplicationModel.ResourceNotificationService.WaitUntilCompletionAsync(IResource resource, IResource dependency, Int32 exitCode, CancellationToken cancellationToken) in /_/src/Aspire.Hosting/ApplicationModel/ResourceNotificationService.cs:line 319
         at Aspire.Hosting.ApplicationModel.ResourceNotificationService.WaitForDependenciesAsync(IResource resource, CancellationToken cancellationToken) in /_/src/Aspire.Hosting/ApplicationModel/ResourceNotificationService.cs:line 390
         at Aspire.Hosting.Orchestrator.ApplicationOrchestrator.WaitForInBeforeResourceStartedEvent(BeforeResourceStartedEvent event, CancellationToken cancellationToken) in /_/src/Aspire.Hosting/Orchestrator/ApplicationOrchestrator.cs:line 85
         at Aspire.Hosting.Eventing.DistributedApplicationEventing.<>c__DisplayClass4_0`1.<<Subscribe>b__0>d.MoveNext() in /_/src/Aspire.Hosting/Eventing/DistributedApplicationEventing.cs:line 82
      --- End of stack trace from previous location ---
         at Aspire.Hosting.Eventing.DistributedApplicationEventing.PublishAsync[T](T event, EventDispatchBehavior dispatchBehavior, CancellationToken cancellationToken) in /_/src/Aspire.Hosting/Eventing/DistributedApplicationEventing.cs:line 69
         at Aspire.Hosting.Orchestrator.ApplicationOrchestrator.OnResourceStarting(OnResourceStartingContext context) in /_/src/Aspire.Hosting/Orchestrator/ApplicationOrchestrator.cs:line 167
         at Aspire.Hosting.Dcp.DcpExecutorEvents.PublishAsync[T](T context) in /_/src/Aspire.Hosting/Dcp/DcpExecutorEvents.cs:line 33
         at Aspire.Hosting.Dcp.DcpExecutor.StartResourceAsync(IResourceReference resourceReference, CancellationToken cancellationToken) in /_/src/Aspire.Hosting/Dcp/DcpExecutor.cs:line 1562
         at Aspire.Hosting.Dcp.DcpExecutor.StartResourceAsync(IResourceReference resourceReference, CancellationToken cancellationToken) in /_/src/Aspire.Hosting/Dcp/DcpExecutor.cs:line 1580
         at Aspire.Hosting.Orchestrator.ApplicationOrchestrator.StartResourceAsync(String resourceName, CancellationToken cancellationToken) in /_/src/Aspire.Hosting/Orchestrator/ApplicationOrchestrator.cs:line 359
         at Aspire.Hosting.ApplicationModel.CommandsConfigurationExtensions.<>c.<<AddLifeCycleCommands>b__0_1>d.MoveNext() in /_/src/Aspire.Hosting/ApplicationModel/CommandsConfigurationExtensions.cs:line 26
      --- End of stack trace from previous location ---
         at ProjectResourceBuilderExtensions.<>c__DisplayClass0_2.<<Watch>b__10>d.MoveNext() in C:\\<repo>\\apps\my94app\my94app.AppHost\FileWatcherResourceExtension.cs:line 132
fail: Aspire.Hosting.Dcp.DcpExecutor[0]
      Failed to start resource api
      Aspire.Hosting.DistributedApplicationException: Resource 'build-api' has entered the 'Finished' state with exit code '1', expected '0'.
         at Aspire.Hosting.ApplicationModel.ResourceNotificationService.<>c__DisplayClass21_0.<<WaitUntilCompletionAsync>g__Core|1>d.MoveNext() in /_/src/Aspire.Hosting/ApplicationModel/ResourceNotificationService.cs:line 345
      --- End of stack trace from previous location ---
         at Aspire.Hosting.ApplicationModel.ResourceNotificationService.WaitUntilCompletionAsync(IResource resource, IResource dependency, Int32 exitCode, CancellationToken cancellationToken) in /_/src/Aspire.Hosting/ApplicationModel/ResourceNotificationService.cs:line 319
         at Aspire.Hosting.ApplicationModel.ResourceNotificationService.WaitForDependenciesAsync(IResource resource, CancellationToken cancellationToken) in /_/src/Aspire.Hosting/ApplicationModel/ResourceNotificationService.cs:line 390
         at Aspire.Hosting.Orchestrator.ApplicationOrchestrator.WaitForInBeforeResourceStartedEvent(BeforeResourceStartedEvent event, CancellationToken cancellationToken) in /_/src/Aspire.Hosting/Orchestrator/ApplicationOrchestrator.cs:line 85
         at Aspire.Hosting.Eventing.DistributedApplicationEventing.<>c__DisplayClass4_0`1.<<Subscribe>b__0>d.MoveNext() in /_/src/Aspire.Hosting/Eventing/DistributedApplicationEventing.cs:line 82
      --- End of stack trace from previous location ---
         at Aspire.Hosting.Eventing.DistributedApplicationEventing.PublishAsync[T](T event, EventDispatchBehavior dispatchBehavior, CancellationToken cancellationToken) in /_/src/Aspire.Hosting/Eventing/DistributedApplicationEventing.cs:line 69
         at Aspire.Hosting.Orchestrator.ApplicationOrchestrator.OnResourceStarting(OnResourceStartingContext context) in /_/src/Aspire.Hosting/Orchestrator/ApplicationOrchestrator.cs:line 167
         at Aspire.Hosting.Dcp.DcpExecutorEvents.PublishAsync[T](T context) in /_/src/Aspire.Hosting/Dcp/DcpExecutorEvents.cs:line 33
         at Aspire.Hosting.Dcp.DcpExecutor.StartResourceAsync(IResourceReference resourceReference, CancellationToken cancellationToken) in /_/src/Aspire.Hosting/Dcp/DcpExecutor.cs:line 1562

Metadata

Metadata

Assignees

Labels

area-app-modelIssues pertaining to the APIs in Aspire.Hosting, e.g. DistributedApplicationarea-orchestrator

Type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions