Skip to content

Agent fails to connect after updating existing running workspace to new template version #2970

Closed as not planned
@kconley-sq

Description

@kconley-sq

Problem

I published a new version of our workspace template and then used coder update <WORKSPACE_NAME> from the CLI (also running v0.7.12) to update my existing workspace (the status of which was "running") to the new template version.

The agent never connects to the workspace. Checking the serial console of the EC2 instance in AWS console I see this error message repeated continously:

[  568.940691] cloud-init[1363]:   "error": GET <ELIDED>/api/v2/workspaceagents/me/listen: unexpected status code 403:
 Agent trying to connect from non-latest build.
[  568.941792] cloud-init[1363]:            Error: build is outdated

Definition of Done

After some time, the agent in the workspace connects to the Coder server so that I can ssh to the workspace.

Metadata

Metadata

Assignees

No one assigned

    Labels

    staleThis issue is like stale bread.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions