immich-app / immich

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

Mobile app Photos & Library tab seemingly spin forever #7558

Open rcrisanti opened 6 months ago

rcrisanti commented 6 months ago

The bug

I had opened #7498, but it is still an issue for me and I don't believe I have the premissions to re-open that issue. I will copy over all the info from that issue here. The spinners at the bottom of the mobile app have been going nonstop for days for me.

The "Photos" & "Library" tabs on the iOS mobile app tab bar seemingly spin forever, even after the backup icon at the top is done spinning. I'm not clear on what those spinners indicate, but it seems like it's just stuck. The "Search" & "Sharing" tabs do not have the spinner. All my photos seem to be there, so this is just a minor visual bug I think. immich-tabbar

The OS that Immich Server is running on

Debian 11

Version of Immich Server

v1.95.1

Version of Immich Mobile App

v1.95.0

Platform with the issue

Your docker-compose.yml content

version: "3.8"
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
    env_file:
      - .env
    secrets:
      - DB_PASSWORD_FILE
    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}
    command: [ "start.sh", "microservices" ]
    volumes:
      - ${UPLOAD_LOCATION}:/usr/src/app/upload
      - /etc/localtime:/etc/localtime:ro
    env_file:
      - .env
    secrets:
      - DB_PASSWORD_FILE
    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:51d6c56749a4243096327e3fb964a48ed92254357108449cb6e23999c37773c5
    restart: always

  database:
    container_name: immich_postgres
    image: tensorchord/pgvecto-rs:pg14-v0.2.0@sha256:90724186f0a3517cf6914295b5ab410db9ce23190a2d9d0b9dd6463e3fa298f0
    environment:
      POSTGRES_PASSWORD_FILE: /run/secrets/DB_PASSWORD_FILE
      POSTGRES_USER: ${DB_USERNAME}
      POSTGRES_DB: ${DB_DATABASE_NAME}
    volumes:
      - pgdata:/var/lib/postgresql/data
    secrets:
      - DB_PASSWORD_FILE
    restart: always

secrets:
  DB_PASSWORD_FILE:
    file: /etc/immich/POSTGRES_PASSWORD

volumes:
  pgdata:
  model-cache:

networks:
  default:
    name: caddy_net
    external: true

Your .env content

UPLOAD_LOCATION=/mnt/homeserver/immich
IMMICH_VERSION=v1.95.1
DB_PASSWORD_FILE="/run/secrets/DB_PASSWORD_FILE"
DB_HOSTNAME=immich_postgres
DB_USERNAME=postgres
DB_DATABASE_NAME=immich
REDIS_HOSTNAME=immich_redis

Reproduction steps

1. It seems to happen for me every time I open the mobile app

Additional information

Here are my mobile logs Immich_log_2024-03-01T08:39:14.965965.csv

I don't know exactly what is normal or what could be the sign of an issue, but I have a ton of Failed to hash file warnings.

hugoduraes commented 1 month ago

I also have this issue although I don’t see those “failed to hash” messages on the logs.

alextran1502 commented 1 month ago

@hugoduraes Have you uploaded anything to your instance, or have you chosen any album for backup?

RichGoldthwaite commented 3 weeks ago

I also have this issue as well on iOS. Both tabs just spin forever. I’m backing up recents and one shared photo album.

edit: I do notice that actually the spinning does stop after a while and see the following in the logs. Not sure if it’s correlated though.

IMG_3327

alextran1502 commented 3 weeks ago

@RichGoldthwaite if you only include your Recents album, does the timeline eventually display things?

tjhorner commented 3 weeks ago

I am seeing this issue too, and something interesting is that the logs refer to my Recents album as “new”. The error (same one as @RichGoldthwaite is seeing) happens when trying to sync Recents to the app’s database, so I imagine it tries to sync it but fails for some reason (a problematic album item?) and then it tries syncing it anew next time the app opens, ad infinitum.

IMG_9849

hugoduraes commented 5 days ago

@alextran1502 sorry for the delay in replying back, I’ve missed this completely.

I selected the Recents album and the timeline never shows the assets from there. The spinners keep spinning!