Issue with connection to psql "pgvecto-rs:pg15-v0.2.0"
I'm currently trying to setup Immich on docker in a debian server.
I have redis and psql15 with vector 0.2.0 on different containers in the same machine.
I've set up the vector extension and gave the immich user superuser.
Now, when i start the immich contaienr i get a loop with:
Checking the postgresql i can see the extension there, but its called "vectors" instead of "vector"
I've been googling this for a while but all the results just mention the vector extension installation, that i already have.
Is this a known issue?
Is there a known way to fix it?
16 Replies
:wave: Hey @SUB0PT1MAL,
Thanks for reaching out to us. Please follow the recommended actions below; this will help us be more effective in our support effort and leave more time for building Immich :immich:.
References
- Container Logs:
docker compose logs
docs
- Container Status: docker compose ps
docs
- Reverse Proxy: https://immich.app/docs/administration/reverse-proxy
Checklist
1. :ballot_box_with_check: I have verified I'm on the latest release(note that mobile app releases may take some time).
2. :ballot_box_with_check: I have read applicable release notes.
3. :ballot_box_with_check: I have reviewed the FAQs for known issues.
4. :ballot_box_with_check: I have reviewed Github for known issues.
5. :ballot_box_with_check: I have tried accessing Immich via local ip (without a custom reverse proxy).
6. :ballot_box_with_check: I have uploaded the relevant logs, docker compose, and .env files, making sure to use code formatting.
7. :ballot_box_with_check: I have tried an incognito window, disabled extensions, cleared mobile app cache, logged out and back in, different browsers, etc. as applicable
(an item can be marked as "complete" by reacting with the appropriate number)
If this ticket can be closed you can use the /close
command, and re-open it later if needed.Successfully submitted, a tag has been added to inform contributors. :white_check_mark:
The right extension is
vectors
, not vector
. Are you sure you only have that installed and not vector
?yes,
also, if i try to run either "CREATE EXTENSION vectors;" or "CREATE EXTENSION vector;" it says it already exists

This comes up if i search for files containing "vector"
Try
DROP EXTENSION vector;
i did several times, Immich recreates it as soon as it gets started or the next time it loops if left running when performing the DROP
I just did it again, same result
Could you start with a fresh clean DB? This isn’t making any sense
Sure, but this is a brand new db created for immich.
Give me a minute
can you post your docker-compose and .env? how did you prepare your database?
I decided to delete the vector index before nuking the db, and would you believe it, it now works
I guess that deleting the extension and schema does not delete the indexes?
anyhow, issue solved.
Huh, that’s interesting. Glad you got it working!
Thanks to you!!
No problem!
hi ! I've got the exact same problem. How can I delete the vector index ?
Sorry, pb fixed, iI was using the wrong psql image