Immich on Truenas - issue with re-install
Hopefully someone here will be able to help.
I have or rather had Immich (~1.8.0) app running in Truenas, long story short I was cleaning and deleted wrong App.
Fortunately folders where bind to Host Paths on Truenas so I still have data.
With what I found on Google I have tried to fix it my self but failed. I did rollback of some datasets, etc.
I have tried to install fresh copy and point it to same folders hoping it would pick up last install, but it failed, installer error massage wrote that binding folders folder by folder is an old way and is not supported any more in version ~1.9.3.
I have all the folders from attached picture. Having those I'm I able ro restore what I have in new install?
Pleeese help I really don't want to do everything from scratch.

28 Replies
:wave: Hey @TheLeshek,
Thanks for reaching out to us. Please carefully read this message and follow the recommended actions. This will help us be more effective in our support effort and leave more time for building Immich :immich:.
References
- Container Logs:
docker compose logs
docs
- Container Status: docker ps -a
docs
- Reverse Proxy: https://immich.app/docs/administration/reverse-proxy
- Code Formatting https://support.discord.com/hc/en-us/articles/210298617-Markdown-Text-101-Chat-Formatting-Bold-Italic-Underline#h_01GY0DAKGXDEHE263BCAYEGFJA
Checklist
I have...
1. :ballot_box_with_check: verified I'm on the latest release(note that mobile app releases may take some time).
2. :ballot_box_with_check: read applicable release notes.
3. :ballot_box_with_check: reviewed the FAQs for known issues.
4. :ballot_box_with_check: reviewed Github for known issues.
5. :ballot_box_with_check: tried accessing Immich via local ip (without a custom reverse proxy).
6. :ballot_box_with_check: uploaded the relevant information (see below).
7. :ballot_box_with_check: tried an incognito window, disabled extensions, cleared mobile app cache, logged out and back in, different browsers, etc. as applicable
(an item can be marked as "complete" by reacting with the appropriate number)
Information
In order to be able to effectively help you, we need you to provide clear information to show what the problem is. The exact details needed vary per case, but here is a list of things to consider:
- Your docker-compose.yml and .env files.
- Logs from all the containers and their status (see above).
- All the troubleshooting steps you've tried so far.
- Any recent changes you've made to Immich or your system.
- Details about your system (both software/OS and hardware).
- Details about your storage (filesystems, type of disks, output of commands like fdisk -l
and df -h
).
- The version of the Immich server, mobile app, and other relevant pieces.
- Any other information that you think might be relevant.
Please paste files and logs with proper code formatting, and especially avoid blurry screenshots.
Without the right information we can't work out what the problem is. Help us help you ;)
If this ticket can be closed you can use the /close
command, and re-open it later if needed.
Successfully submitted, a tag has been added to inform contributors. :white_check_mark:You probably could do that first:
https://immich.app/docs/install/truenas/#migration-from-old-storage-configuration
This way you can start Immich using the new structure
@Xiticks Ok, I will start with that.
You should not have to modify the db dataset, thats all the other that are now inside a single dataset
So when it will finally finish sync, then I theoretically just have to start new App on Truenas with db pointed where it was last time and main data folder to folder data?
What if I don't remember db and redis passwords? I believe I found them on system but in encoded string.
I installed it to test it and liked it so much I just started using it, now I just don't remember if or what password did I set.
I guess I will try it in couple hours, still a lot uploaded data to move.
Redis, isn't a problem, the password isn't really important
For postgres, you can reset it as you have access to it with TrueNSA
but aren't they in the yaml file?
In theory yes, maybe there will be some migration isues, I can't find which version of Immich corrsponds to TrueNAS 1.8.0
I found on Trunas file users_config.yaml, in it there was config for all apps, but password is hash'ed
Can you check inside Apps -> Settings -> Manage container images and find the different versions of Immich you have?
app_version: v1.134.0
Oh ok, that's fine then, everything should work
you will have to change the password of the database though
(I can guide with that afterwards)
Btw, you don't necesseraly need to rsync encoded-video and thumbs, Immich can recreate them later
if you want to make things faster
to reinstall
ok, thank you very much, I thoughts I will have to start from scratch
I'm doing now the uploads,last one on list to do
but also the biggest one
Yeah that makes sense
After that, could you share the content of the new "data" dataset? Just to be 100%
Actually it is folder in Apps dataset.

but still working on uploads
You do that over smb? Or you're using rsync?
and folder above

rsync
Ok, I believe I have now migrated to new folder structure. I believe now I need re install de app pointing to those folders. But what to do with password for db?
You don't have it?
Oh right yeah, I forgot that you deleted the app
So, you start Immich again and set a password for the DB
The app should still be able to start, once it has, from within truenas termunal, you'll have to do that
sudo docker exec -it ix-immich-pgvecto-1 psql -U immich -d postgres -c "ALTER USER immich WITH PASSWORD 'new_secure_password';"
replace new…password with what you set in the configInstalling right now, I just set Some Password for db and redis, used mount /mnt/tank/Apps/immich/data for folders (new location after migration) and /mnt/tank/Apps/immich/db for database folder (the original one existing in previous install) is that correct so far?
Looks like it, yes
The app might not show it has started tho (as it can't connect to the db)
Check in the worflows if the pgvector container has started
container pgvecto-1 seems to be started, however server-1 keeps restarting
I believe error is: Failed to read (/data/backups/.immich): Error: ENOENT: no such file or directory, open '/data/backups/.immich'
Yeah, you can already change the password with the postgressql command
Oh yeah, so you might need to create a backups folder (mkdir backups) and add a .immich file (touch .immich) as it wasn't there berfore, that should fix it
It seems to work now, both locally and remotely, thank you veeeery much.
Good to know!
Note the db password somewhere in case it happens again 😄 (Redis password is not necessary as it lives in RAM and doesn't hold important data)
Will do this time, now I'm making folders with config, guides and links I used while setting things up.
You can /close if the issue is solved btw
This thread has been closed. To re-open, use the button below.