Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

WebUI can't connet to #494

Open
MrBenbenky opened this issue Feb 9, 2025 · 6 comments
Open

WebUI can't connet to #494

MrBenbenky opened this issue Feb 9, 2025 · 6 comments

Comments

@MrBenbenky
Copy link

New install on Unradi 7.0
Everything is set to default with the exception of port number.
I have PostgreSQL_Immich on the same IP port 5433,

docker run -d --name='immich' --net='bridge' --pids-limit 2048 -e TZ="Europe/Budapest" -e HOST_OS="Unraid" -e HOST_HOSTNAME="Tower" -e HOST_CONTAINERNAME="immich" -e 'DB_HOSTNAME'='192.168.1.103' -e 'DB_USERNAME'='postgres' -e 'DB_PASSWORD'='postgres' -e 'DB_DATABASE_NAME'='immich' -e 'REDIS_HOSTNAME'='localhost' -e 'DB_PORT'='5433' -e 'REDIS_PORT'='6379' -e 'REDIS_PASSWORD'='' -e 'MACHINE_LEARNING_HOST'='0.0.0.0' -e 'MACHINE_LEARNING_PORT'='3003' -e 'MACHINE_LEARNING_WORKERS'='1' -e 'MACHINE_LEARNING_WORKER_TIMEOUT'='120' -e 'DOCKER_MODS'='imagegenius/mods:universal-redis' -e 'PUID'='99' -e 'PGID'='100' -e 'UMASK'='022' -l net.unraid.docker.managed=dockerman -l net.unraid.docker.webui='http://[IP]:[PORT:8080]' -l net.unraid.docker.icon='https://raw.githubusercontent.com/imagegenius/templates/main/unraid/img/immich.png' -p '8989:8080/tcp' -v '/mnt/user/appdata/upload/Photos/':'/photos':'rw' -v '/mnt/user/Media/foto/':'/libraries':'rw' -v '/mnt/user/appdata/immich':'/config':'rw' 'ghcr.io/imagegenius/immich:latest'

[Nest] 1110  - 02/09/2025, 9:14:02 AM   ERROR [Api:StorageService] Failed to read /photos/encoded-video/.immich: Error: ENOENT: no such file or directory, open '/photos/encoded-video/.immich'
api worker exited with code 1
[Nest] 1139  - 02/09/2025, 9:14:05 AM   ERROR [Api:StorageService] Failed to read /photos/encoded-video/.immich: Error: ENOENT: no such file or directory, open '/photos/encoded-video/.immich'
api worker exited with code 1
[Nest] 1168  - 02/09/2025, 9:14:08 AM   ERROR [Api:StorageService] Failed to read /photos/encoded-video/.immich: Error: ENOENT: no such file or directory, open '/photos/encoded-video/.immich'
api worker exited with code 1
[Nest] 1197  - 02/09/2025, 9:14:11 AM   ERROR [Api:StorageService] Failed to read /photos/encoded-video/.immich: Error: ENOENT: no such file or directory, open '/photos/encoded-video/.immich'
api worker exited with code 1
[Nest] 1226  - 02/09/2025, 9:14:14 AM   ERROR [Api:StorageService] Failed to read /photos/encoded-video/.immich: Error: ENOENT: no such file or directory, open '/photos/encoded-video/.immich'
api worker exited with code 1
  "configFile": false,
  "email": false
}
[Nest] 1110  - 02/09/2025, 9:14:02 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}}
Starting api worker
[Nest] 1139  - 02/09/2025, 9:14:05 AM     LOG [Api:EventRepository] Initialized websocket server
[Nest] 1139  - 02/09/2025, 9:14:05 AM     LOG [Api:ServerService] Feature Flags: {
  "smartSearch": true,
  "facialRecognition": true,
  "duplicateDetection": true,
  "map": false,
  "reverseGeocoding": true,
  "importFaces": false,
  "sidecar": true,
  "search": true,
  "trash": true,
  "oauth": false,
  "oauthAutoLaunch": false,
  "passwordLogin": true,
  "configFile": false,
  "email": false
}
[Nest] 1139  - 02/09/2025, 9:14:05 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}}
Starting api worker
[Nest] 1168  - 02/09/2025, 9:14:08 AM     LOG [Api:EventRepository] Initialized websocket server
[Nest] 1168  - 02/09/2025, 9:14:08 AM     LOG [Api:ServerService] Feature Flags: {
  "smartSearch": true,
  "facialRecognition": true,
  "duplicateDetection": true,
  "map": false,
  "reverseGeocoding": true,
  "importFaces": false,
  "sidecar": true,
  "search": true,
  "trash": true,
  "oauth": false,
  "oauthAutoLaunch": false,
  "passwordLogin": true,
  "configFile": false,
  "email": false
}
[Nest] 1168  - 02/09/2025, 9:14: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}}
Starting api worker
[Nest] 1197  - 02/09/2025, 9:14:11 AM     LOG [Api:EventRepository] Initialized websocket server
[Nest] 1197  - 02/09/2025, 9:14:11 AM     LOG [Api:ServerService] Feature Flags: {
  "smartSearch": true,
  "facialRecognition": true,
  "duplicateDetection": true,
  "map": false,
  "reverseGeocoding": true,
  "importFaces": false,
  "sidecar": true,
  "search": true,
  "trash": true,
  "oauth": false,
  "oauthAutoLaunch": false,
  "passwordLogin": true,
  "configFile": false,
  "email": false
}
[Nest] 1197  - 02/09/2025, 9:14:11 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}}
Starting api worker
[Nest] 1226  - 02/09/2025, 9:14:14 AM     LOG [Api:EventRepository] Initialized websocket server
[Nest] 1226  - 02/09/2025, 9:14:14 AM     LOG [Api:ServerService] Feature Flags: {
  "smartSearch": true,
  "facialRecognition": true,
  "duplicateDetection": true,
  "map": false,
  "reverseGeocoding": true,
  "importFaces": false,
  "sidecar": true,
  "search": true,
  "trash": true,
  "oauth": false,
  "oauthAutoLaunch": false,
  "passwordLogin": true,
  "configFile": false,
  "email": false
}
[Nest] 1226  - 02/09/2025, 9:14:14 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}}
Starting api worker
[Nest] 1255  - 02/09/2025, 9:14:17 AM     LOG [Api:EventRepository] Initialized websocket server
[Nest] 1255  - 02/09/2025, 9:14:17 AM     LOG [Api:ServerService] Feature Flags: {
  "smartSearch": true,
  "facialRecognition": true,
  "duplicateDetection": true,
  "map": false,
  "reverseGeocoding": true,
  "importFaces": false,
  "sidecar": true,
  "search": true,
  "trash": true,
  "oauth": false,
  "oauthAutoLaunch": false,
  "passwordLogin": true,
  "configFile": false,
  "email": false
}
[Nest] 1255  - 02/09/2025, 9:14:17 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] 1255  - 02/09/2025, 9:14:17 AM   ERROR [Api:StorageService] Failed to read /photos/encoded-video/.immich: Error: ENOENT: no such file or directory, open '/photos/encoded-video/.immich'
api worker exited with code 1
Starting api worker
[Nest] 1284  - 02/09/2025, 9:14:21 AM     LOG [Api:EventRepository] Initialized websocket server
[Nest] 1284  - 02/09/2025, 9:14:21 AM     LOG [Api:ServerService] Feature Flags: {
  "smartSearch": true,
  "facialRecognition": true,
  "duplicateDetection": true,
  "map": false,
  "reverseGeocoding": true,
  "importFaces": false,
  "sidecar": true,
  "search": true,
  "trash": true,
  "oauth": false,
  "oauthAutoLaunch": false,
  "passwordLogin": true,
  "configFile": false,
  "email": false
}
[Nest] 1284  - 02/09/2025, 9:14:21 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] 1284  - 02/09/2025, 9:14:21 AM   ERROR [Api:StorageService] Failed to read /photos/encoded-video/.immich: Error: ENOENT: no such file or directory, open '/photos/encoded-video/.immich'
api worker exited with code 1
Starting api worker
[Nest] 1313  - 02/09/2025, 9:14:24 AM     LOG [Api:EventRepository] Initialized websocket server
[Nest] 1313  - 02/09/2025, 9:14:24 AM     LOG [Api:ServerService] Feature Flags: {
  "smartSearch": true,
  "facialRecognition": true,
  "duplicateDetection": true,
  "map": false,
  "reverseGeocoding": true,
  "importFaces": false,
  "sidecar": true,
  "search": true,
  "trash": true,
  "oauth": false,
  "oauthAutoLaunch": false,
  "passwordLogin": true,
  "configFile": false,
  "email": false
}
[Nest] 1313  - 02/09/2025, 9:14:24 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] 1313  - 02/09/2025, 9:14:24 AM   ERROR [Api:StorageService] Failed to read /photos/encoded-video/.immich: Error: ENOENT: no such file or directory, open '/photos/encoded-video/.immich'
api worker exited with code 1
Starting api worker
[Nest] 1342  - 02/09/2025, 9:14:27 AM     LOG [Api:EventRepository] Initialized websocket server
[Nest] 1342  - 02/09/2025, 9:14:27 AM     LOG [Api:ServerService] Feature Flags: {
  "smartSearch": true,
  "facialRecognition": true,
  "duplicateDetection": true,
  "map": false,
  "reverseGeocoding": true,
  "importFaces": false,
  "sidecar": true,
  "search": true,
  "trash": true,
  "oauth": false,
  "oauthAutoLaunch": false,
  "passwordLogin": true,
  "configFile": false,
  "email": false
}
[Nest] 1342  - 02/09/2025, 9:14:27 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] 1342  - 02/09/2025, 9:14:27 AM   ERROR [Api:StorageService] Failed to read /photos/encoded-video/.immich: Error: ENOENT: no such file or directory, open '/photos/encoded-video/.immich'
api worker exited with code 1
Starting api worker
[Nest] 1371  - 02/09/2025, 9:14:30 AM     LOG [Api:EventRepository] Initialized websocket server
[Nest] 1371  - 02/09/2025, 9:14:30 AM     LOG [Api:ServerService] Feature Flags: {
  "smartSearch": true,
  "facialRecognition": true,
  "duplicateDetection": true,
  "map": false,
  "reverseGeocoding": true,
  "importFaces": false,
  "sidecar": true,
  "search": true,
  "trash": true,
  "oauth": false,
  "oauthAutoLaunch": false,
  "passwordLogin": true,
  "configFile": false,
  "email": false
}
[Nest] 1371  - 02/09/2025, 9:14:30 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] 1371  - 02/09/2025, 9:14:30 AM   ERROR [Api:StorageService] Failed to read /photos/encoded-video/.immich: Error: ENOENT: no such file or directory, open '/photos/encoded-video/.immich'
api worker exited with code 1
@hydazz
Copy link
Member

