Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error getting file to hash for asset #17172

Open
2 of 4 tasks
maximilianvonamerongen opened this issue Mar 27, 2025 · 3 comments
Open
2 of 4 tasks

Error getting file to hash for asset #17172

maximilianvonamerongen opened this issue Mar 27, 2025 · 3 comments

Comments

@maximilianvonamerongen
Copy link

maximilianvonamerongen commented Mar 27, 2025

I have searched the existing issues, both open and closed, to make sure this is not a duplicate report.

  • Yes

The bug

iOS shared album is not synced completly.

The OS that Immich Server is running on

Unraid 6.12.6

Version of Immich Server

v1.130.2

Version of Immich Mobile App

v1.130.2

Platform with the issue

  • Server
  • Web
  • Mobile

Your docker-compose.yml content

Unraid docker. Details can be provided as image

Your .env content

Unraid docker. Details can be provided as image

Reproduction steps

Added iOS Share folder to Immich. Since two weeks I issues to upload all files. File is visable and accessable via phone itself.

Relevant log output

Message: 
Error getting file to hash for asset 7599C0D3-03A0-4074-8C86-8DAAFE10DDDE/L0/001, name: IMG_0141.JPG, created on: 2024-06-21 18:38:18.000, skipping

Platform:
PlatformException(PHPhotosErrorDomain (3169), Der Vorgang konnte nicht abgeschlossen werden. (PHPhotosErrorDomain-Fehler 3169.), No failure reason provided, null)

Stack Trace: 
#0      StandardMethodCodec.decodeEnvelope (package:flutter/src/services/message_codecs.dart:652)
#1      MethodChannel._invokeMethod (package:flutter/src/services/platform_channel.dart:370)
<asynchronous suspension>
#2      AssetEntity._getFile (package:photo_manager/src/types/entity.dart:765)
<asynchronous suspension>
#3      HashService._hashAssets (package:immich_mobile/services/hash.service.dart:77)
<asynchronous suspension>
#4      SyncService._addAlbumFromDevice (package:immich_mobile/services/sync.service.dart:723)
<asynchronous suspension>
#5      diffSortedLists (package:immich_mobile/utils/diff.dart:25)
<asynchronous suspension>
#6      SyncService._syncLocalAlbumAssetsToDb (package:immich_mobile/services/sync.service.dart:535)
<asynchronous suspension>
#7      AlbumService.refreshDeviceAlbums (package:immich_mobile/services/album.service.dart:135)
<asynchronous suspension>
#8      AssetNotifier.getAllAsset (package:immich_mobile/providers/asset.provider.dart:69)
<asynchronous suspension>

Additional information

No response

@alextran1502
Copy link
Contributor

There is an interesting behavior from iOS that the file is somehow not present anymore, which might have been deleted from the owner. However, the local iOS database still treats the file as available. Lead to the error message you are seeing

@maximilianvonamerongen
Copy link
Author

maximilianvonamerongen commented Mar 27, 2025

But the file is available and I can open it from the iOS photo app. So no file was deleted.

Is there any way to get rid of the issue?

@alextran1502
Copy link
Contributor

Try to move that file to a different album that isn't being selected for backup

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants