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.

Cant get code-server --link to work in termux

See original GitHub issue

OS/Web Information

  • Web Browser:
  • Local OS: Andriod 8.1.0 using termux
  • Remote OS: Firefox windows10
  • Remote Architecture: ??
  • code-server --version: 3.10.0 f9b6d04cab0463c487e0390fc73e902e1f83a99

Steps to Reproduce

  1. Install with yarn add global code-server
  2. do code-server --link Get error

Expected

Code server would start and I would be able to get a code server link

Actual

I get a error spawn?

Logs

[2021-05-17T03:31:04.291Z] info code-server 3.10.0 f9b6d04cab0463c487e0390fc73e902e1f83a99e [2021-05-17T03:31:04.298Z] info Using user-data-dir ~/.local/share/code-server [2021-05-17T03:31:04.385Z] info Using config file ~/.config/code-server/config.yaml [2021-05-17T03:31:04.386Z] info HTTP server listening on http://127.0.0.1:56772/ (randomized by --link) [2021-05-17T03:31:04.386Z] info - Authentication is disabled (disabled by --link) [2021-05-17T03:31:04.387Z] info - Not serving HTTPS (disabled by --link) [2021-05-17T03:31:04.419Z] error spawn /data/data/com.termux/files/home/.config/yarn/global/node_modules/code-server/lib/coder-cloud-agent ENOENT

Screenshot

image

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 or edit this)

the normal code-server command does work but I would like to be able to acceses it from my computer/outside my network

Issue Analytics

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

github_iconTop GitHub Comments

1reaction
code-ashercommented, May 17, 2021

Also, right now it always pulls the latest cloud agent regardless of the code-server version but we should probably pin the agent version.

1reaction
code-ashercommented, May 17, 2021

Does /data/data/com.termux/files/home/.config/yarn/global/node_modules/code-server/lib/coder-cloud-agent exist?

If it does then coder-cloud-agent probably doesn’t work on Termux. I think there are specific steps we have to take to make it work there.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Cant get code-server --link to work in termux #3400 - GitHub
If it does then coder-cloud-agent probably doesn't work on Termux. I think there are specific steps we have to take to make it...
Read more >
Termux - code-server v4.8.0 docs - Coder
Get Termux from F-Droid. Install Debian by running the following: Run termux-setup-storage to allow storage access, or else code-server won't be able to ......
Read more >
How can i solve code-server runtime error in termux app on ...
Run code -server or code-server & which will run code-server in background. Per the output, the password is in ~/.config/code-server/config.yaml.
Read more >
Remote Access - Termux Wiki
Default SSH port in Termux is 8022. Starting and stopping OpenSSH server. Since Termux does not use initialization system, services are started manually...
Read more >
Termux - Apps on Google Play
NOTE: If you're having issues with installing or updating packages - see https://github.com/termux/termux-packages/wiki/Package-Management
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