demise
demise
IImmich
Created by demise on 5/18/2025 in #help-desk-support
Immich not reading DB_URL env variable passed using docker compose
I am trying to setup immich inside a docker network, as i already have another instance of postgres and redis running, and I don't want to share them. So immich will have it's own database and redis instance. I am not using machine learning features. I tried setting up DB_URL in immich server, but it is somehow getting ignored and default user of postgres is being used. I have checked docker inspect shows correct structure for DB_URL. Here is the error immich server throws:
Initializing Immich v1.132.3
Detected CPU Cores: 6
Starting api worker
Starting microservices worker
[Nest] 7 - 05/18/2025, 7:47:55 PM LOG [Microservices:EventRepository] Initialized websocket server
microservices worker error: PostgresError: password authentication failed for user "postgres", stack: PostgresError: password authentication failed for user "postgres"
at ErrorResponse (/usr/src/app/node_modules/postgres/cjs/src/connection.js:790:26)
at handle (/usr/src/app/node_modules/postgres/cjs/src/connection.js:476:6)
at Socket.data (/usr/src/app/node_modules/postgres/cjs/src/connection.js:315:9)
at Socket.emit (node:events:518:28)
at addChunk (node:internal/streams/readable:561:12)
at readableAddChunkPushByteMode (node:internal/streams/readable:512:3)
at Readable.push (node:internal/streams/readable:392:5)
at TCP.onStreamRead (node:internal/stream_base_commons:189:23)
microservices worker exited with code 1
Killing api process
Initializing Immich v1.132.3
Detected CPU Cores: 6
Starting api worker
Starting microservices worker
[Nest] 7 - 05/18/2025, 7:47:55 PM LOG [Microservices:EventRepository] Initialized websocket server
microservices worker error: PostgresError: password authentication failed for user "postgres", stack: PostgresError: password authentication failed for user "postgres"
at ErrorResponse (/usr/src/app/node_modules/postgres/cjs/src/connection.js:790:26)
at handle (/usr/src/app/node_modules/postgres/cjs/src/connection.js:476:6)
at Socket.data (/usr/src/app/node_modules/postgres/cjs/src/connection.js:315:9)
at Socket.emit (node:events:518:28)
at addChunk (node:internal/streams/readable:561:12)
at readableAddChunkPushByteMode (node:internal/streams/readable:512:3)
at Readable.push (node:internal/streams/readable:392:5)
at TCP.onStreamRead (node:internal/stream_base_commons:189:23)
microservices worker exited with code 1
Killing api process
17 replies