Update Error TrueNas (remove old storage migration)?
I dont know what to do:
[EFAULT] Failed to execute 'remove_old_storage_migration' migration: Traceback (most recent call last): File "/mnt/.ix-apps/app_configs/immich/versions/1.10.12/migrations/remove_old_storage_migration", line 26, in print(yaml.dump(migrate(yaml.safe_load(f.read())))) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/mnt/.ix-apps/app_configs/immich/versions/1.10.12/migrations/remove_old_storage_migration", line 10, in migrate raise Exception( Exception: Cannot remove old storage config while it is still in use. Please migrate to the new storage config first before upgrading.
Thats what i get when trying to upgrade in TrueNas
21 Replies
:wave: Hey @Alex,
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. :blue_square: read applicable release notes.
3. :blue_square: reviewed the FAQs for known issues.
4. :blue_square: reviewed Github for known issues.
5. :ballot_box_with_check: tried accessing Immich via local ip (without a custom reverse proxy).
6. :blue_square: uploaded the relevant information (see below).
7. :blue_square: 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.Cant i just deinstall and reinstall the App via HexOS? And will that keep the Settings...?
We recommend reaching out to hexos team for assistance with that product
eventhough its just truenas?
Is it just truenas? You said you want to install it through hexos 🙂
If it’s just truenas we would recommend using docker compose to deploy per our docs
im mildly confused im not that deep into docker and TrueNas are there instructions
i mean i have ssh into truenas and im in docker images list, is that the right place to start?
28635913dc8c ghcr.io/immich-app/immich-server:v1.141.1 "tini -- /bin/bash -…" 37 minutes ago Exited (129) 24 seconds ago ix-immich-server-1
967c5b91db66 ghcr.io/immich-app/postgres:15-vectorchord0.4.3-pgvectors0.2.0 "/usr/local/bin/immi…" 37 minutes ago Up 37 minutes (healthy) 5432/tcp ix-immich-pgvecto-1
59b17a7189f3 ghcr.io/immich-app/immich-machine-learning:v1.141.1 "tini -- python -m i…" 37 minutes ago Up 37 minutes (healthy) ix-immich-machine-learning-1
looks fine to me
where are those?
You should be able to just update through TrueNAS
If you're Immich app is above 1.132.3, this should work
I tried

is this the only solution that i can try
Yes, that's what I meant "through" TrueNAS
You have to do that
if i left it as it is would that corrupt...??
What do you mean?
No changing the storage?
You won't be able to update, and if you don't change the location you'll "loose" some data
Im just really scared to do a step wrong or miss something while migrating as im really new to TrueNas ...
The commands in the guide are only copying stuff, if there is something unclear you can ask me, I can walk you though all the steps
What's your current Immich version?
Would it be considered impolite if I requested you to help me on Friday, given my work commitments and limited availability of time until then? Id be very grateful
That should be ok, I might not answer directly but I'll reply
@alx768, I updated my immich truenas literally yesterday, what I did, was install a new instance after that stopped, remove all content in pgData, then rsync all folders from the previous instances pgData goes to the pgData instance, and all others inside data.
Start the instance, done
remove all content in pgData??? I wouldn't recommend removing anything before making sure it's working, even though for pgData, immich should have made backups of it (depending of your Version) And if you removed the database how did you copy it afterwards?
I mean in the new instance of immich the totally new dataset the new version I stopped, then remove the pgData content (this is the new immich instance) your old pgData will be in the old immich dataset instance, you rsync the old dataset to the new one, but the new pgData have to be empty, in order for it to work.