immage "storage configuration" update issue.
Using the Immich App Version: v1.139.4 on truenas I noticed the update info: "The storage configuration you are using is deprecated and will be removed in a future version.". I copied data to the new mentioned location and updated the truenas app configuration.
Started the the Immich App but with no luck:
2025-08-28 10:31:20.434278+00:00microservices worker error: Error: Invalid upgrade path. For more information, see https://immich.app/errors#typeorm-upgrade, stack: Error: Invalid upgrade path. For more information, see https://immich.app/errors#typeorm-upgrade
Due to the fact that i am already using v1.139.4 the Error did not match to the TypeORM Error explanation. Do you have any idea what is happening.
14 Replies
:wave: Hey @ix_trader,
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. :blue_square: 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. :blue_square: 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.Were you on v1.139.4 before moving your data?
There should be a rollback button next to your app info, what are the versions listed there?
(Don't perform a rollback, as it won't work if you haeve hostpath)
The first of my data was with version 1.138.1 with the same result. Than i tried a rollback to 1.132.3 as supposed in the TypeORM error explanation with no success. Then I updated to 139.4 with the deprecated "storage configuration" with was working fine. From version 1.139.4 I have started the second try of moving away form the deprecated "storage configuration" with the same "Error: Invalid upgrade path. " message as before.
But now I am stuck. The new configuration can't start. When I try to change to the deprecated "storage configuration" I am not able to store it because the truenas immich app config dialog thinks that it should not be saved. As you can see in the attached grafik.png.
Your Help is welcome 🙁

Well rollback doesn't work as you have sret up host path (you would have to rollback the datasets themselves to for it to work correctly )
So you're idea to rollback to 1.132.3 was not wrong, but I'm not 100% sure it worked
Do you still have the "original" data of the database?
Rolling back to 1.132.4 and upgrade to 1.139.4 saved my life. The immich server is up again in Version 1.139.4 with the depricated "storage configuration"
But you still have the errors with type orm, right?
Yes! But only if I try to use the new "storage configuration". The depricated is working fine.
Duh?
So now, as it is, Immich works?
Oh well you replied
Can you show me the storage config you use? Is it the one from the screenshot?
Like all ix_volumes ?
Yes this configuration was enabled when upgrading form Version 1.132.3 by the truenas update process to Version 1.139.4
admin@truenas:/mnt/Lexar-NM790/appdata/immich/database-data$ sudo docker image ls |grep immich
ghcr.io/immich-app/postgres 15-vectorchord0.4.3-pgvectors0.2.0 2 days ago 760MB
ghcr.io/immich-app/immich-server v1.139.4 2 days ago 1.72GB
ghcr.io/immich-app/immich-machine-learning v1.139.4 9 days ago 947MB
ghcr.io/immich-app/immich-server v1.138.1 9 days ago 1.78GB
ghcr.io/immich-app/immich-machine-learning v1.138.1 2 weeks ago 947MB
ghcr.io/immich-app/immich-server v1.137.3 3 weeks ago 1.78GB
ghcr.io/immich-app/postgres <none> 5 weeks ago 761MB
ghcr.io/immich-app/immich-machine-learning v1.137.3 6 weeks ago 951MB
ghcr.io/immich-app/postgres 15-vectorchord0.3.0-pgvectors0.2.0 2 months ago 747MB
ghcr.io/immich-app/immich-server v1.134.0 3 months ago 2.13GB
ghcr.io/immich-app/immich-machine-learning v1.134.0 3 months ago 1.04GB
ghcr.io/immich-app/immich-server v1.132.3 4 months ago 2.12GB
ghcr.io/immich-app/immich-machine-learning v1.132.3 4 months ago 927MB
As you can see from my immich docker image history that I worked already with versions that are in the range the https://immich.app/errors#typeorm-upgrade post is recommending for the database upgrade process.
Yeah, you might have made a mistake when switching to the new storage configuration, however, I've work to do for tomorrow, so I won't be able to help before the weekend
AS you're Immich is working right now, it is fine to wait 48hours nothing should break
Yes! You are right! no hurry. But I hope I can update to the new "storage config" before it is to late.
Thank you!
If I don't come back before sunday, you can ping me
And don't worry, I think the deadline on trueNAs side should be the 12th of September, and even after that the migration is possible
Hello again, did you figured out?
Sorry for answering so late. Now I am really stuck.
I tried a second time a rollback from v. 1.139.x To Version.
Name: immich
App Version: v1.132.3
Version: 1.7.44
Now the Start fails with:
Error: corrupted migrations: previously executed migration 1744991379464-AddNotificationsTable is missing
And when I try to update for 1.32.3 to 1.142.1 the update process fails with:
[EFAULT] Failed to execute 'remove_old_storage_migration' migration: Traceback (most recent call last): File "/mnt/.ix-apps/app_configs/immich/versions/1.10.2/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.2/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.
Yeah, so there has been an issue with the migrations at some point
Do you have time at some point so we can troubleshoot/fix it together?
will be easier if I don't have to wait x hours for you to reply
I would already need you to share the dataset structure (old and new) you have as well as how you rsynced everything