immich-app / immich

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

[BUG] Error to create or see albums #5278

Closed githubbab closed 1 week ago

githubbab commented 9 months ago

The bug

I have 930 albums. When i try to see or create album on web interface i have an error : image

I have the same problem with the immich-cli : immich-cli_error.log

I think is a time-out when getting all album : immich_server_error.log

I don't have any problem on the android app.

The OS that Immich Server is running on

docker

Version of Immich Server

v1.88.1

Version of Immich Mobile App

v1.88.0

Platform with the issue

Your docker-compose.yml content

version: "3.8"

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
    ports:
      - 2283:3001
    depends_on:
      - redis
      - database
      - typesense
    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
    env_file:
      - .env
    depends_on:
      - redis
      - database
      - typesense
    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

  typesense:
    container_name: immich_typesense
    image: typesense/typesense:0.24.1@sha256:9bcff2b829f12074426ca044b56160ca9d777a0c488303469143dd9f8259d4dd
    environment:
      - TYPESENSE_API_KEY=${TYPESENSE_API_KEY}
      - TYPESENSE_DATA_DIR=/data
      # remove this to get debug messages
      - GLOG_minloglevel=1
    volumes:
      - tsdata:/data
    restart: always

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

  database:
    container_name: immich_postgres
    image: postgres:14-alpine@sha256:28407a9961e76f2d285dc6991e8e48893503cc3836a4755bbc2d40bcc272a441
    env_file:
      - .env
    environment:
      POSTGRES_PASSWORD: ${DB_PASSWORD}
      POSTGRES_USER: ${DB_USERNAME}
      POSTGRES_DB: ${DB_DATABASE_NAME}
    ports:
      - target: 5432
        published: 5432
        protocol: tcp
        mode: host
    volumes:
      - pgdata:/var/lib/postgresql/data
    restart: always

volumes:
  pgdata:
  model-cache:
  tsdata:

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 secrets for postgres and typesense. You should change these to random passwords
TYPESENSE_API_KEY=some-random-text
DB_PASSWORD=XXXXXXX

# 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. Have lot of albums
2a. either see or create albums on web interface
2b. or import with create album with immich-cli

Additional information

I don't have any problem on the android app.

Antonio12389 commented 9 months ago

Me puedes apoyar siguen robando mis cuentas de

