© 2026 Hedgehog Software, LLC

TwitterGitHubDiscord
More
CommunitiesDocsAboutTermsPrivacy
Search
Star
Setup for Free
ImmichI
Immich•3y ago•
2 replies
paveldudka

ML Service: Error: connect ECONNREFUSED 127.0.0.1:80

I am trying to enable ML service in Immich, but getting the aforementioned error.
For the context, I had it disabled (IMMICH_MACHINE_LEARNING_URL = false in .env + commented out ML service in Docker compose) during Immich setup and now (after I uploaded photos) I decided to enable it.
However, when I manually try to run "TAG OBJECTS" job, nothing really happens and in microservices log I can see the following:

2023-04-17T03:03:56.050184779Z Error: connect ECONNREFUSED 127.0.0.1:80
2023-04-17T03:03:56.050205003Z at TCPConnectWrap.afterConnect [as oncomplete] (node:net:1187:16)
2023-04-17T03:03:56.051006090Z [Nest] 1 - 04/16/2023, 8:03:56 PM ERROR [SmartInfoService] Unable run object detection pipeline: dae2e257-8dbd-43a0-9a68-885572f4b8a4

Looking at the ML service logs, it doesn't throw any errors, so this is what Im seeing in logs:
2023-04-17T03:02:01.713839951Z [2023-04-16 20:02:01 -0700] [1] [INFO] Starting gunicorn 20.1.0
2023-04-17T03:02:01.714949526Z [2023-04-16 20:02:01 -0700] [1] [INFO] Listening at: http://0.0.0.0:3003 (1)
2023-04-17T03:02:01.714967931Z [2023-04-16 20:02:01 -0700] [1] [INFO] Using worker: gthread
2023-04-17T03:02:01.723702923Z [2023-04-16 20:02:01 -0700] [13] [INFO] Booting worker with pid: 13
2023-04-17T03:02:01.821821420Z [2023-04-16 20:02:01 -0700] [14] [INFO] Booting worker with pid: 14

My setup is pretty standard except Postgres is hosted separately. But that should not have anything to do with ML as I understand.
ImmichJoin
A place to hang out, get support, discuss Immich, get announcements about releases and anything else going on.
36,590Members
Resources

Similar Threads

Was this page helpful?
Recent Announcements

Similar Threads

connect ECONNREFUSED 127.0.0.1:3001 - ECONNREFUSED
ImmichIImmich / help-desk-support
3y ago
Error: connect ECONNREFUSED 127
ImmichIImmich / help-desk-support
15mo ago
connect ECONNREFUSED 172.23.0.6:3003 - ML not starting
ImmichIImmich / help-desk-support
3y ago
connect ECONNREFUSED 172.23.0.9:3001 (ECONNREFUSED)
ImmichIImmich / help-desk-support
3y ago