Skip to content

iOS upload failing and sync status seems blocked, app fails and requires OS level quitting #22661

Description

@j-baker

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

  • Yes

The bug

On iOS, my sync and backup are stuck and won't move. Most Immich features are broken unless I disable access to photo library in privacy settings.

The OS that Immich Server is running on

NixOS

Version of Immich Server

2.0.1

Version of Immich Mobile App

2.0.0

Platform with the issue

  • Server
  • Web
  • Mobile

Device make and model

iPhone 14 Pro Max

Your docker-compose.yml content

I deploy Immich using the NixOS module

Your .env content

Irrelevant

Reproduction steps

  1. I have a large Apple Photos library - 50k photos, a lot of them are raw, total size in region of 750GB.
  2. I'm trying to upload it. This is (and is expected to) take a very long time.
  3. Half way through it gets stuck (this has happened twice, but at different points). The symptoms are:
  4. When I start the app, there's a sync-related spinner. If I click into the foreground backup UI while it's spinning, I see my progress but it'll never move. If I click into the foreground backup UI after this, it shows the 'select folders to back up' ui and you are now locked in this screen.
  5. If I go to the 'sync status' settings page, it just shows spinners - local and remote sync might succeed but hashing (which is not done) just spins forever and I never see the numbers.
  6. I cannot set settings anymore - they are unset when i return to the ui.
  7. If in Apple privacy settings I remove ability to view the system photo library, I can set settings, set finer log levels, etc, but when i re-enable library access it breaks again.

The only other hint is that before this happened, I did see #22601 in my logs. But I don't think the two can really be relevant as this seems like something is breaking the whole app.

Intuitively I assume that something's taking out a mutex or database lock which then is not being released, or something similar.

Relevant log output

Full device sync took - 2470ms
Device sync took - 2470ms
Resuming backup tasks...
Found 0 tasks
Start a new backup queue

That's kind of it.

Additional information

It's now failed on two different syncs in a way like this.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    Status
    Done

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions