Unrealmaster
IImmich
•Created by Unrealmaster on 9/17/2023 in #help-desk-support
Import CLI Dedupe Logic Seems Broken
Hey,
While batch importing a bunch of old vacation photos I noticed some wonkiness with the CLI import tool. Running the reccomened:
sudo docker run -it --rm -v "$(pwd)":/import --network=photo-net ghcr.io/immich-app/immich-cli:latest upload --key "$myKey" --server "$myServer"
I managed to import 1269 assets. However, rerruning the same coomand on the same folder yields:
It's always 218 assets that it thinks are new, no matter how many times the import runs, there are no error codes that I can see. Also worth note is that the immich service backend seems to correctly dedupe as I don't get a bunch of replicas.
Looking through the progress bar I pick up one of the photos: IMG_20160902_105100.jpg, If I go to my immich instantce and search for m:IMG_20160902_105100.jpg
the image shows up, if I go to the immich instance and try and re-upload IMG_20160902_105100.jpg
it says skipped
( expectedly ), but the CLI does not dedupe it.
Whats even more strange, is that if I go to my immich instnace and delete IMG_20160902_105100.jpg
and rerun the CLI, now it will re-import it and the total count will be reduced to 217. Is there some funky metadata mismatch happening here?
Thanks in advance for the help13 replies