Β© 2026 Hedgehog Software, LLC

TwitterGitHubDiscord
More
CommunitiesDocsAboutTermsPrivacy
Search
Star
Setup for Free
ImmichI
Immichβ€’3y agoβ€’
12 replies
Unrealmaster

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"
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:

hecking connectivity with Immich instance...
Server status: OK
Checking credentials...
Login status: OK
Successful authentication for user xxxxxxx
Indexing local assets...
Indexing complete, found 1269 local assets
Comparing local assets with those on the Immich instance...
A total of 218 assets will be uploaded to the server
Do you want to start upload now? (y/n) y
hecking connectivity with Immich instance...
Server status: OK
Checking credentials...
Login status: OK
Successful authentication for user xxxxxxx
Indexing local assets...
Indexing complete, found 1269 local assets
Comparing local assets with those on the Immich instance...
A total of 218 assets will be uploaded to the server
Do you want to start upload now? (y/n) y


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
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
IMG_20160902_105100.jpg
it says
skipped
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
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 help
ImmichJoin
A place to hang out, get support, discuss Immich, get announcements about releases and anything else going on.
36,590Members
Resources

Similar Threads

Was this page helpful?
Recent Announcements

Similar Threads

CLI import
ImmichIImmich / help-desk-support
3y ago
Media seems broken
ImmichIImmich / help-desk-support
3y ago
CLI Import error
ImmichIImmich / help-desk-support
3y ago
CLI import Error
ImmichIImmich / help-desk-support
3y ago