-
Notifications
You must be signed in to change notification settings - Fork 32
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
cosine_ops does not exist for access method vectors #259
Comments
You have to use |
Thanks, that worked! How do I ensure the PG version is correct moving forward if there are release changes? |
That's annoying, took me hours to figure out how to build from source on OpenSUSE (never used Rust before). Will do some testings tomorrow with the correct release this time rather than a |
I too had fun with that barrier |
I think you have to read Immich release notes which will say when to update your postgres container. |
ERROR [TypeOrmModule] Unable to connect to the database. Retrying (9)... |
Are you using the |
I downgraded to v0.1.11 and now have a new error:
Edit: just noticed this: immich-app/immich#5731 (comment) I guess I'll try to clean things up as much as possible and restart from scratch. So far without success.
|
Fixed it through tensorchord/pgvecto.rs#199. |
Where do I put this info? |
|
I upgraded to the latest release of immich and now it will not connect to my Postgres 14 container (tensorchord/pgvecto-rs:pg14-latest).
The Immich logs are filled with the following error message that keeps repeating.
ERROR [TypeOrmModule] Unable to connect to the database. Retrying (8)...
QueryFailedError: operator class "cosine_ops" does not exist for access method "vectors"
at PostgresQueryRunner.query (/app/immich/server/node_modules/typeorm/driver/postgres/PostgresQueryRunner.js:211:19)
at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
at async AddCLIPEmbeddingIndex1700713994428.up (/app/immich/server/dist/infra/migrations/1700713994428-AddCLIPEmbeddingIndex.js:9:9)
at async MigrationExecutor.executePendingMigrations (/app/immich/server/node_modules/typeorm/migration/MigrationExecutor.js:225:17)
at async DataSource.runMigrations (/app/immich/server/node_modules/typeorm/data-source/DataSource.js:260:35)
at async DataSource.initialize (/app/immich/server/node_modules/typeorm/data-source/DataSource.js:148:17)
The text was updated successfully, but these errors were encountered: