[BUG] v 1.57.1 - High CPU usage after update to #881

Closed
opened 2026-02-04 23:16:22 +03:00 by OVERLORD · 5 comments
Owner

Originally created by @Vendo232 on GitHub (May 23, 2023).

The bug

high CPU usage via python process

image

The OS that Immich Server is running on

Debian

Version of Immich Server

1.57.1

Version of Immich Mobile App

1.57.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:release
    entrypoint: ["/bin/sh", "./start-server.sh"]
    volumes:
      - /mnt/media/pictures:/usr/src/app/upload
    env_file:
      - stack.env
    depends_on:
      - redis
      - database
      - typesense
    restart: always

  immich-microservices:
    container_name: immich_microservices
    image: ghcr.io/immich-app/immich-server:release
    entrypoint: ["/bin/sh", "./start-microservices.sh"]
    volumes:
      - /mnt/media/pictures:/usr/src/app/upload
    env_file:
      - stack.env
    depends_on:
      - redis
      - database
      - typesense
    restart: always

  immich-machine-learning:
    container_name: immich_machine_learning
    image: ghcr.io/immich-app/immich-machine-learning:release
    volumes:
      - /mnt/media/pictures:/usr/src/app/upload
      - model-cache:/cache
    env_file:
      - stack.env
    restart: always

  immich-web:
    container_name: immich_web
    image: ghcr.io/immich-app/immich-web:release
    entrypoint: ["/bin/sh", "./entrypoint.sh"]
    env_file:
      - stack.env
    restart: always

  typesense:
    container_name: immich_typesense
    image: typesense/typesense:0.24.0
    environment:
      - TYPESENSE_API_KEY=${TYPESENSE_API_KEY}
      - TYPESENSE_DATA_DIR=/data
    logging:
      driver: none
    volumes:
      - tsdata:/data
    restart: always

  redis:
    container_name: immich_redis
    image: redis:6.2
    restart: always

  database:
    container_name: immich_postgres
    image: postgres:14
    env_file:
      - stack.env
    environment:
      POSTGRES_PASSWORD: ${DB_PASSWORD}
      POSTGRES_USER: ${DB_USERNAME}
      POSTGRES_DB: ${DB_DATABASE_NAME}
      PG_DATA: /var/lib/postgresql/data
    volumes:
      - pgdata:/var/lib/postgresql/data
    restart: always

  immich-proxy:
    container_name: immich_proxy
    image: ghcr.io/immich-app/immich-proxy:release
    environment:
      # Make sure these values get passed through from the env file
      - IMMICH_SERVER_URL
      - IMMICH_WEB_URL
    ports:
      - 2283:8080
    logging:
      driver: none
    depends_on:
      - immich-server
    restart: always
    
volumes:
  pgdata:
  model-cache:
  tsdata:

Your .env content

DB_HOSTNAME=immich_postgres
DB_USERNAME=postgres
DB_PASSWORD=postgres
DB_DATABASE_NAME=immich
REDIS_HOSTNAME=immich_redis
UPLOAD_LOCATION=absolute_location_on_your_machine_where_you_want_to_store_the_backup
TYPESENSE_API_KEY=some-random-text
PUBLIC_LOGIN_PAGE_MESSAGE=
IMMICH_WEB_URL=http://immich-web:3000
IMMICH_SERVER_URL=http://immich-server:3001
IMMICH_MACHINE_LEARNING_URL=http://immich-machine-learning:3003

Reproduction steps

updated immich from 1.53 to 1.57.1 today repulling STACK with setup above.

very high CPU resource usage using via PYTHON proceee, see picrue below.

Additional information

image

Originally created by @Vendo232 on GitHub (May 23, 2023). ### The bug high CPU usage via python process ![image](https://github.com/immich-app/immich/assets/44098230/60024124-e743-4ace-8fa0-e6468452eeee) ### The OS that Immich Server is running on Debian ### Version of Immich Server 1.57.1 ### Version of Immich Mobile App 1.57.0 ### Platform with the issue - [x] Server - [ ] Web - [ ] Mobile ### Your docker-compose.yml content ```YAML version: "3.8" services: immich-server: container_name: immich_server image: ghcr.io/immich-app/immich-server:release entrypoint: ["/bin/sh", "./start-server.sh"] volumes: - /mnt/media/pictures:/usr/src/app/upload env_file: - stack.env depends_on: - redis - database - typesense restart: always immich-microservices: container_name: immich_microservices image: ghcr.io/immich-app/immich-server:release entrypoint: ["/bin/sh", "./start-microservices.sh"] volumes: - /mnt/media/pictures:/usr/src/app/upload env_file: - stack.env depends_on: - redis - database - typesense restart: always immich-machine-learning: container_name: immich_machine_learning image: ghcr.io/immich-app/immich-machine-learning:release volumes: - /mnt/media/pictures:/usr/src/app/upload - model-cache:/cache env_file: - stack.env restart: always immich-web: container_name: immich_web image: ghcr.io/immich-app/immich-web:release entrypoint: ["/bin/sh", "./entrypoint.sh"] env_file: - stack.env restart: always typesense: container_name: immich_typesense image: typesense/typesense:0.24.0 environment: - TYPESENSE_API_KEY=${TYPESENSE_API_KEY} - TYPESENSE_DATA_DIR=/data logging: driver: none volumes: - tsdata:/data restart: always redis: container_name: immich_redis image: redis:6.2 restart: always database: container_name: immich_postgres image: postgres:14 env_file: - stack.env environment: POSTGRES_PASSWORD: ${DB_PASSWORD} POSTGRES_USER: ${DB_USERNAME} POSTGRES_DB: ${DB_DATABASE_NAME} PG_DATA: /var/lib/postgresql/data volumes: - pgdata:/var/lib/postgresql/data restart: always immich-proxy: container_name: immich_proxy image: ghcr.io/immich-app/immich-proxy:release environment: # Make sure these values get passed through from the env file - IMMICH_SERVER_URL - IMMICH_WEB_URL ports: - 2283:8080 logging: driver: none depends_on: - immich-server restart: always volumes: pgdata: model-cache: tsdata: ``` ### Your .env content ```Shell DB_HOSTNAME=immich_postgres DB_USERNAME=postgres DB_PASSWORD=postgres DB_DATABASE_NAME=immich REDIS_HOSTNAME=immich_redis UPLOAD_LOCATION=absolute_location_on_your_machine_where_you_want_to_store_the_backup TYPESENSE_API_KEY=some-random-text PUBLIC_LOGIN_PAGE_MESSAGE= IMMICH_WEB_URL=http://immich-web:3000 IMMICH_SERVER_URL=http://immich-server:3001 IMMICH_MACHINE_LEARNING_URL=http://immich-machine-learning:3003 ``` ### Reproduction steps ```bash updated immich from 1.53 to 1.57.1 today repulling STACK with setup above. very high CPU resource usage using via PYTHON proceee, see picrue below. ``` ### Additional information ![image](https://github.com/immich-app/immich/assets/44098230/8e3fcc3e-3c83-4bde-8baf-b018acfa7fa4)
Author
Owner

@bo0tzz commented on GitHub (May 23, 2023):

Can you check the admin panel to see what jobs are running?

@bo0tzz commented on GitHub (May 23, 2023): Can you check the admin panel to see what jobs are running?
Author
Owner

@alextran1502 commented on GitHub (May 23, 2023):

Is this during idle or during processing upload assets? If it is during the upload process, it is expected with all the machine learning inferences

@alextran1502 commented on GitHub (May 23, 2023): Is this during idle or during processing upload assets? If it is during the upload process, it is expected with all the machine learning inferences
Author
Owner

@Vendo232 commented on GitHub (May 23, 2023):

no upload is in process

@Vendo232 commented on GitHub (May 23, 2023): no upload is in process
Author
Owner

@Vendo232 commented on GitHub (May 23, 2023):

these are in process, could this be the issue?

image

@Vendo232 commented on GitHub (May 23, 2023): these are in process, could this be the issue? ![image](https://github.com/immich-app/immich/assets/44098230/0d833dd0-c987-4f3d-9812-a4d8adb7cbb1)
Author
Owner

@Vendo232 commented on GitHub (May 23, 2023):

yup, pausing them fixed the "problem"

I have been using this great tool just 3 days sorry, we can close

@Vendo232 commented on GitHub (May 23, 2023): yup, pausing them fixed the "problem" I have been using this great tool just 3 days sorry, we can close
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: immich-app/immich#881