-
-
Notifications
You must be signed in to change notification settings - Fork 5k
Closed
Description
I have searched the existing issues, both open and closed, to make sure this is not a duplicate report.
- Yes
The bug
immich-machine-learning container is stuck because of exceptions while downloading the OCR model
I am unable to download this model even though the host is reachable. Unable to find the model somewhere else to download and copy paste manually.
The OS that Immich Server is running on
Debain 13.3
Version of Immich Server
2.5.6
Version of Immich Mobile App
2.5.6
Platform with the issue
- Server
- Web
- Mobile
Device make and model
No response
Your docker-compose.yml content
name: immich
services:
immich-server:
container_name: immich_server
image: ghcr.io/immich-app/immich-server:${IMMICH_VERSION:-release}
volumes:
- ${UPLOAD_LOCATION}:/data
- /etc/localtime:/etc/localtime:ro
env_file:
- .env
ports:
- '2283:2283'
depends_on:
- redis
- database
restart: always
healthcheck:
disable: false
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
healthcheck:
disable: false
redis:
container_name: immich_redis
image: docker.io/valkey/valkey:9@sha256:546304417feac0874c3dd576e0952c6bb8f06bb4093ea0c9ca303c73cf458f63
healthcheck:
test: redis-cli ping || exit 1
restart: always
database:
container_name: immich_postgres
image: ghcr.io/immich-app/postgres:14-vectorchord0.4.3-pgvectors0.2.0@sha256:bcf63357191b76a916ae5eb93464d65c07511da41e3bf7a8416db519b40b1c23
environment:
POSTGRES_PASSWORD: ${DB_PASSWORD}
POSTGRES_USER: ${DB_USERNAME}
POSTGRES_DB: ${DB_DATABASE_NAME}
POSTGRES_INITDB_ARGS: '--data-checksums'
volumes:
- ${DB_DATA_LOCATION}:/var/lib/postgresql/data
shm_size: 128mb
restart: always
healthcheck:
disable: falseYour .env content
# The location where your uploaded files are stored
UPLOAD_LOCATION=./library
# The location where your database files are stored. Network shares are not supported for the database
DB_DATA_LOCATION=./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=***
# The Immich version to use. You can pin this to a specific version like "v2.1.0"
IMMICH_VERSION=v2
# 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=***
# The values below this line do not need to be changed
###################################################################################
DB_USERNAME=***
DB_DATABASE_NAME=***Reproduction steps
- Ran a fresh instance of Immich
- Uploaded a set of images for the first time
- All machine learning jobs got stuck, pausing OCR job helped to restore other ML jobs
- OCR ML model download is still failing
Relevant log output
DownloadFileException: Failed to download https://www.modelscope.cn/models/RapidAI/RapidOCR/resolve/v3.4.0/onnx/PP-OCRv5/det/ch_PP-OCRv5_mobile_det.onnx
INFO Initiating download: https://www.modelscope.cn/models/RapidAI/RapidOCR/resolve/v3.4.0/onnx/PP-OCRv5/det/ch_PP-OCRv5_mobile_det.onnx_immich_machine_learning_logs.txt
Additional information
Before I get this feedback, yes I am running my own custom DNS (pi-hole) and I have verified that it is not blocking the request because of cn domain or any other reason. And the host is reachable from inside the machine, the download is getting timed out because the server hosting the model is not responding back.

Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels
Type
Projects
Status
Done