Not loading pictures after migrating to the recommended new file structure on TrueNas #19170
Replies: 5 comments 17 replies
-
|
I am having the same problem. I migrated the folder structure and it was working on 1.135.3. I updated to 1.137.3 and now none of my photos or thumbnails load. When I check the server container logs, I can see that it is trying to load photos from upload/library/. I think it should be data/library/. I don't know why immich is trying to access the wrong path or how to fix my database. Did you ever figure this out? |
Beta Was this translation helpful? Give feedback.
-
|
Same issue (1.135.3 - 1.137.3). I migrate everything to the data dataset (except database) and now everything is broken. Not sure if is database related, but no photos pr profile photos are loading, but the server can access those and everything is in /data. I had to rollback to 1.135.3 and restore the older database. Since nothing was working, I had to quickly revert, but I couldn't spot any errors in the logs. |
Beta Was this translation helpful? Give feedback.
-
|
This seems to be related to recent changes |
Beta Was this translation helpful? Give feedback.
-
|
I had the same issue. You can change the location via the immich cli. This fixed it for me. First see in the server logs where immich thinks, that the images are and then change it via the cli to the path, where the images really are. |
Beta Was this translation helpful? Give feedback.
-
|
I had the same issue, and the immich cli migrate database didn't help. I couldn't see thumbnails, and I couldn't download my photos, the link was broken. I had to spelunk into the postgres database itself, and rewrite the entries there. It had duplicated the storage for files prior to August (when I updated Immich). It used to be stored at upload/, that change moved all the links in the database to upload/upload, which borked the linking. After that, images were stored at /upload/, which worked fine for all my new post-August 3rd photos. Day before yesterday, I changed the storage based on the deprecation issue,. When I spelunked in the database, I looked at the originalPath and the images uploaded after August 3rd suddenly all had /data/upload now, but the old photos pre-August were still pointing at upload/upload/. FIX: I used sql through docker on truenas scale to replace upload/upload/ with /data/upload/. MAKE SURE YOU HAVE THE FIRST FORWARD SLASH! Now I have the ability to download all my photos, I am currently running the generate thumbnails job in the UI and that seems to be fixing the thumbnails. I've only got 1.3gb of images, so it may take a while, but results look promising. Let me know if you need the commands to seplunk, I'll get them to you. |
Beta Was this translation helpful? Give feedback.

Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
I have searched the existing issues, both open and closed, to make sure this is not a duplicate report.
The bug
Immich recommended that i migrate my file structure from Immich/[dataset] (uploads,thumbs,library,profile,backups,encoded-video) to Immich/data/
and then create a directory using truenas shell command
mkdir -p /mnt/tank/immich/data/{uploads,thumbs,library,profile,backups,encoded-video}
The postgres was not touched. Afterwards, we were told to migrate all of the folders.
After doing this, the immich app was not able to boot because the /.immich file in each of these directories was not able to be read. Initially, there was no /.immich file in the folders, so i added them to each folder and changed the permissions to root so that immich could read them. This resolved some of the folders, but not all, particularly the /upload directory.
Due to not making headway, I made a new instance of immich with the new file structure, and did the inital set up with new data and postgres folders. Afterwards, I turned off the server and migrated all of the folder contents from the old data folder to the new data folder, excluding contents that were already there like the /.immich files using this command
sudo rsync -ah --info=progress2 --ignore-existing /mnt/DataStore/App_Data/Immich/datas/ /mnt/DataStore/App_Data/Immich/data/
Afterwards, i redirected the immich database file to the old database that was used prior to migrating the file structure.
This allowed all of my settings and users to come back, and it allowed all of the pictures to show up in immich. However, almost all of them you cannot view the preview, and when clicking, you cannot view the pictures of any of them. The metadata for the pictures is still there.
I have tried rebuilding the thumbnails and smart search but it is not working. When i go to download a photo it says the file may have been moved so i suspect it might have something to do with the database.
The OS that Immich Server is running on
TrueNas
Version of Immich Server
v1.134.0
Version of Immich Mobile App
v1.9.0
Platform with the issue
Your docker-compose.yml content
cannot access through truenasYour .env content
Reproduction steps
Detailed above
Relevant log output
Additional information
No response
Beta Was this translation helpful? Give feedback.
All reactions