Skip to content

Web terminal fails after a short while of doing cat /dev/zero: WebSocket failed: socket errored #11036

Closed
@mafredri

Description

@mafredri

Update: Based on further discoveries, the issue here seems that coderd web terminal sessions have gone defunct after the above error. As for what caused it? That's unknown at this time.

If I type cat /dev/zero in the web terminal, I observe 3 issues.

  1. I see no output (Actually, this is normal for cat /dev/zero)
  2. Opening a new web terminal simply freezes
  3. Shortly thereafter, terminal session is closed via: WebSocket failed: socket errored
  4. Web terminal to workspace seems permanently defunct, even after waiting a long time and ensuring processes inside the agent are terminated
Screenshot 2023-12-05 at 15 23 02

This also has a pretty significant impact on coderd CPU usage (#11039):

image

Refs #8556

Metadata

Metadata

Assignees

No one assigned

    Labels

    apiArea: HTTP APInetworkingArea: networking

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions