Skip to content

Unable to connect with --link #2734

Closed
Closed

Description

@SamHep0803
  • 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.

Activity

  1. SamHep0803 commented on Feb 16, 2021

    @SamHep0803
    Author

    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.

  2. added
    bugSomething isn't working
    on Feb 17, 2021
  3. oxy commented on Feb 17, 2021

    @oxy

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

  4. SamHep0803 commented on Feb 17, 2021

    @SamHep0803
    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.

  5. SamHep0803 commented on Feb 17, 2021

    @SamHep0803
    Author

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

  6. SamHep0803 commented on Feb 17, 2021

    @SamHep0803
    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.

  7. code-asher commented on Feb 18, 2021

    @code-asher
    Member

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

  8. parslov commented on Feb 22, 2021

    @parslov

    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?

  9. SamHep0803 commented on Feb 22, 2021

    @SamHep0803
    Author
  10. code-asher commented on Feb 22, 2021

    @code-asher
    Member

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

  11. parslov commented on Feb 23, 2021

    @parslov

    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.

  12. code-asher commented on Feb 23, 2021

    @code-asher
    Member

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

  13. changed the title [-]Error connecting to your code-server instance[/-] [+]Unable to connect with --link[/+] on Feb 23, 2021
  14. 38 remaining items

  15. added this to the Backlog Candidates milestone on Jun 1, 2021
  16. jsjoeio commented on Jun 1, 2021

    @jsjoeio
    Contributor

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

  17. SamHep0803 commented on Jul 20, 2021

    @SamHep0803
    Author

    Been more then a month now, still no update?

  18. jsjoeio commented on Jul 20, 2021

    @jsjoeio
    Contributor

    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.

  19. jsjoeio commented on Jul 20, 2021

    @jsjoeio
    Contributor

    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

  20. SamHep0803 commented on Jul 20, 2021

    @SamHep0803
    Author
  21. jsjoeio commented on Jul 20, 2021

    @jsjoeio
    Contributor

    I hope so too and thank you for understanding.

  22. Arbsahoy commented on Jul 28, 2021

    @Arbsahoy

    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.

  23. jsjoeio commented on Jul 29, 2021

    @jsjoeio
    Contributor

    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!

  24. facundomedica commented on Aug 9, 2021

    @facundomedica

    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.

  25. code-asher commented on Dec 20, 2021

    @code-asher
    Member

    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

  26. added and removed
    needs-investigationThis issue needs to be further investigated
    on Dec 27, 2021
  27. repo-ranger commented on Dec 27, 2021

    @repo-ranger
    Contributor

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions