Skip to content

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

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
AirplanegoBrr opened this issue May 17, 2021 · 6 comments
Closed

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

AirplanegoBrr opened this issue May 17, 2021 · 6 comments

Comments

@AirplanegoBrr
Copy link

AirplanegoBrr commented May 17, 2021

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 f9b6d04

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 f9b6d04
[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

@AirplanegoBrr
Copy link
Author

And yes I am using termux from f-driod

@jsjoeio
Copy link
Contributor

jsjoeio commented May 17, 2021

I believe this is a duplicate of #3342

We're aware of the error and working on a fix. Please follow that issue for updates.

@repo-ranger
Copy link
Contributor

repo-ranger bot commented May 17, 2021

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

@AirplanegoBrr
Copy link
Author

Shouldn't downgrading work? (I'm not home rn so I can't test) The last time I downgraded I was getting a different error... I believe I downgraded to version 9.3 I believe?

@code-asher
Copy link
Member

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.

@code-asher
Copy link
Member

code-asher commented 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.

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

No branches or pull requests

3 participants