Closed Psy185 closed 3 months ago
There's nothing Immich can really do here. Since it's running inside a container (which sometimes is in turn inside a VM), it's too far abstracted to be able to meaningfully detect disk issues like this. Instead you should set up monitoring and alerts on your system so you find out as soon as things go wrong.
The bug
My Immich instance (1.108.0) is running on an Intel Nuc under Windows 10 and Docker Desktop 4.31.1. All the photos are located on an external hard drive via USB. In some cases the hdd can be disconnected while Immich is running.
When reconnecting the hdd, all newly uploaded images are working fine, but all the old ones in the library can't be found with the following error in the logs and the thumbnails are all blurry:
Error: ENOENT: no such file or directory
I believe the root cause is that the mounts in Docker are broken due to the hdd disconnect. When I look in the mounted directory in Docker, I can for example see that my User library folder is there, but not my wife's if she hasn't uploaded anything since the hdd disconnect. After restarting Docker Desktop completely, I can see all my old images without any error in the Web UI, but the ones which where uploaded between the hdd disconnect and the Docker restart are broken now. In this case I just use a workaround and delete these images (it's usually not more than a few days worth of images), remove them from the recycle bin and reupload them from the app manually (as auto sync ignores deleted images). Looking at the docker mount, I can see all libraries again (including my wife's).
In my opinion it would be great to get a push notification that something went wrong during syncing the images, or just don't upload the images at all, showing an error message.
Is there anything I can do or does this have to be fixed by the devs? I didn't find any similar issues in the open issues.
Anyway, I will probably buy a bigger NVMe and put the Immich libraries on there.
The OS that Immich Server is running on
Win10 x64
Version of Immich Server
1.108.0
Version of Immich Mobile App
1.108.0 Android
Platform with the issue
Your docker-compose.yml content
Your .env content
Reproduction steps
Relevant log output
Additional information
No response