-
-
Notifications
You must be signed in to change notification settings - Fork 3.1k
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
People's thumbnails don't get regenerated from the job that is supposed to regenerate them #8982
Comments
I think we moved this to the face-detection job, correct? @mertalev |
The facial recognition job just queues person thumbnail generation. The thumbnail generation itself is the same as always and queued the same way here when clicking All or Missing. All person thumbnails are generated in the thumbnail generation queue. @NyaomiDEV Can you elaborate on why you think it isn't regenerating person thumbnails? Just deleting the files won't re-generate them when running Missing, if this is what you tested. That queues assets based on data in the database, not by checking each asset. All would re-generate everything, so that should indeed re-generate a deleted thumbnail. |
@mertalev In my testing I pressed "all" and it didn't regenerate any of them. Since I deleted the old thumbnails manually, if there was at least one thumbnail to be generated I would've catched that, but there was nothing at all. In the night time (EU here) I scheduled a facial recognition job to redo everything from scratch, though I should still check the results. Okay so I checked and re-running facial detection and recognition for all files actually mitigates this issue; point is I was lucky to never have used the people feature so I didn't assign any names or merged anyone yet. I can't imagine the stress of doing this when you've already tracked that sort of stuff. |
I don't think we mention anywhere that facial thumbnails can be generated with different extensions. In the release note, it was about the preview (small) and the thumbnail (large) for an asset |
True that, however this means that I shouldn't have deleted all the Jpegs... that's my fault. However, I'd love to ask for this feature for the sake of consolidation. This still doesn't mean that the bug isn't there, as they didn't get regenerated when I ran the thumbnails job. |
All not regenerating the thumbnails is weird. A few things come to mind:
Could you check the logs in the microservices container to see if there are any errors during thumbnail generation? Also yes, the format change should ideally apply to person thumbnails as well. It can just use the thumbnail setting for this. |
Sadly I had to bring down and up the server again, and in doing so I missed a bunch of logs, as I am not keeping them on disk. The only thing I remember about the microservices container is that it sometimes timed out, so I brought down the number of concurrent tasks, thinking Postgres couldn't probably handle that traffic. I rebuilt the thumbnail cache since, and still, no thumbnails; also, if that was the case I would get at least some thumbnails, whereas all my other ones would've been spotty. Of course, I could just re-delete all the Jpegs again and try it out yet again, but I'd kinda want to not reschedule another face recognition task later tonight. |
That's fine! I'll see if I can reproduce this. If the person thumbnails do get regenerated under normal circumstances, then it means the jobs are failing in your case. |
Just wanted to chime in saying that I have this very same issue for a few weeks now, I just didn't get around to creating an issue. Had to delete thumbnails when my SSD filled up and services stopped working, and ever since all person thumnails are gone. Thumbnails can be "restored" by selecting a new featured photo, but that would mean doing that for hundreds of persons. Since I deleted all thumbnails, I also definitely ran the "All" job and not just "Missing". Sadly I've made heavy use of the persons-feature, and a lot of work would be lost by re-running face recognition for all assets. Let me know if I can help in any way! |
I tested and the person thumbnails really are queued and generated when running thumbnail generation on all assets. Setting the logging to verbose and running All shows |
Yeah, but also they show up as missing, so why is the server not regenerating them? The thumbnail cache should be safe to delete, for all the reasons imaginable. It's not actually important data. As it is, closing the issue without knowing why specifically this happens is a bit counterproductive. If at least we know exactly why that happens, someone could make a MR working around or fixing the main issue. |
If you say thumbnail generation is working correctly and the database is simply in a bad state after the external deletion, maybe there should be a way to repair the missing assets somehow? So that afterwards the thumbnails can be re-generated normally :) |
The jobs are most likely failing for the reasons above, which we're already aware of. Sharing the full verbose logs after running All would be helpful to see if the issue is distinct from those. |
I'd like to avoid doing a full rescan until #8760 is fixed, otherwise I might end up with a full SSD again. But once that is the case I'd be happy to provide logs! |
That should be fixed via #9126, but you're right that it hasn't made it into a release yet. |
Not fixed in v1.103.1, I regenerated ALL thumbnails and still doesn't have people faces showing up :( |
After digging through the log, there's only one message that could correspond to this issue :
Should I open a new issue? |
That's an interesting log. Encountering that error would prevent any |
Using the |
Exactly! I've seen this error only ONE time in the log but ~ hundred people don't have a thumbnail...
Yes I'll try, thank you! Do I have to regenerate all thumbnails or only missing ones would do it? |
I think it'd have to be all thumbnails for the person thumbnails to get regenerated. |
Just wanted to confirm that after finally having enough disk space to regenerate thumbnails again, once the job completed all person thumbnails were restored! That was on 1.105.1. Thanks for the fix! |
The bug
This is a lie.
The OS that Immich Server is running on
Arch
Version of Immich Server
v1.102.3
Version of Immich Mobile App
Not applicable
Platform with the issue
Your docker-compose.yml content
Your .env content
Reproduction steps
Relevant log output
No response
Additional information
No response
The text was updated successfully, but these errors were encountered: