8000 agent connection timings rendering as negative values when agent cannot connect · Issue #15432 · coder/coder · GitHub
[go: up one dir, main page]

Skip to content
agent connection timings rendering as negative values when agent cannot connect #15432
Closed
@defelmnq

Description

@defelmnq

I recently played with workspaces build and in some situations had workspaces struggling to be healthy.

While watching at the build timeline for this workspace - the connect step for the agent is displaying a weird value.

Image

Looking at the JSON for the endpoint, the ended_at field returned seems to be a Golang zero value.

{
    "started_at": "2024-11-07T17:52:51.485204Z",
    "ended_at": "0001-01-01T00:00:00Z",
    "stage": "connect",
    "workspace_agent_id": "67e37a9d-ccac-497e-8f48-4093bcc4f3e7",
    "workspace_agent_name": "main"
}

An easy way to reproduce is to create or modify an existing template and change the host value in the workspace - which will result in the agent being impossible to contact.

Image

Overall view of the workspace
Image

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions

    0