Code-server - error on default install

I’ve installed code-server using the docker-cli command from GitHub - linuxserver/docker-code-server

The WebUI is not responding and when reading docker logs -f code-server I’m getting the following recurring errors.

Can anyone offer some guidance on how I can resolve?

/app/code-server/lib/node[1558]: ../src/node_platform.cc:61:std::unique_ptr<long unsigned int> node::WorkerThreadsTaskRunner::DelayedTaskScheduler::Start(): Assertion `(0) == (uv_thread_create(t.get(), start_thread, this))' failed.
 1: 0xb090e0 node::Abort() [/app/code-server/lib/node]
 2: 0xb0915e  [/app/code-server/lib/node]
 3: 0xb7512e  [/app/code-server/lib/node]
 4: 0xb751f6 node::NodePlatform::NodePlatform(int, v8::TracingController*) [/app/code-server/lib/node]
 5: 0xacbf74 node::InitializeOncePerProcess(int, char**, node::InitializationSettingsFlags, node::ProcessFlags::Flags) [/app/code-server/lib/node]
 6: 0xaccb59 node::Start(int, char**) [/app/code-server/lib/node]
 7: 0x7fb9274a8d90  [/lib/x86_64-linux-gnu/libc.so.6]
 8: 0x7fb9274a8e40 __libc_start_main [/lib/x86_64-linux-gnu/libc.so.6]
 9: 0xa408ec  [/app/code-server/lib/node]

Share the docker run command you used and your full container logs (they begin with our ascii logo)

docker-cli

docker run -d \
  --name=code-server \
  -e PUID=1000 \
  -e PGID=1000 \
  -e TZ=Etc/UTC \
  -e PASSWORD=password `#optional` \
  -e HASHED_PASSWORD= `#optional` \
  -e SUDO_PASSWORD=password `#optional` \
  -e SUDO_PASSWORD_HASH= `#optional` \
  -e DEFAULT_WORKSPACE=/config/workspace `#optional` \
  -p 8443:8443 \
  -v /docker/vscode/config:/config \
  --restart unless-stopped \
  lscr.io/linuxserver/code-server:latest

docker logs -f code-server

[migrations] started
[migrations] no migrations found
───────────────────────────────────────

      ██╗     ███████╗██╗ ██████╗
      ██║     ██╔════╝██║██╔═══██╗
      ██║     ███████╗██║██║   ██║
      ██║     ╚════██║██║██║   ██║
      ███████╗███████║██║╚██████╔╝
      ╚══════╝╚══════╝╚═╝ ╚═════╝

   Brought to you by linuxserver.io
───────────────────────────────────────

To support LSIO projects visit:
https://www.linuxserver.io/donate/

───────────────────────────────────────
GID/UID
───────────────────────────────────────

User UID:    1000
User GID:    1000
───────────────────────────────────────

setting up sudo access
adding abc to sudoers
setting sudo password using SUDO_PASSWORD env var
New password: Retype new password: passwd: password updated successfully
[custom-init] No custom files found, skipping...
/app/code-server/lib/node[143]: ../src/node_platform.cc:61:std::unique_ptr<long unsigned int> node::WorkerThreadsTaskRunner::DelayedTaskScheduler::Start(): Assertion `(0) == (uv_thread_create(t.get(), start_thread, this))' failed.
 1: 0xb090e0 node::Abort() [/app/code-server/lib/node]
 2: 0xb0915e  [/app/code-server/lib/node]
 3: 0xb7512e  [/app/code-server/lib/node]
 4: 0xb751f6 node::NodePlatform::NodePlatform(int, v8::TracingController*) [/app/code-server/lib/node]
 5: 0xacbf74 node::InitializeOncePerProcess(int, char**, node::InitializationSettingsFlags, node::ProcessFlags::Flags) [/app/code-server/lib/node]
 6: 0xaccb59 node::Start(int, char**) [/app/code-server/lib/node]
 7: 0x7fbd980e4d90  [/lib/x86_64-linux-gnu/libc.so.6]
 8: 0x7fbd980e4e40 __libc_start_main [/lib/x86_64-linux-gnu/libc.so.6]
 9: 0xa408ec  [/app/code-server/lib/node]
/app/code-server/lib/node[157]: ../src/node_platform.cc:61:std::unique_ptr<long unsigned int> node::WorkerThreadsTaskRunner::DelayedTaskScheduler::Start(): Assertion `(0) == (uv_thread_create(t.get(), start_thread, this))' failed.
 1: 0xb090e0 node::Abort() [/app/code-server/lib/node]
 2: 0xb0915e  [/app/code-server/lib/node]
 3: 0xb7512e  [/app/code-server/lib/node]
 4: 0xb751f6 node::NodePlatform::NodePlatform(int, v8::TracingController*) [/app/code-server/lib/node]
 5: 0xacbf74 node::InitializeOncePerProcess(int, char**, node::InitializationSettingsFlags, node::ProcessFlags::Flags) [/app/code-server/lib/node]
 6: 0xaccb59 node::Start(int, char**) [/app/code-server/lib/node]
 7: 0x7fcf4d2efd90  [/lib/x86_64-linux-gnu/libc.so.6]
 8: 0x7fcf4d2efe40 __libc_start_main [/lib/x86_64-linux-gnu/libc.so.6]
 9: 0xa408ec  [/app/code-server/lib/node]
