code-server version: v1.31.1code-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.
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
@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.
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)
I don't think you should be running it on CentOS since its intended for environments with dependencies that dates back to bygone eras.
@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
I agree, we should definitely give some sort of indication
cc. @coderasher
Most helpful comment
@sr229, I wouldn't consider this issue solved until it logs some error to tell the user that they don't have
net-toolsinstalled.I am unblocked by installed
net-toolsvia apt-get. Thanks