andrew
IImmich
•Created by andrew on 3/12/2025 in #help-desk-support
Immich fails to connect to db
Running Immich on unraid using the Immich and PostgreSQL_Immich apps. The other day after upgrading to 7.0.1 and rebooting, one of my cache nvme's (in a pool) was not detected. I shut down and reseated the drive for it to be detected. After booting again and starting array etc, my docker service wouldnt start. I reinstalled all of the apps but now immich fails daily. A restart of the Postgres container fixes it.
From the Immich log. [Nest] 128334 - 03/12/2025, 10:27:52 AM ERROR [TypeOrmModule] Unable to connect to the database. Retrying (9)... error: could not open file "global/pg_filenode.map": Permission denied at Parser.parseErrorMessage (/app/immich/server/node_modules/pg-protocol/dist/parser.js:283:98) at Parser.handlePacket (/app/immich/server/node_modules/pg-protocol/dist/parser.js:122:29) at Parser.parse (/app/immich/server/node_modules/pg-protocol/dist/parser.js:35:38) at Socket.<anonymous> (/app/immich/server/node_modules/pg-protocol/dist/index.js:11:42) 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:191:23)
From the Immich log. [Nest] 128334 - 03/12/2025, 10:27:52 AM ERROR [TypeOrmModule] Unable to connect to the database. Retrying (9)... error: could not open file "global/pg_filenode.map": Permission denied at Parser.parseErrorMessage (/app/immich/server/node_modules/pg-protocol/dist/parser.js:283:98) at Parser.handlePacket (/app/immich/server/node_modules/pg-protocol/dist/parser.js:122:29) at Parser.parse (/app/immich/server/node_modules/pg-protocol/dist/parser.js:35:38) at Socket.<anonymous> (/app/immich/server/node_modules/pg-protocol/dist/index.js:11:42) 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:191:23)
17 replies