Ich habe Immich laufen, und seit gestern funktioniert das ganze über Reverse Proxy mit Caddy. Leider funktioniert die Suche und die Gesichtserkennung nicht, da immich_machine_learning den Cache nicht finden und nicht beschreiben kann. Kennt das schon jemand?
YML kopier ich als Code rein, die .ENV darunter.
#
# WARNING: To install Immich, follow our guide: https://immich.app/docs/install/docker-compose
#
# 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: immich
services:
immich-server:
container_name: immich_server
image: 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 transcoding
volumes:
# 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
- /volume2/photo:/mnt/photo:ro
- /etc/localtime:/etc/localtime:ro
env_file:
- .env
# ports: # auskommentiert wegen Caddy
# - '2283:2283'
networks:
- proxy
- internal
depends_on:
- redis
- database
restart: unless-stopped
healthcheck:
disable: false
immich-machine-learning:
container_name: immich_machine_learning
# For hardware acceleration, add one of -[armnn, cuda, rocm, openvino, rknn] to the image tag.
# Example tag: ${IMMICH_VERSION:-release}-cuda
image: 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, rocm, openvino, openvino-wsl, rknn] for accelerated inference - use the `-wsl` version for WSL2 where applicable
volumes:
- model-cache:/cache
env_file:
- .env
restart: unless-stopped
healthcheck:
disable: false
networks:
- internal
redis:
container_name: immich_redis
image: docker.io/valkey/valkey:8-bookworm@sha256:fec42f399876eb6faf9e008570597741c87ff7662a54185593e74b09ce83d177
healthcheck:
test: redis-cli ping || exit 1
restart: unless-stopped
networks:
- internal
database:
container_name: immich_postgres
image: ghcr.io/immich-app/postgres:14-vectorchord0.4.3-pgvectors0.2.0
environment:
POSTGRES_PASSWORD: ${DB_PASSWORD}
POSTGRES_USER: ${DB_USERNAME}
POSTGRES_DB: ${DB_DATABASE_NAME}
POSTGRES_INITDB_ARGS: '--data-checksums'
# Uncomment the DB_STORAGE_TYPE: 'HDD' var if your database isn't stored on SSDs
# DB_STORAGE_TYPE: 'HDD'
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/data
restart: unless-stopped
networks:
- internal
networks:
proxy:
external: true
internal:
internal: true
volumes:
model-cache:
Display More
Hier die ENV
# You can find documentation for all the supported env variables at https://immich.app/docs/install/environment-variables
# Caddy Public URL
PUBLIC_URL=https://immich.home:8443
# The location where your uploaded files are stored
UPLOAD_LOCATION=/volume1/docker/immich/upload
# The location where your database files are stored. Network shares are not supported for the database
DB_DATA_LOCATION=/volume1/docker/immich/postgres
# Damit die Foto-Datenbank als Read-only eingebunden werden kann
# IMMICH_IGNORE_MOUNT_CHECK_ERRORS=true
# 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=Europe/Berlin
# The Immich version to use. You can pin this to a specific version like "v1.71.0"
IMMICH_VERSION=v1.135.3
# 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=pw
# The values below this line do not need to be changed
###################################################################################
DB_USERNAME=immich_user
DB_DATABASE_NAME=immich_db
Display More
Fehler 1: Keine Verbindung zu huggingface.co.
Fehler 2: Findet Cache Directory nicht.
[06/29/25 20:58:04] INFO Downloading detection model 'antelopev2'. This may
take a while.
[06/29/25 20:58:04] WARNING Failed to load detection model 'antelopev2'.
Clearing cache.
[06/29/25 20:58:04] WARNING Attempted to clear cache for model 'antelopev2',
but cache directory does not exist
[06/29/25 20:58:04] INFO Downloading detection model 'antelopev2'. This may
take a while.
[06/29/25 20:58:04] ERROR Exception in ASGI application
╭─────── Traceback (most recent call last) ───────╮
│ /opt/venv/lib/python3.11/site-packages/urllib3/ │
│ connection.py:203 in _new_conn │
│ │
│ 200 │ │ :return: New socket connection. │
│ 201 │ │ """ │
│ 202 │ │ try: │
│ ❱ 203 │ │ │ sock = connection.create_conn │
│ 204 │ │ │ │ (self._dns_host, self.por │
│ 205 │ │ │ │ self.timeout, │
│ 206 │ │ │ │ source_address=self.sourc │
│ │
│ /opt/venv/lib/python3.11/site-packages/urllib3/ │
│ util/connection.py:60 in create_connection │
│ │
│ 57 │ except UnicodeError: │
│ 58 │ │ raise LocationParseError(f"'{host │
│ 59 │ │
│ ❱ 60 │ for res in socket.getaddrinfo(host, p │
│ 61 │ │ af, socktype, proto, canonname, s │
│ 62 │ │ sock = None │
│ 63 │ │ try: │
│ │
│ /usr/local/lib/python3.11/socket.py:974 in │
│ getaddrinfo │
│ │
│ 971 │ # We override this function since we │
│ 972 │ # and socket type values to enum cons │
│ 973 │ addrlist = [] │
│ ❱ 974 │ for res in _socket.getaddrinfo(host, │
│ 975 │ │ af, socktype, proto, canonname, s │
│ 976 │ │ addrlist.append((_intenum_convert │
│ 977 │ │ │ │ │ │ _intenum_convert │
╰─────────────────────────────────────────────────╯
gaierror: [Errno -3] Temporary failure in name
resolution
(Log gekürzt)
Display More
Zweiter Versuch: Selbst runterladen und manuell erstellen. Dafür habe ich vom Volume: model-cache auf ein Bind /volume1/docker/immich/cache umgestellt und dort selbst die Ordner (/immich-app)/antelepov2 inkl. der entsprechenden Unterordner /detection und /recognition erstellt und darin jeweils die Datei model.onnx geladen.
Das Log ist aber ähnlich. Erst findet er die Dateien nicht, dann will er den Cache löschen und meckert dann über die nicht existierende Datei.
Aus dem Container immich_machine_learning heraus kann ich aber auf die Ordnerstruktur zugreifen und auch Dateien erstellen. Ich vermute, ich nutze auch beim manuellen Download die falschen Pfade. Kann mir jemand, bei dem es geht, die korrekten Pfade aufzeigen?