Closed raisinbear closed 1 year ago
After faces is merged, Typesense has to reindexes all faces to uodate the information. If you system CPU is on a slower side, it might take a while to do that. We are discussing different solutions to overcome this
I will close this issue as this is expected. Thank you for brining this to our attention again
I'm seeing something similar except my tsdata/db directory is 42GB and I see this additional line in the logs occasionally:
immich_microservices | [Nest] 7 - 08/20/2023, 6:48:44 PM ERROR [TypesenseRepository] Unable to index documents
I'm seeing something similar except my tsdata/db directory is 42GB and I see this additional line in the logs occasionally:
immich_microservices | [Nest] 7 - 08/20/2023, 6:48:44 PM ERROR [TypesenseRepository] Unable to index documents
Saw that line, too, at some point, but was unable to capture it when creating this issue.
@alextran1502 thanks for the info. I’m not worried about speed, rather about all the errors I’m seeing. Surprisingly, completely clearing the typesense data and restarting the stack is very fast and so far I couldn’t find anything not working with the search.
Mine eventually resolved itself (although it happened again after merging more faces). Search seems to be kind of wonky, so maybe there's something to the errors.
Mine eventually resolved itself (although it happened again after merging more faces). Search seems to be kind of wonky, so maybe there's something to the errors.
Yeah, it eventually settles.
Experienced the same thing again and I suppose there is a bug happening: I thought it was coincidence before, but when the errors appear, I have a very good chance of being left with dozens of "new" faces that I am sure could have been matched very well to existing ones - or at least to each other for that matter. Before, I just merged them. Now, I had a look and most of these faces don't even have photos attached to them. The photos these unrecognized faces belong to, conversely, are appropriately categorized under existing (named) faces or at least one of the flood of new ones.
I left mine running overnight and now tsdata is up to 32GB and the website doesn't load for a couple of minutes (503: Not Ready or Lagging).
I left mine running overnight and now tsdata is up to 32GB and the website doesn't load for a couple of minutes (503: Not Ready or Lagging).
Got this, too, now. Did you manage to resolve it or did it return to a working state again by itself?
It kept growing no matter what I did. Then I scanned for missing faces in the admin jobs screen and that knocked it back down to ~6gb
Just putting a note out here as my data also grew from 200mb to 10Gi overnight and still growing. I guess it should be fine once it's done, but I definitely didn't account for that. Probably good to add that somewhere in the documentation, what do you think?
At least fo my specific case, I found a solution. Opened discussion #3861 to get some more opinions 😅
The bug
Hi,
importing more and more images from my photo library, I'm running into some typesense related issues when merging faces to existing ones. For reference, I'm now at 4.5k photos and 56 visible and named faces (don't know how many faces in total, but I think I read something about 2200 somewhere in the output). Sometimes, faces aren't detected and I'd merge them into an existing person. Shortly after, I see something like the lines in the compose output below. Then, line
Request to Node 0 failed due to "ECONNABORTED timeout of 10000ms exceeded"
will repeat endlessly until, eventually, everything is under control again. During that time, the typesense data folder - usually around40 - 70 M
in size - will grow to over2.5 G
(edit: all that additional space is occupied by theraft log
) and the respectivy container occupies a lot of CPU. I got a feeling it's getting worse the more photos / faces are added. To the point where it wouldn't recover today even after 30+ minutes. I then restarted the stack after resetting the typesense data volume and have been careful to not do many merge operations in quick succession. This only happens when merging faces. Hiding / recognizing doesn't seem to be of any concern.The OS that Immich Server is running on
Debian
Version of Immich Server
v.1.74.0
Version of Immich Mobile App
v.1.74.0
Platform with the issue
Your docker-compose.yml content
Your .env content
Reproduction steps
Additional information
No response