Skip to content

Machine Learning disabled, but Immich still tries to contact the ML server #23037

Description

@Losmen

I have searched the existing issues, both open and closed, to make sure this is not a duplicate report.

  • Yes

The bug

Even when I disable all options in the Machine Learning settings, Immich still attempts to contact the machine learning server (the URL defined in the configuration).

The OS that Immich Server is running on

Debian GNU/Linux 12 (bookworm)

Version of Immich Server

v2.1.0

Version of Immich Mobile App

v2.1.0

Platform with the issue

  • Server
  • Web
  • Mobile

Device make and model

Raspberry pi 4

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

  redis:
    container_name: immich_redis
    image: docker.io/valkey/valkey:8-bookworm@sha256:a137a2b60aca1a75130022d6bb96af423fefae4eb55faf395732db3544803280
    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:32324a2f41df5de9efe1af166b7008c3f55646f8d0e00d9550c16c9822366b4a
    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

volumes:
  model-cache:

Your .env content

DB_USERNAME=postgres
DB_PASSWORD=xxx
DB_DATABASE_NAME=immich

UPLOAD_LOCATION=/home/user/photos/
DB_DATA_LOCATION=/home/user/SSD/database/
IMMICH_VERSION=release
NODE_ENV=production
IMMICH_PORT=2283
IMMICH_THUMBNAIL_SIZE=1440
IMMICH_THUMBNAIL_QUALITY=70
IMMICH_WORKER_CONCURRENCY=1
REDIS_HOST=immich_redis
REDIS_PORT=6379
DB_HOST=immich_postgres
DB_PORT=5432
DISABLE_TELEMETRY=true

Reproduction steps

  1. Go to Admin → Machine Learning settings.
  2. set URL as default http://immich-machine-learning:3003
  3. Disable Enable machine learning
  4. Save changes.
  5. Monitor network traffic
  6. Immich still tries to reach the machine learning server URL.
    ...

Relevant log output

Additional information

Expected behavior:
When machine learning is disabled, Immich should not attempt to contact the ML server at all.

Actual behavior:
Immich continues to send requests to the configured machine learning server URL, even though all ML features are turned off.

Image

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    Status
    Done

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions