Fix upload of Live photos via iOS - #45
Conversation
Currently it is failing with, here is an example log: 2026/05/21 06:36:34 172.18.0.1: job 593: received: "IMG_9336.MOV" (deviceAssetId: 355A7C06-48E8-4161-BCCC-2CE5F3367DD7/L0/001) 2026/05/21 06:36:34 172.18.0.1: job 593: downloaded: "IMG_9336.MOV" (4.55 MB) 2026/05/21 06:37:47 172.18.0.1: job 594: received: "IMG_9336.HEIC" (deviceAssetId: 355A7C06-48E8-4161-BCCC-2CE5F3367DD7/L0/001) 2026/05/21 06:37:47 172.18.0.1: job err: job 594: job 593 is already processing this asset
|
if the field was removed, what is |
Somehow I don't find the commit or PR number here: https://github.com/immich-app/immich/commits/main/
explains that it will be suported until version 3.x and only removed in version 4.x |
I guess because internally live photos are a pair of a photo and a video (two files) but they are handled even in the iOS gallery as a single asset. |
|
I've did another iOS test. It seems to be not always to occur: In this case |
|
Okay, I was able to reproduce it. Fortunately if I just restart the upload process, it's self healing (missing live photos parts) are uploaded again and I see real live photos in the web ui again. I've also tested the new changes/the patch on my instance. And it did work, live photos were uploaded without any issues. Even from a previous upload attempt with the unpatched IUO version the "broken" live photos were fixed/self-healed. Here is the log: I've noticed that there is now |
|
It seems that deviceAssetId will be replaced by sha1 in future, calculated by the client. |
I've updated immich and immich (server+client) upload optimizer to the latest version.
Currently it is failing for Live photos, here is an example log:
2026/05/21 06:36:34 172.18.0.1: job 593: received: "IMG_9336.MOV" (deviceAssetId: 355A7C06-48E8-4161-BCCC-2CE5F3367DD7/L0/001)
2026/05/21 06:36:34 172.18.0.1: job 593: downloaded: "IMG_9336.MOV" (4.55 MB)
2026/05/21 06:37:47 172.18.0.1: job 594: received: "IMG_9336.HEIC" (deviceAssetId: 355A7C06-48E8-4161-BCCC-2CE5F3367DD7/L0/001)
2026/05/21 06:37:47 172.18.0.1: job err: job 594: job 593 is already processing this asset
I have used Claude Code with Opus 4.7 xhigh
and adjusted the comment regarding this:
https://github.com/immich-app/immich/blob/b414b3d32b3952eb6f655d60b91240614be14acc/mobile/lib/services/foreground_upload.service.dart#L323
immich-app/immich#27818