Closed JordyEGNL closed 3 months ago
I see that immich-server was not yet updated (too impatient?) After updating the immich-server container everything seems to be working again!
Nope I was wrong the issue came back...
Logs after updating everything correctly this time
immich-server has been recreated
immich-server exited with code 143
immich-server has been recreated
immich-server | Detected CPU Cores: 4
immich-server | Starting api worker
immich-server | Starting microservices worker
immich-server | [Nest] 8 - 07/18/2024, 6:43:13 PM LOG [Microservices:EventRepository] Initialized websocket server
immich-server | [Nest] 18 - 07/18/2024, 6:43:14 PM LOG [Api:EventRepository] Initialized websocket server
immich-machine-learning | usage: gunicorn [OPTIONS] [APP_MODULE]
immich-machine-learning | gunicorn: error: argument -w/--workers: invalid int value: ''
immich-machine-learning exited with code 2
immich-machine-learning | usage: gunicorn [OPTIONS] [APP_MODULE]
immich-machine-learning | gunicorn: error: argument -w/--workers: invalid int value: ''
immich-machine-learning exited with code 2
Same here.
Hey @mertalev, is this related to the script?
Additionally to the error message above I get:
immich_server | /usr/src/app/node_modules/sharp/lib/sharp.js:114
immich_server | throw new Error(help.join('\n'));
immich_server | ^
immich_server |
immich_server | Error: Could not load the "sharp" module using the linux-arm64 runtime
immich_server | ERR_DLOPEN_FAILED: libwebpdemux.so.2: cannot open shared object file: No such file or directory
immich_server | Possible solutions:
immich_server | - Ensure optional dependencies can be installed:
immich_server | npm install --include=optional sharp
immich_server | yarn add sharp --ignore-engines
immich_server | - Ensure your package manager supports multi-platform installation:
immich_server | See https://sharp.pixelplumbing.com/install#cross-platform
immich_server | - Add platform-specific dependencies:
immich_server | npm install --os=linux --cpu=arm64 sharp
immich_server | - Consult the installation documentation:
immich_server | See https://sharp.pixelplumbing.com/install
immich_server | at Object.<anonymous> (/usr/src/app/node_modules/sharp/lib/sharp.js:114:9)
immich_server | at Module._compile (node:internal/modules/cjs/loader:1358:14)
immich_server | at Module._extensions..js (node:internal/modules/cjs/loader:1416:10)
immich_server | at Module.load (node:internal/modules/cjs/loader:1208:32)
immich_server | at Module._load (node:internal/modules/cjs/loader:1024:12)
immich_server | at Module.require (node:internal/modules/cjs/loader:1233:19)
immich_server | at require (node:internal/modules/helpers:179:18)
immich_server | at Object.<anonymous> (/usr/src/app/node_modules/sharp/lib/constructor.js:10:1)
immich_server | at Module._compile (node:internal/modules/cjs/loader:1358:14)
immich_server | at Module._extensions..js (node:internal/modules/cjs/loader:1416:10)
immich_server |
immich_server | Node.js v20.15.1
I have the same error.
usage: gunicorn [OPTIONS] [APP_MODULE]
gunicorn: error: argument -w/--workers: invalid int value: ''
usage: gunicorn [OPTIONS] [APP_MODULE]
gunicorn: error: argument -w/--workers: invalid int value: ''
usage: gunicorn [OPTIONS] [APP_MODULE]
gunicorn: error: argument -w/--workers: invalid int value: ''
usage: gunicorn [OPTIONS] [APP_MODULE]
gunicorn: error: argument -w/--workers: invalid int value: ''
usage: gunicorn [OPTIONS] [APP_MODULE]
gunicorn: error: argument -w/--workers: invalid int value: ''
Additionally to the error message above I get:
immich_server | /usr/src/app/node_modules/sharp/lib/sharp.js:114 immich_server | throw new Error(help.join('\n')); immich_server | ^ immich_server | immich_server | Error: Could not load the "sharp" module using the linux-arm64 runtime immich_server | ERR_DLOPEN_FAILED: libwebpdemux.so.2: cannot open shared object file: No such file or directory immich_server | Possible solutions: immich_server | - Ensure optional dependencies can be installed: immich_server | npm install --include=optional sharp immich_server | yarn add sharp --ignore-engines immich_server | - Ensure your package manager supports multi-platform installation: immich_server | See https://sharp.pixelplumbing.com/install#cross-platform immich_server | - Add platform-specific dependencies: immich_server | npm install --os=linux --cpu=arm64 sharp immich_server | - Consult the installation documentation: immich_server | See https://sharp.pixelplumbing.com/install immich_server | at Object.<anonymous> (/usr/src/app/node_modules/sharp/lib/sharp.js:114:9) immich_server | at Module._compile (node:internal/modules/cjs/loader:1358:14) immich_server | at Module._extensions..js (node:internal/modules/cjs/loader:1416:10) immich_server | at Module.load (node:internal/modules/cjs/loader:1208:32) immich_server | at Module._load (node:internal/modules/cjs/loader:1024:12) immich_server | at Module.require (node:internal/modules/cjs/loader:1233:19) immich_server | at require (node:internal/modules/helpers:179:18) immich_server | at Object.<anonymous> (/usr/src/app/node_modules/sharp/lib/constructor.js:10:1) immich_server | at Module._compile (node:internal/modules/cjs/loader:1358:14) immich_server | at Module._extensions..js (node:internal/modules/cjs/loader:1416:10) immich_server | immich_server | Node.js v20.15.1
I believe this is a separate issue for arm
I fixed it by adding MACHINE_LEARNING_WORKERS=1
in my .env
It seems this variable is empty by default, so gunicorn
starts with -w ''
instead of something like -w 1
I fixed it by adding
MACHINE_LEARNING_WORKERS=1
in my.env
Can confirm that this fixes the issue
immich-machine-learning | [07/18/24 19:01:53] INFO Starting gunicorn 22.0.0
immich-machine-learning | [07/18/24 19:01:53] INFO Listening at: http://[::]:3003 (10)
immich-machine-learning | [07/18/24 19:01:53] INFO Using worker: app.config.CustomUvicornWorker
immich-machine-learning | [07/18/24 19:01:53] INFO Booting worker with pid: 11
immich-machine-learning | [07/18/24 19:01:59] INFO Started server process [11]
immich-machine-learning | [07/18/24 19:01:59] INFO Waiting for application startup.
immich-machine-learning | [07/18/24 19:01:59] INFO Created in-memory cache with unloading after 300s
immich-machine-learning | of inactivity.
immich-machine-learning | [07/18/24 19:01:59] INFO Initialized request thread pool with 4 threads.
immich-machine-learning | [07/18/24 19:01:59] INFO Application startup complete.
immich_server | /usr/src/app/node_modules/sharp/lib/sharp.js:114 immich_server | throw new Error(help.join('\n')); immich_server | ^ immich_server | immich_server | Error: Could not load the "sharp" module using the linux-arm64 runtime immich_server | ERR_DLOPEN_FAILED: libwebpdemux.so.2: cannot open shared object file: No such file or directory immich_server | Possible solutions: immich_server | - Ensure optional dependencies can be installed: immich_server | npm install --include=optional sharp immich_server | yarn add sharp --ignore-engines immich_server | - Ensure your package manager supports multi-platform installation: immich_server | See https://sharp.pixelplumbing.com/install#cross-platform immich_server | - Add platform-specific dependencies: immich_server | npm install --os=linux --cpu=arm64 sharp immich_server | - Consult the installation documentation: immich_server | See https://sharp.pixelplumbing.com/install immich_server | at Object.
(/usr/src/app/node_modules/sharp/lib/sharp.js:114:9) immich_server | at Module._compile (node:internal/modules/cjs/loader:1358:14) immich_server | at Module._extensions..js (node:internal/modules/cjs/loader:1416:10) immich_server | at Module.load (node:internal/modules/cjs/loader:1208:32) immich_server | at Module._load (node:internal/modules/cjs/loader:1024:12) immich_server | at Module.require (node:internal/modules/cjs/loader:1233:19) immich_server | at require (node:internal/modules/helpers:179:18) immich_server | at Object. (/usr/src/app/node_modules/sharp/lib/constructor.js:10:1) immich_server | at Module._compile (node:internal/modules/cjs/loader:1358:14) immich_server | at Module._extensions..js (node:internal/modules/cjs/loader:1416:10) immich_server | immich_server | Node.js v20.15.1
Gonna open a new issue for this.
Ah, there already is #11189
I fixed it by adding MACHINE_LEARNING_WORKERS=1 in my .env
This worked for me too!
I fixed it by adding MACHINE_LEARNING_WORKERS=1 in my .env
This doesnt work for me. ive rolled it back to v1.108.0 to workaround it. im also running immich_machine_learning on a different machine than my immich instance, so maybe theres other env vars that are now needed when its standalone
Will be fixed by #11192
The bug
immich-machine-learning stopped working with v1.109.0 release
What I have tried:
The OS that Immich Server is running on
Ubuntu Server 22.04 LTS
Version of Immich Server
v1.109.0
Version of Immich Mobile App
v1.109.0
Platform with the issue
Your docker-compose.yml content
Your .env content
Reproduction steps
Relevant log output
Additional information
No response