java.lang.RuntimeException: Unable to start activity ComponentInfo{com.profittrading.forbinance/com.profitpump.forbittrex.modules.splash.presentation.ui.SplashActivity}: android.view.InflateException: Binary XML file line #26 in com.profittrading.forbinance:layout/activity_splash_rd: Binary XML file line #26 in com.profittrading.forbinance:layout/activity_splash_rd: Error inflating class ImageView at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:3340) at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:3489) at android.app.servertransaction.LaunchActivityItem.execute(LaunchActivityItem.java:83) at android.app.servertransaction.TransactionExecutor.executeCallbacks(TransactionExecutor.java:135) at android.app.servertransaction.TransactionExecutor.execute(TransactionExecutor.java:95) at android.app.ActivityThread$H.handleMessage(ActivityThread.java:2073) at android.os.Handler.dispatchMessage(Handler.java:107) at android.os.Looper.loop(Looper.java:225) at android.app.ActivityThread.main(ActivityThread.java:7563) at java.lang.reflect.Method.invoke(Native Method) at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:539) at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:994) Caused by: android.view.InflateException: Binary XML file line #26 in com.profittrading.forbinance:layout/activity_splash_rd: Binary XML file line #26 in com.profittrading.forbinance:layout/activity_splash_rd: Error inflating class ImageView Caused by: android.view.InflateException: Binary XML file line #26 in com.profittrading.forbinance:layout/activity_splash_rd: Error inflating class ImageView Caused by: android.content.res.Resources$NotFoundException: Drawable (missing name) with resource ID #0x7f070135 Caused by: android.content.res.Resources$NotFoundException: Unable to find resource ID #0x7f070135 at android.content.res.ResourcesImpl.getResourceName(ResourcesImpl.java:283) at android.content.res.ResourcesImpl.loadDrawableForCookie(ResourcesImpl.java:855) at android.content.res.ResourcesImpl.originalLoadDrawable(ResourcesImpl.java:696) at android.content.res.ResourcesImpl.loadDrawable(ResourcesImpl.java:593) at android.content.res.MiuiResourcesImpl.loadDrawable(MiuiResourcesImpl.java:307) at android.content.res.Resources.loadDrawable(Resources.java:932) at android.content.res.TypedArray.getDrawableForDensity(TypedArray.java:1007) at android.content.res.TypedArray.getDrawable(TypedArray.java:982) at android.widget.ImageView.(ImageView.java:207) at android.widget.ImageView.(ImageView.java:188) at androidx.appcompat.widget.AppCompatImageView.(AppCompatImageView.java:3) at androidx.appcompat.widget.AppCompatImageView.(AppCompatImageView.java:2) at androidx.appcompat.app.AppCompatViewInflater.createImageView(AppCompatViewInflater.java:3) at androidx.appcompat.app.AppCompatViewInflater.createView(AppCompatViewInflater.java:15) at androidx.appcompat.app.AppCompatDelegateImpl.createView(AppCompatDelegateImpl.java:155) at androidx.appcompat.app.AppCompatDelegateImpl.onCreateView(AppCompatDelegateImpl.java:1) at android.view.LayoutInflater.tryCreateView(LayoutInflater.java:1071) at android.view.LayoutInflater.createViewFromTag(LayoutInflater.java:1001) at android.view.LayoutInflater.createViewFromTag(LayoutInflater.java:965) at android.view.LayoutInflater.rInflate(LayoutInflater.java:1144) at android.view.LayoutInflater.rInflateChildren(LayoutInflater.java:1105) at android.view.LayoutInflater.rInflate(LayoutInflater.java:1147) at android.view.LayoutInflater.rInflateChildren(LayoutInflater.java:1105) at android.view.LayoutInflater.inflate(LayoutInflater.java:686) at android.view.LayoutInflater.inflate(LayoutInflater.java:538) at android.view.LayoutInflater.inflate(LayoutInflater.java:481) at androidx.appcompat.app.AppCompatDelegateImpl.setContentView(AppCompatDelegateImpl.java:9) at androidx.appcompat.app.AppCompatActivity.setContentView(AppCompatActivity.java:2) at com.profitpump.forbittrex.modules.splash.presentation.ui.SplashActivity.onCreate(SplashActivity.java:7) at android.app.Activity.performCreate(Activity.java:7893) at android.app.Activity.performCreate(Activity.java:7880) at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1306) at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:3315) at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:3489) at android.app.servertransaction.LaunchActivityItem.execute(LaunchActivityItem.java:83) at android.app.servertransaction.TransactionExecutor.executeCallbacks(TransactionExecutor.java:135) at android.app.servertransaction.TransactionExecutor.execute(TransactionExecutor.java:95) at android.app.ActivityThread$H.handleMessage(ActivityThread.java:2073) at android.os.Handler.dispatchMessage(Handler.java:107) at android.os.Looper.loop(Looper.java:225) at android.app.ActivityThread.main(ActivityThread.java:7563) at java.lang.reflect.Method.invoke(Native Method) at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:539) at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:994)

El jue., 23 de noviembre de 2023 01:38, githubbab @.***> escribió:

The bug

I have 930 albums. When i try to see or create album on web interface i have an error : [image: image] https://user-images.githubusercontent.com/46526223/285123300-36ca17eb-1967-4f3d-a264-7528bf3790da.png

I have the same problem with the immich-cli : immich-cli_error.log https://github.com/immich-app/immich/files/13446962/immich-cli_error.log

I think is a time-out when getting all album : immich_server_error.log https://github.com/immich-app/immich/files/13446972/immich_server_error.log

I don't have any problem on the android app. The OS that Immich Server is running on

docker Version of Immich Server

v1.88.1 Version of Immich Mobile App

v1.88.0 Platform with the issue

  • Server
  • Web
  • Mobile

Your docker-compose.yml content

