-
Notifications
You must be signed in to change notification settings - Fork 5.9k
Blank page: error vscode Handshake timed out #3027
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
Hey @hakanu - sorry to hear you're having issues. Thanks for the report! Can you verify if you experience this same issue using code-server 3.9.1? Possibly related: |
No it's with 3.9.2 the latest version as I mentioned in the first comment. |
@hakanu yes, I saw that. I'm wondering if you have a workaround for now :) Thanks for confirming. |
no worries :) Unforunately not :/ It was working fine 2 versions before though. I should not have upgraded an already working system. Is there a way to totally clean up the system and re-install? I tried npm uninstall code-server and retry but no help. Any idea is welcome. |
Hmm..interesting. If you installed globally with npm, you should be able to do:
Hope that helps! |
Thanks! same with 3.9.1 and 3.9.0 :/ |
Same with install in Google Cloud Shell. |
Argh. How about 3.8.1?
You may be able to go inside It looks like someone had a similar issue in February - see thread |
I am able to reproduce this on the newest build, the log is full of handshake errors and visual studio ends up with a blank screen. |
I can confirm this is affected on a clean install of 3.8.1. Is there some sort of dependency that broke it? |
Thanks for confirming @jkcoxson! I assume you're on a similar set up? i.e.
So 3.8.1 has this issue too? Hmm.. Yeah it must be. My guess would be an issue with an underlying native module. This thread may or may not have relevant information for y'all. |
No, I'm using x64, on Ubuntu |
Is there anything I can do to at least get something up and running? This is my main way to do my job at the moment, and something would be better than nothing. But if not, I'll be patient. Thanks for your work on this project. |
Hmm...3.9.1 should work on Linux. Have you seen the deploy code-server guides? As a workaround, I would suggest using 3.9.1 on Railway. That should unblock you and help you get something working quickly. Sorry for blocking you and thank you for having patience + trying to help us figure this out! |
I was able to completely purge 3.9.2 with the help of Ben and reinstall using 3.9.1 and it worked for me. If it helps, I'm using Safari on my iPad, but it also didn't work on Chrome. |
Hi can you try upgrade to Feel free to post in the release discussion as well. |
@jsjoeio I get the same error in 3.9.2, 3.9.3, but not before 3.9.1 Here is my running log from 3.9.3, I run it in docker, base image is ubuntu:20.04, docker host is also ubuntu:20.04.
This is my Dockerfile without company CA cert. (sorry that I cannot attach the ca cert to reproduce the environment) |
I made a docker-compose script for easier to describe my environment. I pushed my docker image to docker hub https://hub.docker.com/repository/docker/wingzzz2003/codeserver_ubuntu This is my docker-compose script https://github.com/wingzero0/codeserverUbuntu/blob/master/docker-compose.yml 3.9.3 showed 'error vscode Handshake timed out'
But 3.9.1 run fine. (to run 3.9.1, just simply changing docker-compose script to reference to tag 3.9.1)
|
I like how simple/straightforward your docker-compose script is! Thanks for the logs. Bummer. Okay this is probably a separate issue then. We'll investigate. |
I encountered the same issue in Chrome and Brave Browser on MacOS (on v3.9.2 and v3.9.3 but not on v3.9.1). |
Hmm...I am on macOS and not able to reproduce with 3.9.3 @danyhoron do you see any logs in the browser or when running |
If I'm bypassing the reverse proxy and go straight to the docker instance it works in both Chrome and Brave. Starting w/ v.3.9.2 it stopped working when using the reverse proxy. |
Ah, so maybe something broke in 3.9.3 with the reverse proxy. That at least gives us a place to start investigating. Thanks so much for the logs and screenshots @danyhoron! Super helpful 🙌 |
My setup doesn't have any reverse proxy, locally it runs and but fails to handshake. I'm suspicious about the raspberry pi's 32 bit ARM architecture. Because 3.9.2 works fine on my intel desktop on ubuntu 64 bit |
I get the same error on 3.9.3, 3.9.2, and 3.9.1 I have been installing using the binaries provided in the releases, as I cannot use |
Thanks for confirming!
Completely understand. There are three free options - Railway, Heroku and Azure - offered in our guide. Keep an eye on the this issue in the meantime. |
We might be able to get some helpful information with |
I found out that if I connect to my server through it's local IP then I don't have any issues, but if I go to the domain name that I have pointed to my reverse proxy which does its magic and brings me to the code-server instance I get the blank screen. I can see the password screen just fine, but the actual app is blank. |
Here's the output with Here's the browser log output:
|
Ah OK this often happens because the reverse proxy isn't set up to proxy web sockets and so the socket connection fails. We might be able to pinpoint the issue if you can provide more details on the reverse proxy you're using and the configuration for it. You could also try |
+1 -> v3.9.1 I think this issue occurs due to a network connection problem, because it only happens with a certain connection. but the console log doesn't mention it. |
My problem is resolved with 3.9.3 on my raspberry pi over LAN (192.168.0.x address). Thanks. |
v3.9.3 For me the timeout goes away when I open Chrome DevTools during every page reload. |
I suddenly experienced the time out issue in my setup two days ago. Setup:
Besides the timeouts I also noticed that initializing a ssh connection took up to 10 seconds. So the timeouts are related to the network and not code-server itself. |
I got this error randomly and in the console I see: |
That is very unusual. Thanks for the note @facundomedica! |
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no activity occurs in the next 5 days. |
Hello, could you please specify what error you recieved, I am getting "[2023-05-03T07:39:06.690Z] error timed out" when I run "code-server" command. I am running it on a local Raspberry Pi 0 W (Installed via "yarn global add code-server" command and it was a successful install). I check my MTU on my router it shows 1500. I tried on 3 wifi networks (different Access Points) still shows same error. |
OS/Web Information
code-server --version
:3 .9.2Steps to Reproduce
curl -fsSL https://code-server.dev/install.sh | sh
Expected
Browser should show coder as usual
Actual
Blank page.
Screenshot
Notes
This issue can be reproduced in VS Code: Yes/No
The text was updated successfully, but these errors were encountered: