BarçaTigre
IImmich
•Created by BarçaTigre on 4/24/2025 in #help-desk-support
DB corruption in Docker?
I've tried setting up Immich in a docker container on my unRAID server. I followed the guides and had it set up and working. However, I've had problems twice now where it just suddenly crashes and stops working. This is the error message that I see in the logs repeatedly:
Starting api worker
[Nest] 967517 - 04/23/2025, 8:02:54 PM LOG [Api:EventRepository] Initialized websocket server
/app/immich/server/node_modules/postgres/cjs/src/connection.js:388
if (!query || typeof query !== 'object') throw err
^
PostgresError: could not open file "global/pg_filenode.map": Permission denied
at ErrorResponse (/app/immich/server/node_modules/postgres/cjs/src/connection.js:790:26)
at handle (/app/immich/server/node_modules/postgres/cjs/src/connection.js:476:6)
at Socket.data (/app/immich/server/node_modules/postgres/cjs/src/connection.js:315:9)
at Socket.emit (node:events:524: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) {
severity_local: 'FATAL',
severity: 'FATAL',
code: '42501',
file: 'relmapper.c',
line: '817',
routine: 'read_relmap_file'
}
Node.js v20.19.0
api worker exited with code 1
I'd really like to get this working reliably and not have it continue to crash. I'm also not sure how to get my photos back and hope that I haven't lost them completely. Any guidance as to what's causing the problem and/or how to fix it permanently would be greatly appreciated.
14 replies