-
The bugMy server is currently hosting about 149776 photos and 10447 videos. Every morning at 8AM in my timezone (UTC +8:00), I hear the server fans get loud and upon checking I can see FACIAL RECOGNITION job is running with about 50000 assets in waiting. If I allow it to run, it takes about 6 hours to complete. Further, my cron expression for periodic scanning is: 0 18 * * 6 There are two issues:
I am happy to provide any additional information or logs that may help to identify the cause. The OS that Immich Server is running onArch Linux Version of Immich Serverv1.100.0 Version of Immich Mobile Appv1.100.0 Platform with the issue
Your docker-compose.yml contentversion: "3.8"
name: immich
services:
immich-server:
container_name: immich_server
user: ${PUID}:${PGID}
image: ghcr.io/immich-app/immich-server:${IMMICH_VERSION:-release}
command: [ "start.sh", "immich" ]
volumes:
- ${UPLOAD_LOCATION}:/usr/src/app/upload
#- ${THUMBS_LOCATION}:/usr/src/immichthumbs
- ${EXT_LIB}:/mnt/media:ro
- /etc/localtime:/etc/localtime:ro
env_file:
- .env
ports:
- 2283:3001
depends_on:
- redis
- database
restart: always
networks:
- traefik-net
labels:
# Explicitly instruct Traefik to expose this service
- traefik.enable=true
- traefik.http.routers.immich-api.entrypoints=websecure
- traefik.http.routers.immich-api.tls=true
- traefik.http.routers.immich-api.tls.certresolver=production
# Service configuration
- traefik.http.services.immich-api.loadbalancer.server.port=3001
immich-microservices:
container_name: immich_microservices
user: ${PUID}:${PGID}
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
#- ${THUMBS_LOCATION}:/usr/src/immichthumbs
- ${EXT_LIB}:/mnt/media:ro
- /etc/localtime:/etc/localtime:ro
env_file:
- .env
depends_on:
- redis
- database
restart: always
networks:
- traefik-net
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
networks:
- traefik-net
redis:
container_name: immich_redis
image: redis:6.2-alpine@sha256:b6124ab2e45cc332e16398022a411d7e37181f21ff7874835e0180f56a09e82a
restart: always
networks:
- traefik-net
database:
container_name: immich_postgres
image: tensorchord/pgvecto-rs:pg14-v0.2.0@sha256:90724186f0a3517cf6914295b5ab410db9ce23190a2d9d0b9dd6463e3fa298f0
env_file:
- .env
ports:
- 5432:5432
environment:
POSTGRES_PASSWORD: ${DB_PASSWORD}
POSTGRES_USER: ${DB_USERNAME}
POSTGRES_DB: ${DB_DATABASE_NAME}
volumes:
- pgdata:/var/lib/postgresql/data
restart: always
networks:
- traefik-net
volumes:
pgdata:
model-cache:
networks:
traefik-net:
external: true Your .env contentPUBLIC_LOGIN_PAGE_MESSAGE="****"
#PUBLIC_IMMICH_SERVER_URL="****"
REVERSE_GEOCODING_DUMP_DIRECTORY=/tmp/immich-reverse-geocoding-dump
# The location where your uploaded files are stored
UPLOAD_LOCATION=/mnt/immich/UPLOAD_LOCATION/
EXT_LIB=/mnt/immich/ext-lib
# 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=****
# RUN as user
PUID=1000
PGID=1000
# 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 steps1. Check server status at 8 AM everyday
2. CPU is at high utilization with high temps
3. Immich is running FACIAL RECOGNITION job that continues for 6 hours Additional informationImmich is the only application running on the server. |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 14 replies
-
The cron setting is specifically for library maintenance; there are other tasks that run daily regardless. Regarding the facial recognition speed, 6 hours is unusually long so I'd like to ask a few questions if you don't mind:
|
Beta Was this translation helpful? Give feedback.
-
Here are my responses:
Thank you for taking the time to review my case. |
Beta Was this translation helpful? Give feedback.
-
Both create commands return: |
Beta Was this translation helpful? Give feedback.
That's weird, you don't have any vector indices. You can run these to make things much faster: