ImmichI
Immich5mo ago
Serra

Unknown error: Error: ENOENT: no such file or directory

Hello,

Since the migration in 1.136.0 and now in 1.137.3, i'm unable to see all the existing picture and get this error message :
[Nest] 28 - 08/02/2025, 6:57:48 PM ERROR [Api:GlobalExceptionFilter~vo6jsliz] Unknown error: Error: ENOENT: no such file or directory, access 'upload/thumbs/c66f2698-9458-434b-8718-a7d67580b88d/71/43/71434645-d736-48ec-8ebf-7462ebe4e1bf-thumbnail.webp'
Error: ENOENT: no such file or directory, access 'upload/thumbs/c66f2698-9458-434b-8718-a7d67580b88d/71/43/71434645-d736-48ec-8ebf-7462ebe4e1bf-thumbnail.webp'
at async access (node:internal/fs/promises:606:10)
at async sendFile (/usr/src/app/server/dist/utils/file.js:49:9)
at async AssetMediaController.viewAsset (/usr/src/app/server/dist/controllers/asset-media.controller.js:60:13)


All the data is in /data in the server container :
root@e0a53dcb4d56:/usr/src/app# ls -lha /data/
total 32K
drwxr-xr-x 8 root root 4.0K Nov 12 2024 .
drwxr-xr-x 1 root root 4.0K Aug 2 18:56 ..
drwxr-xr-x 2 root root 4.0K Jul 28 02:00 backups
drwxr-xr-x 3 root root 4.0K Sep 18 2024 encoded-video
drwxr-xr-x 3 root root 4.0K Sep 18 2024 library
drwxr-xr-x 2 root root 4.0K Sep 18 2024 profile
drwxr-xr-x 3 root root 4.0K Sep 18 2024 thumbs
drwxr-xr-x 3 root root 4.0K Jul 29 11:30 upload

I've tried with this env var :
UPLOAD_LOCATION=/data/upload
IMMICH_MEDIA_LOCATION=/data

THUMB_LOCATION=/data/thumbs
ENCODED_VIDEO_LOCATION=/data/encoded-video
PROFILE_LOCATION=/data/profile
BACKUP_LOCATION=/data/backups

In the asset_file table, all the entry is under path upload/thumbs/...

Do i have done something wrong ?

But, the new uploaded images is ok !
Was this page helpful?