#failed to fecth

1 messages · Page 1 of 1 (latest)

smoky monolith
#

Hi everyone, I'm trying to use some LM related functions but it doesn't work for me.
I'll start by saying that I'm new to docker, so please don't be surprised by potentially stupid questions.

I find the following errors in the log:
immich_server | [Nest] 7 - 03/28/2025, 9:06:41 PM ERROR [Microservices:{"id":"e249826f-3689-45c7-acc7-27275d486249"}] Unable to run job handler (faceDetection/face-detection): Error: Machine learning request '{"facial-recognition":{"detection":{"modelName":"buffalo_l","options":{"minScore":0.7}},"recognition":{"modelName":"buffalo_l"}}}' failed for all URLs

and

immich_server            | [Nest] 7  - 03/28/2025, 9:06:41 PM   ERROR [Microservices:{"id":"a8e7b30c-80ae-47b4-8d0a-9021fc0443d5"}] Unable to run job handler (faceDetection/face-detection): Error: Machine learning request '{"facial-recognition":{"detection":{"modelName":"buffalo_l","options":{"minScore":0.7}},"recognition":{"modelName":"buffalo_l"}}}' failed for all URLs

thank you all, and sorry for dumb question, I'm new

limber gladeBOT
#

:wave: Hey @smoky monolith,

Thanks for reaching out to us. Please carefully read this message and follow the recommended actions. This will help us be more effective in our support effort and leave more time for building Immich immich.

References

#

Checklist

I have...

  1. :ballot_box_with_check: verified I'm on the latest release(note that mobile app releases may take some time).
  2. :ballot_box_with_check: read applicable release notes.
  3. :ballot_box_with_check: reviewed the FAQs for known issues.
  4. :ballot_box_with_check: reviewed Github for known issues.
  5. :ballot_box_with_check: tried accessing Immich via local ip (without a custom reverse proxy).
  6. :ballot_box_with_check: uploaded the relevant information (see below).
  7. :ballot_box_with_check: tried an incognito window, disabled extensions, cleared mobile app cache, logged out and back in, different browsers, etc. as applicable

(an item can be marked as "complete" by reacting with the appropriate number)

Information

In order to be able to effectively help you, we need you to provide clear information to show what the problem is. The exact details needed vary per case, but here is a list of things to consider:

  • Your docker-compose.yml and .env files.
  • Logs from all the containers and their status (see above).
  • All the troubleshooting steps you've tried so far.
  • Any recent changes you've made to Immich or your system.
  • Details about your system (both software/OS and hardware).
  • Details about your storage (filesystems, type of disks, output of commands like fdisk -l and df -h).
  • The version of the Immich server, mobile app, and other relevant pieces.
  • Any other information that you think might be relevant.

Please paste files and logs with proper code formatting, and especially avoid blurry screenshots.
Without the right information we can't work out what the problem is. Help us help you ;)

If this ticket can be closed you can use the /close command, and re-open it later if needed.

limber gladeBOT
analog ermine
#

Is the ml container running? What do its logs say?

terse sorrel
#

Did you change the ML server?

#

If so please share your changes

smoky monolith
#

i think I miss some pieces? I just started the docker-compose, I need to add Remote Machine Learning?

because I have already one docker named "immich_machine_learning"

sorry for dumb question, but for me it's all new

terse sorrel
#

Maybe explain more thoroughly what exactly you did so far/if you changed anything in the admin settings

smoky monolith
#

I installed immich following https://immich.app/docs/install/docker-compose

the only change i made on the code side was to add "networkmode: host" at some point because for some reason, some docker without it doesn't work properly for me.

for the rest I don't remember having touched any other things, I tried to change the LM model but without success.

I would like to point out that even doing a fresh install from casaOS the problem persists

maybe I need to install anything else, I'm really sorry to stress you all and sorry for my English

terse sorrel
#

the only change i made on the code side was to add "networkmode: host"
There we go

#

Why does the compose file you posted not have this?

terse sorrel
analog ermine
terse sorrel
#

Didn't I say this?

analog ermine
#

Not explicitly :p

terse sorrel
smoky monolith
#

