"Failed to write upload/encoded-video/.immich" - permissions seem to be ok
I'm trying to migrate from a systemctl + external mount setup to a Kubernetes + NFS setup. Immich fails to start at read/write/create check of the upload dir.
Based on the following, I think permissions should be ok.
and the above setup still fails with
I did not copy the uid:gid for
I already checked the linked docs, but could not figure out my issue. Does anyone have any pointers?
Based on the following, I think permissions should be ok.
# The external mount
nagyv@server-2:~$ ls -lna /mnt/raid1/immich/
total 32
drwxr-xr-x 8 1000 1000 4096 Jan 21 2025 .
drwxr-xr-x 10 0 0 4096 Sep 21 22:44 ..
drwxr-xr-x 2 1000 1000 4096 Sep 20 02:00 backups
drwxr-xr-x 3 1000 1000 4096 Jan 24 2025 encoded-video
drwxr-xr-x 2 1000 1000 4096 Jan 21 2025 library
drwxr-xr-x 2 1000 1000 4096 Jan 21 2025 profile
drwxr-xr-x 3 1000 1000 4096 Jan 21 2025 thumbs
drwxr-xr-x 3 1000 1000 4096 Jan 21 2025 upload
# The same NFS mount
nagyv@server-2:~$ kubectl exec -n immich immich-server-75cd9c4954-98h27 -- ls -lna /usr/src/app/upload
total 32
drwxr-xr-x 8 1000 1000 4096 Jan 21 2025 .
drwxr-xr-x 1 0 0 4096 Sep 23 22:20 ..
drwxr-xr-x 2 1000 1000 4096 Sep 20 02:00 backups
drwxr-xr-x 3 1000 1000 4096 Jan 24 2025 encoded-video
drwxr-xr-x 2 1000 1000 4096 Jan 21 2025 library
drwxr-xr-x 2 1000 1000 4096 Jan 21 2025 profile
drwxr-xr-x 3 1000 1000 4096 Jan 21 2025 thumbs
drwxr-xr-x 3 1000 1000 4096 Jan 21 2025 upload
# The user running the container
nagyv@server-2:~$ kubectl exec -n immich immich-server-75cd9c4954-98h27 -- id -u
1000# The external mount
nagyv@server-2:~$ ls -lna /mnt/raid1/immich/
total 32
drwxr-xr-x 8 1000 1000 4096 Jan 21 2025 .
drwxr-xr-x 10 0 0 4096 Sep 21 22:44 ..
drwxr-xr-x 2 1000 1000 4096 Sep 20 02:00 backups
drwxr-xr-x 3 1000 1000 4096 Jan 24 2025 encoded-video
drwxr-xr-x 2 1000 1000 4096 Jan 21 2025 library
drwxr-xr-x 2 1000 1000 4096 Jan 21 2025 profile
drwxr-xr-x 3 1000 1000 4096 Jan 21 2025 thumbs
drwxr-xr-x 3 1000 1000 4096 Jan 21 2025 upload
# The same NFS mount
nagyv@server-2:~$ kubectl exec -n immich immich-server-75cd9c4954-98h27 -- ls -lna /usr/src/app/upload
total 32
drwxr-xr-x 8 1000 1000 4096 Jan 21 2025 .
drwxr-xr-x 1 0 0 4096 Sep 23 22:20 ..
drwxr-xr-x 2 1000 1000 4096 Sep 20 02:00 backups
drwxr-xr-x 3 1000 1000 4096 Jan 24 2025 encoded-video
drwxr-xr-x 2 1000 1000 4096 Jan 21 2025 library
drwxr-xr-x 2 1000 1000 4096 Jan 21 2025 profile
drwxr-xr-x 3 1000 1000 4096 Jan 21 2025 thumbs
drwxr-xr-x 3 1000 1000 4096 Jan 21 2025 upload
# The user running the container
nagyv@server-2:~$ kubectl exec -n immich immich-server-75cd9c4954-98h27 -- id -u
1000and the above setup still fails with
immich-server-6c7f9799fd-ddhjc [Nest] 23 - 09/23/2025, 10:45:22 PM LOG [Api:StorageService] Verifying system mount folder checks, current state: {"mountChecks":{"thumbs":true,"upload":true,"backups":true,"library":true,"profile":true,"encoded-video":true}} immich-server-6c7f9799fd-ddhjc [Nest] 23 - 09/23/2025, 10:45:22 PM ERROR [Api:StorageService] Failed to write/usr/src/app/upload/encoded-video/.immich: Error: EACCES: permission denied, open '/usr/src/app/upload/encoded-video/.immich'
immich-server-6c7f9799fd-ddhjc api worker exited with code 1 immich-server-6c7f9799fd-ddhjc [Nest] 23 - 09/23/2025, 10:45:22 PM LOG [Api:StorageService] Verifying system mount folder checks, current state: {"mountChecks":{"thumbs":true,"upload":true,"backups":true,"library":true,"profile":true,"encoded-video":true}} immich-server-6c7f9799fd-ddhjc [Nest] 23 - 09/23/2025, 10:45:22 PM ERROR [Api:StorageService] Failed to write/usr/src/app/upload/encoded-video/.immich: Error: EACCES: permission denied, open '/usr/src/app/upload/encoded-video/.immich'
immich-server-6c7f9799fd-ddhjc api worker exited with code 1 I did not copy the uid:gid for
/usr/src/app/upload/encoded-video/.immich/usr/src/app/upload/encoded-video/.immich, but it's 1000:10001000:1000 too.I already checked the linked docs, but could not figure out my issue. Does anyone have any pointers?