code-server icon indicating copy to clipboard operation
code-server copied to clipboard

Connection gettting failed repeatedly

Open PyExtreme opened this issue 7 years ago • 10 comments

I am using the latest release of code-server released yesterday and the connection is failing again and again. Also, I have no internet issues and I have tested on different networks as well.

Attached is the screenshot which I am getting

Screenshot from 2019-11-09 13-51-34

PyExtreme avatar Nov 09 '19 08:11 PyExtreme

Is this on a remote server or your local instance?

sr229 avatar Nov 10 '19 12:11 sr229

The same incident occurs to me, on a remote server, sometimes it connects quickly, others if it takes or does not.

3l3n01 avatar Nov 13 '19 05:11 3l3n01

I'm not able to replicate this, might be a QoS issue with your ISP?

sr229 avatar Nov 13 '19 13:11 sr229

I'm seeing this too with codercom/code-server@sha256:e614b21e92593483d379d6a6bac77f283f988ec59207cd224a8ad6272c0f7208

crossan007 avatar Nov 14 '19 14:11 crossan007

Might be related to #1147, #442, #797

crossan007 avatar Nov 14 '19 14:11 crossan007

I was having this issue when my VSCode instance was behind a Traefik reverse-proxy instance. When I exposed the VSCode container's port 8080 directly, the websocket seemed to connect fine.

For full environment reference, I'm on Docker engine Server Version: 19.03.1, running on Windows Server 2019, with LCOW enabled (Linuxkit version 0.6+ , commit: ddb0fa509e6163bfbd71e9114ce8170b0a53c4fa), Traefik running with the nanoserver image, and VSCode running with the linux image via LCOW

EDIT: I switched back to using Traefik proxy and I can no longer reproduce this issue 🤔

crossan007 avatar Nov 14 '19 14:11 crossan007

I see this too with traefik, I am wondering if the websocket token is messed up. I can't tell though because it seems verbose in the latest build are broken.

geiseri avatar Nov 27 '19 21:11 geiseri

I think this might actually be traefik specific. It seems to work with nginx.

geiseri avatar Nov 28 '19 00:11 geiseri

I think it might be related to: https://github.com/containous/traefik/issues/5533#issuecomment-553823512

geiseri avatar Nov 28 '19 00:11 geiseri

If this is still a problem, please feel free to reopen.

nhooyr avatar Jan 29 '20 22:01 nhooyr