Everytime I open the Immich app on iOS I have to disable and re-enable sync for it to process files. #7005

Closed
opened 2026-02-05 12:42:38 +03:00 by OVERLORD · 25 comments
Owner

Originally created by @JayCroghan on GitHub (Aug 28, 2025).

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

  • Yes

The bug

Whenever I open the Immich app on iOS I have to disable and re-enable sync for it to process files. If I don't, it will sit there with for example 15 images to process and nothing uploads. As soon as I disable and then re-enable sync everything uploads instantly.

The OS that Immich Server is running on

Ubuntu 25.04

Version of Immich Server

1.139.4

Version of Immich Mobile App

1.139.4

Platform with the issue

  • Server
  • Web
  • Mobile

Device make and model

Apple 14 Pro Max

Your docker-compose.yml content

name: immich

services:
  immich-server:
    container_name: immich_server
    image: ghcr.io/immich-app/immich-server:${IMMICH_VERSION:-release}
    # extends:
    #   file: hwaccel.transcoding.yml
    #   service: cpu # set to one of [nvenc, quicksync, rkmpp, vaapi, vaapi-wsl] for accelerated transcoding
    volumes:
      # Do not edit the next line. If you want to change the media storage location on your system, edit the value of UPLOAD_LOCATION in the .env file
      - ${UPLOAD_LOCATION}:/usr/src/app/upload
      - /etc/localtime:/etc/localtime:ro
    env_file:
      - .env
    ports:
      - '2283:2283'
    depends_on:
      - redis
      - database
    restart: always
    healthcheck:
      disable: false

  immich-machine-learning:
    container_name: immich_machine_learning
    # For hardware acceleration, add one of -[armnn, cuda, rocm, openvino, rknn] to the image tag.
    # Example tag: ${IMMICH_VERSION:-release}-cuda
    image: ghcr.io/immich-app/immich-machine-learning:${IMMICH_VERSION:-release}
    # extends: # uncomment this section for hardware acceleration - see https://immich.app/docs/features/ml-hardware-acceleration
    #   file: hwaccel.ml.yml
    #   service: cpu # set to one of [armnn, cuda, rocm, openvino, openvino-wsl, rknn] for accelerated inference - use the `-wsl` version for WSL2 where applicable
    volumes:
      - model-cache:/cache
    env_file:
      - .env
    restart: always
    healthcheck:
      disable: false

  redis:
    container_name: immich_redis
    image: docker.io/valkey/valkey:8-bookworm@sha256:fec42f399876eb6faf9e008570597741c87ff7662a54185593e74b09ce83d177
    healthcheck:
      test: redis-cli ping || exit 1
    restart: always

  database:
    container_name: immich_postgres
    image: ghcr.io/immich-app/postgres:14-vectorchord0.4.3-pgvectors0.2.0
    environment:
      POSTGRES_PASSWORD: ${DB_PASSWORD}
      POSTGRES_USER: ${DB_USERNAME}
      POSTGRES_DB: ${DB_DATABASE_NAME}
      POSTGRES_INITDB_ARGS: '--data-checksums'
      # Uncomment the DB_STORAGE_TYPE: 'HDD' var if your database isn't stored on SSDs
      # DB_STORAGE_TYPE: 'HDD'
    volumes:
      # Do not edit the next line. If you want to change the database storage location on your system, edit the value of DB_DATA_LOCATION in the .env file
      - ${DB_DATA_LOCATION}:/var/lib/postgresql/data
    restart: always

volumes:
  model-cache:

Your .env content

# The location where your uploaded files are stored
UPLOAD_LOCATION=/media/Shared/Immich

# The location where your database files are stored. Network shares are not supported for the database
DB_DATA_LOCATION=./postgres

# To set a timezone, uncomment the next line and change Etc/UTC to a TZ identifier from this list: https://en.wikipedia.org/wiki/List_of_tz_database_time_zones#List
TZ=CN

# The Immich version to use. You can pin this to a specific version like "v1.71.0"
IMMICH_VERSION=release

# Connection secret for postgres. You should change it to a random password
# Please use only the characters `A-Za-z0-9`, without special characters or spaces
DB_PASSWORD=<PASSWORD>

# The values below this line do not need to be changed
###################################################################################
DB_USERNAME=postgres
DB_DATABASE_NAME=immich

Reproduction steps

  1. Not have Immich open
  2. Open Immich app
  3. See the sync wheel spinning and click the cloud icon
  4. See 'Remainder XX assets'
  5. Have to disable 'Enable Backup' and re-enable it again for it to process the remainder.
    ...

Relevant log output


Additional information

No response

Originally created by @JayCroghan on GitHub (Aug 28, 2025). ### I have searched the existing issues, both open and closed, to make sure this is not a duplicate report. - [x] Yes ### The bug Whenever I open the Immich app on iOS I have to disable and re-enable sync for it to process files. If I don't, it will sit there with for example 15 images to process and nothing uploads. As soon as I disable and then re-enable sync everything uploads instantly. ### The OS that Immich Server is running on Ubuntu 25.04 ### Version of Immich Server 1.139.4 ### Version of Immich Mobile App 1.139.4 ### Platform with the issue - [ ] Server - [ ] Web - [x] Mobile ### Device make and model Apple 14 Pro Max ### Your docker-compose.yml content ```YAML name: immich services: immich-server: container_name: immich_server image: ghcr.io/immich-app/immich-server:${IMMICH_VERSION:-release} # extends: # file: hwaccel.transcoding.yml # service: cpu # set to one of [nvenc, quicksync, rkmpp, vaapi, vaapi-wsl] for accelerated transcoding volumes: # Do not edit the next line. If you want to change the media storage location on your system, edit the value of UPLOAD_LOCATION in the .env file - ${UPLOAD_LOCATION}:/usr/src/app/upload - /etc/localtime:/etc/localtime:ro env_file: - .env ports: - '2283:2283' depends_on: - redis - database restart: always healthcheck: disable: false immich-machine-learning: container_name: immich_machine_learning # For hardware acceleration, add one of -[armnn, cuda, rocm, openvino, rknn] to the image tag. # Example tag: ${IMMICH_VERSION:-release}-cuda image: ghcr.io/immich-app/immich-machine-learning:${IMMICH_VERSION:-release} # extends: # uncomment this section for hardware acceleration - see https://immich.app/docs/features/ml-hardware-acceleration # file: hwaccel.ml.yml # service: cpu # set to one of [armnn, cuda, rocm, openvino, openvino-wsl, rknn] for accelerated inference - use the `-wsl` version for WSL2 where applicable volumes: - model-cache:/cache env_file: - .env restart: always healthcheck: disable: false redis: container_name: immich_redis image: docker.io/valkey/valkey:8-bookworm@sha256:fec42f399876eb6faf9e008570597741c87ff7662a54185593e74b09ce83d177 healthcheck: test: redis-cli ping || exit 1 restart: always database: container_name: immich_postgres image: ghcr.io/immich-app/postgres:14-vectorchord0.4.3-pgvectors0.2.0 environment: POSTGRES_PASSWORD: ${DB_PASSWORD} POSTGRES_USER: ${DB_USERNAME} POSTGRES_DB: ${DB_DATABASE_NAME} POSTGRES_INITDB_ARGS: '--data-checksums' # Uncomment the DB_STORAGE_TYPE: 'HDD' var if your database isn't stored on SSDs # DB_STORAGE_TYPE: 'HDD' volumes: # Do not edit the next line. If you want to change the database storage location on your system, edit the value of DB_DATA_LOCATION in the .env file - ${DB_DATA_LOCATION}:/var/lib/postgresql/data restart: always volumes: model-cache: ``` ### Your .env content ```Shell # The location where your uploaded files are stored UPLOAD_LOCATION=/media/Shared/Immich # The location where your database files are stored. Network shares are not supported for the database DB_DATA_LOCATION=./postgres # To set a timezone, uncomment the next line and change Etc/UTC to a TZ identifier from this list: https://en.wikipedia.org/wiki/List_of_tz_database_time_zones#List TZ=CN # The Immich version to use. You can pin this to a specific version like "v1.71.0" IMMICH_VERSION=release # Connection secret for postgres. You should change it to a random password # Please use only the characters `A-Za-z0-9`, without special characters or spaces DB_PASSWORD=<PASSWORD> # The values below this line do not need to be changed ################################################################################### DB_USERNAME=postgres DB_DATABASE_NAME=immich ``` ### Reproduction steps 1. Not have Immich open 2. Open Immich app 3. See the sync wheel spinning and click the cloud icon 4. See 'Remainder XX assets' 5. Have to disable 'Enable Backup' and re-enable it again for it to process the remainder. ... ### Relevant log output ```shell ``` ### Additional information _No response_
OVERLORD added the mobile-beta label 2026-02-05 12:42:38 +03:00
Author
Owner

