Skip to content

WARN [Microservices:DatabaseService] Could not run vector reindexing checks. If the extension was updated, please restart the Postgres instance. #15401

Closed Answered by Handrail9
Handrail9 asked this question in Q&A
Discussion options

You must be logged in to vote

@YowFung Got a solution that works for me from the discord with the help of Mraedis, mertalev and bo0tzz.

  1. Stop your Immich containers
  2. Locate your postgres volume (Should be specified in your .env file), and move ./postgres/pg_vectors somewhere outside of immich.
  3. Start immich
  4. bash into your postgres container, log in and run
    DROP INDEX IF EXISTS clip_index;
    SET vectors.pgvector_compatibility=on;

CREATE INDEX clip_index ON smart_search
USING hnsw (embedding vector_cosine_ops)
WITH (ef_construction = 300, m = 16);
5. Wait a couple minutes and you should be good IF YOU HAVE THE EXACT SAME ERROR I DID
Good luck :)

Replies: 2 comments 2 replies

Comment options

You must be logged in to vote
2 replies
@Handrail9
Comment options

@Handrail9
Comment options

Answer selected by Handrail9
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants