Skip to content

bug: Never-ending reconnections #18931

@lukas-ruckenstuhl

Description

@lukas-ruckenstuhl

Is there an existing issue for this?

  • I have searched the existing issues

Current Behavior

When working with a coder envinrment, we see many reconnects that happen spontaneously. The following log mesages can be found.

Relevant Log Output

025-07-21 09:05:09.348 [info]  coderd.workspace_agent_reinit_watcher: agent reinitialization  workspace_agent_id=76cf004d-83fc-4b1a-a045-8196d1342125  request_id=dddc7c0c-72b1-46da-b14b-2b233ad2aa62  error="context canceled"
2025-07-21 09:05:09.348 [info]  coderd.agentrpc.yamux.stdlib: [ERR] yamux: Failed to read header: failed to get reader: failed to read frame header: EOF  owner=<username> workspace_name=<workspace-name> agent_name=main  request_id=ebed3c39-8350-444f-8587-5f31dbe82d50
2025-07-21 09:05:10.565 [info]  coderd.workspace_agent_reinit_watcher: agent waiting for reinit instruction  workspace_agent_id=76cf004d-83fc-4b1a-a045-8196d1342125  request_id=c059be47-a723-4c95-a2cd-4c341397b9a1

Expected Behavior

The system should not reconnect spontaneously.

Steps to Reproduce

No steps, as this happens spontaneously no matter the user, the environment, if it is new or old.

Environment

  • Host OS: Ubuntu 24.04 LTS
  • Coder version: v2.23.4+1c8ba51

Additional Context

The issue is new (previously worked fine)

Metadata

Metadata

Assignees

No one assigned

    Labels

    needs-triageIssue that require triage

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions