-
Notifications
You must be signed in to change notification settings - Fork 5
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
Step 9: Counts down all the groups without displaying any photos #20
Comments
Please have a look at your browser's developer tools (and the Console section there). The behavior you see should only happen if you e.g. have a group of duplicate assets pasted during setup, but some of those have been removed intermittently resulting in a group with just a single asset. |
That sounds like I should probably re-run the dups.json process? (still finishing up my issue, but I suspect you're correct) |
You could try rerunning dupes. Only you know whether assets were deleted since the last run! If you didn't then this could be a bug, or a breaking change in Immich's API or an issue with your setup. |
I don't think I manually deleted any, but my suspicion is changing from the old file structure to the new one (Splitting generated content into a separate folder). I'm re-running dupes.db/json right now, and I'll update later. |
I don't know whether you are a developer, but what you see is a side-effect of this code (also the immich-duplicates/src/components/DuplicateGroup.vue Lines 260 to 288 in 900cda2
The idea is this per duplicate group (set of duplicate assets):
|
Thank you for that, that's a good explanation. I created a new dupes.json, around 3,500 groups, and I was able to do 1 comparison between 5 photos and choose the highest quality photo, then it immediately starts counting down, probably 100 per second before I stop it. I'm not sure what happened, I'm getting a lot of asset.read and person.read access errors. I'll have some time tomorrow to dig into this again. |
Just a guess: Do you have multiple user accounts in Immich and your API key is for a different user than the one with the 3,5k dupes? |
Please |
You're correct, I do have more than one user and while I was pretty sure I had the user IDs correct, I went ahead and created an API key for my wife's account and pasted it in. It did actually pull up a duplicate group for me and when I clicked Keep Best, it had a 400 error:
So I'm pretty sure I had the right API key. Let me pull the latest iamge and run it real quick. |
Ah, wonderful. Please |
The JSON file does not contain the term |
Yes, "preview" should not be included in the file. The file contain UUIDs only. You should also run the duplicate detection not for all thumbnails but only the ones belonging to the user account you created the API key for (by specifying the thumbnail subdirectory). This should get rid of any asset load errors that are caused by the API key not matching the user account that owns the asset. |
I've confirmed my user ID below matches a photo I recently uploaded from my account, this is the dupes.db process I ran:
|
I did a dump of my db so I can just search for some of these UUIDs that are failing in the console. The UUIDs that are failing on both the /asset and the /person API don't seem to exist in my database.... So I'm confused about that. A lot of UUIDs will return a "400 Bad Request" on /asset and return 304 on the /person API. I guess they are just thumbnails of people? |
Hm, I'm not sure why you would have thumbnails for assets that do not exist. You could have a look at the respective thumbnail JPEGs (potentially appending |
That's a good idea. I may just figure out the best way to regenerate thumbs. I do have two thumbs directories, from before the migration I mentioned a few posts above. I ran the migration in Immich through the Admin Jobs tab, but there are still a ton of files scattered around. Immich seems to work just fine, though.
|
This is how it looks on my machine. Quite different!
|
Yup... I'm going to attempt to fix this, then revisit my dupe detection! |
Closing this as no feedback was received. |
clicked enter while not in the text box and it submitted... hold on let me type something up
Hey agross, I've been trying to get this to work for a couple of weeks now (since the API changed) and I've had a small success today but also I'm getting some errors in step 9. I have over 3000 duplicates (thanks Google Takeout).
My issue is that when I paste dupes.json into the text box and click OK, the Groups number very quickly runs down to zero. This is an example of an error message in the network tab in the browser console.
changing out the UUID for a bunch of zeros
GET http:// LAN IP Address:8081/api/asset/00000000-0000-0000-0000-562a40c9bd70
Then the next line says something like
I've also seen some
no person.read access
errors, too.Somehow, I was able to see 1 duplicate and make a decision on which one to keep, but only 1 out of the over 3000.
Thanks!
The text was updated successfully, but these errors were encountered: