Timeline of the iOS app not showing all photos when 'Recents' is selected as a backup album and the app is allowed to access all photos in library. #2054

Closed
opened 2026-02-05 04:52:47 +03:00 by OVERLORD · 3 comments
Owner

Originally created by @namu-lee on GitHub (Jan 24, 2024).

The bug

IMG_9653

I use the immich iOS app in iPhone 14.
If I give the app full access to the photo library and select 'Recents' as a backup album, the timeline loads infinitely (the red circled part of the screenshot) and some photos saved in my library are missing in the timeline.
The problem doesn't show up if I give the app limited access to my photo library.

Thanks.

The OS that Immich Server is running on

Alpine 3.18

Version of Immich Server

1.93.3

Version of Immich Mobile App

1.93.2 build.135

Platform with the issue

  • Server
  • Web
  • Mobile

Your docker-compose.yml content

version: "3.8"

#
# WARNING: Make sure to use the docker-compose.yml of the current release:
#
# https://github.com/immich-app/immich/releases/latest/download/docker-compose.yml
#
# The compose file on main may not be compatible with the latest release.
#

name: immich

services:
  immich-server:
    container_name: immich_server
    image: ghcr.io/immich-app/immich-server:${IMMICH_VERSION:-release}
    command: [ "start.sh", "immich" ]
    volumes:
      - ${UPLOAD_LOCATION}:/usr/src/app/upload
      - /etc/localtime:/etc/localtime:ro
      - ~/CameraRoll:/usr/src/app/external:ro
    env_file:
      - .env
    ports:
      - 2283:3001
    depends_on:
      - redis
      - database
    restart: always

  immich-microservices:
    container_name: immich_microservices
    image: ghcr.io/immich-app/immich-server:${IMMICH_VERSION:-release}
    # extends:
    #   file: hwaccel.yml
    #   service: hwaccel
    command: [ "start.sh", "microservices" ]
    volumes:
      - ${UPLOAD_LOCATION}:/usr/src/app/upload
      - /etc/localtime:/etc/localtime:ro
      - ~/CameraRoll:/usr/src/app/external:ro
    env_file:
      - .env
    depends_on:
      - redis
      - database
    restart: always

  immich-machine-learning:
    container_name: immich_machine_learning
    image: ghcr.io/immich-app/immich-machine-learning:${IMMICH_VERSION:-release}
    volumes:
      - model-cache:/cache
    env_file:
      - .env
    restart: always

  redis:
    container_name: immich_redis
    image: redis:6.2-alpine@sha256:c5a607fb6e1bb15d32bbcf14db22787d19e428d59e31a5da67511b49bb0f1ccc
    restart: always

  database:
    container_name: immich_postgres
    image: tensorchord/pgvecto-rs:pg14-v0.1.11@sha256:0335a1a22f8c5dd1b697f14f079934f5152eaaa216c09b61e293be285491f8ee
    env_file:
      - .env
    environment:
      POSTGRES_PASSWORD: ${DB_PASSWORD}
      POSTGRES_USER: ${DB_USERNAME}
      POSTGRES_DB: ${DB_DATABASE_NAME}
    volumes:
      - pgdata:/var/lib/postgresql/data
    restart: always

volumes:
  pgdata:
  model-cache:

Your .env content

# You can find documentation for all the supported env variables at https://immich.app/docs/install/environment-variables

# The location where your uploaded files are stored
UPLOAD_LOCATION=./library

# 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
DB_PASSWORD=postgres

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

REDIS_HOSTNAME=immich_redis

Reproduction steps

1. Give immich app full access to the photo library in settings.
2. In the backup menu, select 'Recents' as a backup album.
3. Go back to timeline and refresh the timeline.
4. The timeline loads infinitely and some photos in my photo library are missing in the timeline.
...

Additional information

No response

