Skip to content

'Failed to create deployment' error on coder push #3040

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
Kira-Pilot opened this issue Jul 19, 2022 · 3 comments
Closed

'Failed to create deployment' error on coder push #3040

Kira-Pilot opened this issue Jul 19, 2022 · 3 comments
Labels
api Area: HTTP API

Comments

@Kira-Pilot
Copy link
Member

Kira-Pilot commented Jul 19, 2022

As a V2 user, sometimes my workspace stops during the week, but the deployment isn't blown away. I usually fix this by pulling the old state and then pushing it. Right now when I coder push I'm getting the same Failed to create deployment error that I see in the UI workspace logs. I am on the latest binary

To reproduce:
Version:
Coder v0.7.12+6f34cbf Wed Jul 13 01:09:59 UTC 2022
6f34cbf

  1. Have a workspace that is shutdown but has an old deployment. The logs in the UI will say something like "Error: Failed to create deployment: deployments.apps "coder-kira-pilot-my-workspace" already exists"
  2. Log into v2 in my terminal (not sure if this matters)
  3. Pull state and pipe to a file: coderv2 state pull kira-pilot/my-workspace > PullFile.txt
  4. Push that state: coderv2 state push kira-pilot/my-workspace PullFile.txt

Screen Shot 2022-07-19 at 10 23 36 AM

Definition of Done:

  • I don't see this error when I try to push state
  • I can successfully run my workspace again
@Kira-Pilot Kira-Pilot added the api Area: HTTP API label Jul 19, 2022
@ketang
Copy link
Contributor

ketang commented Jul 19, 2022

Hmm... do you know why your deployment is stopping? I'll admit during off days I go around shutting down people's workspaces, but those should be clean shutdowns.

@Kira-Pilot
Copy link
Member Author

@ketang yeah, this is a known issue where the workspace is shut down but the deployment persists. There is a ticket to fix it!

@kylecarbs
Copy link
Member

I'm going to close this for now in favor of #2256.

@kylecarbs kylecarbs closed this as not planned Won't fix, can't repro, duplicate, stale Aug 24, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
api Area: HTTP API
Projects
None yet
Development

No branches or pull requests

3 participants