Hi all, trying to update from 24.04.2.5 to 24.10 and having one major issue - my Immich database doesn’t survive the migration. Upon starting 24.10, the updated Immich app spins up as if it’s a brand new instance with an empty db. On the 24.04 app, I’m using ixVolumes for the postgres data and backup storage; host paths for everything else. All of my data on the host paths has been preserved so no issue there.
From 24.04
Name:
immich
App Version:
1.119.1
Chart Version:
4.0.23
Last Updated:
N/A
Source:
immich.appgithub.com/truenas/charts/tree/master/community/immichgithub.com/immich-app/immich
Developer:
N/A
Catalog:
TrueNAS
Train:
community
I was able to dump the postgres db from the kubernetes container on 24.04 but it fails to restore on 24.10 docker postgres due to a data issue I believe. I’ve started reaching out for support from the Immich community regarding this issue to see if a manual migration is possible.
For my manual migration attempts I’m following these instructions which are based on immich’s recommended backup + restore procedures.
My restore begins working but fails trying to copy Smart Search data
COPY 0
ERROR: pgvecto.rs: Bad literal.
INFORMATION: hint = Bad sequence.
CONTEXT: COPY smart_search, line 25928, column embedding: "[-0.012000048, -0.026440227, -0.020461267, -0.012008893, 0.0068139997, 0.002615924, 0.017675625, 0.0..."
I would appreciate any guidance or pointers for figuring out why TrueNAS is unable to migrate this postgres db automatically for me. TrueNAS reports successful migration in app_migrations.log.
$ sudo cat /var/log/app_migrations.log
[2025/04/03 11:51:30] (DEBUG) app_migrations.migrate():250 - Migration details for 'system-update--2025-04-03_15:42:47' backup on 'apps_vms' pool
[2025/04/03 11:51:30] (DEBUG) app_migrations.migrate():253 - 'immich' app migrated successfully
netdata permissions look good in .ix-apps
on 24.10 - uid is 999. Permissions container reports
2025-04-03 15:51:17.684375+00:00=== Applying configuration on volume with identifier [pgvecto_postgres_data] ===
2025-04-03 15:51:17.684622+00:00Current Ownership and Permissions on [/mnt/permission/pgvecto_postgres_data]:
2025-04-03 15:51:17.684655+00:00Ownership: wanted [999:999], got [0:0].
2025-04-03 15:51:17.684680+00:00Permissions: wanted [None], got [0755].
2025-04-03 15:51:17.684721+00:00---
2025-04-03 15:51:17.684745+00:00Ownership is incorrect. Fixing...
2025-04-03 15:51:17.684769+00:00Changing ownership to 999:999 on: [/mnt/permission/pgvecto_postgres_data]
2025-04-03 15:51:17.684793+00:00Ownership after changes:
2025-04-03 15:51:17.684817+00:00Ownership: [999:999]
2025-04-03 15:51:17.684851+00:00Skipping permissions check, chmod is falsy
2025-04-03 15:51:17.684875+00:00Time taken: 0.42ms
2025-04-03 15:51:17.684899+00:00=== Finished applying configuration on volume with identifier [pgvecto_postgres_data] ==
These are what my datasets look like in 24.04 Vs 24.10
24.04
Interestingly ix-apps is not actually mounted on the system but appears here in the dataset list.
24.10
My next attempt at salvaging this will be using the Heavy scripts to try and update immich on 24.04. Trying anything to get my db in a state where I can just restore it manually on 24.10.
Thanks in advance for any assistance or direction! I’m really stumped here