Immich cannot start properly in TrueNAS SCALE Docker
When I install and start Immich in a Docker container on TrueNAS SCALE, it always fails to start. I have mapped all seven folders to the same disk directory. When Immich starts, the permissions of the mapped folder change so that only the user has full access, while the group and others automatically lose all permissions.
After manually modifying the permissions to grant full access to the group and others, Immich can start normally. However, after stopping and restarting Immich, the permissions revert to the previous state, and it fails to start again. The logs always show the same error messages.
My Immich version: v1.128.0.
truenas scale ElectricEel-24.10.2 LOGS:2025-03-02
2025-03-02 13:47:20.461787+00:00[32m[Nest] 7 - [39m03/02/2025, 9:47:20 PM [32m LOG[39m [33m[Microservices:StorageService][39m [32mVerifying system mount folder checks, current state: {"mountChecks":{"thumbs":true,"upload":true,"backups":true,"library":true,"profile":true,"encoded-video":true}}[39m
2025-03-02 13:47:20.462226+00:00[31m[Nest] 7 - [39m03/02/2025, 9:47:20 PM [31m ERROR[39m [33m[Microservices:StorageService][39m [31mFailed to read upload/encoded-video/.immich: Error: EACCES: permission denied, open 'upload/encoded-video/.immich'[39m
2025-03-02 13:47:20.463901+00:00microservices worker error: Error: Failed to read "<UPLOAD_LOCATION>/encoded-video/.immich - Please see https://immich.app/docs/administration/system-integrity#folder-checks for more information.", stack: Error: Failed to read "<UPLOAD_LOCATION>/encoded-video/.immich - Please see https://immich.app/docs/administration/system-integrity#folder-checks for more information."
After manually modifying the permissions to grant full access to the group and others, Immich can start normally. However, after stopping and restarting Immich, the permissions revert to the previous state, and it fails to start again. The logs always show the same error messages.
My Immich version: v1.128.0.
truenas scale ElectricEel-24.10.2 LOGS:2025-03-02
2025-03-02 13:47:20.461787+00:00[32m[Nest] 7 - [39m03/02/2025, 9:47:20 PM [32m LOG[39m [33m[Microservices:StorageService][39m [32mVerifying system mount folder checks, current state: {"mountChecks":{"thumbs":true,"upload":true,"backups":true,"library":true,"profile":true,"encoded-video":true}}[39m
2025-03-02 13:47:20.462226+00:00[31m[Nest] 7 - [39m03/02/2025, 9:47:20 PM [31m ERROR[39m [33m[Microservices:StorageService][39m [31mFailed to read upload/encoded-video/.immich: Error: EACCES: permission denied, open 'upload/encoded-video/.immich'[39m
2025-03-02 13:47:20.463901+00:00microservices worker error: Error: Failed to read "<UPLOAD_LOCATION>/encoded-video/.immich - Please see https://immich.app/docs/administration/system-integrity#folder-checks for more information.", stack: Error: Failed to read "<UPLOAD_LOCATION>/encoded-video/.immich - Please see https://immich.app/docs/administration/system-integrity#folder-checks for more information."