© 2026 Hedgehog Software, LLC

TwitterGitHubDiscord
More
CommunitiesDocsAboutTermsPrivacy
Search
Star
Setup for Free
ImmichI
Immich•14mo ago•
6 replies
Arki

Setting up immich as non-root

Hi ! I try to setup immich as non-root, I follow the FAQ, but i struggle a bit with
You may need to add mount points or docker volumes for the following internal container paths:
"immich-machine-learning:/.config
immich-machine-learning:/.cache
redis:/data".
You may need to add mount points or docker volumes for the following internal container paths:
"immich-machine-learning:/.config
immich-machine-learning:/.cache
redis:/data".

everything starts up but postgress, the logs says
"initdb: error: directory "/var/lib/postgresql/data" exists but is not empty".
"initdb: error: directory "/var/lib/postgresql/data" exists but is not empty".

I added this to my docker-compose.yml :
- /data/appdb/immichdb/redis-data:/data
- /data/appdb/immichdb/redis-data:/data


What I tried :
- Made sure everything woirks without any user changes
- removed the whole immichdb folder, chown -R 1000:1000, chmod 755

The ML part also says
`
[12/21/24 12:09:25] WARNING  Matplotlib created a temporary cache directory at  
                             /tmp/matplotlib-16ixy51s because the default path  
                             (/.config/matplotlib) is not a writable directory; 
                             it is highly recommended to set the MPLCONFIGDIR   
                             environment variable to a writable directory, in   
                             particular to speed up the import of Matplotlib and
                             to better support multiprocessing.   
`
[12/21/24 12:09:25] WARNING  Matplotlib created a temporary cache directory at  
                             /tmp/matplotlib-16ixy51s because the default path  
                             (/.config/matplotlib) is not a writable directory; 
                             it is highly recommended to set the MPLCONFIGDIR   
                             environment variable to a writable directory, in   
                             particular to speed up the import of Matplotlib and
                             to better support multiprocessing.   


It seems like I messed up with permissions somewhere.

Here's my full compose.yml : https://pastebin.com/PktzRuav
And my .env : https://pastebin.com/b8jwzREB

Thanks !!
Pastebin
``` ## WARNING: Make sure to use the docker-compose.yml of the curr...
Pastebin.com is the number one paste tool since 2002. Pastebin is a website where you can store text online for a set period of time.
Pastebin
```# You can find documentation for all the supported env variables...
Pastebin.com is the number one paste tool since 2002. Pastebin is a website where you can store text online for a set period of time.
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

immich server fails as non-root
ImmichIImmich / help-desk-support
14mo ago
starting as non root user
ImmichIImmich / help-desk-support
14mo ago
Help setting up immich
ImmichIImmich / help-desk-support
3y ago
Trying to run as non root
ImmichIImmich / help-desk-support
8mo ago