immich-app / immich

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

Thumbnails not generating and All jobs going to waiting state #10405

Closed balavenkateshs closed 2 months ago

balavenkateshs commented 2 months ago

The bug

Thumbnails not generating in web based and whenever uploading the images from mobile app or web based Using latest version 106.4 Screenshot_2024-06-16-22-42-05-33_40deb401b9ffe8e1df2f1cc5ba480b12

The OS that Immich Server is running on

Ubuntu latest version

Version of Immich Server

106.4

Version of Immich Mobile App

106.4

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:
      - stack.env
    ports:
      - 2283:3001
    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:
      - i_model-cache:/cache
    env_file:
      - stack.env
    restart: always
  redis:
    container_name: immich_redis
    image: docker.io/redis:6.2-alpine@sha256:d6c2911ac51b289db208767581a5d154544f2b2fe4914ea5056443f62dc6e900
    healthcheck:
      test: redis-cli ping || exit 1
    restart: always
    volumes:
      - i_redis:/data
  database:
    container_name: immich_postgres
    image: docker.io/tensorchord/pgvecto-rs:pg14-v0.2.0@sha256:90724186f0a3517cf6914295b5ab410db9ce23190a2d9d0b9dd6463e3fa298f0
    env_file:
      - stack.env
    environment:
      POSTGRES_PASSWORD: ${DB_PASSWORD}
      POSTGRES_USER: ${DB_USERNAME}
      POSTGRES_DB: ${DB_DATABASE_NAME}
    volumes:
      - i_pgdata:/var/lib/postgresql/data
    healthcheck:
      test: pg_isready --dbname='${DB_DATABASE_NAME}' || exit 1; Chksum="$$(psql --dbname='${DB_DATABASE_NAME}' --username='${DB_USERNAME}' --tuples-only --no-align --command='SELECT COALESCE(SUM(checksum_failures), 0) FROM pg_stat_database')"; echo "checksum failure count is $$Chksum"; [ "$$Chksum" = '0' ] || exit 1
      interval: 5m
      start_interval: 30s
      start_period: 5m
    command: ["postgres", "-c" ,"shared_preload_libraries=vectors.so", "-c", 'search_path="$$user", public, vectors', "-c", "logging_collector=on", "-c", "max_wal_size=2GB", "-c", "shared_buffers=512MB", "-c", "wal_compression=on"]
    restart: always

volumes:
  i_pgdata:
    external: true
    name: i_pgdata
  i_redis:
    external: true
    name: i_redis
  i_model-cache:
    external: true
    name: i_model-cache

Your .env content

UPLOAD_LOCATION=/mnt/immich_data/immich
IMMICH_VERSION=release
DB_PASSWORD=postgres
DB_HOSTNAME=immich_postgres
DB_USERNAME=postgres
DB_DATABASE_NAME=immich
REDIS_HOSTNAME=immich_redis
MMICH_METRICS=true

Reproduction steps

1.thumbnail not showing 
2.jobs not running ans all jobs going to waiting state 
3.
...

Relevant log output

No response

Additional information

No response

bo0tzz commented 2 months ago

command: [ 'start.sh', 'immich' ]

You missed removing this line

balavenkateshs commented 2 months ago

Screenshot_2024-06-16-22-46-25-88_40deb401b9ffe8e1df2f1cc5ba480b12 Jobs status

nwithan8 commented 2 months ago

Same issue for me. Manually running "Generate thumbnails" seems to generate the thumbnails properly, but it doesn't run automatically anymore it seems.

rajeshhazari commented 1 month ago

Thank you for creating the issue, I see the same issue after upgrading to latest version. Dear @nwithan8 , can you please share how do we manually start, my problem is even the start button does not show any progress or any updates. Can you share the job concurrency settings, may be that helps me.

Thanks, Rajesh.

khadanja commented 1 month ago

Same issue after upgrading, manually starting job just increases the waiting number. @rajeshhazari @balavenkateshs Works ok if you use split workers & create another container for microservices, use env var like below for immich-server - IMMICH_WORKERS_INCLUDE: 'api' for immich-microservices - IMMICH_WORKERS_EXCLUDE: 'api'

alextran1502 commented 1 month ago

@khadanja you probably had a orphaned container

khadanja commented 1 month ago

it's all good now, I also missed removing command: [ 'start.sh', 'immich' ] thanks @bo0tzz