immich-app / immich

High performance self-hosted photo and video management solution.
https://immich.app
GNU Affero General Public License v3.0
39.43k stars 1.86k forks source link

Immich CLI not deleting duplicates #10940

Open andreybavt opened 1 week ago

andreybavt commented 1 week ago

The bug

Issue is also reported here

After running immich upload --delete --recursive <directory> on the directory that was already uploaded I'm getting

Found 0 new files and 780 duplicates

However despite --delete the duplicates aren't deleted

Older version of CLI also deleted the existing duplicates and it was convenient

The OS that Immich Server is running on

Debian GNU/Linux 12 (bookworm)

Version of Immich Server

1.107.2

Version of Immich Mobile App

not relevant

Platform with the issue

Your docker-compose.yml content

TrueNas scale installation 

https://github.com/truecharts/charts/tree/master/charts/stable/immich

Your .env content

TrueNas scale installation 

https://github.com/truecharts/charts/tree/master/charts/stable/immich

Reproduction steps

1. Run `immich upload --recursive <directory>`
2. Run `immich upload --recursive --delete <directory>`
3. Check that the duplicates aren't removed after the second execution (with `--delete`)

Relevant log output

No response

Additional information

immich cli version - 2.2.7

aviv926 commented 1 week ago

At the end of the process, do you only have the duplicate files left in the folder?

andreybavt commented 1 week ago

At the end of the process, do you only have the duplicate files left in the folder?

yes