Removing duplicate images
Recently switched from F-droid to Play Store and there are now duplicate images.
Tried following this issue to fix it:
https://github.com/immich-app/immich/issues/1517#issuecomment-1414264993
However, there is only one device ID in the database (see image)
Is there currently a working way to fix this?
GitHub
[BUG] App re-uploads everything after reinstall · Issue #1517 · imm...
Describe the bug I just had to reinstall the immich app, because I switched from the f-droid version to the apk from the GitHub release. When I logged in again, all photos and videos are being re-u...

8 Replies
(it's fine if there isn't a way to fix it, as it only affects my phone and not the webui but it would be nice if there was)
We no longer use the device_info table. Run a query against the asset table and look at the deviceID of your old assets (uploaded with F-Droid) and your new assets (uploaded with Play Store version)
kk, is there a way to view deviceID from the phone?
You can activate troubleshooting under advanced settings. Then, asset info details show technical info including a hash of the device id. You can't use that in the server database though.
so I would need to hash the deviceIDs in the db?
i've only got 3 devices (one other person, google play and fdroid) so it won't be that hard
whats the algo used for hash?
I would not use the info from the app. Simply look at the device id of newly uploaded assets in the assets table. You can compare the id of the assets with the info from the app (remoteId)
alright
worked!
thanks for the help
Excellent! You're welcome