/app/code-server/lib/node[171]: ../src/node_platform.cc:61:std::unique_ptr<long unsigned int> node::WorkerThreadsTaskRunner::DelayedTaskScheduler::Start(): Assertion `(0) == (uv_thread_create(t.get(), start_thread, this))' failed.
 1: 0xb090e0 node::Abort() [/app/code-server/lib/node]
 2: 0xb0915e  [/app/code-server/lib/node]
 3: 0xb7512e  [/app/code-server/lib/node]
 4: 0xb751f6 node::NodePlatform::NodePlatform(int, v8::TracingController*) [/app/code-server/lib/node]
 5: 0xacbf74 node::InitializeOncePerProcess(int, char**, node::InitializationSettingsFlags, node::ProcessFlags::Flags) [/app/code-server/lib/node]
 6: 0xaccb59 node::Start(int, char**) [/app/code-server/lib/node]
 7: 0x7f790ca80d90  [/lib/x86_64-linux-gnu/libc.so.6]
 8: 0x7f790ca80e40 __libc_start_main [/lib/x86_64-linux-gnu/libc.so.6]
 9: 0xa408ec  [/app/code-server/lib/node]

FYI - UID 1000 = docker user, and the GID 1000 = docker group.

Put it back how it was and provide updated logs and compose

This is a default install using the exact cli code supplied. New VPS build (racknerds). Only other install is SWAG in Docker container which is running as expected.

abc being renamed to docker is not a default install. it’s a breaking & unsupported change.

If you look at line 2 of the logs, you will see I am indeed using user abc.

  1. What’s the host os/hardware?
  2. Please try using your homedir for this -v /docker/vscode/config:/config \ so -v /home/username/codeserver:/config \

My apologies, I misread! Please continue with what J0nnymoe has requested.

OS Ubuntu 18.4
Processor Intel(R) Xeon(R) CPU E5-2690 v2 @ 3.00GHz
RAM 2.5GB
Virtualization KVM

Changed homedir to v /home/racknerd/codeserver:/config. Still getting similar error.

[migrations] started
[migrations] no migrations found
───────────────────────────────────────

      ██╗     ███████╗██╗ ██████╗
      ██║     ██╔════╝██║██╔═══██╗
      ██║     ███████╗██║██║   ██║
      ██║     ╚════██║██║██║   ██║
      ███████╗███████║██║╚██████╔╝
      ╚══════╝╚══════╝╚═╝ ╚═════╝

   Brought to you by linuxserver.io
───────────────────────────────────────

To support LSIO projects visit:
https://www.linuxserver.io/donate/

───────────────────────────────────────
GID/UID
───────────────────────────────────────

User UID:    1000
User GID:    1000
───────────────────────────────────────

setting up sudo access
adding abc to sudoers
setting sudo password using SUDO_PASSWORD env var
New password: Retype new password: passwd: password updated successfully
[custom-init] No custom files found, skipping...
/app/code-server/lib/node[143]: ../src/node_platform.cc:61:std::unique_ptr<long unsigned int> node::WorkerThreadsTaskRunner::DelayedTaskScheduler::Start(): Assertion `(0) == (uv_thread_create(t.get(), start_thread, this))' failed.
 1: 0xb090e0 node::Abort() [/app/code-server/lib/node]
 2: 0xb0915e  [/app/code-server/lib/node]
 3: 0xb7512e  [/app/code-server/lib/node]
 4: 0xb751f6 node::NodePlatform::NodePlatform(int, v8::TracingController*) [/app/code-server/lib/node]
 5: 0xacbf74 node::InitializeOncePerProcess(int, char**, node::InitializationSettingsFlags, node::ProcessFlags::Flags) [/app/code-server/lib/node]
 6: 0xaccb59 node::Start(int, char**) [/app/code-server/lib/node]
 7: 0x7fd4d6bf5d90  [/lib/x86_64-linux-gnu/libc.so.6]
 8: 0x7fd4d6bf5e40 __libc_start_main [/lib/x86_64-linux-gnu/libc.so.6]
 9: 0xa408ec  [/app/code-server/lib/node]
/app/code-server/lib/node[157]: ../src/node_platform.cc:61:std::unique_ptr<long unsigned int> node::WorkerThreadsTaskRunner::DelayedTaskScheduler::Start(): Assertion `(0) == (uv_thread_create(t.get(), start_thread, this))' failed.
 1: 0xb090e0 node::Abort() [/app/code-server/lib/node]
 2: 0xb0915e  [/app/code-server/lib/node]
 3: 0xb7512e  [/app/code-server/lib/node]
 4: 0xb751f6 node::NodePlatform::NodePlatform(int, v8::TracingController*) [/app/code-server/lib/node]
 5: 0xacbf74 node::InitializeOncePerProcess(int, char**, node::InitializationSettingsFlags, node::ProcessFlags::Flags) [/app/code-server/lib/node]
 6: 0xaccb59 node::Start(int, char**) [/app/code-server/lib/node]
 7: 0x7f87441e8d90  [/lib/x86_64-linux-gnu/libc.so.6]
 8: 0x7f87441e8e40 __libc_start_main [/lib/

I havent been able to solution the issue above per-se, however I noticed the VPS install on Ubuntu 18.4 had Docker pre-installed.

I’ve simply rebuilt the VPS with Ubuntu 20.04 WITHOUT Docker preinsalled and did so manually after SSHing in.

This has now resolved the issue and confirm Code-Server is now running without errors.

Thanks all for your help.

Ah we have seen this before. The ubuntu default is to install the snap version (SNAP is bad) of docker and every time we see that, it causes a ton of problems. Glad to see you sorted the issue!