Title: bug: Workspaces occasionally get stuck in starting phase · Issue #18571 · coder/coder · GitHub
Open Graph Title: bug: Workspaces occasionally get stuck in starting phase · Issue #18571 · coder/coder
X Title: bug: Workspaces occasionally get stuck in starting phase · Issue #18571 · coder/coder
Description: Is there an existing issue for this? I have searched the existing issues Current Behavior When using the same template and creating the same workspaces, with the exception of the name, some workspaces (10 to 20% of the workspaces in my c...
Open Graph Description: Is there an existing issue for this? I have searched the existing issues Current Behavior When using the same template and creating the same workspaces, with the exception of the name, some workspa...
X Description: Is there an existing issue for this? I have searched the existing issues Current Behavior When using the same template and creating the same workspaces, with the exception of the name, some workspa...
Opengraph URL: https://github.com/coder/coder/issues/18571
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"bug: Workspaces occasionally get stuck in starting phase","articleBody":"### Is there an existing issue for this?\n\n- [x] I have searched the existing issues\n\n### Current Behavior\n\nWhen using the same template and creating the same workspaces, with the exception of the name, some workspaces (10 to 20% of the workspaces in my case) get stuck in starting phase (same happened to me during deletion phase of stopped workspace, but I don't have proof on hand):\n\n\n\nThere's no logs explaining what is going on exactly, besides audit log for create action and there is no progress unless I cancel the build and wait for 5 minutes until the following message appears:\n\n\n\nThen I can delete the workspace.\n\n### Relevant Log Output\n\n```shell\n2025-06-25 10:19:05.612 [info] coderd: audit_log ID=c4b9b12c-3f95-412d-9111-3bf371763106 Time=\"2025-06-25T10:19:05.506227Z\" UserID=1af29cb0-af43-4741-b7de-57a1c05a0c28 OrganizationID=afc95229-f7e3-48af-a413-0d13f265f3fe Ip=hidden UserAgent=\"Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/137.0.0.0 Safari/537.36\" ResourceType=workspace ResourceID=747b39bd-7779-4a32-a1ba-636df16456e2 ResourceTarget=rose-mouse-31 Action=create Diff=\"{\\\"automatic_updates\\\":{\\\"Old\\\":\\\"\\\",\\\"New\\\":\\\"never\\\",\\\"Secret\\\":false},\\\"id\\\":{\\\"Old\\\":\\\"\\\",\\\"New\\\":\\\"747b39bd-7779-4a32-a1ba-636df16456e2\\\",\\\"Secret\\\":false},\\\"name\\\":{\\\"Old\\\":\\\"\\\",\\\"New\\\":\\\"rose-mouse-31\\\",\\\"Secret\\\":false},\\\"owner_id\\\":{\\\"Old\\\":\\\"\\\",\\\"New\\\":\\\"1af29cb0-af43-4741-b7de-57a1c05a0c28\\\",\\\"Secret\\\":false},\\\"template_id\\\":{\\\"Old\\\":\\\"\\\",\\\"New\\\":\\\"ef6f520c-c8bb-47a2-a479-16efdd352733\\\",\\\"Secret\\\":false},\\\"ttl\\\":{\\\"Old\\\":0,\\\"New\\\":10800000000000,\\\"Secret\\\":false}}\" StatusCode=201 AdditionalFields=\"{\\\"workspace_name\\\":\\\"\\\",\\\"build_number\\\":\\\"\\\",\\\"build_reason\\\":\\\"\\\",\\\"workspace_owner\\\":\\\"hidden\\\",\\\"workspace_id\\\":\\\"00000000-0000-0000-0000-000000000000\\\"}\" RequestID=6c23e9ce-548a-47b5-a603-a14374e4cd20 ResourceIcon=\"\" actor=\"&{ID:1af29cb0-af43-4741-b7de-57a1c05a0c28 Email:hidden Username:hidden}\"\n2025-06-25 11:11:01.874 [info] provisionerd-coder-5568dc94ff-6z6gx-0.runner: attempting graceful cancellation job_id=4cbebb78-4ac9-47b5-aa18-6606d11976be template_name=nodejs template_version=nostalgic_lumiere2 workspace_build_id=303b2ba5-0df3-46b0-8f01-f247d81a3bff workspace_id=747b39bd-7779-4a32-a1ba-636df16456e2 workspace_name=rose-mouse-31 workspace_owner=hidden workspace_transition=start\n2025-06-25 11:21:02.025 [warn] provisionerd-coder-5568dc94ff-6z6gx-0.runner: failed to call FailJob job_id=4cbebb78-4ac9-47b5-aa18-6606d11976be template_name=nodejs template_version=nostalgic_lumiere2 workspace_build_id=303b2ba5-0df3-46b0-8f01-f247d81a3bff workspace_id=747b39bd-7779-4a32-a1ba-636df16456e2 workspace_name=rose-mouse-31 workspace_owner=hidden workspace_transition=start ...\n```\n\n### Expected Behavior\n\nAt the very least there should be an indication of what is going on during this scenario, then maybe some mechanism that detects that this have occurred and either retries the build process or fails it so that it won't get stuck in this state indefinitely.\n\n### Steps to Reproduce\n\n1. Create workspace from the template\n2. If the issue hasn't occurred, create another workspace, until it occurs.\n\n### Environment\n\n- Host OS: ghcr.io/coder/coder, kubernetes env\n- Coder version: v2.23.1\n\n\n### Additional Context\n\n_No response_","author":{"url":"https://github.com/ihruzdiev","@type":"Person","name":"ihruzdiev"},"datePublished":"2025-06-25T11:25:03Z","url":"https://github.com/coder/coder/issues/18571"}
| react-profiling | 0 |
| react-import-map | react,react-dom,react-dom/client,react-dom/profiling,react-is,react/compiler-runtime,react/jsx-dev-runtime,react/jsx-runtime,scheduler@b8488ee2c322 |
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:6e50d573-d2f2-1e73-3635-7aadd84c98ef |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | EC78:31B4CC:1BFAFC7:24C36AC:6B014E19 |
| html-safe-nonce | 72914e8ac884f4a2a11b08912abc1415fcb94b90caf9cc23234623b13b0fb27e |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJFQzc4OjMxQjRDQzoxQkZBRkM3OjI0QzM2QUM6NkIwMTRFMTkiLCJ2aXNpdG9yX2lkIjoiNDc3NDg2NDYyNjgwMDIxNzYyNiIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | 727a6e20040d4bbc87e202eb6c09d7bcb0180d856532afd05ad8aecd5dd17fd5 |
| hovercard-subject-tag | issue:3175276320 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/coder/coder/18571/issue_layout |
| twitter:image | https://opengraph.githubassets.com/73761581e8a50c7d4af24c8ca089b487dfed34344569234f82267b3b2fa615b7/coder/coder/issues/18571 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/73761581e8a50c7d4af24c8ca089b487dfed34344569234f82267b3b2fa615b7/coder/coder/issues/18571 |
| og:image:alt | Is there an existing issue for this? I have searched the existing issues Current Behavior When using the same template and creating the same workspaces, with the exception of the name, some workspa... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | ihruzdiev |
| hostname | github.com |
| expected-hostname | github.com |
| None | cc5dfdd32f62ebd3223cab3af3aa2b268d3605218237326a48a99d1efd89495c |
| turbo-cache-control | no-preview |
| go-import | github.com/coder/coder git https://github.com/coder/coder.git |
| octolytics-dimension-user_id | 95932066 |
| octolytics-dimension-user_login | coder |
| octolytics-dimension-repository_id | 440752086 |
| octolytics-dimension-repository_nwo | coder/coder |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 440752086 |
| octolytics-dimension-repository_network_root_nwo | coder/coder |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 8c77c9e8439031ad54c75a250694842892f693e1 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
| react-app-name | issues |
Links:
Viewport: width=device-width