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

[BUG] latest version fail to start #158

Closed
1 task done
jfparis opened this issue Sep 24, 2023 · 6 comments
Closed
1 task done

[BUG] latest version fail to start #158

jfparis opened this issue Sep 24, 2023 · 6 comments

Comments

@jfparis
Copy link

jfparis commented Sep 24, 2023

Is there an existing issue for this?

  • I have searched the existing issues

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
Copy link

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

@aptalca
Copy link
Member

aptalca commented Sep 24, 2023

Upstream issue: coder/code-server#6446
You can downgrade until they release a fix

@jfparis
Copy link
Author

jfparis commented Sep 24, 2023

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

@eltorio
Copy link

eltorio commented Sep 25, 2023

@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
Copy link

please assign me this issue @jfparis

@jfparis jfparis closed this as completed Oct 30, 2023
@jfparis
Copy link
Author

jfparis commented Oct 30, 2023

This has been resolved in the last few version

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

No branches or pull requests

4 participants