Server can't start after I change the PUID #4822

Closed
opened 2026-02-05 10:54:53 +03:00 by OVERLORD · 0 comments
Owner

Originally created by @ffchung on GitHub (Nov 28, 2024).

The bug

After I change the PUID. The server can't start.

And finally I found that the owner of file/folder in '/photos' not update. That make the server can't access file in /photos.

After I update the owner of file/folder within /photosm everything work find.

The OS that Immich Server is running on

Synology Docker

Version of Immich Server

V1.121.0

Version of Immich Mobile App

NA

Platform with the issue

  • Server
  • Web
  • Mobile

Your docker-compose.yml content

image: ghcr.io/imagegenius/immich:latest

Your .env content

PUID=1200
PGID=1000

Reproduction steps

  1. Change the PUID in .env
  2. restart the server

Relevant log output

Starting api worker
[Nest] 907  - 11/28/2024, 3:52:59 AM     LOG [Api:EventRepository] Initialized websocket server
[Nest] 907  - 11/28/2024, 3:52:59 AM     LOG [Api:ServerService] Feature Flags: {
  "smartSearch": true,
  "facialRecognition": true,
  "duplicateDetection": true,
  "map": true,
  "reverseGeocoding": true,
  "importFaces": false,
  "sidecar": true,
  "search": true,
  "trash": true,
  "oauth": false,
  "oauthAutoLaunch": false,
  "passwordLogin": true,
  "configFile": false,
  "email": false
}
[Nest] 907  - 11/28/2024, 3:52:59 AM     LOG [Api:StorageService] Verifying system mount folder checks, current state: {"mountChecks":{"thumbs":true,"upload":true,"backups":true,"library":true,"profile":true,"encoded-video":true}}
[Nest] 907  - 11/28/2024, 3:52:59 AM   ERROR [Api:StorageService] Failed to write /photos/encoded-video/.immich: Error: EACCES: permission denied, open '/photos/encoded-video/.immich'
api worker exited with code 1
Starting api worker
[Nest] 933  - 11/28/2024, 3:53:08 AM     LOG [Api:EventRepository] Initialized websocket server
[Nest] 933  - 11/28/2024, 3:53:08 AM     LOG [Api:ServerService] Feature Flags: {
  "smartSearch": true,
  "facialRecognition": true,
  "duplicateDetection": true,
  "map": true,
  "reverseGeocoding": true,
  "importFaces": false,
  "sidecar": true,
  "search": true,
  "trash": true,
  "oauth": false,
  "oauthAutoLaunch": false,
  "passwordLogin": true,
  "configFile": false,
  "email": false
}
[Nest] 933  - 11/28/2024, 3:53:08 AM     LOG [Api:StorageService] Verifying system mount folder checks, current state: {"mountChecks":{"thumbs":true,"upload":true,"backups":true,"library":true,"profile":true,"encoded-video":true}}
[Nest] 933  - 11/28/2024, 3:53:08 AM   ERROR [Api:StorageService] Failed to write /photos/backups/.immich: Error: EACCES: permission denied, open '/photos/backups/.immich'
api worker exited with code 1
Starting api worker
[Nest] 959  - 11/28/2024, 3:53:16 AM     LOG [Api:EventRepository] Initialized websocket server
[Nest] 959  - 11/28/2024, 3:53:16 AM     LOG [Api:ServerService] Feature Flags: {
  "smartSearch": true,
  "facialRecognition": true,
  "duplicateDetection": true,
  "map": true,
  "reverseGeocoding": true,
  "importFaces": false,
  "sidecar": true,
  "search": true,
  "trash": true,
  "oauth": false,


### Additional information

--
Originally created by @ffchung on GitHub (Nov 28, 2024). ### The bug After I change the PUID. The server can't start. And finally I found that the owner of file/folder in '/photos' not update. That make the server can't access file in /photos. After I update the owner of file/folder within /photosm everything work find. ### The OS that Immich Server is running on Synology Docker ### Version of Immich Server V1.121.0 ### Version of Immich Mobile App NA ### Platform with the issue - [X] Server - [ ] Web - [ ] Mobile ### Your docker-compose.yml content ```YAML image: ghcr.io/imagegenius/immich:latest ``` ### Your .env content ```Shell PUID=1200 PGID=1000 ``` ### Reproduction steps 1. Change the PUID in .env 2. restart the server ### Relevant log output ```shell Starting api worker [Nest] 907 - 11/28/2024, 3:52:59 AM LOG [Api:EventRepository] Initialized websocket server [Nest] 907 - 11/28/2024, 3:52:59 AM LOG [Api:ServerService] Feature Flags: { "smartSearch": true, "facialRecognition": true, "duplicateDetection": true, "map": true, "reverseGeocoding": true, "importFaces": false, "sidecar": true, "search": true, "trash": true, "oauth": false, "oauthAutoLaunch": false, "passwordLogin": true, "configFile": false, "email": false } [Nest] 907 - 11/28/2024, 3:52:59 AM LOG [Api:StorageService] Verifying system mount folder checks, current state: {"mountChecks":{"thumbs":true,"upload":true,"backups":true,"library":true,"profile":true,"encoded-video":true}} [Nest] 907 - 11/28/2024, 3:52:59 AM ERROR [Api:StorageService] Failed to write /photos/encoded-video/.immich: Error: EACCES: permission denied, open '/photos/encoded-video/.immich' api worker exited with code 1 Starting api worker [Nest] 933 - 11/28/2024, 3:53:08 AM LOG [Api:EventRepository] Initialized websocket server [Nest] 933 - 11/28/2024, 3:53:08 AM LOG [Api:ServerService] Feature Flags: { "smartSearch": true, "facialRecognition": true, "duplicateDetection": true, "map": true, "reverseGeocoding": true, "importFaces": false, "sidecar": true, "search": true, "trash": true, "oauth": false, "oauthAutoLaunch": false, "passwordLogin": true, "configFile": false, "email": false } [Nest] 933 - 11/28/2024, 3:53:08 AM LOG [Api:StorageService] Verifying system mount folder checks, current state: {"mountChecks":{"thumbs":true,"upload":true,"backups":true,"library":true,"profile":true,"encoded-video":true}} [Nest] 933 - 11/28/2024, 3:53:08 AM ERROR [Api:StorageService] Failed to write /photos/backups/.immich: Error: EACCES: permission denied, open '/photos/backups/.immich' api worker exited with code 1 Starting api worker [Nest] 959 - 11/28/2024, 3:53:16 AM LOG [Api:EventRepository] Initialized websocket server [Nest] 959 - 11/28/2024, 3:53:16 AM LOG [Api:ServerService] Feature Flags: { "smartSearch": true, "facialRecognition": true, "duplicateDetection": true, "map": true, "reverseGeocoding": true, "importFaces": false, "sidecar": true, "search": true, "trash": true, "oauth": false, ``` ``` ### Additional information --
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: immich-app/immich#4822