hydazz commented Feb 9, 2025

can you run /photos/encoded-video/.immich then chown abc:abc /photos/encoded-video/.immich inside the container?

@MrBenbenky
Copy link
Author

here is the response:

root@04e05e50c44c:/# /photos/encoded-video/.immich bash: /photos/encoded-video/.immich: No such file or directory

@hydazz
Copy link
Member

hydazz commented Feb 9, 2025

sorry mkdir -p /photos/encoded-video/.immich

@MrBenbenky
Copy link
Author

after mkdir and chown

'root@04e05e50c44c:/photos/encoded-video# ls -all
total 0
drwxr-xr-x 1 abc users 14 Feb 10 08:01 .
drwxrwxrwx 1 abc users 40 Feb 10 07:57 ..
drwxr-xr-x 1 abc users 0 Feb 10 08:01 .immich'

log:

Starting api worker [Nest] 576 - 02/10/2025, 8:04:12 AM LOG [Api:EventRepository] Initialized websocket server [Nest] 576 - 02/10/2025, 8:04:12 AM LOG [Api:ServerService] Feature Flags: { "smartSearch": true, "facialRecognition": true, "duplicateDetection": true, "map": false, "reverseGeocoding": true, "importFaces": false, "sidecar": true, "search": true, "trash": true, "oauth": false, "oauthAutoLaunch": false, "passwordLogin": true, "configFile": false, "email": false } [Nest] 576 - 02/10/2025, 8:04:12 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] 576 - 02/10/2025, 8:04:12 AM ERROR [Api:StorageService] Failed to read /photos/encoded-video/.immich: Error: EISDIR: illegal operation on a directory, read api worker exited with code 1

Still no webUI

BTW directory 'encoded-video' exists also inside docker root directory

@hydazz
Copy link
Member

hydazz commented Feb 10, 2025

ah, do rm -rf /photos/encoded-video/.immich then touch /photos/encoded-video/.immich and apply permissions

@MrBenbenky
Copy link
Author

MrBenbenky commented Feb 10, 2025

success!
For future reference and troubleshooting.
Had to to the same for following directories:

drwxrwxrwx 1 abc  users  92 Feb 10 11:50 .
drwxr-xr-x 1 root root  180 Feb 10 07:55 ..
drwxr-xr-x 1 root root   14 Feb 10 11:51 backups
drwxr-xr-x 1 abc  users  14 Feb 10 11:39 encoded-video
drwxr-xr-x 1 abc  users  14 Feb 10 11:43 library
drwxr-xr-x 1 root root   14 Feb 10 11:47 profile
drwxr-xr-x 1 root root   14 Feb 10 11:49 thumbs
drwxr-xr-x 1 root root   14 Feb 10 11:45 upload

immich installation script seems to be broken

thanks

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants