immich icon indicating copy to clipboard operation
immich copied to clipboard

Backed up photos in server show as "Remainder" in photos app after latest update

Open EliasMarine opened this issue 3 months ago • 27 comments

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

  • [x] Yes

The bug

I backup my iclould photos via immich iOS app to local server. Perviously, I had 40k+ photos backed up (they are still in server) and only initiated new backups on iphone when I had new pictures to push to server.

Now, when i go to backup the new photos I took, the immich app shows:

Backup Albums: Recents (ALL) - this remains the same. I've always used Recent photos as the source.

total photos: 44921

backup: 70 (WRONG!!!!)

remainder: 44851 (WRONG!!!)

iOS app version: 1.142.1 build.224

server version: 1.142.1

Image

The OS that Immich Server is running on

unraid

Version of Immich Server

1.142.1

Version of Immich Mobile App

1.142.1 build.224

Platform with the issue

  • [ ] Server
  • [ ] Web
  • [x] Mobile

Device make and model

iPhone 15 pro max iOS 26

Your docker-compose.yml content

na

Your .env content

na

Reproduction steps

1.na 2. 3. ...

Relevant log output

na

Additional information

No response

EliasMarine avatar Sep 22 '25 03:09 EliasMarine

Can you try logging out of the app and logging back in?

shenlong-tanwen avatar Sep 22 '25 03:09 shenlong-tanwen

Can you try logging out of the app and logging back in?

I attempted this, but the issue still persists.

However, everytime I log back into the app, the Backup quantity increases. First it was 40, then 502, now it's 805.

EliasMarine avatar Sep 22 '25 03:09 EliasMarine

Same issue happening with me also after the new update.

SamDaaEpic avatar Sep 22 '25 04:09 SamDaaEpic

Can you share the mobile app logs here?

shenlong-tanwen avatar Sep 22 '25 05:09 shenlong-tanwen

Can you share the mobile app logs here?

2025-09-21 21:02:24.881850 | severe | IsolateLogger | Error in runInIsolateGentle for remote-sync | ApiException 401: Failed to get sync stream: {"message":"Invalid user token","error":"Unauthorized","statusCode":401,"correlationId":"t4t3ztpf"} | #0 SyncApiRepository.streamChanges (package:immich_mobile/infrastructure/repositories/sync_api.repository.dart:85) #1 SyncStreamService.sync (package:immich_mobile/domain/services/sync_stream.service.dart:30) #2 runInIsolateGentle.. (package:immich_mobile/utils/isolate.dart:56) #3 runInIsolateGentle. (package:immich_mobile/utils/isolate.dart:35) #4 WorkerImpl._anotherIsolate. (package:worker_manager/src/worker/worker_io.dart:106)

2025-09-21 21:02:24.881749 | severe | SyncApiRepository | Error processing stream | ApiException 401: Failed to get sync stream: {"message":"Invalid user token","error":"Unauthorized","statusCode":401,"correlationId":"t4t3ztpf"} | #0 SyncApiRepository.streamChanges (package:immich_mobile/infrastructure/repositories/sync_api.repository.dart:85) #1 SyncStreamService.sync (package:immich_mobile/domain/services/sync_stream.service.dart:30) #2 runInIsolateGentle.. (package:immich_mobile/utils/isolate.dart:56) #3 runInIsolateGentle. (package:immich_mobile/utils/isolate.dart:35) #4 WorkerImpl._anotherIsolate. (package:worker_manager/src/worker/worker_io.dart:106)

2025-09-21 21:02:24.312607 | severe | WebsocketNotifier | Websocket Error - unauthorized | 2025-09-21 21:02:24.280020 | severe | AuthenticationNotifier | Error getting user information from the server [CATCH ALL] | ParallelWaitError(2 errors): ApiException 401: {"message":"Invalid user token","error":"Unauthorized","statusCode":401,"correlationId":"quimajch"} | #0 UsersApi.getMyUser (package:openapi/api/users_api.dart:265) #1 FutureRecord2.wait. (dart:async/future_extensions.dart:88) #2 UserApiRepository.getMyUser (package:immich_mobile/infrastructure/repositories/user_api.repository.dart:14) #3 UserService.refreshMyUser (package:immich_mobile/domain/services/user.service.dart:38) #4 Future.timeout. (dart:async/future_impl.dart:1064) #5 AuthNotifier.saveAuthInfo (package:immich_mobile/providers/auth.provider.dart:134) #6 SplashScreenPageState.resumeSession. (package:immich_mobile/pages/common/splash_screen.page.dart:57)

`

EliasMarine avatar Sep 22 '25 05:09 EliasMarine

I am experiencing the same exact issue right now.

I though it was just a version mismatch I am coming from v1.129.0 to v1.142.1

I was using CasaOS and it was perfectly okay since September 10 it stopped syncing.

But after updating to the latest version for the server side. The issue still persist and I am still unable to upload photos or sync my mobile photos to the server.

Uploading manually is okay but not the auto-back up. It will only run for a few hundreds and then gets stuck somewhere.

cmagliba101 avatar Sep 22 '25 06:09 cmagliba101

Same issue happening....

zatdevil avatar Sep 22 '25 11:09 zatdevil

Having the same issues for 7 to 10 days, the server version is 1.135.3. The iOS version is always up-to-date. Log out/in does not work. The web version works just fine.

mzy2240 avatar Sep 22 '25 11:09 mzy2240

Having the same issues for 7 to 10 days, the server version is 1.135.3. The iOS version is always up-to-date. Log out/in does not work. The web version works just fine.

Your server version is out of date. Updating it to the latest version followed by logging out and logging back in to the app would fix your issue

shenlong-tanwen avatar Sep 22 '25 12:09 shenlong-tanwen

Image

It’s been stuck like this for an hour now. lol not uploading like it used to before. I miss version 129.0

cmagliba101 avatar Sep 23 '25 01:09 cmagliba101

@cmagliba101 does the number changes? If you toggle the backup button, do you see it starts backing up assets that have been hashed?

alextran1502 avatar Sep 23 '25 02:09 alextran1502

Image

It did but its ultra slow. It stops after like 100 queue.

cmagliba101 avatar Sep 23 '25 02:09 cmagliba101

@cmagliba101 does the number changes? If you toggle the backup button, do you see it starts backing up assets that have been hashed?

same with me, extremely slow. Uploads or idk if it's checking already uploaded photos in server. But it takes forever.

EliasMarine avatar Sep 23 '25 02:09 EliasMarine

It goes up by a hundred and then goes down. Lol it’s super buggy.

cmagliba101 avatar Sep 23 '25 02:09 cmagliba101

I think we are going as fast as iCloud let us go. If you turn on download and save original, it will go so much faster

alextran1502 avatar Sep 23 '25 04:09 alextran1502

I think we are going as fast as iCloud let us go. If you turn on download and save original option of iCloud, it will go so much faster

alextran1502 avatar Sep 23 '25 04:09 alextran1502

The latest version has a different, but related, problem. Android.

Image

DevServs avatar Sep 23 '25 07:09 DevServs

Having the same issues for 7 to 10 days, the server version is 1.135.3. The iOS version is always up-to-date. Log out/in does not work. The web version works just fine.

Your server version is out of date. Updating it to the latest version followed by logging out and logging back in to the app would fix your issue

It works after upgrading to the latest version. Thanks!

mzy2240 avatar Sep 23 '25 11:09 mzy2240

Many hashing errors in the logs, is this normal?

Immich_log_2025-09-23T14:07:22.541955.log

EliasMarine avatar Sep 23 '25 21:09 EliasMarine

Still not working for me. Updated to 143.0

Tried log out log in trick. Still getting stuck at some point on mobile sync/upload.

cmagliba101 avatar Sep 23 '25 21:09 cmagliba101

Still not working for me. Updated to 143.0

Tried log out log in trick. Still getting stuck at some point on mobile sync/upload.

same here

EliasMarine avatar Sep 23 '25 21:09 EliasMarine

Many hashing errors in the logs, is this normal?

Normal, but certainly not ideal. You have the created at and album details there. Ignore the album since it is just the "Recents" one. Using the created at log entry, can you locate the assets on your Photos app and see if you can share them from there?

shenlong-tanwen avatar Sep 23 '25 23:09 shenlong-tanwen

Updated server to v1.132.3 (https://docs.immich.app/errors/#typeorm-upgrade) then to release. Worked after that 🥳 . Now on v1.143.1

Also the date/time on my server was way off for some reason, also fixed that.

    Installed 1.143.1 on Sep 27, 2025
    Installed 1.132.3 on Sep 27, 2025
    Installed 1.123.0 on Dec 18, 2024

Flinner avatar Sep 27 '25 13:09 Flinner

I was experiencing the same issue on 1.119 and iOS 26, migrated first for 1.136.0 then 1.143.1 and it worked after that.

jmbrito01 avatar Sep 29 '25 17:09 jmbrito01

Still an issue on one of my family member's account, not an issue on mine. Their account shows over 10k assets in Remainder, but as far as I can tell, all of those assets already exist on the server, on their account. I don't face this on my account. The only difference I can think of is that they're also using iCloud. All I could do is leave Immich open where it'd add these assets to 'Preparing' and 'Ready for upload', tho they're not actually being uploaded again. This isn't ideal tho since it takes a lot of time, it makes the phone really hot, and I'm not even sure if it'll solve this issue in the end.

Both server and client versions are on the current latest version 2.3.1.

irfanhakim-as avatar Dec 07 '25 13:12 irfanhakim-as

Still an issue on one of my family member's account, not an issue on mine. Their account shows over 10k assets in Remainder, but as far as I can tell, all of those assets already exist on the server, on their account. I don't face this on my account. The only difference I can think of is that they're also using iCloud. All I could do is leave Immich open where it'd add these assets to 'Preparing' and 'Ready for upload', tho they're not actually being uploaded again. This isn't ideal tho since it takes a lot of time, it makes the phone really hot, and I'm not even sure if it'll solve this issue in the end.

That is a separate issue related to iCloud and hashing and we are hoping to address that in #20418

shenlong-tanwen avatar Dec 08 '25 23:12 shenlong-tanwen

@shenlong-tanwen thanks for the heads-up! Just would like to inform though that I did let the 'Preparing' and 'Ready for upload' process to complete by leaving Immich open in the foreground, and it actually managed to go from 10k+ assets to 0 :)

Not sure if this issue would reoccur, but I'll continue to monitor it and the PR you linked to. Thanks!

irfanhakim-as avatar Dec 09 '25 01:12 irfanhakim-as