immich-app / immich

High performance self-hosted photo and video management solution.
https://immich.app
GNU Affero General Public License v3.0
44.57k stars 2.17k forks source link

[BUG] <iOS app often stuck on upload> #3632

Closed nukewarrior closed 10 months ago

nukewarrior commented 1 year ago

The bug

upload process often stuck. I have to manually cancel and then start backup process. image image

The OS that Immich Server is running on

Unraid 6.12.3

Version of Immich Server

v1.72.2

Version of Immich Mobile App

v1.72.0

Platform with the issue

Your docker-compose.yml content

version: "3.8"

services:
  immich:
    image: ghcr.io/imagegenius/immich:latest
    container_name: immich
    restart: unless-stopped
    cpuset: 4,5,10,11
    networks:
      - traefik
    expose:
      - 8080
    devices:
      - /dev/dri:/dev/dri
    volumes:
      - ./immich:/photos
      - ./config:/config
      - ./machine-learning:/config/machine-learning
    environment:
      - TZ=Asia/Shanghai
      - PUID=99
      - PGID=100
      - UMASK=000
      - DB_HOSTNAME=<x.x.x.x>
      - DB_USERNAME=<username>
      - DB_PASSWORD=<password>
      - DB_DATABASE_NAME=immich
      - REDIS_HOSTNAME=<x.x.x.x>
      - DISABLE_MACHINE_LEARNING=false #optional
      - DISABLE_TYPESENSE=false #optional
      - DB_PORT=5432 #optional
      - REDIS_PORT=6379 #optional
      # - REDIS_PASSWORD= #optional
    labels:
      - "traefik.enable=true"
      - "traefik.docker.network=traefik"
      # web-ui
      - "traefik.http.routers.immich.entrypoints=out"
      - "traefik.http.routers.immich.rule=Host(`photo.<mydomain>.com`)"
      - "traefik.http.routers.immich.tls=true"
      - "traefik.http.routers.immich.service=immich"
      - "traefik.http.services.immich.loadbalancer.server.port=8080"

      - "net.unraid.docker.managed=dockerman"
      - "net.unraid.docker.shell=bash"
      - "net.unraid.docker.webui=https://photo.<mydomain>.com"
      - "net.unraid.docker.icon=https://raw.githubusercontent.com/imagegenius/templates/main/unraid/img/immich.png"
    logging:
      driver: "json-file"
      options:
        max-size: "10m"

networks:
  traefik:
    external: true

Your .env content

none,I just put env variables in compose file

Reproduction steps

1.open app,foreground backup auto start
2.wait for a while,and the process will stuck on some pic

Additional information

No response

alextran1502 commented 1 year ago

Hello I assume you have either Shared Album or iCloud photos enabled?

nukewarrior commented 1 year ago

Hello I assume you have either Shared Album or iCloud photos enabled?

Yes,I have a icloud subscription shared through family members and some Shared Album. And I turned on 「Optimize iPhone Storage」 option ,most of my photos are on icloud.

What should I do to fully upload my photos(5k pics) to my immich server?

Thx.

alextran1502 commented 1 year ago

I don't use iCloud, so we never get a proper diagnosing with issues that use iCloud or Shared Album since those photos and videos are not on your device but on the iCloud server.

Right now, unfortunately, the way to make things works is to disable iCloud, Optimized iPhone Storage and Share Album feature to download those photos and videos to your physical device so that Immich can read it

nukewarrior commented 1 year ago

I don't use iCloud, so we never get a proper diagnosing with issues that use iCloud or Shared Album since those photos and videos are not on your device but on the iCloud server.

Right now, unfortunately, the way to make things works is to disable iCloud, Optimized iPhone Storage and Share Album feature to download those photos and videos to your physical device so that Immich can read it

OK,I understand,too bad I dont have enough space to download all photos from icloud to my phone. And,is there any improvement planning?I find some issues with same icloud problem.

And thank you for making this great app:)