Skip to content

can't access code-server on AWS #66

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

Closed
wernervandergeest opened this issue Sep 28, 2021 · 4 comments
Closed

can't access code-server on AWS #66

wernervandergeest opened this issue Sep 28, 2021 · 4 comments

Comments

@wernervandergeest
Copy link

Hi, I'm unable to access my code-server on AWS; opened http port on the VM and in AWS security rule, I'm struggling to troubleshoot this one, the code-server and coder-redirecter are running, can you give me some tips here?

@cypressf
Copy link

cypressf commented Oct 15, 2021

I'm seeing something similar. The logs show:

Oct 15 16:18:56 ip-172-31-26-142 code-server[1641]: [2021-10-15T16:18:56.236Z] info  code-server 3.12.0 b37ff28a0a582aee84a8f961755d0cb40a4081db
Oct 15 16:18:56 ip-172-31-26-142 code-server[1641]: [2021-10-15T16:18:56.241Z] info  Using user-data-dir ~/.local/share/code-server
Oct 15 16:18:56 ip-172-31-26-142 code-server[1641]: [2021-10-15T16:18:56.262Z] info  Using config file ~/.config/code-server/config.yaml
Oct 15 16:18:56 ip-172-31-26-142 code-server[1641]: [2021-10-15T16:18:56.262Z] info  HTTP server listening on http://127.0.0.1:40747 (randomized by --link)
Oct 15 16:18:56 ip-172-31-26-142 code-server[1641]: [2021-10-15T16:18:56.262Z] info    - Authentication is disabled (disabled by --link)
Oct 15 16:18:56 ip-172-31-26-142 code-server[1641]: [2021-10-15T16:18:56.263Z] info    - Not serving HTTPS (disabled by --link)
Oct 15 16:18:56 ip-172-31-26-142 code-server[1641]: [2021-10-15T16:18:56.714Z] info  Detected an acceptable latency of 55ms
Oct 15 16:18:56 ip-172-31-26-142 code-server[1641]: [2021-10-15T16:18:56.808Z] info  visit https://github.com/login/oauth/authorize?client_id=<redacted>&response_type=code&scope=read%3Auser+user%3Aemail&state=<redacted> to login
Oct 15 16:20:36 ip-172-31-26-142 code-server[1641]: [2021-10-15T16:20:36.758Z] info  Failed to login: unable to login: read session token: read msg: failed to read JSON message: failed to get reader: failed to read frame header: EOF
Oct 15 16:20:36 ip-172-31-26-142 code-server[1641]: [2021-10-15T16:20:36.761Z] error --link agent exited with 1
Oct 15 16:20:36 ip-172-31-26-142 systemd[1]: code-server@coder.service: Main process exited, code=exited, status=1/FAILURE
Oct 15 16:20:36 ip-172-31-26-142 systemd[1]: code-server@coder.service: Failed with result 'exit-code'.

The HTTP server sends this to my browser

An internal server error occurred

If you would like to talk to a developer, drop a message in our slack channel with the following id 6169abef-90615475cc47f13a3a27098b

But the slack channel requires sign-in, and I don't have an account with it.

@letoast
Copy link

letoast commented Jan 2, 2022

Same problem here

@fdervisi
Copy link

here as well, any solution on this? Sometimes it works, sometimes fails

@bpmct
Copy link
Member

bpmct commented Feb 13, 2022

Hi - sorry for the late response, I have not been active on this project.

Unfortunately, we cannot guarantee reliability with our --link service anymore. I have added a note to our VM guide to specify this. For now, we'd recommend using our guide to configure Caddy/LetsEncrypt on code-server: https://coder.com/docs/code-server/latest/guide#using-lets-encrypt-with-caddy

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants