You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
The workbench failed to connect to the server (Error: WebSocket close with status code 1006) #4763
open browser to code-server website (nginx reverse proxy)
get error The workbench failed to connect to the server (Error: WebSocket close with status code 1006)
remote service error reads ENOENT no such file or directory, open '/usr/lib/code-server/vendor/modules/code-oss-dev/out/vs/code/browser/workbench/workbench.html'
Expected
Code server should open and run on a fresh install. This is a new install of code-server and I think it's attempting to load extensions from the old install that have not been installed yet. I had tried to move the install location under bad stack overflow advice and ever since it's not been working correctly
Actual
Repeatedly reloads page and immediately throws same exception. Again, this is a new install of code-server and I think it's attempting to load extensions from the old install that have not been installed yet. I had tried to move the install location under bad stack overflow advice and ever since it's not been working correctly
Logs Screenshot
Notes
Once again, this is a new install of code-server and I think it's attempting to load extensions from the old install that have not been installed yet. I had tried to move the install location under bad stack overflow advice and ever since it's not been working correctly. Can be reproduced across versions 3.12.0, 3.6.2, 3.9.1 and 4.0.1. Webserver config: Nginx reverse proxy with Oauth2-proxy default config and google oauth 2.0
This issue can be reproduced in VS Code: No
changed the title [-]ENOENT no such file or directory, open '/usr/lib/code-server/vendor/modules/code-oss-dev/out/vs/code/browser/workbench/workbench.html'[/-][+]The workbench failed to connect to the server (Error: WebSocket close with status code 1006)[/+]on Jan 19, 2022
I have the same problem if I try to update from 3.12.0 to 4.0.1. I tried to clean the folder ~/.local/share/code-server to try a "clean" restart but the problem is still there. To have a running environment I had to downgrade to 3.12.0 with the installer script.
I have the same problem if I try to update from 3.12.0 to 4.0.1. I tried to clean the folder ~/.local/share/code-server to try a "clean" restart but the problem is still there. To have a running environment I had to downgrade to 3.12.0 with the installer script.
in notes: Can be reproduced across versions 3.12.0, 3.6.2, 3.9.1 and 4.0.1
Version 3.12.0 does not fix the bug
Hi,
Sorry to bother you, but I’m absolute noob… I just started to learn coding and decided to set up code-server docker to be able to learn whiles at work remotely (on my free time ).
So I’ve run in to the same issue, I’ve tried to fallow your fix, but the only file in /etc/nginx/sites-available/ is ‘default’. I’ve tried to add the lines from your post and restart code-server docker, but nothing changed. Also tried to create new file ‘.conf’ with same lines from your post with no luck as well.
Just to clarify, I’m using nginx proxy and cloudflare.
Could you please please please explain to me what I’m doing wrong?
Thank you! and sorry for wasting your time.
Activity
[-]ENOENT no such file or directory, open '/usr/lib/code-server/vendor/modules/code-oss-dev/out/vs/code/browser/workbench/workbench.html'[/-][+]The workbench failed to connect to the server (Error: WebSocket close with status code 1006)[/+]gmiscione commentedon Jan 19, 2022
I have the same problem if I try to update from 3.12.0 to 4.0.1. I tried to clean the folder
~/.local/share/code-serverto try a "clean" restart but the problem is still there. To have a running environment I had to downgrade to 3.12.0 with the installer script.dokastho commentedon Jan 19, 2022
in notes: Can be reproduced across versions 3.12.0, 3.6.2, 3.9.1 and 4.0.1
Version 3.12.0 does not fix the bug
dokastho commentedon Jan 19, 2022
See fix in original post
Lamerys commentedon Feb 23, 2022
Hi,
Sorry to bother you, but I’m absolute noob… I just started to learn coding and decided to set up code-server docker to be able to learn whiles at work remotely (on my free time ).
So I’ve run in to the same issue, I’ve tried to fallow your fix, but the only file in /etc/nginx/sites-available/ is ‘default’. I’ve tried to add the lines from your post and restart code-server docker, but nothing changed. Also tried to create new file ‘.conf’ with same lines from your post with no luck as well.
Just to clarify, I’m using nginx proxy and cloudflare.
Could you please please please explain to me what I’m doing wrong?
Thank you! and sorry for wasting your time.
jsjoeio commentedon Feb 23, 2022
@Lamerys feel free to start a new Q and A discussion and we'll see if we can help you!
Lamerys commentedon Feb 23, 2022
Thank you. All sorted, just needed to activate websocket via Nginx panel.