Skip to content
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

Unable to connect with --link #2734

Closed
SamHep0803 opened this issue Feb 16, 2021 · 44 comments
Closed

Unable to connect with --link #2734

SamHep0803 opened this issue Feb 16, 2021 · 44 comments

Comments

@SamHep0803
Copy link

  • Web Browser: Safari
  • Local OS: iPadOS 14.3
  • Remote OS: Ubuntu 20.04
  • Remote Architecture: x86_64
  • code-server --version: 3.9.0 fc6d123

When running code-server --link, the process starts successfully however when you go to the link given in the server output, the error Error connecting to your code-server instance shows up when you go to the site.

Initially, no error gets thrown in the terminal however after around 1 hour,
[2021-02-16T09:59:22.641Z] info 2021/02/16 09:59:22 [ERR] yamux: Failed to read header: failed to get reader: failed to read frame header: EOF
[2021-02-16T09:59:22.645Z] info 2021-02-16 09:59:22.644 [WARN] <proxy.go:48> code-server proxy exited {"error": "accept tcp [::]:36221: use of closed network connection"}
is logged.

Thanks, Sam.

@SamHep0803
Copy link
Author

SamHep0803 commented Feb 16, 2021

Downgrading to version 3.8.0 did not help resolve the issue, I have a feeling this may be an issue on cdr's end. I have tried getting this to work in both GCP and DigitalOcean to no avail.

@oxy oxy added the bug Something isn't working label Feb 17, 2021
@oxy
Copy link

oxy commented Feb 17, 2021

Tried to repro this but could not - do you have any additional steps that could help in reproducing it?

@SamHep0803
Copy link
Author

Honestly not really, it's a very strange issue.

I installed code-server with the install script, as is the recommended way in the docs and that was basically it. I have to mention that it was working 2 days ago but now it's not.

@SamHep0803
Copy link
Author

I have tried deleting the ~/.config/coder-cloud folder and restarting the server and that hasn't worked either.

@SamHep0803
Copy link
Author

Update: after turning on my VPN, I seem to be able to connect to the server now, however I don't see why I would need to do that.

@code-asher
Copy link
Member

Did it give you an error ID? We can use that to investigate further.

@parslov
Copy link

parslov commented Feb 22, 2021

