-
Notifications
You must be signed in to change notification settings - Fork 5.9k
Digital ocean guide: ERR_CONNECTION_REFUSED #737
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
Are you by any chance using a reverse proxy or maybe another http server (nginx, apache) on the machine? |
No, straight up Ubuntu plus the code-server download and ssl key
—
Jorg
… On 2 Jun 2019, at 4:29 pm, Dean Sheather ***@***.***> wrote:
Are you by any chance using a reverse proxy or maybe another http server (nginx, apache) on the machine?
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub, or mute the thread.
|
I tried the DO guide myself and I found the issue. Essentially, the HTTP to HTTPS redirect is causing an issue when the server is running on port 80. I made a PR to alter the behavior on port 80, and another one to change the documentation to use a port that isn't affected by the issue (also without requiring sudo). Both are linked above this comment. |
I tried the standard port and it works |
I'm having the same problem as @jorgt, but after upgrading. I was running One thing that bugged me was when I ran the code sever, on the updated it says; but on v2 Nevermind, found it out. It was due to the way -v3 moving to 127.0.0.1. If anyone finds this, try adding the --host flag. |
Thank you, I just tried to install it today and couldn't make it work. |
Thats weird, v3 has added some restrictions though. I have it working without any issues (so far). I wrote a guide on it (link). |
Huh, that's curious. |
It works with an nginx reverse proxy, but without a proxy I can't access it on port 8080 if I don't put the --host 0.0.0.0 option |
That's the expected behavior, actually. I'm not sure why the output says |
Thanks, more convenient way is to modify ~/.config/code-server/config.yaml, replace 127.0.0.1 with 0.0.0.0 in bind-addr field; then just systemctl restart code-server@${USER} (assume you use service to code-server) and everything is fine. |
After following the DigitalOcean guide, I cannot seem to be connect to the code instance: ERR_CONNECTION_REFUSED in ubuntu droplet on DigitalOcean when entering the public IP address of the droplet.
Running as root. Instance is started with a self signed certificate as per the other guide:
wget
says:firewall seems inactive:
starting
code-server
on port 443 works in the sense that it connects, but then the websocket bombs out with status code 400.Related Issues
The text was updated successfully, but these errors were encountered: