You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
After I updated Postgres, the immich cannot start up and output following error in log:
Nest] 281 - 01/01/2025, 12:22:45 AM WARN [Api:DatabaseService] Could not run vector reindexing checks. If the extension was updated, please restart the Postgres instance.
QueryFailedError: pgvecto.rs: The extension is upgraded so all index files are outdated.
ADVICE: Delete all index files. Please read https://docs.pgvecto.rs/admin/upgrading.html
at PostgresQueryRunner.query (/app/immich/server/node_modules/typeorm/driver/postgres/PostgresQueryRunner.js:219:19)
at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
at async DataSource.query (/app/immich/server/node_modules/typeorm/data-source/DataSource.js:350:20)
at async DatabaseRepository.shouldReindex (/app/immich/server/dist/repositories/database.repository.js:136:25)
at async DatabaseService.checkReindexing (/app/immich/server/dist/services/database.service.js:144:17)
at async /app/immich/server/dist/services/database.service.js:93:13
at async /app/immich/server/dist/repositories/database.repository.js:197:23 {
query: 'SELECT idx_status FROM pg_vector_index_stat WHERE indexname = $1',
parameters: [ 'clip_index' ],
driverError: error: pgvecto.rs: The extension is upgraded so all index files are outdated.
ADVICE: Delete all index files. Please read https://docs.pgvecto.rs/admin/upgrading.html
at /app/immich/server/node_modules/pg/lib/client.js:535:17
at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
at async PostgresQueryRunner.query (/app/immich/server/node_modules/typeorm/driver/postgres/PostgresQueryRunner.js:184:25)
at async DataSource.query (/app/immich/server/node_modules/typeorm/data-source/DataSource.js:350:20)
at async DatabaseRepository.shouldReindex (/app/immich/server/dist/repositories/database.repository.js:136:25)
at async DatabaseService.checkReindexing (/app/immich/server/dist/services/database.service.js:144:17)
at async /app/immich/server/dist/services/database.service.js:93:13
at async /app/immich/server/dist/repositories/database.repository.js:197:23 {
length: 234,
severity: 'ERROR',
code: 'XX000',
detail: undefined,
hint: undefined,
position: undefined,
internalPosition: undefined,
internalQuery: undefined,
where: undefined,
schema: undefined,
table: undefined,
column: undefined,
dataType: undefined,
constraint: undefined,
file: 'error.rs',
line: '125',
routine: 'vectors::error::check_client'
},
length: 234,
severity: 'ERROR',
code: 'XX000',
detail: undefined,
hint: undefined,
position: undefined,
internalPosition: undefined,
internalQuery: undefined,
where: undefined,
schema: undefined,
table: undefined,
column: undefined,
dataType: undefined,
constraint: undefined,
file: 'error.rs',
line: '125',
routine: 'vectors::error::check_client'
}
api worker exited with code 1
I have also tried to downgrade my db back to 0.2.1, but there's another error: The database currently has pgvecto.rs 0.3.0 activated, but the Postgres instance only has 0.2.1 available.
Currently I have two solutions, but the pgvecto.rs docs seems doesn't working so I have no detailed idea to solve the problem
(1) Use the older version db from the immich daily backup and downgrade the postgres to 0.2.0
(2) Try to clean the index file and run machine learning again
I think I need some help from the community, who can provide some idea is greatly appreciated
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
After I updated Postgres, the immich cannot start up and output following error in log:
I have also tried to downgrade my db back to 0.2.1, but there's another error:
The database currently has pgvecto.rs 0.3.0 activated, but the Postgres instance only has 0.2.1 available.
Currently I have two solutions, but the pgvecto.rs docs seems doesn't working so I have no detailed idea to solve the problem
(1) Use the older version db from the immich daily backup and downgrade the postgres to 0.2.0
(2) Try to clean the index file and run machine learning again
I think I need some help from the community, who can provide some idea is greatly appreciated
Beta Was this translation helpful? Give feedback.
All reactions