Josh K
IImmich
•Created by Josh K on 6/2/2025 in #help-desk-support
Permission denied for migrations when running as non-root
I've been running Immich for a bit over a year now using docker compose, and setting all Immich containers as non-root (user: 1000:1000).
I just had some issues with the breaking 1.133 release (probably related to coincidentally running out of disk space at the same time). I spun up a new postgres container, restored from an Immich db backup, and restarted Immich on v1.132 (pre-breaking change).
Now, any time I try to start the Immich server container not as root, I get this error
Error: EACCES: permission denied, mkdir '/usr/src/app/dist/schema/migrations'
. The server boots fine as root user, but I'd like it to run as non-root.
That folder is not mapped as a volume, so it's internal only to the container. Any suggestions on how to get around this?11 replies