if I do something like

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>
    volumes:
      # Do not edit the next line. If you want to change the media storage loca>
      - ${UPLOAD_LOCATION}:/usr/src/app/upload
      - /etc/localtime:/etc/localtime:ro
    env_file:
      - .env
    ports:
      - 2283:2283
    network_mode: host```

it gives me the error Published ports are discarded when using host network mode.

and I can't access to immich from web and app
terse sorrel
#

Yes, we're saying you shouldn't add host

#

You generally very rarely should use host networking

smoky monolith
#

yeah, but idk why, without this, many Dockers have problem (like Jellyfin, Glance, ecc) and how I see Immich too (I don't know the origin and how to fix)

#

I think something like DNS, maybe?

terse sorrel
#

It is honestly very hard to tell without knowing your exact system

#

It certainly sounds like you have some networking weirdness going on

smoky monolith
#

well, third world country be like:

#

i try add DNS too to the docker compose but nothing

analog ermine
#

Start by removing the host network. Just use the default setup

smoky monolith
terse sorrel
#

What's "the lm"?

smoky monolith
terse sorrel
#

Do you mean "language model" (instead of "large language model")?

#

Ah yeah

#

That's not an LLM 😅

terse sorrel
smoky monolith
smoky monolith
terse sorrel
terse sorrel
smoky monolith
terse sorrel
#

Oh wait casaos?

#

You're using casaos?

smoky monolith
#

I try with docker and with casaOS, both

terse sorrel
#

Docker on a casaos system though?

#

Or separate OS?

smoky monolith
#

docker on debian

terse sorrel
#

It gets weirder and less likely with every message lol

#

What you're describing seems impossible 😅

smoky monolith
#

I feel stupid

terse sorrel
#

Don't be

#

Does the debian host have more containers running?

smoky monolith
#

yeah, something like glance, *arr and jellyfin

terse sorrel
#

Do you have an individual docker compose file per project?

smoky monolith
terse sorrel
smoky monolith
#

Immich by itself works once the container is started, the problem is that for certain functions it tells me that it cannot reach the ML container

I take the docker from: https://immich.app/docs/install/docker-compose

if you prefer, I can make a fresh install from the GitHub link but I think it's the same

terse sorrel
#

Yeah it's the same

#

Can you show the output of docker container inspect immich_machine_learning?

smoky monolith
#

a few minutes while I turn on the computer and send it, thanks

terse sorrel
#

Could you do the same for immich_server?

smoky monolith
#

thanks :)

terse sorrel
#

Okay so they're both in the same network and the hostname of the ML container is correct, too

#

There's no reason this shouldn't work lol

#

There aren't any errors from the ML container? (docker compose logs immich-machine-learning)

smoky monolith
#

'''sava@owlhub:~/immich-app$ sudo docker compose logs immich-machine-learning
immich_machine_learning | Initializing Immich ML v1.130.3
immich_machine_learning | [03/28/25 21:01:04] INFO Starting gunicorn 23.0.0
immich_machine_learning | [03/28/25 21:01:04] INFO Listening at: http://[::]:2283 (9)
immich_machine_learning | [03/28/25 21:01:04] INFO Using worker: app.config.CustomUvicornWorker
immich_machine_learning | [03/28/25 21:01:04] INFO Booting worker with pid: 10
immich_machine_learning | [03/28/25 21:01:06] INFO Started server process [10]
immich_machine_learning | [03/28/25 21:01:06] INFO Waiting for application startup.
immich_machine_learning | [03/28/25 21:01:06] INFO Created in-memory cache with unloading after 300s
immich_machine_learning | of inactivity.
immich_machine_learning | [03/28/25 21:01:06] INFO Initialized request thread pool with 8 threads.
immich_machine_learning | [03/28/25 21:01:06] INFO Application startup complete. '''

terse sorrel
#

Oh wait!

#

There we go!

#

That port is wrong

smoky monolith
#

what?? how can i fix?

terse sorrel
#

Can you share your env file?

#

You must've added something there that shouldn't be in there

smoky monolith
#

WAITTTT

#

you are right

terse sorrel
smoky monolith
#

now is immich_machine_learning | [03/28/25 23:31:05] INFO Listening at: http://[::]:3003 (9)

terse sorrel
#

That sounds better!

smoky monolith
#

but i cant reach the port :3003 anyways...

terse sorrel
#

What do you mean by that?

#

Immich server is still throwing the same error?

smoky monolith
#

THANK YOU, I FEEL STUPID BUT I THINK IT'S WORKING

#

i have just another question

terse sorrel
smoky monolith
#

thank you so much

#

oh wait

#

same problem

terse sorrel
smoky monolith
#

immich_server | [Nest] 7 - 03/28/2025, 11:40:32 PM WARN [Microservices:MachineLearningRepository] Machine learning request to "http://immich-machine-learning:3003" failed: fetch failed
immich_server | [Nest] 7 - 03/28/2025, 11:40:32 PM ERROR [Microservices:{"id":"8ce0b2f7-ed59-4f6b-8e6d-33a6bfc6522d"}] Unable to run job handler (faceDetection/face-detection): Error: Machine learning request '{"facial-recognition":{"detection":{"modelName":"buffalo_l","options":{"minScore":0.7}},"recognition":{"modelName":"buffalo_l"}}}' failed for all URLs
immich_server | [Nest] 7 - 03/28/2025, 11:40:32 PM WARN [Microservices:MachineLearningRepository] Machine learning request to "http://immich-machine-learning:3003" failed: fetch failed

terse sorrel
#

You haven't changed anything?

#

Besides fixing the port

smoky monolith
#

nope my env is clean

terse sorrel
#

And you haven't touched the compose file?

#

Anyways I am off to bed now. If you haven't changed it back to host networking or something, and the port is still correct according to the ml container logs, I have no clue what's going on tbh

smoky monolith
#

thank you, i will check, good night!

#

i think i found the errore, maybe

immich_machine_learning | [03/28/25 23:35:31] INFO Downloading detection model 'buffalo_l'. This may
immich_machine_learning | take a while.
immich_machine_learning | [03/28/25 23:44:14] WARNING Failed to load detection model 'buffalo_l'.
immich_machine_learning | Clearing cache.
immich_machine_learning | [03/28/25 23:44:14] INFO Downloading detection model 'buffalo_l'. This may
immich_machine_learning | take a while.
immich_machine_learning | [03/28/25 23:44:14] WARNING Attempted to clear cache for model 'buffalo_l', but
immich_machine_learning | cache directory does not exist

#

I'm going to sleep too, if anyone has any advice tomorrow, it's welcome, good night everyone

smoky monolith
#

good morning

the log give me this error too

Unable to run version check: Error: Failed to fetch GitHub release: TypeError: fetch failed
immich_server | [Nest] 17 - 03/29/2025, 7:18:26 AM LOG [Api:EventRepository] Websocket Connect: r40-ApzfHha9NPboAAAR

smoky monolith
#

hi, I tried again but unfortunately the result is always the same

smoky monolith
#

Hi, I solved it, I looked for how to manually download the ML and it's working