[iOS App] Sync failed. Cannot process backup.

Hello! It seems that after updating both my server and my app, I have a problem with the sync engine of the iOS app. Specifically, when I select the albums to be synced, the hashing finishes successfully, but then the app won't upload the files, and it displays a red danger sign at the cloud icon at the top right, and at the backup screen it displays this message at the bottom: Sync failed. Cannot process backup. Checking the logs, I get these two errors attached below. I've tried clearing my file cache, resetting the SQLite Database, logging out and in again, and even deleting the app and downloading it again, but unfortunately to no avail.
63 Replies
Immich
Immich5d ago
:wave: Hey @CrossDrain, Thanks for reaching out to us. Please carefully read this message and follow the recommended actions. This will help us be more effective in our support effort and leave more time for building Immich :immich:. References - Container Logs: docker compose logs docs - Container Status: docker ps -a docs - Reverse Proxy: https://immich.app/docs/administration/reverse-proxy - Code Formatting https://support.discord.com/hc/en-us/articles/210298617-Markdown-Text-101-Chat-Formatting-Bold-Italic-Underline#h_01GY0DAKGXDEHE263BCAYEGFJA Checklist I have... 1. :ballot_box_with_check: verified I'm on the latest release(note that mobile app releases may take some time). 2. :ballot_box_with_check: read applicable release notes. 3. :ballot_box_with_check: reviewed the FAQs for known issues. 4. :ballot_box_with_check: reviewed Github for known issues. 5. :ballot_box_with_check: tried accessing Immich via local ip (without a custom reverse proxy). 6. :ballot_box_with_check: uploaded the relevant information (see below). 7. :ballot_box_with_check: tried an incognito window, disabled extensions, cleared mobile app cache, logged out and back in, different browsers, etc. as applicable (an item can be marked as "complete" by reacting with the appropriate number) Information In order to be able to effectively help you, we need you to provide clear information to show what the problem is. The exact details needed vary per case, but here is a list of things to consider: - Your docker-compose.yml and .env files. - Logs from all the containers and their status (see above). - All the troubleshooting steps you've tried so far. - Any recent changes you've made to Immich or your system. - Details about your system (both software/OS and hardware). - Details about your storage (filesystems, type of disks, output of commands like fdisk -l and df -h). - The version of the Immich server, mobile app, and other relevant pieces. - Any other information that you think might be relevant. Please paste files and logs with proper code formatting, and especially avoid blurry screenshots. Without the right information we can't work out what the problem is. Help us help you ;) If this ticket can be closed you can use the /close command, and re-open it later if needed.
CrossDrain
CrossDrainOP5d ago
I am running Immich 2.2.3 and accessing it from the iOS app on version 2.2.3 build.235 on iOS 26.1 (23B85) I've tried syncing my app both through Tailscale and locally also to no avail. In addition to this issue, memories have also disappeared from my app's library page and the map feature of the app (and only the iOS app) also shows no photos. Somehow, when I click on a photo and then upload at the bottom, it works just fine and the picture syncs normally. The iOS home screen widget that displays the memories photos also works in sync with the current date (even though memories don't appear at the top of the library page).
Immich
Immich5d ago
Successfully submitted, a tag has been added to inform contributors. :white_check_mark:
ClimbingPlant
ClimbingPlant4d ago
I think I have the same issue manually upload works fine as well as in op's situation
CrossDrain
CrossDrainOP4d ago
Oh and just now realised videos look kinda weird. Like if they are stretched in their aspect ratio. Again, only in the iOS app and not on web.
Alex Tran
Alex Tran4d ago
@ClimbingPlant @CrossDrain Can you guy log out and log back in it should fix the issue Also, adding the mobile app log would be helpful
CrossDrain
CrossDrainOP4d ago
Tried it many times, I even tried clearing my file cache, resetting the SQLite Database and reinstalling the app.
Alex Tran
Alex Tran4d ago
can you send the mobile app logs?
CrossDrain
CrossDrainOP4d ago
Yes, I'm sharing it right now! Log level info should suffice right?
Alex Tran
Alex Tran4d ago
yeah
CrossDrain
CrossDrainOP4d ago
Here you go. Thank you so so so much for taking the time!
Alex Tran
Alex Tran4d ago
Do you know if you recently use the feature "Replace upload with" or using immich-go?
CrossDrain
CrossDrainOP4d ago
No, neither of those. I have only once used immich-go on an another test installation. But this installation is completely fresh (on the same hardware but started completely from scratch).
Alex Tran
Alex Tran4d ago
Can you try go to this url http://you-instance:2283/albums/78ffa5cf-3aec-4c42-9050-3317ea10a6ac and see if there is anything special about this album (shared, owned...etc)
CrossDrain
CrossDrainOP4d ago
There have also been two other events that I want to mention just in case they could be causing this. 1) There have been a few power outages lately and because I had made a mistake in my UPS setup, the server was killed violently a couple of times. It always booted up fine with no issue however. Both the server itself and the dockerized immich. 2) I recently changed the path of the media library because I changed the mounting point of my drive. None of these issues however coincided with the appearance of the iOS app problems. At least from what I remember.
Alex Tran
Alex Tran4d ago
2) I recently changed the path of the media library because I changed the mounting point of my drive.
This is just the UPLOAD_LOCATION path right?
CrossDrain
CrossDrainOP4d ago
Yes sorry should've clarified. I only changed the UPLOAD_LOCATION variable in the .env file.
Alex Tran
Alex Tran4d ago
that shouldn't cause the issue we are seeing ^ can you try this?
CrossDrain
CrossDrainOP4d ago
Nothing out of the ordinary. Comments & likes are enabled but I think that's default, right?
Alex Tran
Alex Tran4d ago
yeah'
CrossDrain
CrossDrainOP4d ago
It's not shared with anyone no.
Alex Tran
Alex Tran4d ago
http://you-instance:2283/albums/78ffa5cf-3aec-4c42-9050-3317ea10a6ac/6981e86a-a45b-4cda-bed3-62c179ea3c73 can you go to this and try to remove that asset out of the album and see if the sync will sucess
CrossDrain
CrossDrainOP4d ago
When trying to navigate I get this error: Not found or no asset.read access - 400 Ut@https://my-instance/_app/immutable/chunks/DnFnfazg.js:1:6045 At@https://my-instance/_app/immutable/chunks/DnFnfazg.js:1:5949
CrossDrain
CrossDrainOP4d ago
No description
Alex Tran
Alex Tran4d ago
interesting Do you use partners sharing feature?
CrossDrain
CrossDrainOP4d ago
No, never tried it. I do remember (with 90% certainty) the last asset that was properly synced without issue if that is of any help. Also, if deleting the album entirely would fix the issue I have no problem doing that it's just the "Recents" album from the iOS Photos app.
Alex Tran
Alex Tran4d ago
Let's try that @jrasm91 do you have any thought on how this can occur?
CrossDrain
CrossDrainOP4d ago
Oh, that did indeed fix it! Wow and memories are back as well. Didn't even need to log out haha just restarted the iOS app
Alex Tran
Alex Tran4d ago
yeah this is the issue with somehow the sync event send identical record to the one that is already in the database so there is a bug somewhere
CrossDrain
CrossDrainOP4d ago
Yes, everything is back to normal. Videos, map etc. are all working again!
jrasm91
jrasm914d ago
I'm not really sure what we're seeing here. The error message doesn't seem right for an album detail url.
CrossDrain
CrossDrainOP4d ago
Just out of curiosity I tried syncing my albums (by taping on the "Organize into albums" button at the backup options) and the "Recents" album is stuck at 1315 items even though according to immich it contains 4055 items on my device.
Alex Tran
Alex Tran4d ago
oh opps can you share the app log now? there should be error message if it stucks there
CrossDrain
CrossDrainOP4d ago
My problem can be considered solved btw, I'm just mentioning it in case I can be of any help for fixing this bug.
CrossDrain
CrossDrainOP4d ago
Indeed there is.
Alex Tran
Alex Tran4d ago
can you toggle the sync album off/on again then press on the Organize into albums button
CrossDrain
CrossDrainOP4d ago
Nothing changed. Just to clarify, I went into the album selector, I deselected the two albums I was syncing previously, closed the app and then opened it again, selected the albums again and pressed organize into albums
Alex Tran
Alex Tran4d ago
can you 1. Disable sync album feature 2. Deselect the albums 3. Reselect the albums 4. Enable sync album feature 5. Tap "Organize into album"
CrossDrain
CrossDrainOP4d ago
Just did exactly that. Still stuck at 1315 items.
Alex Tran
Alex Tran4d ago
same error message?
CrossDrain
CrossDrainOP4d ago
Yes it seems:
#0 AlbumsApi.addAssetsToAlbum (package:openapi/api/albums_api.dart:79)
<asynchronous suspension>
#1 ApiRepository.checkNull (package:immich_mobile/infrastructure/repositories/api.repository.dart:7)
<asynchronous suspension>
#2 DriftAlbumApiRepository.addAssets (package:immich_mobile/repositories/drift_album_api_repository.dart:39)
<asynchronous suspension>
#3 SyncLinkedAlbumService.syncLinkedAlbums.<anonymous closure> (package:immich_mobile/domain/services/sync_linked_album.service.dart:48)
<asynchronous suspension>
#4 Future.wait.<anonymous closure> (dart:async/future.dart:525)
<asynchronous suspension>
#5 SyncLinkedAlbumService.syncLinkedAlbums (package:immich_mobile/domain/services/sync_linked_album.service.dart:30)
<asynchronous suspension>
#6 runInIsolateGentle.<anonymous closure>.<anonymous closure> (package:immich_mobile/utils/isolate.dart:58)
<asynchronous suspension>
#7 runInIsolateGentle.<anonymous closure> (package:immich_mobile/utils/isolate.dart:37)
<asynchronous suspension>
#8 WorkerImpl._anotherIsolate.<anonymous closure> (package:worker_manager/src/worker/worker_io.dart:106)
<asynchronous suspension>
#0 AlbumsApi.addAssetsToAlbum (package:openapi/api/albums_api.dart:79)
<asynchronous suspension>
#1 ApiRepository.checkNull (package:immich_mobile/infrastructure/repositories/api.repository.dart:7)
<asynchronous suspension>
#2 DriftAlbumApiRepository.addAssets (package:immich_mobile/repositories/drift_album_api_repository.dart:39)
<asynchronous suspension>
#3 SyncLinkedAlbumService.syncLinkedAlbums.<anonymous closure> (package:immich_mobile/domain/services/sync_linked_album.service.dart:48)
<asynchronous suspension>
#4 Future.wait.<anonymous closure> (dart:async/future.dart:525)
<asynchronous suspension>
#5 SyncLinkedAlbumService.syncLinkedAlbums (package:immich_mobile/domain/services/sync_linked_album.service.dart:30)
<asynchronous suspension>
#6 runInIsolateGentle.<anonymous closure>.<anonymous closure> (package:immich_mobile/utils/isolate.dart:58)
<asynchronous suspension>
#7 runInIsolateGentle.<anonymous closure> (package:immich_mobile/utils/isolate.dart:37)
<asynchronous suspension>
#8 WorkerImpl._anotherIsolate.<anonymous closure> (package:worker_manager/src/worker/worker_io.dart:106)
<asynchronous suspension>
Alex Tran
Alex Tran4d ago
thanks
CrossDrain
CrossDrainOP4d ago
Let me know if there's anything else I can do to help!
Alex Tran
Alex Tran4d ago
Can you send the whole mobile log? you can export and attach them here
CrossDrain
CrossDrainOP4d ago
Sure give me a moment. I can open a github issue as well if that's easier to manage.
Alex Tran
Alex Tran4d ago
Yes, that would be helpful thank you
CrossDrain
CrossDrainOP4d ago
Actions taken: Cleared the logs Exited the up (swiped it up) Opened the app again Disabled sync album feature Deselected the 2 albums I was previously syncing Reselected the albums Enabled sync album feature Tapped "Organize into album" Sure! I'll do it in a minute. Wait. I just now noticed. The album doesn't appear on the web version of immich. The "Recents" album is only listed in the iOS app and I can't find it through the web version. (same account of course)
Alex Tran
Alex Tran4d ago
let's try sign out and sign back in then go through the sequence of reenable the album sync feature
CrossDrain
CrossDrainOP4d ago
Now it has synced 4024 items and now the album also appears on web. No errors in the logs as well.
CrossDrain
CrossDrainOP4d ago
No description
CrossDrain
CrossDrainOP4d ago
But theoretically Immich shows the recents album has 4055 items
Alex Tran
Alex Tran4d ago
yeah the it show the duplicates asset count in there
CrossDrain
CrossDrainOP4d ago
Oh okay. So everything's good now, right?
Alex Tran
Alex Tran4d ago
Yep something caused the original issue that leads to a bunch of unexpected result we will need to revisit this
CrossDrain
CrossDrainOP4d ago
Awesome! Thank you so much again! Should I open a github issue to track it?
Alex Tran
Alex Tran4d ago
With no clear reproducing steps, I think it won't be as helpful if it ever happens again, can you help reach out to us?
CrossDrain
CrossDrainOP4d ago
Yeah, I'll sure do! If anybody else ever has this issue or if I can be of any help at any point regarding this, feel free to ping me as well!
Immich
Immich4d ago
This thread has been closed. To re-open, use the button below.
ClimbingPlant
ClimbingPlant4d ago
indeed it solved the problem thx!

Did you find this page helpful?