linuxserver / docker-code-server

GNU General Public License v3.0
1.54k stars 314 forks source link

[BUG] latest version fail to start #158

Closed jfparis closed 8 months ago

jfparis commented 9 months ago

Is there an existing issue for this?

Current Behavior

I updated to the new version and it fails to start with the following message

vscode  | Error: /app/code-server/node_modules/argon2/lib/binding/napi-v3/argon2.node: cannot open shared object file: No such file or directory

Full log below

Expected Behavior

No response

Steps To Reproduce

  1. docker compose pull
  2. docker compose up

Environment

- OS: Raspberry Pi OS
- How docker service was installed: latest version of docker engine (not the debian packaged version) https://docs.docker.com/engine/install/

CPU architecture

arm64

Docker creation

my docker compose file

  vscode:
    container_name: vscode
    image: linuxserver/code-server:latest
    restart: unless-stopped
    ports:
      - "127.0.0.1:8443:8443"
    volumes:
      - '[redacted]:/config'
      - '[redacted]:/config/workspace'
    environment:
      - TZ=Europe/London
      - PUID=0
      - PGID=0

### Container logs

```bash
Attaching to vscode
vscode  | [migrations] started
vscode  | [migrations] no migrations found
vscode  | ───────────────────────────────────────
vscode  | 
vscode  |       ██╗     ███████╗██╗ ██████╗ 
vscode  |       ██║     ██╔════╝██║██╔═══██╗
vscode  |       ██║     ███████╗██║██║   ██║
vscode  |       ██║     ╚════██║██║██║   ██║
vscode  |       ███████╗███████║██║╚██████╔╝
vscode  |       ╚══════╝╚══════╝╚═╝ ╚═════╝ 
vscode  | 
vscode  |    Brought to you by linuxserver.io
vscode  | ───────────────────────────────────────
vscode  | 
vscode  | To support LSIO projects visit:
vscode  | https://www.linuxserver.io/donate/
vscode  | 
vscode  | ───────────────────────────────────────
vscode  | GID/UID
vscode  | ───────────────────────────────────────
vscode  | 
vscode  | User UID:    0
vscode  | User GID:    0
vscode  | ───────────────────────────────────────
vscode  | 
vscode  | [custom-init] No custom files found, skipping...
vscode  | starting with no password
vscode  | node:internal/modules/cjs/loader:1338
vscode  |   return process.dlopen(module, path.toNamespacedPath(filename));
vscode  |                  ^
vscode  | 
vscode  | Error: /app/code-server/node_modules/argon2/lib/binding/napi-v3/argon2.node: cannot open shared object file: No such file or directory
vscode  |     at Module._extensions..node (node:internal/modules/cjs/loader:1338:18)
vscode  |     at Module.load (node:internal/modules/cjs/loader:1117:32)
vscode  |     at Module._load (node:internal/modules/cjs/loader:958:12)
vscode  |     at Module.require (node:internal/modules/cjs/loader:1141:19)
vscode  |     at require (node:internal/modules/cjs/helpers:110:18)
vscode  |     at Object.<anonymous> (/app/code-server/node_modules/argon2/argon2.js:9:25)
vscode  |     at Module._compile (node:internal/modules/cjs/loader:1254:14)
vscode  |     at Module._extensions..js (node:internal/modules/cjs/loader:1308:10)
vscode  |     at Module.load (node:internal/modules/cjs/loader:1117:32)
vscode  |     at Module._load (node:internal/modules/cjs/loader:958:12) {
vscode  |   code: 'ERR_DLOPEN_FAILED'
vscode  | }
vscode  | 
vscode  | Node.js v18.15.0
vscode  | starting with no password
vscode  | node:internal/modules/cjs/loader:1338
vscode  |   return process.dlopen(module, path.toNamespacedPath(filename));
github-actions[bot] commented 9 months ago

Thanks for opening your first issue here! Be sure to follow the relevant issue templates, or risk having this issue marked as invalid.

aptalca commented 9 months ago

Upstream issue: https://github.com/coder/code-server/issues/6446 You can downgrade until they release a fix

jfparis commented 9 months ago

Thanks @aptalca I did search the local issues but not the upstream. I will downgrade

eltorio commented 9 months ago

@jfparis you can easily compile the missing lib (in fact the provided is not aarch64)

cd /app/code-server \
&& rm -rf node_modules/argon2 \
&& npm install -g node-gyp \
&& npm install argon2 argon2-cli \
&& echo -n "password" | npx argon2-cli -d -e
chayandeokar commented 9 months ago

please assign me this issue @jfparis

jfparis commented 8 months ago

This has been resolved in the last few version