@schuhbacca commented on GitHub (Aug 28, 2025):

Are you on the beta timeline?

@schuhbacca commented on GitHub (Aug 28, 2025): Are you on the beta timeline?
Author
Owner

@JayCroghan commented on GitHub (Aug 28, 2025):

Yeah

On Thu 28 Aug 2025 at 22:37, schuhbacca @.***> wrote:

schuhbacca left a comment (immich-app/immich#21372)
https://github.com/immich-app/immich/issues/21372#issuecomment-3233767892

Are you on the beta timeline?


Reply to this email directly, view it on GitHub
https://github.com/immich-app/immich/issues/21372#issuecomment-3233767892,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/AAI55TCMV4Y76XDH546BOJD3P4H3FAVCNFSM6AAAAACFBVFKNOVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZTEMZTG43DOOBZGI
.
You are receiving this because you authored the thread.Message ID:
@.***>

@JayCroghan commented on GitHub (Aug 28, 2025): Yeah On Thu 28 Aug 2025 at 22:37, schuhbacca ***@***.***> wrote: > *schuhbacca* left a comment (immich-app/immich#21372) > <https://github.com/immich-app/immich/issues/21372#issuecomment-3233767892> > > Are you on the beta timeline? > > — > Reply to this email directly, view it on GitHub > <https://github.com/immich-app/immich/issues/21372#issuecomment-3233767892>, > or unsubscribe > <https://github.com/notifications/unsubscribe-auth/AAI55TCMV4Y76XDH546BOJD3P4H3FAVCNFSM6AAAAACFBVFKNOVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZTEMZTG43DOOBZGI> > . > You are receiving this because you authored the thread.Message ID: > ***@***.***> >
Author
Owner

@alextran1502 commented on GitHub (Aug 28, 2025):

Do you mind attaching the mobile app log?

@alextran1502 commented on GitHub (Aug 28, 2025): Do you mind attaching the mobile app log?
Author
Owner

@JayCroghan commented on GitHub (Aug 28, 2025):

Need to anonymise it will do it shortly

@JayCroghan commented on GitHub (Aug 28, 2025): Need to anonymise it will do it shortly
Author
Owner

@schuhbacca commented on GitHub (Aug 28, 2025):

Other question, is this over reverse proxy or local ip? If reverse proxy please try local ip.

@schuhbacca commented on GitHub (Aug 28, 2025): Other question, is this over reverse proxy or local ip? If reverse proxy please try local ip.
Author
Owner

@JayCroghan commented on GitHub (Aug 28, 2025):

It’s reverse proxy when I’m outside home but local ip is with nothing
between when I’m at home and it happens at home. I have a feeling it’s just
not switching over to my home network settings quick enough.

On Fri 29 Aug 2025 at 00:15, schuhbacca @.***> wrote:

schuhbacca left a comment (immich-app/immich#21372)
https://github.com/immich-app/immich/issues/21372#issuecomment-3234129348

Other question, is this over reverse proxy or local ip? If reverse proxy
please try local ip.


Reply to this email directly, view it on GitHub
https://github.com/immich-app/immich/issues/21372#issuecomment-3234129348,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/AAI55TDBC2NAXJNJ5ZYNAST3P4TK7AVCNFSM6AAAAACFBVFKNOVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZTEMZUGEZDSMZUHA
.
You are receiving this because you authored the thread.Message ID:
@.***>

@JayCroghan commented on GitHub (Aug 28, 2025): It’s reverse proxy when I’m outside home but local ip is with nothing between when I’m at home and it happens at home. I have a feeling it’s just not switching over to my home network settings quick enough. On Fri 29 Aug 2025 at 00:15, schuhbacca ***@***.***> wrote: > *schuhbacca* left a comment (immich-app/immich#21372) > <https://github.com/immich-app/immich/issues/21372#issuecomment-3234129348> > > Other question, is this over reverse proxy or local ip? If reverse proxy > please try local ip. > > — > Reply to this email directly, view it on GitHub > <https://github.com/immich-app/immich/issues/21372#issuecomment-3234129348>, > or unsubscribe > <https://github.com/notifications/unsubscribe-auth/AAI55TDBC2NAXJNJ5ZYNAST3P4TK7AVCNFSM6AAAAACFBVFKNOVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZTEMZUGEZDSMZUHA> > . > You are receiving this because you authored the thread.Message ID: > ***@***.***> >
Author
Owner

@schillt commented on GitHub (Aug 28, 2025):

I have noticed it also -- it is a new issue with the beta sync as it functioned over reverse proxy before -- and now does not work in either situation. The iOS app still seems to be quite unable to sync in background and even foreground now is a challenge.

@schillt commented on GitHub (Aug 28, 2025): I have noticed it also -- it is a new issue with the beta sync as it functioned over reverse proxy before -- and now does not work in either situation. The iOS app still seems to be quite unable to sync in background and even foreground now is a challenge.
Author
Owner

@hulmgulm commented on GitHub (Aug 28, 2025):

I noticed the same with the Android app. Using the beta timeline, it does not always sync. Immich is behind a nginx reverse proxy in my setup.

@hulmgulm commented on GitHub (Aug 28, 2025): I noticed the same with the Android app. Using the beta timeline, it does not always sync. Immich is behind a nginx reverse proxy in my setup.
Author
Owner

@alextran1502 commented on GitHub (Aug 29, 2025):

Please note that the new beta timeline defaults to uploading only when you are on Wi-Fi. If you want it to upload when you are on cellular, you will need to toggle on those settings in the backup settings page

Image

@alextran1502 commented on GitHub (Aug 29, 2025): Please note that the new beta timeline defaults to uploading only when you are on Wi-Fi. If you want it to upload when you are on cellular, you will need to toggle on those settings in the backup settings page ![Image](https://github.com/user-attachments/assets/4ee20b27-bbb6-4680-936d-fec2576e2272)
Author
Owner

@JayCroghan commented on GitHub (Aug 29, 2025):

Yes they are toggled on, when this happens is when I’m on my home wifi.

On Fri 29 Aug 2025 at 06:11, Alex @.***> wrote:

alextran1502 left a comment (immich-app/immich#21372)
https://github.com/immich-app/immich/issues/21372#issuecomment-3235104118

Please note that the new beta timeline defaults to uploading only when you
are on Wi-Fi. If you want it to upload when you are on cellular, you will
need to toggle on those settings in the backup settings page

IMG_BB165D934894-1.jpeg (view on web)
https://github.com/user-attachments/assets/4ee20b27-bbb6-4680-936d-fec2576e2272


Reply to this email directly, view it on GitHub
https://github.com/immich-app/immich/issues/21372#issuecomment-3235104118,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/AAI55TCHDTBN44X5S2CFRFT3P55CXAVCNFSM6AAAAACFBVFKNOVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZTEMZVGEYDIMJRHA
.
You are receiving this because you authored the thread.Message ID:
@.***>

@JayCroghan commented on GitHub (Aug 29, 2025): Yes they are toggled on, when this happens is when I’m on my home wifi. On Fri 29 Aug 2025 at 06:11, Alex ***@***.***> wrote: > *alextran1502* left a comment (immich-app/immich#21372) > <https://github.com/immich-app/immich/issues/21372#issuecomment-3235104118> > > Please note that the new beta timeline defaults to uploading only when you > are on Wi-Fi. If you want it to upload when you are on cellular, you will > need to toggle on those settings in the backup settings page > > IMG_BB165D934894-1.jpeg (view on web) > <https://github.com/user-attachments/assets/4ee20b27-bbb6-4680-936d-fec2576e2272> > > — > Reply to this email directly, view it on GitHub > <https://github.com/immich-app/immich/issues/21372#issuecomment-3235104118>, > or unsubscribe > <https://github.com/notifications/unsubscribe-auth/AAI55TCHDTBN44X5S2CFRFT3P55CXAVCNFSM6AAAAACFBVFKNOVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZTEMZVGEYDIMJRHA> > . > You are receiving this because you authored the thread.Message ID: > ***@***.***> >
Author
Owner

@alextran1502 commented on GitHub (Aug 29, 2025):

@JayCroghan Can you please share the mobile app log?

@alextran1502 commented on GitHub (Aug 29, 2025): @JayCroghan Can you please share the mobile app log?
Author
Owner

@JayCroghan commented on GitHub (Aug 29, 2025):

Sorry forgot, anonymised is below. The only changhes are domain name and ip and internal ip address.

The differernce is the IP address is not on nginx reverse proxy when I'm at home and the domain is.

Attached as a file here.
Immich_log_2025-08-28.log

@JayCroghan commented on GitHub (Aug 29, 2025): Sorry forgot, anonymised is below. The only changhes are domain name and ip and internal ip address. The differernce is the IP address is not on nginx reverse proxy when I'm at home and the domain is. Attached as a file here. [Immich_log_2025-08-28.log](https://github.com/user-attachments/files/22047504/Immich_log_2025-08-28.log)
Author
Owner

@alextran1502 commented on GitHub (Aug 29, 2025):

@JayCroghan Looks like there are some TLS/SSL communication failed in the logs and block the server communication, so naturally, it doesn't upload.

Do you use self-signed cert?

@alextran1502 commented on GitHub (Aug 29, 2025): @JayCroghan Looks like there are some `TLS/SSL communication failed` in the logs and block the server communication, so naturally, it doesn't upload. Do you use self-signed cert?
Author
Owner

@JayCroghan commented on GitHub (Aug 29, 2025):

No I use acme.sh which uses LetsEncrypt, cert is currently issued by by ZeroSSL

Image
@JayCroghan commented on GitHub (Aug 29, 2025): No I use acme.sh which uses LetsEncrypt, cert is currently issued by by ZeroSSL <img width="816" height="1003" alt="Image" src="https://github.com/user-attachments/assets/c852e1ce-a46c-4590-899c-08145b119508" />
Author
Owner

@JayCroghan commented on GitHub (Aug 29, 2025):

But I am at home when I do this switch, it should have already switched to my home IP, so it must be getting stuck after the TLS failure and not bothering to switch/restart the sync until I manually disable and then re-enable?

@JayCroghan commented on GitHub (Aug 29, 2025): But I am at home when I do this switch, it should have already switched to my home IP, so it must be getting stuck after the TLS failure and not bothering to switch/restart the sync until I manually disable and then re-enable?
Author
Owner

@alextran1502 commented on GitHub (Aug 29, 2025):

But I am at home when I do this switch, it should have already switched to my home IP

You are using split DNS?

@alextran1502 commented on GitHub (Aug 29, 2025): > But I am at home when I do this switch, it should have already switched to my home IP You are using split DNS?
Author
Owner

@JayCroghan commented on GitHub (Aug 29, 2025):

This option, I've replaced with what's in the log, so it's easier to follow. It's when I'm on my home network that I do this.

Image
@JayCroghan commented on GitHub (Aug 29, 2025): This option, I've replaced with what's in the log, so it's easier to follow. It's when I'm on my home network that I do this. <img width="1280" height="2774" alt="Image" src="https://github.com/user-attachments/assets/0d74a47f-aa1e-42af-8d8a-e67f32d1e9d1" />
Author
Owner

@alextran1502 commented on GitHub (Aug 29, 2025):

This option isn't working with the beta timeline yet

@alextran1502 commented on GitHub (Aug 29, 2025): This option isn't working with the beta timeline yet
Author
Owner

@JayCroghan commented on GitHub (Aug 29, 2025):

This option isn't working with the beta timeline yet

That would explain having to re-enable sync then. I guess I'll just leave it on the domain and try and fix the TLS errors which are most likely caused by the fact I'm accessing a server in China (where I live) via VPNs outside of China and wait for the beta timeline to implement.

Thanks for your help.

@JayCroghan commented on GitHub (Aug 29, 2025): > This option isn't working with the beta timeline yet That would explain having to re-enable sync then. I guess I'll just leave it on the domain and try and fix the TLS errors which are most likely caused by the fact I'm accessing a server in China (where I live) via VPNs outside of China and wait for the beta timeline to implement. Thanks for your help.
Author
Owner

@alextran1502 commented on GitHub (Sep 2, 2025):

@poomwong Looks like the upload task doesn't support basic auth 🤔

@alextran1502 commented on GitHub (Sep 2, 2025): @poomwong Looks like the upload task doesn't support basic auth 🤔
Author
Owner

@poomwong commented on GitHub (Sep 2, 2025):

@alextran1502 Looks like the upload task doesn't support basic auth 🤔

Yeah l. I opened #21520 and it was clarified that its not supported and is experimental. The comment is not related and ill remove it.

@poomwong commented on GitHub (Sep 2, 2025): > @alextran1502 Looks like the upload task doesn't support basic auth 🤔 Yeah l. I opened #21520 and it was clarified that its not supported and is experimental. The comment is not related and ill remove it.
Author
Owner

@hazelyou commented on GitHub (Sep 7, 2025):

Could I clarify if the mobile app sync (when toggled on) is meant to be automatic like on Wifi or is it just to enable the feature? It doesn't seem to automatically upload when I'm on mobile data. When I manually hit upload it works fine. This is on iOS on 1.140.1 for the server and 1.140.1.build.220 for the iOS app and it's connected through a Cloudflare tunnel to my home network.

@hazelyou commented on GitHub (Sep 7, 2025): Could I clarify if the mobile app sync (when toggled on) is meant to be automatic like on Wifi or is it just to enable the feature? It doesn't seem to automatically upload when I'm on mobile data. When I manually hit upload it works fine. This is on iOS on 1.140.1 for the server and 1.140.1.build.220 for the iOS app and it's connected through a Cloudflare tunnel to my home network.
Author
Owner

@shenlong-tanwen commented on GitHub (Sep 13, 2025):

The backup not being executed automatically on app reopens is likely fixed with the recent release (1.142.0). Can you try if you can still reproduce the issue there?

@shenlong-tanwen commented on GitHub (Sep 13, 2025): The backup not being executed automatically on app reopens is likely fixed with the recent release (1.142.0). Can you try if you can still reproduce the issue there?
Author
Owner

@hazelyou commented on GitHub (Sep 13, 2025):

No, I can't reproduce the issue after updating to 1.142.0 on both the server and iOS app. It is working now

@hazelyou commented on GitHub (Sep 13, 2025): No, I can't reproduce the issue after updating to 1.142.0 on both the server and iOS app. It is working now
Author
Owner

@schuhbacca commented on GitHub (Sep 13, 2025):

Awesome! Going to close this issue then.

@schuhbacca commented on GitHub (Sep 13, 2025): Awesome! Going to close this issue then.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: immich-app/immich#7005