Skip to main content Immich Server wont start : r/immich
r/immich icon
Go to immich
•

Immich Server wont start

I'm running it on Portainer , all db is up and running immich machine learining aswell but immich server fails
Starting microservices worker [Nest] 7 - 03/28/2025, 1:28:02 PM LOG [Microservices:EventRepository] Initialized websocket server [Nest] 17 - 03/28/2025, 1:28:02 PM LOG [Api:EventRepository] Initialized websocket server /usr/src/app/node_modules/postgres/cjs/src/connection.js:389 stack: { value: err.stack + query.origin.replace(/.*\n/, '\n'), enumerable: options.debug }, ^ 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) Node.js v22.14.0 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) api worker exited with code 1 Initializing Immich v1.130.3 Detected CPU Cores: 6 Starting api worker Starting microservices worker

[Nest] 7 - 03/28/2025, 1:28:02 PM LOG [Microservices:EventRepository] Initialized websocket server [Nest] 17 - 03/28/2025, 1:28:02 PM LOG [Api:EventRepository] Initialized websocket server /usr/src/app/node_modules/postgres/cjs/src/connection.js:389 stack: { value: err.stack + query.origin.replace(/.*\n/, '\n'), enumerable: options.debug }, ^ 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) Node.js v22.14.0 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) api worker exited with code 1 Initializing Immich v1.130.3 Detected CPU Cores: 6 Starting api worker Starting microservices worker

The feeling of not having enough time to finish all your tasks is real! Well, with monday.com’s work management platform, get more done in less time with automations, real-time communication, and notifications. Smash that done button! Try now.
Thumbnail image: The feeling of not having enough time to finish all your tasks is real! Well, with monday.com’s work management platform, get more done in less time with automations, real-time communication, and notifications. Smash that done button! Try now.
Sort by:
Best
Open comment sort options

Reboot dB and server and wait 15 mins. It will work then

Profile Badge for the Achievement Top 1% Commenter Top 1% Commenter

Can you check the database log? The message shows that the database hasn't starting up correctly

Redis:
1:M 28 Mar 2025 13:28:38.177 * Background saving terminated with success1:M 28 Mar 2025 13:23:32.017 * DB saved on disk 1:M 28 Mar 2025 13:23:32.524 * DB saved on disk 1:M 28 Mar 2025 13:23:34.285 * DB saved on disk 1:M 28 Mar 2025 13:23:34.790 * DB saved on disk 1:M 28 Mar 2025 13:23:35.049 * DB saved on disk 1:M 28 Mar 2025 13:23:36.804 * DB saved on disk 1:M 28 Mar 2025 13:23:37.562 * DB saved on disk 1:M 28 Mar 2025 13:28:38.075 * 100 changes in 300 seconds. Saving... 1:M 28 Mar 2025 13:28:38.076 * Background saving started by pid 47 47:C 28 Mar 2025 13:28:38.086 * DB saved on disk 47:C 28 Mar 2025 13:28:38.087 * Fork CoW for RDB: current 0 MB, peak 0 MB, average 0 MB 1:M 28 Mar 2025 13:28:38.177 * Background saving terminated with success

Postgress:

PostgreSQL Database directory appears to contain a database; Skipping initialization 2025-03-28 11:13:29.438 UTC [1] LOG:  redirecting log output to logging collector process 2025-03-28 11:13:29.438 UTC [1] HINT:  Future log output will appear in directory "log".
More replies
More replies

I had this problem a few days ago, and I later found out that the storage space where I run Docker was full. Just check how much space you have left with the df command

Got plenty of space :/

More replies
More replies