I
Immichβ€’3y ago
G3ck0

Immich seems to think some assets are duplicates?

Does anyone have an idea why immich thinks that more than 50% of my files are duplicates? When I select the Backup Albums it says that my Recent album has 5488 assets. Then it claims that there are 2341 unique assets which I know is not true. Thus preventing 3k files from backing up. The files have unique names and are mostly photos taken with the camera of the phone.
34 Replies
Alex Tran
Alex Tranβ€’3y ago
is this on iOS or Android?
G3ck0
G3ck0OPβ€’3y ago
Android
Alex Tran
Alex Tranβ€’3y ago
Can you try to uninstall and reinstall the app?
G3ck0
G3ck0OPβ€’3y ago
Sure brb Huh that did it Thanks Alex! I guess you know exactly why it happens then πŸ™‚ anything i could do to prevent it from seeing them as duplicate in the future?
Alex Tran
Alex Tranβ€’3y ago
Hmm so something has gone wrong with the indexing and saving to the local database We are in the process of refactor some of that indexing part, so this won't be applied in the near future.
G3ck0
G3ck0OPβ€’3y ago
Sounds good πŸ‘ Good job on the project - it's amazing
Alex Tran
Alex Tranβ€’3y ago
No problem! Enjoy πŸ™‚
G3ck0
G3ck0OPβ€’3y ago
Ok so there seems to be something else going on While it initially recognized that there's 5488 unique assets As it progress through the upload process, the unique asset counter goes down Along with the Remainder counter But the backup counter remains unchanged Weird eh
Alex Tran
Alex Tranβ€’3y ago
Did you already have upload some of the assets that potentially in the album on the phone through the web or through CLI?
G3ck0
G3ck0OPβ€’3y ago
Yes, they were uploaded through the app before
Alex Tran
Alex Tranβ€’3y ago
It is also possible to check the server and microservices container log to see if there were any error
G3ck0
G3ck0OPβ€’3y ago
I had uploaded some older photos through CLI but those aren't on the phone I'll check the server logs now
Alex Tran
Alex Tranβ€’3y ago
okay
G3ck0
G3ck0OPβ€’3y ago
The only error in the app log is a HiveError: Box Not Found I'll see the server side
Alex Tran
Alex Tranβ€’3y ago
Yeah the server side would be more applicable in this case
G3ck0
G3ck0OPβ€’3y ago
I run it in Docker on Unraid There are no errors in the log Any other place I could check?
Alex Tran
Alex Tranβ€’3y ago
Is this the all in one image?
G3ck0
G3ck0OPβ€’3y ago
You mean as in db+immich in a single image?
Alex Tran
Alex Tranβ€’3y ago
How do you install Immich on unraid, is it through the community image or through Docker-compose?
G3ck0
G3ck0OPβ€’3y ago
Community image
Alex Tran
Alex Tranβ€’3y ago
Hmm then I am not sure Can you show the screenshot of the log?
G3ck0
G3ck0OPβ€’3y ago
No description
Alex Tran
Alex Tranβ€’3y ago
No noticeable error about upload, just weird error about Redis client which I don’t know why Do you mind create a new instance and try again so see if you have the same issue? I suspect there are duplicated from the already uploaded asset before
G3ck0
G3ck0OPβ€’3y ago
That's it, I'm trying to resolve the Redis error but I can't quite figure it out yet.
Alex Tran
Alex Tranβ€’3y ago
I suggest you follow this guide for better support https://immich.app/docs/install/unraid
Unraid | Immich
Immich can easily be installed and updated on Unraid via:
Alex Tran
Alex Tranβ€’3y ago
Using docker-compose
G3ck0
G3ck0OPβ€’3y ago
docker-compose it is then πŸ™‚ almost there, immich proxy has a port assignment of 2283(same as community, which I stopped), when i try to open it I get ECONNREFUSED any idea? should I completely remove the community image? all good - I was using the wrong DB password. let's see what happens now
Covalent
Covalentβ€’3y ago
I am experiencing something similar as well I'm on android (play store). I have a couple albums selected which should total 157 assets But it only says 97 unique assets I am relatively confident that there are no duplicates I am hesitating moving the entire google photos album over (as a test upload ofc, I realize this app is still in the early phases) until this is sorted out
G3ck0
G3ck0OPβ€’3y ago
No description
G3ck0
G3ck0OPβ€’3y ago
Didn't know they could go negative?! 😁 But at least it looks like everything is backed up properly now on the new instance. I'll try to do an upload through CLI where I'll have some duplicates to see what happens
Alex Tran
Alex Tranβ€’3y ago
negative is a bug that I wanted to fix for so long but still haven't found the root cause yet. Now it is just a cosmetic bug
Covalent
Covalentβ€’3y ago
Do you think that having the negative value is related to my issues of having the incorrect asset count? (Mine does not have a negative value btw, it did on the first install but I wiped and now the total count is just wrong)
Alex Tran
Alex Tranβ€’3y ago
I think it is related on the duplicated/unique asset indexing implementation we are refactoring this part in the next couple release so I hope to resolve this one soon it has been bugging me since forever but I haven't been able to track down the root cause. I myself don't experience it but a lot of other people run into this issue.
athornfam2
athornfam2β€’3y ago
Just adding to that this fixed my issue with Immich as well. Immich though all assets were duplicates and was in a upload loop. MD was iPhone Version 1.53.0 build.93

Did you find this page helpful?