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
askiiart
askiiartOP3y ago
And here's docker ps | grep immich:
d311547256d5 altran1502/immich-proxy:release "/start.sh" 9 minutes ago Restarting (2) 8 seconds ago immich_proxy
d9e46f06ed1f altran1502/immich-server:release "/bin/sh ./start-ser…" 13 minutes ago Up 13 minutes 3001/tcp immich_server
4de9254b8b8d altran1502/immich-server:release "/bin/sh ./start-mic…" 13 minutes ago Up 13 minutes 3001/tcp immich_microservices
537c6a9040ce altran1502/immich-machine-learning:release "/bin/sh ./entrypoin…" 13 minutes ago Up 13 minutes immich_machine_learning
9398b1b68799 postgres:14 "docker-entrypoint.s…" 13 minutes ago Up 13 minutes 5432/tcp immich_postgres
53cd33b2620b redis:6.2 "docker-entrypoint.s…" 13 minutes ago Up 13 minutes 6379/tcp immich_redis
ec3a3148a457 altran1502/immich-web:release "/bin/sh ./entrypoin…" 27 minutes ago Up 27 minutes 3000/tcp immich_web
d311547256d5 altran1502/immich-proxy:release "/start.sh" 9 minutes ago Restarting (2) 8 seconds ago immich_proxy
d9e46f06ed1f altran1502/immich-server:release "/bin/sh ./start-ser…" 13 minutes ago Up 13 minutes 3001/tcp immich_server
4de9254b8b8d altran1502/immich-server:release "/bin/sh ./start-mic…" 13 minutes ago Up 13 minutes 3001/tcp immich_microservices
537c6a9040ce altran1502/immich-machine-learning:release "/bin/sh ./entrypoin…" 13 minutes ago Up 13 minutes immich_machine_learning
9398b1b68799 postgres:14 "docker-entrypoint.s…" 13 minutes ago Up 13 minutes 5432/tcp immich_postgres
53cd33b2620b redis:6.2 "docker-entrypoint.s…" 13 minutes ago Up 13 minutes 6379/tcp immich_redis
ec3a3148a457 altran1502/immich-web:release "/bin/sh ./entrypoin…" 27 minutes ago Up 27 minutes 3000/tcp immich_web
Alex Tran
Alex Tran3y ago
No description
Alex Tran
Alex Tran3y ago
You can use the default docker-compose provided and have the /mnt/big-stuff/media/immich/photos-and-videos in .env UPLOAD_LOCATION
askiiart
askiiartOP3y ago
Oh, thanks! I always forget about that.
Alex Tran
Alex Tran3y ago
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?
askiiart
askiiartOP3y ago
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 bed
jrasm91
jrasm913y ago
At 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?
askiiart
askiiartOP3y ago
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
Alex Tran
Alex Tran3y ago
Hmm I haven't used Rocky Linux so I am afraid I cannot help out much here in term of user permission on Docker
askiiart
askiiartOP3y ago
Well, I may have accidentally rm -rf'd /var/lib/docker and had to reinstall everything, but it works fine now!
Alex Tran
Alex Tran3y ago
jrasm91
jrasm913y ago
Lolololol
askiiart
askiiartOP3y ago
As for pg_data's permissions changing, I just set up a cron job to fix the permissions lol

Did you find this page helpful?