version: "3.8" services: immich-server: container_name: immich_server image: ghcr.io/immich-app/immich-server:${IMMICH_VERSION:-release} http://ghcr.io/immich-app/immich-server:$%7BIMMICH_VERSION:-release%7D command: ["start.sh", "immich"] volumes:

  • ${UPLOAD_LOCATION}:/usr/src/app/upload
  • /etc/localtime:/etc/localtime:ro env_file:
  • .env ports:
  • 2283:3001 depends_on:
  • redis
  • database
  • typesense restart: always

    immich-microservices: container_name: immich_microservices image: ghcr.io/immich-app/immich-server:${IMMICH_VERSION:-release} http://ghcr.io/immich-app/immich-server:$%7BIMMICH_VERSION:-release%7D

    extends:

    file: hwaccel.yml

    service: hwaccel

    command: ["start.sh", "microservices"] volumes:

  • ${UPLOAD_LOCATION}:/usr/src/app/upload
  • /etc/localtime:/etc/localtime:ro env_file:
  • .env depends_on:
  • redis
  • database
  • typesense restart: always

    immich-machine-learning: container_name: immich_machine_learning image: ghcr.io/immich-app/immich-machine-learning:${IMMICH_VERSION:-release} http://ghcr.io/immich-app/immich-machine-learning:$%7BIMMICH_VERSION:-release%7D volumes:

  • model-cache:/cache env_file:
  • .env restart: always

    typesense: container_name: immich_typesense image: @.***:9bcff2b829f12074426ca044b56160ca9d777a0c488303469143dd9f8259d4dd environment:

  • TYPESENSE_API_KEY=${TYPESENSE_API_KEY}
  • TYPESENSE_DATA_DIR=/data

    remove this to get debug messages

  • GLOG_minloglevel=1 volumes:
  • tsdata:/data restart: always

    redis: container_name: immich_redis image: @.***:70a7a5b641117670beae0d80658430853896b5ef269ccf00d1827427e3263fa3 restart: always

    database: container_name: immich_postgres image: @.***:28407a9961e76f2d285dc6991e8e48893503cc3836a4755bbc2d40bcc272a441 env_file:

  • .env environment: POSTGRES_PASSWORD: ${DB_PASSWORD} POSTGRES_USER: ${DB_USERNAME} POSTGRES_DB: ${DB_DATABASE_NAME} ports:
  • target: 5432 published: 5432 protocol: tcp mode: host volumes:
  • pgdata:/var/lib/postgresql/data restart: always volumes: pgdata: model-cache: tsdata:

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 secrets for postgres and typesense. You should change these to random passwords

TYPESENSE_API_KEY=some-random-text DB_PASSWORD=XXXXXXX

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. Have lot of albums 2a. either see or create albums on web interface 2b. or import with create album with immich-cli

Additional information

I don't have any problem on the android app.

— Reply to this email directly, view it on GitHub https://github.com/immich-app/immich/issues/5278, or unsubscribe https://github.com/notifications/unsubscribe-auth/A3JU36IU7ZBHOJ6JCX4QJ23YF34QDAVCNFSM6AAAAAA7XKSG6CVHI2DSMVQWIX3LMV43ASLTON2WKOZSGAYDONRTGM3TGMY . You are receiving this because you are subscribed to this thread.Message ID: @.***>

dlang123 commented 8 months ago

I am having the same problem with a large number of albums. Both CLI and the web are timing out. So is Immich go.

I also notice the bottom left corner that shows version and status occasionally show Status Offline and Version Unknown. I have recently uploaded a large quantity of images and videos to it.

4,163 albums. I allowed the CLI to create albums based on dates of folder names, I was then going to go back and fix dates and delete many of the albums, but I was first trying to upload all the pictures. This isn't even our mobile pictures library yet.

etnoy commented 8 months ago

Thanks for reporting. Could you try enabling debug logging and post the corresponding server log?

dlang123 commented 8 months ago

I will get to that. Today I notice that I can actually get to albums. Yesterday I still had some background processes running in relation to creating thumbnails etc

The console log showed timeouts on the album fetching.

jrasm91 commented 1 week ago

Album queries have been improved a lot since this issue was open. We don't load all the assets for each album anymore.