immich_proxy constantly restarting
immich_proxy is constantly restarting, so I can't access IMMICH.
If I comment out the lines disabling the logging driver,
docker logs immich_proxy
says /start.sh: 15: cannot create /etc/nginx/nginx.conf: Permission denied
My docker-compose.yml
: https://pastebin.com/Ln21yiBL
My .env
: https://pastebin.com/Xp7nuLDE
I have my photos/videos in /mnt/big-stuff/media/immich/photos-and-videos
and my postgresql data in /mnt/big-stuff/media/immich/pg_data
Pastebin
docker-compose.yml - Pastebin.com
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
.env - Pastebin.com
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.
13 Replies
And here's
docker ps | grep immich
:

You can use the default docker-compose provided and have the
/mnt/big-stuff/media/immich/photos-and-videos
in .env
UPLOAD_LOCATIONOh, thanks! I always forget about that.
I am not sure about this
/start.sh: 15: cannot create /etc/nginx/nginx.conf: Permission denied
how do you run your docker-compose command?
what system/os are you running Immich on?I'm on Rocky Linux 9.1, and I'm running
docker compose up -d --remove-orphans
Anyways, I'll try and figure it out tomorrow, I've gotta get to bedAt start up we do some env substitutions, which write that file when the container starts. I'd guess you can't write it, and the location probably requires root inside the container. Is the container running as root or another user?
I'm running it as root. My best guess is that SELinux is blocking access since I moved the Docker
--data-root
to another drive.
Ok, now I'm also getting permission denied errors for immich_postgres
/mnt/big-stuff/media/immich/pg_data
's permissions are getting changed to 700 when I run docker restart immich_postgres
, and the owner changes to systemd_coredump
Hmm I haven't used Rocky Linux so I am afraid I cannot help out much here in term of user permission on Docker
Well, I may have accidentally
rm -rf
'd /var/lib/docker
and had to reinstall everything, but it works fine now!Lolololol
As for pg_data's permissions changing, I just set up a cron job to fix the permissions lol