Title: Workspaces can be created with invalid values, then cannot be deleted · Issue #831 · coder/coder · GitHub
Open Graph Title: Workspaces can be created with invalid values, then cannot be deleted · Issue #831 · coder/coder
X Title: Workspaces can be created with invalid values, then cannot be deleted · Issue #831 · coder/coder
Description: Description If you create a new workspace with invalid values, there are a couple unexpected things: you can't reuse that name (i.e. coder doesn't automatically delete the invalid workspace) you can't delete the workspace you can't edit ...
Open Graph Description: Description If you create a new workspace with invalid values, there are a couple unexpected things: you can't reuse that name (i.e. coder doesn't automatically delete the invalid workspace) you ca...
X Description: Description If you create a new workspace with invalid values, there are a couple unexpected things: you can't reuse that name (i.e. coder doesn't automatically delete the invalid workspace...
Opengraph URL: https://github.com/coder/coder/issues/831
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Workspaces can be created with invalid values, then cannot be deleted","articleBody":"## Description\r\n\r\nIf you create a new workspace with invalid values, there are a couple unexpected things:\r\n- you can't reuse that name (i.e. `coder` doesn't automatically delete the invalid workspace)\r\n- you can't delete the workspace\r\n- you can't edit the workspace to fix the invalid value\r\n\r\n## Steps to Reproduce\r\n\r\n1. `../coder workspaces create test-workspace``\r\n2. Select a project\r\n3. Enter invalid disk size (i.e. 3)\r\n4. See Error\r\n\r\n## Logs\r\n\r\nCan't reuse workspace name\r\n```shell\r\n➜ aws-linux ../coder workspaces create joes-workspace\r\nSelect a project: \r\n\r\n> Creating with the aws-linux project...\r\nError: A workspace already exists named \"joes-workspace\"!\r\n```\r\n\r\nCan't delete workspace\r\n```shell\r\n➜ aws-linux ../coder workspaces delete joes-workspace\r\n✔ Queued [51ms]\r\n✔ Setting up [1ms]\r\n⧗ Destroying workspace \r\n Terraform 1.1.7\r\n Error: Invalid value for variable\r\n Disk size must be between 8 and 256. \r\n \r\nThis was checked by the validation rule at main.tf:40,3-13.\r\n✘ Destroying workspace [6114ms]\r\nError: recv workspace provision: read file \"/var/folders/c7/ns6lqzvx3z10mq647y5g9lqc0000gn/T/provisionerd3690011094/terraform.tfstate\": open /var/folders/c7/ns6lqzvx3z10mq647y5g9lqc0000gn/T/provisionerd3690011094/terraform.tfstate: no such file or directory\r\n```\r\n\r\nCan't edit workspace\r\n```shell\r\n➜ aws-linux ../coder workspaces edit joes-workspace\r\nUsage:\r\n coder workspaces [command]\r\n\r\nAliases:\r\n workspaces, ws\r\n\r\nCommands:\r\n create Create a workspace from a project\r\n delete \r\n list \r\n show \r\n ssh \r\n start \r\n stop \r\n update \r\n\r\nFlags:\r\n -h, --help help for workspaces\r\n\r\nGlobal Flags:\r\n --global-config coder Path to the global coder config directory (default \"/Users/jp/Library/Application Support/coderv2\")\r\n\r\nUse \"coder workspaces [command] --help\" for more information about a command.\r\n➜ aws-linux ../coder workspaces update joes-workspace\r\nWorkspace isn't outdated!\r\n```\r\n","author":{"url":"https://github.com/jsjoeio","@type":"Person","name":"jsjoeio"},"datePublished":"2022-04-01T19:48:30Z","url":"https://github.com/coder/coder/issues/831"}
| 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:5ba41222-1ded-e3e8-05bc-308bbc6589d5 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | EBCE:24ACB9:1DAC85C:26F490B:6B01547C |
| html-safe-nonce | 340df4e524a24fa8b32db847ba06ea4664b56e0b6fc82d5d94aba73105e833dc |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJFQkNFOjI0QUNCOToxREFDODVDOjI2RjQ5MEI6NkIwMTU0N0MiLCJ2aXNpdG9yX2lkIjoiODI3NDQ3MjkwOTUxMTE1Mjc2NCIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | ac672a4bbcd0d76f9b42cdb4605597f51d0e2833c220a10f6e0c3012b1f684b6 |
| hovercard-subject-tag | issue:1190207917 |
| 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/831/issue_layout |
| twitter:image | https://opengraph.githubassets.com/8a24b5aab97ba0dfb4a23c79add81daa4870689d11a1f8166b794f04968f3aff/coder/coder/issues/831 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/8a24b5aab97ba0dfb4a23c79add81daa4870689d11a1f8166b794f04968f3aff/coder/coder/issues/831 |
| og:image:alt | Description If you create a new workspace with invalid values, there are a couple unexpected things: you can't reuse that name (i.e. coder doesn't automatically delete the invalid workspace) you ca... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | jsjoeio |
| 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