Originally created by @namu-lee on GitHub (Jan 24, 2024). ### The bug ![IMG_9653](https://github.com/immich-app/immich/assets/76895251/8e6a8bed-505a-49e0-9882-199670d25f73) I use the immich iOS app in iPhone 14. If I give the app full access to the photo library and select 'Recents' as a backup album, the timeline loads infinitely (the red circled part of the screenshot) and some photos saved in my library are missing in the timeline. The problem doesn't show up if I give the app limited access to my photo library. Thanks. ### The OS that Immich Server is running on Alpine 3.18 ### Version of Immich Server 1.93.3 ### Version of Immich Mobile App 1.93.2 build.135 ### Platform with the issue - [ ] Server - [ ] Web - [X] Mobile ### Your docker-compose.yml content ```YAML version: "3.8" # # WARNING: Make sure to use the docker-compose.yml of the current release: # # https://github.com/immich-app/immich/releases/latest/download/docker-compose.yml # # The compose file on main may not be compatible with the latest release. # name: immich services: immich-server: container_name: immich_server image: ghcr.io/immich-app/immich-server:${IMMICH_VERSION:-release} command: [ "start.sh", "immich" ] volumes: - ${UPLOAD_LOCATION}:/usr/src/app/upload - /etc/localtime:/etc/localtime:ro - ~/CameraRoll:/usr/src/app/external:ro env_file: - .env ports: - 2283:3001 depends_on: - redis - database restart: always immich-microservices: container_name: immich_microservices image: ghcr.io/immich-app/immich-server:${IMMICH_VERSION:-release} # extends: # file: hwaccel.yml # service: hwaccel command: [ "start.sh", "microservices" ] volumes: - ${UPLOAD_LOCATION}:/usr/src/app/upload - /etc/localtime:/etc/localtime:ro - ~/CameraRoll:/usr/src/app/external:ro env_file: - .env depends_on: - redis - database restart: always immich-machine-learning: container_name: immich_machine_learning image: ghcr.io/immich-app/immich-machine-learning:${IMMICH_VERSION:-release} volumes: - model-cache:/cache env_file: - .env restart: always redis: container_name: immich_redis image: redis:6.2-alpine@sha256:c5a607fb6e1bb15d32bbcf14db22787d19e428d59e31a5da67511b49bb0f1ccc restart: always database: container_name: immich_postgres image: tensorchord/pgvecto-rs:pg14-v0.1.11@sha256:0335a1a22f8c5dd1b697f14f079934f5152eaaa216c09b61e293be285491f8ee env_file: - .env environment: POSTGRES_PASSWORD: ${DB_PASSWORD} POSTGRES_USER: ${DB_USERNAME} POSTGRES_DB: ${DB_DATABASE_NAME} volumes: - pgdata:/var/lib/postgresql/data restart: always volumes: pgdata: model-cache: ``` ### Your .env content ```Shell # You can find documentation for all the supported env variables at https://immich.app/docs/install/environment-variables # The location where your uploaded files are stored UPLOAD_LOCATION=./library # 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 DB_PASSWORD=postgres # The values below this line do not need to be changed ################################################################################### DB_HOSTNAME=immich_postgres DB_USERNAME=postgres DB_DATABASE_NAME=immich REDIS_HOSTNAME=immich_redis ``` ### Reproduction steps ```bash 1. Give immich app full access to the photo library in settings. 2. In the backup menu, select 'Recents' as a backup album. 3. Go back to timeline and refresh the timeline. 4. The timeline loads infinitely and some photos in my photo library are missing in the timeline. ... ``` ### Additional information _No response_
Author
Owner

@alextran1502 commented on GitHub (Jan 24, 2024):

The circular progress bar means that it is calculating the hash of the assets, once that is done, all of the assets will be shown

@alextran1502 commented on GitHub (Jan 24, 2024): The circular progress bar means that it is calculating the hash of the assets, once that is done, all of the assets will be shown
Author
Owner

@namu-lee commented on GitHub (Jan 24, 2024):

The circular progress bar means that it is calculating the hash of the assets, once that is done, all of the assets will be shown

However, the loading has never been completed for a week, and i only have about 2500 photos in my libray. Is it normal that hashing takes long time like this? Also, I cannot see my new photos taken by camera in the library. A wierd behavior is if I take a new screenshot and turn the app off and on, I can see new screenshots in the library, but not photos taken with camera. Just refreshing the timeline doesn't show the new screenshots. The automatic backup process normally detects and uploads all the new photos, but uploaded photos taken with camera are indicated as cloud-only assets.

@namu-lee commented on GitHub (Jan 24, 2024): > The circular progress bar means that it is calculating the hash of the assets, once that is done, all of the assets will be shown However, the loading has never been completed for a week, and i only have about 2500 photos in my libray. Is it normal that hashing takes long time like this? Also, I cannot see my new photos taken by camera in the library. A wierd behavior is if I take a new screenshot and turn the app off and on, I can see new screenshots in the library, but not photos taken with camera. Just refreshing the timeline doesn't show the new screenshots. The automatic backup process normally detects and uploads all the new photos, but uploaded photos taken with camera are indicated as cloud-only assets.
Author
Owner

@namu-lee commented on GitHub (Jan 24, 2024):

The circular progress bar means that it is calculating the hash of the assets, once that is done, all of the assets will be shown

I took a hint from your comment and found a solution.
If I don't exclude(=double-tap) shared albums in the backup selection menu, the loading time gets infinitely long (I've never seen it finished). I don't know the exact process of hashing, but I think the app tries to hash all the photos in the shared albums (which are not in my local storage) even if I didn't selected the shared albums to be backed up.

@namu-lee commented on GitHub (Jan 24, 2024): > The circular progress bar means that it is calculating the hash of the assets, once that is done, all of the assets will be shown I took a hint from your comment and found a solution. If I don't exclude(=double-tap) shared albums in the backup selection menu, the loading time gets infinitely long (I've never seen it finished). I don't know the exact process of hashing, but I think the app tries to hash all the photos in the shared albums (which are not in my local storage) even if I didn't selected the shared albums to be backed up.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: immich-app/immich#2054