Machine learning backoff not working #5698

Closed
opened 2026-02-05 11:40:12 +03:00 by OVERLORD · 3 comments
Owner

Originally created by @sithmein on GitHub (Mar 27, 2025).

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

  • Yes

The bug

The machine learning backoff check isn't working because the comparison at https://github.com/immich-app/immich/blob/main/server/src/repositories/machine-learning.repository.ts#L108 is wrong. It should be > rather than <.

In addition https://github.com/immich-app/immich/blob/main/server/src/repositories/machine-learning.repository.ts#L116 should return !availability.active instead of false.

The OS that Immich Server is running on

Docker

Version of Immich Server

v1.130.3

Version of Immich Mobile App

Platform with the issue

  • Server
  • Web
  • Mobile

Your docker-compose.yml content

-

Your .env content

-

Reproduction steps

Relevant log output

-

Additional information

No response

Originally created by @sithmein on GitHub (Mar 27, 2025). ### I have searched the existing issues, both open and closed, to make sure this is not a duplicate report. - [x] Yes ### The bug The machine learning backoff check isn't working because the comparison at https://github.com/immich-app/immich/blob/main/server/src/repositories/machine-learning.repository.ts#L108 is wrong. It should be `>` rather than `<`. In addition https://github.com/immich-app/immich/blob/main/server/src/repositories/machine-learning.repository.ts#L116 should return `!availability.active` instead of `false`. ### The OS that Immich Server is running on Docker ### Version of Immich Server v1.130.3 ### Version of Immich Mobile App - ### Platform with the issue - [x] Server - [ ] Web - [ ] Mobile ### Your docker-compose.yml content ```YAML - ``` ### Your .env content ```Shell - ``` ### Reproduction steps - ### Relevant log output ```shell - ``` ### Additional information _No response_
Author
Owner

@xtbqimuxmvtx commented on GitHub (Mar 30, 2025):

I'm probably weighing in for unrelated issue, I dont know what Backoff refees to and what symptoms might occur.

What version did the regression / new bug come about?

I noticed when I updated my app from 130.1 to 130.3 after the same server update that the machine learning search on mobile is completely broken. It works fine in web so I'm hesitant to try any fix related to the server

Context Search will usually finds zero results but sometimes finds one or two in an album of 17,000. On desktop web browser it finds hundreds (with declining quality from result #50-350 usually due to exhaustion of (obvious) topic)

@xtbqimuxmvtx commented on GitHub (Mar 30, 2025): I'm probably weighing in for unrelated issue, I dont know what Backoff refees to and what symptoms might occur. What version did the regression / new bug come about? I noticed when I updated my app from 130.1 to 130.3 after the same server update that the machine learning search on mobile is completely broken. It works fine in web so I'm hesitant to try any fix related to the server Context Search will usually finds zero results but sometimes finds one or two in an album of 17,000. On desktop web browser it finds hundreds (with declining quality from result #50-350 usually due to exhaustion of (obvious) topic)
Author
Owner

@danieldietzler commented on GitHub (Apr 3, 2025):

Yes @xtbqimuxmvtx this is completely unrelated. Please open a new discussion or hop on our discord (https://discord.immich.app) since it's most likely an issue with your deployment (those versions shouldn't affect that at all and we don't have any other reports)

@danieldietzler commented on GitHub (Apr 3, 2025): Yes @xtbqimuxmvtx this is completely unrelated. Please open a new discussion or hop on our discord (https://discord.immich.app) since it's most likely an issue with your deployment (those versions shouldn't affect that at all and we don't have any other reports)
Author
Owner

@jrasm91 commented on GitHub (Sep 18, 2025):

I looked at this, and the whole thing seemed really... weird. I re-implemented it in #22185. Basically, all the machine learning urls get checked every interval and then healthy/responsive servers are prioritized ahead of non-responsive ones when queries are actually made.

@jrasm91 commented on GitHub (Sep 18, 2025): I looked at this, and the whole thing seemed really... _weird_. I re-implemented it in #22185. Basically, all the machine learning urls get checked every _interval_ and then healthy/responsive servers are prioritized ahead of non-responsive ones when queries are actually made.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: immich-app/immich#5698