Background Uploads iOS not working at all #814

Closed
opened 2026-02-04 22:48:58 +03:00 by OVERLORD · 6 comments
Owner

Originally created by @DwiDarmayasa on GitHub (Apr 16, 2023).

The bug

The background backup doesn’t work at all. even pull the notifications, it immediately stop uploading.

The OS that Immich Server is running on

Ubuntu 20.04

Version of Immich Server

V1.53

Version of Immich Mobile App

V1.53

Platform with the issue

  • Server
  • Web
  • Mobile

Your docker-compose.yml content

---
version: "2.1"
services:
  immich:
    image: ghcr.io/imagegenius/immich:latest
    container_name: immich
    environment:
      - PUID=1000
      - PGID=1000
      - TZ=Etc/UTC
      - DB_HOSTNAME=192.168.1.x
      - DB_USERNAME=postgres
      - DB_PASSWORD=postgres
      - DB_DATABASE_NAME=immich
      - REDIS_HOSTNAME=192.168.1.x
      - JWT_SECRET=somelongrandomstring
      - DISABLE_MACHINE_LEANRNING=false #optional
      - DISABLE_TYPESENSE=false #optional
      - DB_PORT=5432 #optional
      - REDIS_PORT=6379 #optional
      - REDIS_PASSWORD= #optional
    volumes:
      - path_to_appdata:/config
      - path_to_photos:/photos
      - path_to_transformers:/config/transformers #optional
    ports:
      - 8080:8080
    restart: unless-stopped
# This container requires an external application to be run separately to be run separately.
# Redis:
  redis:
    image: redis
    ports:
      - 6379:6379
    container_name: redis
# PostgreSQL 14:
  postgres14:
    image: postgres:14
    ports:
      - 5432:5432
    container_name: postgres14
    environment:
      POSTGRES_USER: postgres
      POSTGRES_PASSWORD: postgres
      POSTGRES_DB: immich
    volumes:
      - path_to_postgres:/var/lib/postgresql/data

Your .env content

No env

Reproduction steps

1.pull notifications which stopped uploading 
2.close app also stopped uploading 
3.
...

Additional information

No response

Originally created by @DwiDarmayasa on GitHub (Apr 16, 2023). ### The bug The background backup doesn’t work at all. even pull the notifications, it immediately stop uploading. ### The OS that Immich Server is running on Ubuntu 20.04 ### Version of Immich Server V1.53 ### Version of Immich Mobile App V1.53 ### Platform with the issue - [ ] Server - [ ] Web - [X] Mobile ### Your docker-compose.yml content ```YAML --- version: "2.1" services: immich: image: ghcr.io/imagegenius/immich:latest container_name: immich environment: - PUID=1000 - PGID=1000 - TZ=Etc/UTC - DB_HOSTNAME=192.168.1.x - DB_USERNAME=postgres - DB_PASSWORD=postgres - DB_DATABASE_NAME=immich - REDIS_HOSTNAME=192.168.1.x - JWT_SECRET=somelongrandomstring - DISABLE_MACHINE_LEANRNING=false #optional - DISABLE_TYPESENSE=false #optional - DB_PORT=5432 #optional - REDIS_PORT=6379 #optional - REDIS_PASSWORD= #optional volumes: - path_to_appdata:/config - path_to_photos:/photos - path_to_transformers:/config/transformers #optional ports: - 8080:8080 restart: unless-stopped # This container requires an external application to be run separately to be run separately. # Redis: redis: image: redis ports: - 6379:6379 container_name: redis # PostgreSQL 14: postgres14: image: postgres:14 ports: - 5432:5432 container_name: postgres14 environment: POSTGRES_USER: postgres POSTGRES_PASSWORD: postgres POSTGRES_DB: immich volumes: - path_to_postgres:/var/lib/postgresql/data ``` ### Your .env content ```Shell No env ``` ### Reproduction steps ```bash 1.pull notifications which stopped uploading 2.close app also stopped uploading 3. ... ``` ### Additional information _No response_
Author
Owner

@bo0tzz commented on GitHub (Apr 16, 2023):

The foreground and background backups are separate mechanisms. The foreground backup will run only while the app is open, and stops immediately when you close it. The background backup will run whenever iOS schedules them to run, which can take a while.

@bo0tzz commented on GitHub (Apr 16, 2023): The foreground and background backups are separate mechanisms. The foreground backup will run only while the app is open, and stops immediately when you close it. The background backup will run whenever iOS schedules them to run, which can take a while.
Author
Owner

@DwiDarmayasa commented on GitHub (Apr 17, 2023):

How can I schedule them?

@DwiDarmayasa commented on GitHub (Apr 17, 2023): How can I schedule them?
Author
Owner

@alextran1502 commented on GitHub (Apr 17, 2023):

@DwiDarmayasa you don't schedule it, the OS does.

@alextran1502 commented on GitHub (Apr 17, 2023): @DwiDarmayasa you don't schedule it, the OS does.
Author
Owner

@DwiDarmayasa commented on GitHub (Apr 17, 2023):

@alextran1502 I don't understand, please explain? is it the server or on iPhone? if the server how can I configure it?

@DwiDarmayasa commented on GitHub (Apr 17, 2023): @alextran1502 I don't understand, please explain? is it the server or on iPhone? if the server how can I configure it?
Author
Owner

@alextran1502 commented on GitHub (Apr 17, 2023):

@DwiDarmayasa The iPhone itself will allow the app to run background tasks based on iOS background scheduler and this is decided by different factors that we don't know, I believe it is decided by how many app on your phone has background tasks schedule and how often you use the app. The gist of it is the often you use the app, the more frequent background tasks are allowed to run

@alextran1502 commented on GitHub (Apr 17, 2023): @DwiDarmayasa The iPhone itself will allow the app to run background tasks based on iOS background scheduler and this is decided by different factors that we don't know, I believe it is decided by how many app on your phone has background tasks schedule and how often you use the app. The gist of it is the often you use the app, the more frequent background tasks are allowed to run
Author
Owner

@DwiDarmayasa commented on GitHub (Apr 17, 2023):

Owh it's not like PhotoSync then, I see. Thank you for your explanation, I really appreciate it. @alextran1502

@DwiDarmayasa commented on GitHub (Apr 17, 2023): Owh it's not like PhotoSync then, I see. Thank you for your explanation, I really appreciate it. @alextran1502
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: immich-app/immich#814