ImmichI
Immich12mo ago
Athul

Immich can't run with external HDD

I'm new to immich, trying to set it up on a Raspberry-Pi 5 (the 4 GB variant). I'm using docker compose for installation, following the official setup guide. I configured the $UPLOAD_DIR path to be on my 4TB external HDD (with NTFS filesystem), which always stays mounted on the pi. However, docker fails to run with this setup in the following way:

The 'immich_server' service keeps restarting with an error that it can't find the .immich file inside $UPLOAD_DIR/library. The same .immich file is also not there in the other folders in $UPLAOD_DIR (such as 'backup', 'encoded-video', 'thumbs' etc). It seems immich is unable to create these 'dot' files. I'm also unable to open the webpage (at port 2283) because the service 'immich_server' crashes before I can do anything after startup.

I've tried the following to no effect:
1) Changing the permissions in that folder - chmod 777
2) Changing mount options for the HDD - setting umask=0000
3) Using a different disk that's not NTFS - a USB drive with ext4 filesystem

There are 2 cases when it all starts working:
1) I change $UPLOAD_DIR path from the external drive to an internal microSD (somewhere on the pi's home directory)
2) I manually create a .immich file in all the folders it's supposed to be in (using a small shell script).

I even tried creating the .immich on the hard disk from within the 'immich_server' container (with a "docker exec -it" command ), and the file was created without issue! Then it can't be a permission or filesystem error. It's just that immich setup is not doing the same when it's run for the first time.

So, what in god's name could be going on?
It's a bit demotivating to find such a vexing issue before I even uploaded a single photo.


Big thanks if anyone can help!
Was this page helpful?