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

Stuck starting shared process #153

Closed
prestonvanloon opened this issue Mar 8, 2019 · 7 comments
Closed

Stuck starting shared process #153

prestonvanloon opened this issue Mar 8, 2019 · 7 comments

Comments

@prestonvanloon
Copy link

prestonvanloon commented Mar 8, 2019

  • code-server version: v1.31.1
  • OS Version: ubuntu

Steps to Reproduce

code-server --allow-http --no-auth .
INFO  code-server v1.31.1-100
INFO  Additional documentation: http://github.com/codercom/code-server
INFO  Initializing {"data-dir":"/home/preston/.code-server","working-dir":".","log-dir":"/home/preston/.code-server/logs/20190308231846670"}
INFO  Starting webserver... {"host":"0.0.0.0","port":8443}
WARN  No certificate specified. This could be insecure.
WARN  Documentation on securing your setup: https://coder.com/docs
WARN  Launched without authentication.
INFO
INFO  Started (click the link below to open):
INFO  http://localhost:8443/
INFO
INFO  Starting shared process [1/5]...

It sits here forever.

@yzwduck
Copy link

yzwduck commented Mar 9, 2019

Same problem for Archlinux, it stucks here, eats up memory slowly and finally OOM crashes (in a few hours).
Reproduced on a fresh installed Archlinux with code-server v1.31.1-100 from GitHub release.


Edit: after digging into the code, I find that code-server has a dependency on node-netstat, which relies on netstat utility on the system. However, Archlinux doesn't install netstat by default.
After installing the net-tools from pacman (and another resolved issue), I finally get code-server running.
https://github.com/codercom/code-server/blob/cded51f6500fa39915cb9554d59d8ce2bb831de5/packages/server/src/portScanner.ts#L2

@sr229
Copy link
Contributor

sr229 commented Mar 11, 2019

@prestonvanloon, Hey there, you need net-tools to make code-server work. This is a hard dependency, so you must install it.

Mark this closed as this is already solved by #44.

@xuthus5
Copy link

xuthus5 commented Mar 12, 2019

I tested that under CentOS 7, the problem persisted even if packages with net-tools were installed.Because GCC and dependency library versions are too low, high versions are required. The problem can be solved by recompiling and installing GCC above version 5(The highest version is GCC is 4.8 on my machine)

@sr229
Copy link
Contributor

sr229 commented Mar 12, 2019

I don't think you should be running it on CentOS since its intended for environments with dependencies that dates back to bygone eras.

@prestonvanloon
Copy link
Author

@sr229, I wouldn't consider this issue solved until it logs some error to tell the user that they don't have net-tools installed.

I am unblocked by installed net-tools via apt-get. Thanks

@coadler
Copy link
Member

coadler commented Mar 12, 2019

I agree, we should definitely give some sort of indication

cc. @coderasher

@code-asher
Copy link
Member

Should be fixed with d16c6ae.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

6 participants