Recently upgraded my immich versions - immich now thinks it's a fresh install
1. I edited the
DB_DATA_LOCATION
DB_DATA_LOCATION
and moved from
/opt/docker/immich_postgres
/opt/docker/immich_postgres
to
opt/docker/appdata/immich_postgres
opt/docker/appdata/immich_postgres
2. Done a docker pull to get the latest version
Starting microservices worker[Nest] 7 - 09/20/2025, 1:58:36 PM LOG [Microservices:EventRepository] Initialized websocket server[Nest] 7 - 09/20/2025, 1:58:37 PM WARN [Microservices:DatabaseService] DEPRECATION WARNING: The pgvecto.rs extension is deprecated and support for it will be removed very soon. See https://immich.app/docs/install/upgrading#migrating-to-vectorchord in order to switch to the VectorChord extension instead.[Nest] 7 - 09/20/2025, 1:58:37 PM WARN [Microservices:DatabaseRepository] Migration "1744910873969-InitialMigration" failed[Nest] 7 - 09/20/2025, 1:58:37 PM ERROR [Microservices:DatabaseRepository] Migrations failed: Error: Invalid upgrade path. For more information, see https://immich.app/errors#typeorm-upgradeError: Invalid upgrade path. For more information, see https://immich.app/errors#typeorm-upgrade at Object.up (/usr/src/app/server/dist/schema/migrations/1744910873969-InitialMigration.js:19:19)
Starting microservices worker[Nest] 7 - 09/20/2025, 1:58:36 PM LOG [Microservices:EventRepository] Initialized websocket server[Nest] 7 - 09/20/2025, 1:58:37 PM WARN [Microservices:DatabaseService] DEPRECATION WARNING: The pgvecto.rs extension is deprecated and support for it will be removed very soon. See https://immich.app/docs/install/upgrading#migrating-to-vectorchord in order to switch to the VectorChord extension instead.[Nest] 7 - 09/20/2025, 1:58:37 PM WARN [Microservices:DatabaseRepository] Migration "1744910873969-InitialMigration" failed[Nest] 7 - 09/20/2025, 1:58:37 PM ERROR [Microservices:DatabaseRepository] Migrations failed: Error: Invalid upgrade path. For more information, see https://immich.app/errors#typeorm-upgradeError: Invalid upgrade path. For more information, see https://immich.app/errors#typeorm-upgrade at Object.up (/usr/src/app/server/dist/schema/migrations/1744910873969-InitialMigration.js:19:19)