Facial Recognition ECONNREFUSED
Running a full "Recognize Faces" job floods the docker logs with errors.
What I've tried:
- stopping the stack & starting it again
- using the latest docker-compose straight from GitHub (only adjusted the external mapping of immich-proxy)
The errors look like this:
There's one for every image it seems to try and scan.
The docker compose ps looks like this:
48 Replies
Oh, and the logs of immich-machine learning look like this:
Looks like machine learning is downloading the models
Maybe restart it one more time and try again
Nope, no change. :/
It also seems to be re-downloading the buffalo model every single startup.
Do you have the model cache volume?
I've copy-pasted the compose from here:
https://github.com/immich-app/immich/blob/main/docker/docker-compose.yml
GitHub
immich/docker-compose.yml at main · immich-app/immich
Self-hosted photo and video backup solution directly from your mobile phone. - immich/docker-compose.yml at main · immich-app/immich
Only modified the external port of the proxy.
It looks like the model hasn’t finished downloaded yet
It's been stuck at that log for a good hour now. I have 400 mbit internet and according to the Proxmox system monitor the download finishes within under two minutes.
Afterwards there's no more network activity.
Can you remove the model_cache volume, then
docker-compose pull
to get the latest release from last night?Done so, same end result.
Was already running the latest docker containers btw.
Maybe try manually downloading that file and placing it in the models cache folder
Then restarting the container
Strange. What is your system spec/os?
This is a Debian 11 LXC, running on Proxmox.
The CPU is a Intel Core i5-1135G7, so standard x86_64.
Last resort, can you try what Jason asked above to download the file@manually?
That machine learning container is weird.
Neither ping, wget or curl are installed, and connections to deb.debian.org seem to fail.
I'll try to re-pull it.
You aren't using any custom dns or firewall stuff are you?
The DNS requests go through fine and my OPNsense isn't restrictive. Queries show up in my Technitum server and everything.
Also works in the other containers... :/
I'm currently re-pulling the images of the Immich stack. Maybe that will fix it.
Definitely seems very strange
After pulling the latest version it now works absolutely perfectly. I frankly have no idea why, but it works, so...
I'm having the same problem. Did you just repull everything again? @Latte macchiato
Yep.
I frankly have no idea what actually fixed it. I did do a kernel update a few hours after and did a full node reboot, so maybe that had an impact as well?
sadly enough this did not fix it for me
Also tried removing the models-cache volume and restarting the containers but without success.
Error Log from microservices:

Left it alone and suddenly the icons of the people appear and it seems to be working?
lol
Can you check your machine learning container?

those are the most recent logs
These are still the most recent logs of the microservices:

If you want to make sure, run recognize faces job for missing assets
If I do that nothing happens in the logs. But for a second i can see this

after a second it goes back to 0 0

But i can see faces
yeah that one active job is for queuing assets with missing faces
so apparently it runs on all faces already
Strange that it suddenly fixed itself 🙂
self-healing
😛
How many assets do you have? if you want to make sure you can run the recognize faces job on all assets again

Ran it on all assets again
and no errors anymore XD
great, you don't have that many assets so it should be quick
Hello everyone,
appearently I have the same problem with machine learning.
I get ECONNREFUSED errors in my microservices log:
I already tried to restart the stack and installed immich using docker compose with the latest .yml and .env from github
My machine learning log locks like that:


Did you perform docker-compose down then up?
hmm, this issue seems a bit different than the above ones since here it's trying to reach port
3002
while ml is on 3003
.I performed docker compose down and up. While doing that I got typsense errors (No API key found). I guess this is because I added the line manually in portainer as environmental variable but it seems like the "=" then is missing in the .env. After adding and saving it, docker compose up ran without typesense errors but now I get following when I want to use a machine learning job like facial recognition


After deleting the model cache and recreating the machine learning container I get the ECONNREFUSED error again in the Microservices log
Ok, I'm a bit ashamed but I seems like that in my .env the port for the machine learning url was set on 3002. After changing it to 3003 the facial recognition worked and I get no errors anymore 🙂
lol sometimes it's the tiniest things. glad to hear it works now!