I try to upload 2 images with the CLI but no image are added to the library
I try to upload 2 images with the CLI but no image is added to the library. Is there something I'm doing wrong? As you can see, the CLI deleted the images from the source folder even thought they did not appear in the libraries folder.
I'm running 1.74.0
```
$ find /l/immich/library/me/ -type f | wc -l
19974
$ docker run -it --rm -v "/l/tmp/import:/import" ghcr.io/immich-app/immich-cli:latest upload --key $KEY --server https://my.server/api --delete --album 'Sizilien 2020'
Checking connectivity with Immich instance...
Server status: OK
Checking credentials...
Login status: OK
Successful authentication for user me@gmail.com
Indexing local assets...
Indexing complete, found 2 local assets
Comparing local assets with those on the Immich instance...
A total of 2 assets will be uploaded to the server
A total of 2 assets will be added to album(s).
NOTE: some assets may already be associated with the album, this will not create duplicates.
Do you want to start upload now? (y/n) y
Start uploading...
Upload Progress | ¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦ | 100% 2/2 Current file [/import/IMG_20201006_102615-4.jpg]
Creating albums...
$ find /l/immich/library/me/ -type f | wc -l
19974
$ ls -la import
total 33
drwxr-xr-x 2 immich immich 2 Aug 22 22:26 .
drwxrwxrwx 3 root root 4 Aug 22 22:25 ..
8 Replies
The two I assume are duplicated so they aren’t added anymore
Since the server rejects them
I compared the md5 sum of the two files with the md5 sum of every file in the library directory and these two files aren't there.
Anylog from the server container?
Just immich-server? The last entry is from yesterday
and, for what it's worth, I have to rename the file for every try. Without renaming it looks like this
and with renaming like this
Try to drop the file to the web interface, if it is duplicated there will be a corresponding message
Skipped 1 duplicate picture
how does Immich decide if the something is a duplicate?
File content hashing
I compared the libraries directory with an older version and Immich renamed multiple files from names like
2023/2023-08-09/20230809_185802.mp4
to names like 2023/2023-08-09/caae1c84-06aa-493e-9bec-4fa236de60ee.mp4
. Is that expected?