immich-app / immich

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

Backup on mobile stops when encountering unsupported formats instead of skipping them #12191

Open toorux opened 2 weeks ago

toorux commented 2 weeks ago

The bug

There are some .pic format photos in my iPhone album that cannot be backed up, and the app stops the backup process completely when encountering these photos. I have to delete the .pic format photos from my album to resume the backup, which is very inconvenient. Synology Photos automatically skips such files when it encounters this issue, which I believe is a more reasonable approach. Of course, I would prefer if the app could support the .pic format.

The OS that Immich Server is running on

Docker

Version of Immich Server

v1.113.0

Version of Immich Mobile App

v1.113.0

Platform with the issue

Your docker-compose.yml content

irrelevant

Your .env content

irrelevant

Reproduction steps

  1. Save a picture in pic format in a photo album
  2. Backup this album in the immich app
  3. When the backup reaches this pic, it will indicate that the format is not supported and stop the backup.

Relevant log output

No response

Additional information

No response

alextran1502 commented 2 weeks ago

Can you help with the step to produce the .pic format?

toorux commented 2 weeks ago

Can you help with the step to produce the .pic format?

@alextran1502 I'm not sure why the images in my photo album are in pic format, as they were saved through another app. If necessary, I can send you one, but I'll need your email address.

Cohinem commented 2 weeks ago

This also happens to me. I would expect it to write the error and continue on with the backup at least.

This is me trying several times. different 'extension' but the same error. I can (and probably will) go and try to find these among tens of thousands of photos to rename them (to .jpg) and avoid the error. but it should really be fixed.

[Nest] 17  - 08/31/2024, 5:32:14 PM   ERROR [Api:AssetMediaService] Unsupported file type obfuscated.jpg_large
[Nest] 17  - 08/31/2024, 5:33:25 PM   ERROR [Api:AssetMediaService~gj3ca4rd] Unsupported file type obfuscated.jpg_large
[Nest] 17  - 08/31/2024, 5:34:02 PM   ERROR [Api:AssetMediaService~2bgzx03r] Unsupported file type obfuscated.jpg_large
[Nest] 17  - 08/31/2024, 5:34:20 PM   ERROR [Api:AssetMediaService] Unsupported file type obfuscated.jpg_large
MattKayDev commented 1 week ago

I've had this happen as well.

The current work around is restarting backup manually, but that's not ideal.

saqwerty commented 2 days ago

I got the the same one and It's blocking the backup process... [Nest] 17 - 09/16/2024, 6:43:18 PM DEBUG [Api:LoggingInterceptor~t5ftov5j] GET /api/server/storage 200 0.38ms ::ffff:192.168.11.100 [Nest] 17 - 09/16/2024, 6:43:18 PM DEBUG [Api:LoggingInterceptor~ctilkrjp] GET /api/assets/device/876c5471dcdf3a27e48b78b4514d56b2bbfe27f1732b7e5d3f3ef5b4ab6f647a 200 54.55ms ::ffff:192.168.11.100 [Nest] 17 - 09/16/2024, 6:43:18 PM ERROR [Api:AssetMediaService~0f6bwcdz] Unsupported file type IMG_20240409011411932 [Nest] 17 - 09/16/2024, 6:43:18 PM DEBUG [Api:LoggingInterceptor~0f6bwcdz] POST /api/assets 201 0.92ms ::ffff:192.168.11.100 [Nest] 17 - 09/16/2024, 6:43:18 PM VERBOSE [Api:LoggingInterceptor~0f6bwcdz] {"deviceAssetId":"3F885CE0-35A1-4DA7-9F80-73A25B49228D/L0/001","deviceId":"876c5471dcdf3a27e48b78b4514d56b2bbfe27f1732b7e5d3f3ef5b4ab6f647a","fileCreatedAt":"2024-04-08T17:14:11.000Z","fileModifiedAt":"2024-04-09T03:15:41.000Z","isFavorite":"false","duration":"0:00:00.000000"} [Nest] 17 - 09/16/2024, 6:43:18 PM DEBUG [Api:GlobalExceptionFilter~0f6bwcdz] HttpException(400): {"message":"Unsupported file type IMG_20240409011411932","error":"Bad Request","statusCode":400}