Skip to content

Workspace goes to failed state and cannot be started, stopped or deleted after cancel-start->stop->start actions #2683

Closed
@nadzeyav

Description

@nadzeyav

Problem

Workspace goes to failed state and cannot be started or stopped or deleted after cancel-start->stop->autostart actions

I have met with the issue, that I cannot work with my workspace, getting error Error: Error creating instance: googleapi: Error 409: The resource 'projects/coder-dogfood/zones/europe-west4-b/instances/coder-nadzeya-nadzeya-test-autostart' already exists

Steps to reproduce:

coder version:
Coder v0.7.4-devel+bbbd5241

  1. Create a workspace (for me it was windows-gcp template on dev.coder.com)
  2. Stop it
  3. Start it, but cancel action
  4. Stop it
  5. Try to start

Start fails with
Error: Error creating instance: googleapi: Error 409: The resource 'projects/coder-dogfood/zones/us-central1-a/instances/coder-nadzeya-nadzeya-windows' already exists, alreadyExists

And cannot perform any other actions

Events order list sample:

image

Definition of Done

If a start is cancelled, a user should be able to start/stop a workspace without problems

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions