Help with error "[Microservices:DatabaseService] Could not run vector reindexing checks."
https://github.com/immich-app/immich/discussions/15401
Hello. I do not really enjoy using discord as it's closed source trash but since it's been over a week without a response to this thread I was wondering if anyone here could help me?
32 Replies
:wave: Hey @User,
Thanks for reaching out to us. Please carefully read this message and follow the recommended actions. 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 ps -a
docs
- Reverse Proxy: https://immich.app/docs/administration/reverse-proxy
- Code Formatting https://support.discord.com/hc/en-us/articles/210298617-Markdown-Text-101-Chat-Formatting-Bold-Italic-Underline#h_01GY0DAKGXDEHE263BCAYEGFJAChecklist
I have...
1. :ballot_box_with_check: verified I'm on the latest release(note that mobile app releases may take some time).
2. :ballot_box_with_check: read applicable release notes.
3. :ballot_box_with_check: reviewed the FAQs for known issues.
4. :ballot_box_with_check: reviewed Github for known issues.
5. :ballot_box_with_check: tried accessing Immich via local ip (without a custom reverse proxy).
6. :ballot_box_with_check: uploaded the relevant information (see below).
7. :ballot_box_with_check: 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)
Information
In order to be able to effectively help you, we need you to provide clear information to show what the problem is. The exact details needed vary per case, but here is a list of things to consider:
- Your docker-compose.yml and .env files.
- Logs from all the containers and their status (see above).
- All the troubleshooting steps you've tried so far.
- Any recent changes you've made to Immich or your system.
- Details about your system (both software/OS and hardware).
- Details about your storage (filesystems, type of disks, output of commands like
fdisk -l
and df -h
).
- The version of the Immich server, mobile app, and other relevant pieces.
- Any other information that you think might be relevant.
Please paste files and logs with proper code formatting, and especially avoid blurry screenshots.
Without the right information we can't work out what the problem is. Help us help you ;)
If this ticket can be closed you can use the /close
command, and re-open it later if needed.GitHub
immich-app immich ยท Discussions
Explore the GitHub Discussions forum for immich-app immich. Discuss code, ask questions & collaborate with the developer community.
FAQ | Immich
User
GitHub
Issues ยท immich-app/immich
High performance self-hosted photo and video management solution. - Issues ยท immich-app/immich
Successfully submitted, a tag has been added to inform contributors. :white_check_mark:
Hmm, it seems something wrong happened with the index. You can try running these SQL commands:
It looks like it throws a similar error, I don't think it ran the first command successfully
Did you paste it all in one go? If yes, run the commands one at a time
The same error occured after the first command. Do i continue with the rest?
Which pgvecto.rs version are you running?
https://github.com/tensorchord/pgvecto.rs/issues/409#issuecomment-1978161420 this dev suggests dropping the index by deleting the files on disk ๐
This is from my docker compose yaml. I am assuming this is the correct information?
image: docker.io/tensorchord/pgvecto-rs:pg14-v0.2.0@sha256:90724186f0a3517cf6914295b5ab410db9ce23190a2d9d0b9dd6463e3fa298f0
Like, getting rid of all my photos ?
No no
the indices are stored in a specific folder and deleting the content of the folder is the same as dropping the index
Oh okay, i see. Just checked the link. I'll back mv the folder and restart and see where that goes
I think it might be worth to try updating that to 0.3.0
tbc, you do have backups right?
Before we end up destroying something ๐
I have a backup but it's a couple months outdated + I have not validated it yet since it was only an rsync to an external drive that I currently have unplugged. Let me double check the data is there and looks correct and get back to you
Yeah definitely make a backup before continuing
(and you should really have a regular automated backup in place tbh)
I've been in the process of converting my stack to replicatable VMs so I can have a better backup solution than my previous which was a weekly systemd timer that ran an rsync to a drive plugged into the computer. My current plan is to have a 2nd PC at a friends house that it backs up to now. Waiting on my new drive to come in for that and then that problem will be solved. ๐
nice ๐
for this effort, a database dump should suffice
Just did the database dump, should I try updating to 0.3.0 first or moving pgdata/pg_vectors to a temp directory and restarting?
I think there's a good chance you may end up needing both together
So up to you :P
Got it, lol
I tried moving the pg_vectors and starting it up and so far it looks to be working fine? What would the impact of upgrading to 0.3.0 be, and should I still try it?
If it ain't broken don't fix it ;)
Be sure to still:
Is this a problem at all? It still seems to be properly loading images on the webpage
Does
DROP INDEX IF EXISTS clip_index;
work now?
CLIP is for the smart search, so it shouldn't hinder everything elseYes it did
and can you now create it again? ๐
Looks like it!
After that is done I'm not sure smart search will work yet, feel free to try first
I mean, it looks like it is

Excellent ๐
Thank you, mertalev and bo0tzz so much for your help, I thought my immich was going to be dead for a little there lol
You should have the automated backups, unless you disabled it
so worst case should be a day or two data loss