Zoltrix
Zoltrix
IImmich
Created by Zoltrix on 4/12/2025 in #help-desk-support
microservices worker exited with code 1
Hello, not sure what I've done. I've seen a few posts on Github and Discord that seem similar, but can't see any solutions that might assist to fix. I've been running Immich for a few weeks without issue. It is currently running on verison v1.131.3 Today I restarted the Postgres container, didn't think much of it, and no idea if that caused the issue, but now the Immich server continually displays this in a loop:
Initializing Immich v1.131.3
Detected CPU Cores: 16
Starting api worker
Starting microservices worker
[Nest] 7 - 04/12/2025, 7:42:22 AM LOG [Microservices:EventRepository] Initialized websocket server
microservices worker error: TypeError: Cannot read properties of undefined (reading 'replace'), stack: TypeError: Cannot read properties of undefined (reading 'replace')
at queryError (/usr/src/app/node_modules/postgres/cjs/src/connection.js:389:48)
at errored (/usr/src/app/node_modules/postgres/cjs/src/connection.js:384:17)
at Socket.error (/usr/src/app/node_modules/postgres/cjs/src/connection.js:376:5)
at Socket.emit (node:events:518:28)
at emitErrorNT (node:internal/streams/destroy:170:8)
at emitErrorCloseNT (node:internal/streams/destroy:129:3)
at process.processTicksAndRejections (node:internal/process/task_queues:90:21)
microservices worker exited with code 1
Killing api process
Initializing Immich v1.131.3
Detected CPU Cores: 16
Starting api worker
Starting microservices worker
[Nest] 7 - 04/12/2025, 7:42:22 AM LOG [Microservices:EventRepository] Initialized websocket server
microservices worker error: TypeError: Cannot read properties of undefined (reading 'replace'), stack: TypeError: Cannot read properties of undefined (reading 'replace')
at queryError (/usr/src/app/node_modules/postgres/cjs/src/connection.js:389:48)
at errored (/usr/src/app/node_modules/postgres/cjs/src/connection.js:384:17)
at Socket.error (/usr/src/app/node_modules/postgres/cjs/src/connection.js:376:5)
at Socket.emit (node:events:518:28)
at emitErrorNT (node:internal/streams/destroy:170:8)
at emitErrorCloseNT (node:internal/streams/destroy:129:3)
at process.processTicksAndRejections (node:internal/process/task_queues:90:21)
microservices worker exited with code 1
Killing api process
I've now restarted the whole docker server just to rule that out. But still same issue. The Postgres container logs say the following:
PostgreSQL Database directory appears to contain a database; Skipping initialization
2025-04-12 07:24:45.672 UTC [1] LOG: redirecting log output to logging collector process
2025-04-12 07:24:45.672 UTC [1] HINT: Future log output will appear in directory "log".
PostgreSQL Database directory appears to contain a database; Skipping initialization
2025-04-12 07:24:45.672 UTC [1] LOG: redirecting log output to logging collector process
2025-04-12 07:24:45.672 UTC [1] HINT: Future log output will appear in directory "log".
23 replies