cvat: Detection error occurred Request failed with status code 503. "HTTPConnectionPool(host='host.docker.internal', port=51603): Max retries exceeded with url: / (Caused by NewConnectionError(': Failed to establish a new connection: [Errno 111] Connection refused'))".

My actions before raising this issue

  • [yes ] Read/searched the docs
  • [ yes] Searched past issues

Steps to Reproduce (for bugs)

Expected Behaviour

Current Behaviour

Possible Solution

Context

Your Environment

  • Git hash commit (git log -1):
  • Docker version docker version (e.g. Docker 17.0.05):
  • Are you using Docker Swarm or Kubernetes?
  • Operating System and version (e.g. Linux, Windows, MacOS):
  • Code example or link to GitHub repo or gist to reproduce problem:
  • Other diagnostic information / logs:
    Logs from `cvat` container

About this issue

  • Original URL
  • State: closed
  • Created a year ago
  • Comments: 17 (3 by maintainers)

Most upvoted comments

you can deploy multiple functions (I do). Just specify a unique port number for every function. Its something I learned in hard way 😃

Hi Boris, I solved it. Main problem was port numbers were different on nuclio and docker. I predefined my choice of port number while deploying the function on nuclio. In function.yaml, I added: attributes: port: [my own choice]

Details can be found here: https://nuclio.io/docs/latest/reference/triggers/http/

The port number is my choice. It can be any number you want. If you see in pictures, nuclio and docker ports are different for same function ( for example,onnx.wongkiu). Hence, the error 503. and this problem only occurs when you try to put more than one function. When you assign a port number in .yaml file, what happens is that it make sure docker and nuclio communicates on same port number (i.e., assigned same port).

Hi, in yolov5 serverless function, there is a file named, ‘function.yaml’ or ‘function-gpu.yaml’. In that file, find this part,

triggers: myHttpTrigger: maxWorkers: 1 kind: ‘http’ workerAvailabilityTimeoutMilliseconds: 10000 attributes: maxRequestBodySize: 33554432 # 32MB port: 12345

The port number here is what I specified by my choice. This solved my issue. Hope this helps!

The above mentioned issue occurs when I try to run custom yolov5 model for auto annotation tool. I have used auto-annotation tool for same model before. It suddenly started to show the above mentioned error. I have tried all the trouble shooting mentioned in older issues. Anyone had the similar issue recently?