Coder.comC
Coder.com4y ago
22 replies
tehgreedo

Workspace doesn't finish starting up

My issue is very similar to another one that was posted, but their solution didn't sort mine out.

I'm running coder server from the CLI while I'm testing, and if I run without any options or flags everything works great, I just can't use the port forwarding (url longer than 63 characters).

When I set ACCESS_URL and the paths to the certs, the dashboard loads up just fine, but when I start up a workspace it never completes. Using coder logs <container id> shows me something along the lines of
2022-11-21 18:02:49.764 [ERROR] <./codersdk/workspaceagents.go:632>     (*Client).AgentReportStats.func1        report stats ...
  "error": unexpected status code 426: unexpected non-JSON response
                Error: WebSocket protocol violation: Connection header "Keep-Alive" does not contain Upgrade
           {"message":"Failed to accept websocket.","detail":"failed to accept WebSocket connection: WebSocket protocol violation: Connection header \"Keep-Alive\" does not contain Upgrade"}


I've tried adding some bits to the vhost conf to set those, but it doesn't seem to see it.
Was this page helpful?