Random search not working in V2.1.0 #7540

Closed
opened 2026-02-05 13:07:35 +03:00 by OVERLORD · 0 comments
Owner

Originally created by @martynvdijke on GitHub (Oct 16, 2025).

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

  • Yes

The bug

Hi everyone, I updated my immich instance to V2. 1.0.
I find that on my instance the '/search/random' api is gone and gives a 404.
Whislt according to https://api.immich.app/endpoints/search/searchRandom that api should exists other api end points like '/server/about' and '/search/cities' work without any problems.

Reponse from the '/search/random' api

{"message":"Cannot GET /api/search/random","error":"Not Found","statusCode":404,"correlationId":"ud4kbf49"}

The OS that Immich Server is running on

Arch linjx

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

One plus nord 4

Your docker-compose.yml content

immich-server:
    container_name: immich_server
    image: ghcr.io/immich-app/immich-server:release
    volumes:
      - /data/media/upload:/usr/src/app/upload
    env_file:
      - .env-immich
    depends_on:
      - immich-redis
      - immich-database
    networks:
      mynetwork:
        ipv4_address: 172.20.0.57
    restart: always

  immich-machine-learning:
    container_name: immich_machine_learning
    image: ghcr.io/immich-app/immich-machine-learning:release
    volumes:
      - /data/media/upload:/usr/src/app/upload
      - /config/immich/cache:/cache
    env_file:
      - .env-immich
    depends_on:
      - immich-database
    networks:
      mynetwork:
        ipv4_address: 172.20.0.56
    restart: always

  immich-redis:
    container_name: immich_redis
    image: valkey/valkey:latest
    healthcheck:
      test: redis-cli ping || exit 1
    networks:
      mynetwork:
        ipv4_address: 172.20.0.58
    restart: always

  immich-database:
    container_name: immich_postgres
    image: ghcr.io/immich-app/postgres:14-vectorchord0.4.1-pgvectors0.2.0
    env_file:
      - .env-immich
    networks:
      mynetwork:
        ipv4_address: 172.20.0.59
    volumes:
      - /config/immich/db:/var/lib/postgresql/data
    restart: always

Your .env content

DB_HOSTNAME=172.20.0.59
DB_USERNAME=y
DB_PASSWORD=y
DB_DATABASE_NAME=z
POSTGRES_PASSWORD=y
POSTGRES_USER=y
POSTGRES_DB=z
POSTGRES_INITDB_ARGS='--data-checksums'
PG_DATA=/var/lib/postgresql/data
REDIS_HOSTNAME=immich_redis
NODE_ENV=production
UPLOAD_LOCATION=/config/immich

JWT_SECRET=x

TYPESENSE_API_KEY=x
TYPESENSE_ENABLED=true
TYPESENSE_URL=x

REVERSE_GEOCODING_PRECISION=2
IMMICH_SERVER_URL=http://172.20.0.57:3001
IMMICH_MACHINE_LEARNING_URL=http://172.20.0.56:3003

LOG_LEVEL=verbose
IMMICH_API_KEY=
IMMICH_URL="http://immich_server:2283"
EXTERNAL_IMMICH_URL=x
DB_HOST=immich_postgres
DB_PORT=5432

Reproduction steps

1.docker-compose up -d
2. Wget server/api/search/random
3.
...

Relevant log output


Additional information

No response

Originally created by @martynvdijke on GitHub (Oct 16, 2025). ### I have searched the existing issues, both open and closed, to make sure this is not a duplicate report. - [x] Yes ### The bug Hi everyone, I updated my immich instance to V2. 1.0. I find that on my instance the '/search/random' api is gone and gives a 404. Whislt according to https://api.immich.app/endpoints/search/searchRandom that api should exists other api end points like '/server/about' and '/search/cities' work without any problems. Reponse from the '/search/random' api `{"message":"Cannot GET /api/search/random","error":"Not Found","statusCode":404,"correlationId":"ud4kbf49"}` ### The OS that Immich Server is running on Arch linjx ### Version of Immich Server V2.1.0 ### Version of Immich Mobile App V2.1.0 ### Platform with the issue - [x] Server - [ ] Web - [ ] Mobile ### Device make and model One plus nord 4 ### Your docker-compose.yml content ```YAML immich-server: container_name: immich_server image: ghcr.io/immich-app/immich-server:release volumes: - /data/media/upload:/usr/src/app/upload env_file: - .env-immich depends_on: - immich-redis - immich-database networks: mynetwork: ipv4_address: 172.20.0.57 restart: always immich-machine-learning: container_name: immich_machine_learning image: ghcr.io/immich-app/immich-machine-learning:release volumes: - /data/media/upload:/usr/src/app/upload - /config/immich/cache:/cache env_file: - .env-immich depends_on: - immich-database networks: mynetwork: ipv4_address: 172.20.0.56 restart: always immich-redis: container_name: immich_redis image: valkey/valkey:latest healthcheck: test: redis-cli ping || exit 1 networks: mynetwork: ipv4_address: 172.20.0.58 restart: always immich-database: container_name: immich_postgres image: ghcr.io/immich-app/postgres:14-vectorchord0.4.1-pgvectors0.2.0 env_file: - .env-immich networks: mynetwork: ipv4_address: 172.20.0.59 volumes: - /config/immich/db:/var/lib/postgresql/data restart: always ``` ### Your .env content ```Shell DB_HOSTNAME=172.20.0.59 DB_USERNAME=y DB_PASSWORD=y DB_DATABASE_NAME=z POSTGRES_PASSWORD=y POSTGRES_USER=y POSTGRES_DB=z POSTGRES_INITDB_ARGS='--data-checksums' PG_DATA=/var/lib/postgresql/data REDIS_HOSTNAME=immich_redis NODE_ENV=production UPLOAD_LOCATION=/config/immich JWT_SECRET=x TYPESENSE_API_KEY=x TYPESENSE_ENABLED=true TYPESENSE_URL=x REVERSE_GEOCODING_PRECISION=2 IMMICH_SERVER_URL=http://172.20.0.57:3001 IMMICH_MACHINE_LEARNING_URL=http://172.20.0.56:3003 LOG_LEVEL=verbose IMMICH_API_KEY= IMMICH_URL="http://immich_server:2283" EXTERNAL_IMMICH_URL=x DB_HOST=immich_postgres DB_PORT=5432 ``` ### Reproduction steps 1.docker-compose up -d 2. Wget server/api/search/random 3. ... ### Relevant log output ```shell ``` ### Additional information _No response_
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: immich-app/immich#7540