I have the same problem

  • brand new AWS instance
  • AWS free tier
  • Ubuntu 20.04
  • Installed with code-server with this (from https://github.com/cdr/code-server): curl -fsSL https://code-server.dev/install.sh | sh
  • Opened HTTP, HTTPS, Custom TCP (pot 8080), and SSH in inbound rules
  • Started code-server with: code-server --link
  • ...and then opened Safari on my mac and entered the https-address shown
  • ...and then get: 'Error connecting to your code-server instance'

Any ideas?

@SamHep0803
Copy link
Author

SamHep0803 commented Feb 22, 2021 via email

@code-asher
Copy link
Member

@parslov Did it give you an error ID? Does it persist if you visit the the https address a second time?

@parslov
Copy link

parslov commented Feb 23, 2021

I did not get an error id. Today I went through the same process on Google Cloud, using Ubuntu 16 and opening for HTTP and HTTPS. Same result.

@code-asher
Copy link
Member

OK, thanks! I'll see what we can turn up.

@code-asher code-asher reopened this Feb 23, 2021
@code-asher code-asher changed the title Error connecting to your code-server instance Unable to connect with --link Feb 23, 2021
@SamHep0803
Copy link
Author

Note, I have never gotten an ID from when this error has popped up.

@jsjoeio jsjoeio added this to the v3.9.2 milestone Feb 24, 2021
@code-asher
Copy link
Member

Makes sense, turns out I was wrong about the error ID. We don't log connection errors since they don't provide any information (just things like connection reset by peer).

@SamHep0803
Copy link
Author

Has there been any update on this situation?

@SamHep0803
Copy link
Author

Just wondering if theres been any further development on this issue?

@code-asher
Copy link
Member

We haven't since the connection errors don't provide any extra details on our end. I think what we'll have to do is try to replicate it ourselves and go from there.

@jsjoeio
Copy link
Contributor

jsjoeio commented Mar 15, 2021

@SamHep0803 I can take a look at this seeing that it's iPad.

Do you mind providing reproduction steps? I have my own setup on iPad but ideally I try to mimic yours as closely as possible.

@jsjoeio jsjoeio modified the milestones: v3.9.2, v3.9.3 Mar 15, 2021
@jsjoeio jsjoeio added the waiting-for-info Waiting for more information from submitter label Mar 15, 2021
@jsjoeio jsjoeio self-assigned this Mar 15, 2021
@jsjoeio jsjoeio modified the milestones: On Deck, v3.9.4 Apr 8, 2021
@jsjoeio
Copy link
Contributor

jsjoeio commented Apr 14, 2021

Spoke to the developer working on this before. We're going to aim to get this fixed before May 1st.

Until then the workaround is to use a VPN and set the region of where your server is located.

@jsjoeio jsjoeio modified the milestones: v3.9.4, On Deck Apr 15, 2021
@SamHep0803
Copy link
Author

Hi, has there been any update on this issue?

@parslov
Copy link

parslov commented May 3, 2021

I managed to finally get it working by running a server on Oracle Cloud in Germany using the —link option. I am accessing the server from Denmark. Not sure if Germany and Denmark are in the same ‘region’. I did not have to use VPN but of course set up the server side to accept traffic on the relevant ports.

@jsjoeio
Copy link
Contributor

jsjoeio commented May 3, 2021

Hi @SamHep0803! So I spoke to the developer working on this. He had another priority come up and wasn't able to finish it last week. It's in progress but I don't have an ETA on when it will be done. Feel free to ping this issue again in two weeks!

@Jack-Sibley
Copy link

Looks like this is still happening. Any updates?

@jsjoeio jsjoeio modified the milestones: On Deck, Backlog Candidates Jun 1, 2021
@jsjoeio
Copy link
Contributor

jsjoeio commented Jun 1, 2021

Unfortunately, no updates. I reached out to the developer but haven't heard back yet.

@SamHep0803
Copy link
Author

Been more then a month now, still no update?

@jsjoeio
Copy link
Contributor

jsjoeio commented Jul 20, 2021

Apologies. We're a small team (code-server). I'll ping them again and see if I can get any update.

Worst case: they come back and say we won't be able to fix it.

Best case: they say they can and I can share more information.

Other scenario: if I could collect data and say, "this is affecting X number of users in the code-server community and we should prioritize" then that might help.

Give this message a 👍 if you're experiencing this issue still.

@jsjoeio
Copy link
Contributor

jsjoeio commented Jul 20, 2021

Okay I got a response.

I spoke to the developer. We're working on some networking changes in the enterprise product going from WebSockets to WebRTC. Eventually those changes will make their way into coder-cloud (powers --link + code-server) in which case, will solve this issue. I don't have an ETA but will share updates on this thread as I have them

@SamHep0803
Copy link
Author

SamHep0803 commented Jul 20, 2021 via email

@jsjoeio
Copy link
Contributor

jsjoeio commented Jul 20, 2021

I hope so too and thank you for understanding.

@Arbsahoy
Copy link

This is nice there is a good chain here. Learning how to github / programming because of you guys... so thanks for having a great product and am looking forward to the correction.

It appears for me that it times out, if I haven't done anything in the system I feel like cdr.co just terminates the connection. (It's free so, hey... i get it.) But these are the similar errors I am getting.

As the project develops more will --link be intergrated? I'd be willing to pay some monies to get it running. I love being able to go to a webpage and keep coding.

@jsjoeio
Copy link
Contributor

jsjoeio commented Jul 29, 2021

It appears for me that it times out, if I haven't done anything in the system I feel like cdr.co just terminates the connection. (It's free so, hey... i get it.) But these are the similar errors I am getting.

Hmm...that's unusual. Do you mind telling us a bit about your setup?

  • where are you accessing your code-server instance from? (OS, architecture, etc.)
  • are you using a VPN?
  • screenshots or videos

As the project develops more will --link be intergrated? I'd be willing to pay some monies to get it running. I love being able to go to a webpage and keep coding.

Hopefully, but don't want to make any promises. We are having internal discussions about improving and better integrating and promoting --link.

I'd be willing to pay some monies to get it running. I love being able to go to a webpage and keep coding.

If you ever want to chat more about that, feel free to shoot me an email joe@coder.com — we do have some things in the pipeline so otherwise you'll have to keep an eye out!

@facundomedica
Copy link

Went from Italy to Portugal, it worked in Italy but now it doesn't work here in Lisbon. I'm running it off the Frankfurt region in GCP. Restarting or rebooting don't solve the issue.

@code-asher
Copy link
Member

code-asher commented Dec 20, 2021

It looks like the link project has been shelved, possibly indefinitely. I am not sure how far the rewrite got but it seems not far enough before the plug was pulled.

I think the only thing we can recommend now is to set up a domain and a reverse proxy, possibly Caddy since it handles certificates for you or with some of the other methods listed here: https://github.com/coder/code-server/blob/main/docs/guide.md#setup-guide

@jsjoeio jsjoeio added wontfix and removed needs-investigation This issue needs to be further investigated labels Dec 27, 2021
@repo-ranger
Copy link
Contributor

repo-ranger bot commented Dec 27, 2021

⚠️ This issue has been marked wontfix and will be closed in 2 days.

@repo-ranger repo-ranger bot closed this as completed Dec 29, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

8 participants