question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

code-server --link on Termux fails

See original GitHub issue

OS/Web Information

  • Web Browser: Latest stable Opera Desktop
  • Local OS: Windows 10 64-bit
  • Remote OS: Android 10
  • Remote Architecture: aarch64
  • code-server --version: 3.11.1 acb5de66b71a3f8f1cc065df4633ecd3f9788d46

Steps to Reproduce

  1. Get code-server installed on Termux by following this docs: https://github.com/cdr/code-server/blob/main/docs/termux.md
  2. code-server is installed and it works fine without --link, I managed to run it on same local area desktop web browser via !P address.
  3. Stop the program, then rerun it with --link: code-server, the following error shown bellow:
~ $ code-server --link
[2021-08-21T13:29:23.818Z] info  code-server 3.11.1 acb5de66b71a3f8f1cc065df4633ecd3f9788d46
[2021-08-21T13:29:23.828Z] info  Using user-data-dir ~/.local/share/code-server
[2021-08-21T13:29:23.917Z] info  Using config file ~/.config/code-server/config.yaml
[2021-08-21T13:29:23.917Z] info  HTTP server listening on http://127.0.0.1:38223 (randomized by --link)
[2021-08-21T13:29:23.918Z] info    - Authentication is disabled (disabled by --link)
[2021-08-21T13:29:23.918Z] info    - Not serving HTTPS (disabled by --link)
[2021-08-21T13:29:24.009Z] info  ping server: dial server: failed to WebSocket dial: failed to send handshake request: Get "https://cloud.coder.com/latency": dial
tcp: lookup cloud.coder.com on [::1]:53: read udp [::1]:55865->[::1]:53: read: connection refused
[2021-08-21T13:29:24.028Z] error --link agent exited with 1

Expected

It should works normally.

Notes

I tested it on Google Cloud Shell (it’s Debian), get installed via install script and get it running normally. Screenshot is below:

image

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Comments:6 (2 by maintainers)

github_iconTop GitHub Comments

1reaction
jsjoeiocommented, Aug 25, 2021

But if possible, I want to get it run without chroot. I’ll have this issues reopen.

Ah got it, I’ll change the title then.

For unknown reason, I can’t get any GitHub notification. I have no idea.

Weird. I’m guessing you’ve read the docs and looked at your settings?

FWIW, here is what mine look like:

image

0reactions
stale[bot]commented, Apr 25, 2022

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.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Cant get code-server --link to work in termux #3400 - GitHub
Notes. I have tried to downgrade to 9.3.0 but Im getting a diff error (and I can post in comments what it was...
Read more >
Termux - code-server v4.8.0 docs - Coder
Issue : Using git in the /sdcard directory will fail during cloning/commit/staging/etc... Fix : None Potential Workaround : Create a soft-link from the...
Read more >
How can i solve code-server runtime error in termux app on ...
I found a better solution for it. I installed proot-distro, then install parrot distribution and then I used this curl -fsSL ...
Read more >
how to fix unable to locate package in termux
1 wget error in termux cannot link execute keyboard tagsHow to fix libssl. If you want to go the Manual Route, click here....
Read more >
How to install VS Code in an Android Phone? - CodeWithHarry
Step 1 - Install termux · Step 2 - Install ubuntu using termux · Step 3 - Downloading code server · Step 4...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found