Immich Paths to photos after ZimaOS

I have made a homemade NAS. I had it all set up with ZimaOS, and it worked well. Except when the machine was idle for a few hours, up to 24 hours. Somewhere in there, and it would freeze. No remote connectivity or waking it up while sitting at the machine.

I read that other people had the same problem with this ZimaOS. One of the solutions was to do a reset. I did the reset.

I have 5 drives. A 512 GB SSD for the OS and 4 x 1 TB older disk drives configured as a RAID 6 for photos. The reset went well. The RAID was still there with all the folders, and the contents of the folders were intact. I knew I had to reinstall Immich. I did that, and all was working well until I tried to recreate the paths to the various Immich folders in the setup.

I did not make a copy of those. Originally, Gemini AI helped me set the paths up. This time, Gemini is not so helpful. Tried many and nothing so far.

Is there someone out there who can help me configure the paths?

OS Drive = ZimaOS-HD >> AppData, Backup, DATA, Documents, Downloads, Gallery, and Media

I know the previous path started with /Media/

RAID 6 folders = photos >> AppData, immich,

immich folders >> backups, encoded-video, library, model-cache, pgdata, profile, thumbs, upload.

“upload” shows many folders, each containing a photo,

“library” is empty

“pgdata” has multiple subfolders and files.

While I want to get this working again, the computer has already frozen, and I have been unable to figure out how to find or generate an error log.

That will be a different discussion. One step at a time. If someone can help with the correct paths, I’d be appreciative. And I have tried several paths, none of which have reconnected me to my photos.

Obviously, I am new to this, and if you have a better solution, I’d be happy to learn about it.

Thank you.

Jerlo

Before changing any Immich settings, I would first confirm the exact path ZimaOS has mounted your RAID under.

Please run these and post the output:

ls -la /media
find /media -maxdepth 4 -type d \( -iname "immich" -o -iname "pgdata" -o -iname "upload" \)
docker ps --format "table {{.Names}}\t{{.Image}}\t{{.Status}}"

The key thing is to find the real full path to your existing Immich folder. If pgdata and upload are still there, do not delete or move anything yet. The photos may still be fine, but Immich needs to be pointed back to the same data/database path.

Sorry for the delayed Response.

Here is the output.

jerlo@ZimaOS:~ ➜ $ ls -la /media
total 20
drwxr-xr-x 3 root root 4096 Jun 17 04:55.
drwxr-xr-x 19 root root 310 Apr 21 13:30 ..
drwxr-xr-x 1 root root 78 Jun 15 20:19 photos
lrwxrwxrwx 1 root root 5 Jun 15 14:21 ZimaOS-HD → /DATA

According to various AIs, all my paths are correct, but instead of pointing to my photos location, it points to the ZimaOS-HD Drive, as it shows above.

The correct path is /media/photos/immich/upload, where “photos” is the name of the RAID6 where the photos are stored.

In the Immich setup, nothing points to ZimaOS-HD → /DATA. See screenshots below.

This is a re-install. Immich was working correctly as I think I originally posted, but I did a reset and had to reinstall Immich. So I think it is pointing to the default ZimaOS-HD → /DATA but I cannot figure out how or where.

Any thoughts?

Below are screenshots. No Changes to Redis. Grok had me map each folder on the RAID under the immich-server.

Thank you for any input.

Jerlo

Here are the other outputs.

jerlo@ZimaOS:~ ➜ $ find /media -maxdepth 4 -type d ( -iname “immich” -o -iname “pgdata” -o -iname “upload” )
/media/photos/immich
/media/photos/immich/pgdata
/media/photos/immich/upload

jerlo@ZimaOS:~ ➜ $ docker ps --format “table {{.Names}}\t{{.Image}}\t{{.Status}}”
WARNING: Error loading config file: open /DATA/.docker/config.json: permission denied
NAMES IMAGE STATUS
immich-server ghcr.io/immich-app/immich-server:v2.7.2 Up 8 hours (healthy)
immich-postgres Package postgres · GitHub Up 8 hours (healthy)
immich-redis valkey/valkey:9 Up 8 hours (healthy)
immich-machine-learning ghcr.io/immich-app/immich-machine-learning:v2.7.2 Up 8 hours (healthy)

Thanks again.

jerlo

From your output, the RAID path looks correct:

/media/photos/immich
/media/photos/immich/pgdata
/media/photos/immich/upload

The /media/ZimaOS-HD -> /DATA line is only a symlink to the OS data drive. It does not mean Immich is using it.

From your screenshots, the important mappings look close, but I would verify what Docker is actually using, not only what the ZimaOS app screen shows.

Please run:

docker inspect immich-server --format '{{json .Mounts}}'
docker inspect immich-postgres --format '{{json .Mounts}}'
docker inspect immich-server --format '{{json .Config.Env}}'

The key thing is this:

Immich must use your old database folder:

/media/photos/immich/pgdata

and your old upload folder:

/media/photos/immich/upload

If Immich was reinstalled with a fresh database, the photo files can still be on disk, but Immich will not know about them.

Do not delete or move anything yet. Your upload folder and pgdata folder are the important ones to protect.

For ZimaOS the paths are indicated, but the paths for Immich were left as system ones.Try changing the path to an external one, instead of /usr/src/app/upload/, specify: /external_photos/immich/upload . Do this in all lines. After that, reboot the immich

although all this can be done in one line