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:
immich_microservices     |     at TCPConnectWrap.afterConnect [as oncomplete] (node:net:1494:16)
immich_microservices     | [Nest] 1  - 05/20/2023, 7:35:48 PM   ERROR [FacialRecognitionService] Unable run facial recognition pipeline: 6a173c8f-0a91-4e90-a502-1a73aa01bb1e
immich_microservices     | Error: connect ECONNREFUSED 172.18.0.5:3003
immich_microservices     |     at TCPConnectWrap.afterConnect [as oncomplete] (node:net:1494:16)
immich_microservices     | [Nest] 1  - 05/20/2023, 7:35:48 PM   ERROR [FacialRecognitionService] Unable run facial recognition pipeline: 8a6a8e36-a869-4eb5-bc0e-213e517c8633
immich_microservices     | Error: connect ECONNREFUSED 172.18.0.5:3003
immich_microservices     |     at TCPConnectWrap.afterConnect [as oncomplete] (node:net:1494:16)

There's one for every image it seems to try and scan.

The docker compose ps looks like this:
root@immich-ct:~# docker compose ps     
NAME                      IMAGE                                                COMMAND                  SERVICE                   CREATED              STATUS              PORTS
immich_machine_learning   ghcr.io/immich-app/immich-machine-learning:release   "python src/main.py"     immich-machine-learning   About a minute ago   Up About a minute   
immich_microservices      ghcr.io/immich-app/immich-server:release             "/bin/sh ./start-mic…"   immich-microservices      About a minute ago   Up About a minute   3001/tcp
immich_postgres           postgres:14                                          "docker-entrypoint.s…"   database                  About a minute ago   Up About a minute   5432/tcp
immich_proxy              ghcr.io/immich-app/immich-proxy:release              "/docker-entrypoint.…"   immich-proxy              About a minute ago   Up About a minute   0.0.0.0:8080->8080/tcp, :::8080->8080/tcp
immich_redis              redis:6.2                                            "docker-entrypoint.s…"   redis                     About a minute ago   Up About a minute   6379/tcp
immich_server             ghcr.io/immich-app/immich-server:release             "/bin/sh ./start-ser…"   immich-server             About a minute ago   Up About a minute   3001/tcp
immich_typesense          typesense/typesense:0.24.0                           "/opt/typesense-serv…"   typesense                 About a minute ago   Up About a minute   8108/tcp
immich_web                ghcr.io/immich-app/immich-web:release                "/bin/sh ./entrypoin…"   immich-web                About a minute ago   Up About a minute   3000/tcp
Was this page helpful?