You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi,everyone. I have encountered an error when starting a face detection job . I have no idea whether is a bug or not.
I had deploy immich on ubuntu 22.04 (Vmware machine)with 2C4G . It all works well,but fails on my openwrt device.
Immich Server Logs
[Nest] 8 - 02/09/2025, 11:32:44 PM WARN [Microservices:MachineLearningRepository] Machine learning request to "http://immich-machine-learning:3003" failed with status 500: Internal Server Error
[Nest] 8 - 02/09/2025, 11:32:44 PM ERROR [Microservices:JobService] Unable to run job handler (faceDetection/face-detection): Error: Machine learning request '{"facial-recognition":{"detection":{"modelName":"buffalo_l","options":{"minScore":0.7}},"recognition":{"modelName":"buffalo_l"}}}' failed for all URLs
[Nest] 8 - 02/09/2025, 11:32:44 PM ERROR [Microservices:JobService] Error: Machine learning request '{"facial-recognition":{"detection":{"modelName":"buffalo_l","options":{"minScore":0.7}},"recognition":{"modelName":"buffalo_l"}}}' failed for all URLs
at MachineLearningRepository.predict (/usr/src/app/dist/repositories/machine-learning.repository.js:38:15)
at process.processTicksAndRejections (node:internal/process/task_queues:105:5)
at async MachineLearningRepository.detectFaces (/usr/src/app/dist/repositories/machine-learning.repository.js:47:26)
at async PersonService.handleDetectFaces (/usr/src/app/dist/services/person.service.js:228:52)
at async JobService.onJobStart (/usr/src/app/dist/services/job.service.js:148:28)
at async EventRepository.onEvent (/usr/src/app/dist/repositories/event.repository.js:130:13)
at async Worker.processJob (/usr/src/app/node_modules/bullmq/dist/cjs/classes/worker.js:394:28)
at async Worker.retryIfFailed (/usr/src/app/node_modules/bullmq/dist/cjs/classes/worker.js:581:24)
[Nest] 8 - 02/09/2025, 11:32:44 PM ERROR [Microservices:JobService] Object:
{
"id": "c9064b8e-61c0-4cb6-935b-3aaa31cf237a"
}
Immich Machine Learning Logs
`[02/09/25 23:32:31] DEBUG Setting model format to onnx
[02/09/25 23:32:31] INFO Loading detection model 'buffalo_l' to memory
[02/09/25 23:32:31] DEBUG Available ORT providers: {'CPUExecutionProvider',
'AzureExecutionProvider'}
[02/09/25 23:32:31] INFO Setting execution providers to
['CPUExecutionProvider'], in descending order of
preference
[02/09/25 23:32:31] DEBUG Setting execution provider options to
[{'arena_extend_strategy': 'kSameAsRequested'}]
[02/09/25 23:32:31] DEBUG Setting execution_mode to ORT_SEQUENTIAL
[02/09/25 23:32:31] DEBUG Setting inter_op_num_threads to 1
[02/09/25 23:32:31] DEBUG Setting intra_op_num_threads to 2
[02/09/25 23:32:37] DEBUG Checking for inactivity...
[02/09/25 23:32:40] DEBUG Setting model format to onnx
[02/09/25 23:32:40] INFO Loading recognition model 'buffalo_l' to memory
[02/09/25 23:32:40] DEBUG Available ORT providers: {'CPUExecutionProvider',
'AzureExecutionProvider'}
[02/09/25 23:32:40] INFO Setting execution providers to
['CPUExecutionProvider'], in descending order of
preference
[02/09/25 23:32:40] DEBUG Setting execution provider options to
[{'arena_extend_strategy': 'kSameAsRequested'}]
[02/09/25 23:32:40] DEBUG Setting execution_mode to ORT_SEQUENTIAL
[02/09/25 23:32:40] DEBUG Setting inter_op_num_threads to 1
[02/09/25 23:32:40] DEBUG Setting intra_op_num_threads to 2
[02/09/25 23:32:40] ERROR Exception in ASGI application
[02/09/25 23:32:43] INFO Attempt #2 to load recognition model 'buffalo_l' to
memory
[02/09/25 23:32:43] DEBUG Available ORT providers: {'CPUExecutionProvider',
'AzureExecutionProvider'}
[02/09/25 23:32:43] INFO Setting execution providers to
['CPUExecutionProvider'], in descending order of
preference
[02/09/25 23:32:43] DEBUG Setting execution provider options to
[{'arena_extend_strategy': 'kSameAsRequested'}]
[02/09/25 23:32:43] DEBUG Setting execution_mode to ORT_SEQUENTIAL
[02/09/25 23:32:43] DEBUG Setting inter_op_num_threads to 1
[02/09/25 23:32:43] DEBUG Setting intra_op_num_threads to 2
`
## WARNING: Make sure to use the docker-compose.yml of the current release:## https://github.com/immich-app/immich/releases/latest/download/docker-compose.yml## The compose file on main may not be compatible with the latest release.#name: immichservices:
immich-server:
container_name: immich_serverimage: ghcr.io/immich-app/immich-server:${IMMICH_VERSION:-release}# extends:# file: hwaccel.transcoding.yml# service: cpu # set to one of [nvenc, quicksync, rkmpp, vaapi, vaapi-wsl] for accelerated transcodingvolumes:
# Do not edit the next line. If you want to change the media storage location on your system, edit the value of UPLOAD_LOCATION in the .env file
- ${UPLOAD_LOCATION}:/usr/src/app/upload
- /etc/localtime:/etc/localtime:roenv_file:
- .envports:
- '2283:2283'depends_on:
- redis
- databaserestart: alwayshealthcheck:
disable: falseimmich-machine-learning:
container_name: immich_machine_learning# For hardware acceleration, add one of -[armnn, cuda, openvino] to the image tag.# Example tag: ${IMMICH_VERSION:-release}-cudaimage: ghcr.io/immich-app/immich-machine-learning:${IMMICH_VERSION:-release}# extends: # uncomment this section for hardware acceleration - see https://immich.app/docs/features/ml-hardware-acceleration# file: hwaccel.ml.yml# service: cpu # set to one of [armnn, cuda, openvino, openvino-wsl] for accelerated inference - use the `-wsl` version for WSL2 where applicablevolumes:
- model-cache:/cacheenv_file:
- .envrestart: alwayshealthcheck:
disable: falseredis:
container_name: immich_redisimage: docker.io/redis:6.2-alpine@sha256:905c4ee67b8e0aa955331960d2aa745781e6bd89afc44a8584bfd13bc890f0aehealthcheck:
test: redis-cli ping || exit 1restart: alwaysenvironment:
TZ: Asia/Shanghaidatabase:
container_name: immich_postgresimage: docker.io/tensorchord/pgvecto-rs:pg14-v0.2.0@sha256:90724186f0a3517cf6914295b5ab410db9ce23190a2d9d0b9dd6463e3fa298f0environment:
TZ: Asia/ShanghaiPOSTGRES_PASSWORD: ${DB_PASSWORD}POSTGRES_USER: ${DB_USERNAME}POSTGRES_DB: ${DB_DATABASE_NAME}POSTGRES_INITDB_ARGS: '--data-checksums'volumes:
# Do not edit the next line. If you want to change the database storage location on your system, edit the value of DB_DATA_LOCATION in the .env file
- ${DB_DATA_LOCATION}:/var/lib/postgresql/datahealthcheck:
test: >- pg_isready --dbname="$${POSTGRES_DB}" --username="$${POSTGRES_USER}" || exit 1; Chksum="$$(psql --dbname="$${POSTGRES_DB}" --username="$${POSTGRES_USER}" --tuples-only --no-align --command='SELECT COALESCE(SUM(checksum_failures), 0) FROM pg_stat_database')"; echo "checksum failure count is $$Chksum"; [ "$$Chksum" = '0' ] || exit 1interval: 5mstart_interval: 30sstart_period: 5mcommand: >- 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=onrestart: alwaysvolumes:
model-cache:
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 location where your database files are stored
DB_DATA_LOCATION=./data/postgres
# To set a timezone, uncomment the next line and change Etc/UTC to a TZ identifier from this list: https://en.wikipedia.org/wiki/List_of_tz_database_time_zones#List# TZ=Etc/UTC
TZ=Asia/Shanghai
CPU_CORES=2
# The Immich version to use. You can pin this to a specific version like "v1.71.0"
IMMICH_VERSION=v1.125.7
# Connection secret for postgres. You should change it to a random password# Please use only the characters `A-Za-z0-9`, without special characters or spaces
DB_PASSWORD=postgres
# The values below this line do not need to be changed###################################################################################
DB_USERNAME=postgres
DB_DATABASE_NAME=immich
IMMICH_LOG_LEVEL=debug
Reproduction steps
...
Relevant log output
Additional information
No response
The text was updated successfully, but these errors were encountered:
Do I understand right that you're trying to run Immich on a piece of low-power networking hardware? That probably doesn't have enough resources to run Immich properly.
Do I understand right that you're trying to run Immich on a piece of low-power networking hardware? That probably doesn't have enough resources to run Immich properly.
Yeah,it is lower-powered. Actually, i don't need a high pefermance device.It's slow when uploading my photos at first time,but faster for daily-updated photos.It's ok that I can look up my photos on immich in hours.It will be fancy if it can handle face detection.
Now the problem is caused by cpu or memory limit, right?
The bug
Hi,everyone. I have encountered an error when starting a face detection job . I have no idea whether is a bug or not.
I had deploy immich on ubuntu 22.04 (Vmware machine)with 2C4G . It all works well,but fails on my openwrt device.
[Nest] 8 - 02/09/2025, 11:32:44 PM WARN [Microservices:MachineLearningRepository] Machine learning request to "http://immich-machine-learning:3003" failed with status 500: Internal Server Error
[Nest] 8 - 02/09/2025, 11:32:44 PM ERROR [Microservices:JobService] Unable to run job handler (faceDetection/face-detection): Error: Machine learning request '{"facial-recognition":{"detection":{"modelName":"buffalo_l","options":{"minScore":0.7}},"recognition":{"modelName":"buffalo_l"}}}' failed for all URLs
[Nest] 8 - 02/09/2025, 11:32:44 PM ERROR [Microservices:JobService] Error: Machine learning request '{"facial-recognition":{"detection":{"modelName":"buffalo_l","options":{"minScore":0.7}},"recognition":{"modelName":"buffalo_l"}}}' failed for all URLs
at MachineLearningRepository.predict (/usr/src/app/dist/repositories/machine-learning.repository.js:38:15)
at process.processTicksAndRejections (node:internal/process/task_queues:105:5)
at async MachineLearningRepository.detectFaces (/usr/src/app/dist/repositories/machine-learning.repository.js:47:26)
at async PersonService.handleDetectFaces (/usr/src/app/dist/services/person.service.js:228:52)
at async JobService.onJobStart (/usr/src/app/dist/services/job.service.js:148:28)
at async EventRepository.onEvent (/usr/src/app/dist/repositories/event.repository.js:130:13)
at async Worker.processJob (/usr/src/app/node_modules/bullmq/dist/cjs/classes/worker.js:394:28)
at async Worker.retryIfFailed (/usr/src/app/node_modules/bullmq/dist/cjs/classes/worker.js:581:24)
[Nest] 8 - 02/09/2025, 11:32:44 PM ERROR [Microservices:JobService] Object:
{
"id": "c9064b8e-61c0-4cb6-935b-3aaa31cf237a"
}
Immich Machine Learning Logs
`[02/09/25 23:32:31] DEBUG Setting model format to onnx
[02/09/25 23:32:31] INFO Loading detection model 'buffalo_l' to memory
[02/09/25 23:32:31] DEBUG Available ORT providers: {'CPUExecutionProvider',
'AzureExecutionProvider'}
[02/09/25 23:32:31] INFO Setting execution providers to
['CPUExecutionProvider'], in descending order of
preference
[02/09/25 23:32:31] DEBUG Setting execution provider options to
[{'arena_extend_strategy': 'kSameAsRequested'}]
[02/09/25 23:32:31] DEBUG Setting execution_mode to ORT_SEQUENTIAL
[02/09/25 23:32:31] DEBUG Setting inter_op_num_threads to 1
[02/09/25 23:32:31] DEBUG Setting intra_op_num_threads to 2
[02/09/25 23:32:37] DEBUG Checking for inactivity...
[02/09/25 23:32:40] DEBUG Setting model format to onnx
[02/09/25 23:32:40] INFO Loading recognition model 'buffalo_l' to memory
[02/09/25 23:32:40] DEBUG Available ORT providers: {'CPUExecutionProvider',
'AzureExecutionProvider'}
[02/09/25 23:32:40] INFO Setting execution providers to
['CPUExecutionProvider'], in descending order of
preference
[02/09/25 23:32:40] DEBUG Setting execution provider options to
[{'arena_extend_strategy': 'kSameAsRequested'}]
[02/09/25 23:32:40] DEBUG Setting execution_mode to ORT_SEQUENTIAL
[02/09/25 23:32:40] DEBUG Setting inter_op_num_threads to 1
[02/09/25 23:32:40] DEBUG Setting intra_op_num_threads to 2
[02/09/25 23:32:40] ERROR Exception in ASGI application
[02/09/25 23:32:43] INFO Attempt #2 to load recognition model 'buffalo_l' to
memory
[02/09/25 23:32:43] DEBUG Available ORT providers: {'CPUExecutionProvider',
'AzureExecutionProvider'}
[02/09/25 23:32:43] INFO Setting execution providers to
['CPUExecutionProvider'], in descending order of
preference
[02/09/25 23:32:43] DEBUG Setting execution provider options to
[{'arena_extend_strategy': 'kSameAsRequested'}]
[02/09/25 23:32:43] DEBUG Setting execution_mode to ORT_SEQUENTIAL
[02/09/25 23:32:43] DEBUG Setting inter_op_num_threads to 1
[02/09/25 23:32:43] DEBUG Setting intra_op_num_threads to 2
`
Phicomm N1
SoC:Allogic S905D 64bit 4Core Cortex-A53 1.5G Hz
GPU:Mali-450
RAM:2GB + 8GB Swap
ROM:8GB eMMC
The OS that Immich Server is running on
Linux OpenWrt
Version of Immich Server
v1.125.7
Version of Immich Mobile App
v1.125.3
Platform with the issue
Your docker-compose.yml content
Your .env content
Reproduction steps
...
Relevant log output
Additional information
No response
The text was updated successfully, but these errors were encountered: