© 2026 Hedgehog Software, LLC

TwitterGitHubDiscord
More
CommunitiesDocsAboutTermsPrivacy
Search
Star
Setup for Free
ImmichI
Immich•9mo ago•
10 replies
Josh K

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'
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?
ImmichJoin
A place to hang out, get support, discuss Immich, get announcements about releases and anything else going on.
36,590Members
Resources

Similar Threads

Was this page helpful?
Recent Announcements

Similar Threads

starting as non root user
ImmichIImmich / help-desk-support
14mo ago
Running as non-root: Can I just chown `library` & `postgres`?
ImmichIImmich / help-desk-support
13mo ago
Trying to run as non root
ImmichIImmich / help-desk-support
8mo ago
immich server fails as non-root
ImmichIImmich / help-desk-support
14mo ago