Loop DNS calling for machine learning #8253

Closed
opened 2026-02-05 13:37:27 +03:00 by OVERLORD · 1 comment
Owner

Originally created by @albertomorini on GitHub (Jan 14, 2026).

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

  • Yes

The bug

I noticed that "immich-machine-learning.lan" is fetched in loop, even withouth having the machine-learning instance on.
I have noticed via AdGuardHome (the DNS query is blocked due to multiple repetition)

Let me know

Image

The OS that Immich Server is running on

Docker 28.5.1

Version of Immich Server

v2.3.1

Version of Immich Mobile App

NA

Platform with the issue

  • Server
  • Web
  • Mobile

Device make and model

Custom PC with 32GB RAM, Ryzen 9, 1TB

Your docker-compose.yml content

# 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}:/data
      - /etc/localtime:/etc/localtime:ro
      - /mnt/ARCHIVE/Visual/YEARS/:/mnt/ARCHIVE/Visual/YEARS/
    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:facc1d2c3462975c34e10fccb167bfa92b0e0dbd992fc282c29a61c3243afb11
    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'
      # 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
    shm_size: 128mb
    restart: always

volumes:
  model-cache:

Your .env content

Not using it, I put everything in the compose

Reproduction steps

1.Start the container
2.Check the DNS request with tool like PiHole/AdGuardHome/Wireshark
3.
...

Relevant log output


Additional information

No response

Originally created by @albertomorini on GitHub (Jan 14, 2026). ### I have searched the existing issues, both open and closed, to make sure this is not a duplicate report. - [x] Yes ### The bug I noticed that "immich-machine-learning.lan" is fetched in loop, even withouth having the machine-learning instance on. I have noticed via AdGuardHome (the DNS query is blocked due to multiple repetition) Let me know ![Image](https://github.com/user-attachments/assets/ab514402-3aec-44a9-91be-fc8985980674) ### The OS that Immich Server is running on Docker 28.5.1 ### Version of Immich Server v2.3.1 ### Version of Immich Mobile App NA ### Platform with the issue - [x] Server - [ ] Web - [ ] Mobile ### Device make and model Custom PC with 32GB RAM, Ryzen 9, 1TB ### Your docker-compose.yml content ```YAML # 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}:/data - /etc/localtime:/etc/localtime:ro - /mnt/ARCHIVE/Visual/YEARS/:/mnt/ARCHIVE/Visual/YEARS/ 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:facc1d2c3462975c34e10fccb167bfa92b0e0dbd992fc282c29a61c3243afb11 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' # 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 shm_size: 128mb restart: always volumes: model-cache: ``` ### Your .env content ```Shell Not using it, I put everything in the compose ``` ### Reproduction steps 1.Start the container 2.Check the DNS request with tool like PiHole/AdGuardHome/Wireshark 3. ... ### Relevant log output ```shell ``` ### Additional information _No response_
Author
Owner

@bo0tzz commented on GitHub (Jan 14, 2026):

The server checks for a healthy ML instance so it knows where to send requests to; this is part of the mechanism where you can enter multiple ML server URLs and is working as expected. If you don't want it you can turn off the availability checks in the settings https://my.immich.app/admin/system-settings?isOpen=machine-learning+availability-checks.

@bo0tzz commented on GitHub (Jan 14, 2026): The server checks for a healthy ML instance so it knows where to send requests to; this is part of the mechanism where you can enter multiple ML server URLs and is working as expected. If you don't want it you can turn off the availability checks in the settings https://my.immich.app/admin/system-settings?isOpen=machine-learning+availability-checks.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: immich-app/immich#8253