Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Gateway Timeout (504) error when running with SAM #6041

Closed
2 tasks done
manuelli opened this issue Apr 18, 2023 · 22 comments · Fixed by #6019
Closed
2 tasks done

Gateway Timeout (504) error when running with SAM #6041

manuelli opened this issue Apr 18, 2023 · 22 comments · Fixed by #6019
Labels
need info Need more information to investigate the issue

Comments

@manuelli
Copy link

manuelli commented Apr 18, 2023

My actions before raising this issue

Steps to Reproduce (for bugs)

  1. Downloaded cvat, am on commit ad534b2ac32f57.

  2. Installed NVIDIA container toolkit.

  3. Followed Serverless Setup steps.

  4. Installed nuctl by following guide here. Verified that nuclio is version 1.8.14.

  5. Ran command to launch SAM nuctl function as described here. cd serverless && ./deploy_gpu.sh pytorch/facebookresearch/sam/nuclio/

  6. Checked that nuclio function is running properly nuctl get function returns that SAM function is in STATE ready.

  7. Launched CVAT in serverless mode using docker-compose -f docker-compose.yml -f components/serverless/docker-compose.serverless.yml up -d.

  8. Open CVAT task, select "Segment Anything" from AI tools, click on image. Get a "Waiting a response from Segment Anything." After a while I get a 504 timeout error. Failed to load resource: the server responded with a status of 504 (Gateway Timeout). Clicking on the link in the browser console shows me REST api call (image below).

image

Current Behaviour

It seems that CVAT instance is unable to communicate with the nuclio SAM function. I have verified that SAM function is running in nuclio dashboard.

Your Environment

  • Git hash commit ad534b2a:
  • Docker version 23.0.4
  • Are you using Docker Swarm or Kubernetes? Regular docker
  • Operating System and version (e.g. Linux, Windows, MacOS):. Linux 22.04
@GillesBallegeerVintecc
Copy link

I've got exactly the same issue. The weird this is that I got it to work on CPU on one computer and then followed the exact same steps on another and there it doesn't work.

In the docker logs I've found this:

2023-04-20 09:15:55,536 DEBG 'runserver' stderr output:
[Thu Apr 20 09:15:55.536775 2023] [wsgi:error] [pid 337:tid 140222251001408] [remote 172.19.0.6:48534] WARNING:django.request:Not Found: /api/functions/requests/


cvat_server             | 2023-04-20 09:09:43,395 DEBG 'runserver' stderr output:
cvat_server             | [Thu Apr 20 09:09:43.395696 2023] [wsgi:error] [pid 337:tid 140222267786816] [remote 172.19.0.6:45738] [2023-04-20 09:09:43,395] ERROR django.request: Service Unavailable: /api/lambda/functions/pth.facebookresearch.sam.vit_h
cvat_server             | 
cvat_server             | 2023-04-20 09:09:43,396 DEBG 'runserver' stderr output:
cvat_server             | [Thu Apr 20 09:09:43.395858 2023] [wsgi:error] [pid 337:tid 140222267786816] [remote 172.19.0.6:45738] ERROR:django.request:Service Unavailable: /api/lambda/functions/pth.facebookresearch.sam.vit_h

I found no further errors in the nuclio container and the sam container.

I've tested with another serverless function and there I got the same issue. Currently I run with the env CVAT_HOST, but I got the same behaviour without.

So I suspect that there might be some communication issues between the cvat containers, but I don't really see a clear way to debug this.

@OutSorcerer
Copy link

OutSorcerer commented Apr 20, 2023

In my case I was able to work this around by increasing eventTimeout in serverless/pytorch/facebookresearch/sam/nuclio/function.yaml.

Also, consider deceasing maxWorkers to 1 in case if RAM consumption is too high.

And increasing maxRequestBodySize if images are larger than 32MB.

SAM started to work, but it is very slow, and CPU is not fully utilized, while I am waiting for the results in the UI, so looks like it is due to I/O (which is also strange as the instance has SSD and all the network connectivity is on localhost).

@GillesBallegeerVintecc
Copy link

The weird thing is that it did work on my laptop RTX3000, 32Gb and 6core CPU. But doesn't work on our much more powerful pc: 64Gb, 16 Core and RTX3090. So I'm not 100% sure if is due to limited resources.

@bsekachev
Copy link
Member

Hi guys, could you please submit that it is running on GPU? If you deploy with deploy_gpu.sh it will run on CPU, if GPU is unavailable.

Could you provide some logs?
And verify GPU is available in docker sudo docker run --rm --runtime=nvidia --gpus all nvidia/cuda:11.6.2-base-ubuntu20.04 nvidia-smi?

@bsekachev bsekachev added the need info Need more information to investigate the issue label Apr 25, 2023
@GillesBallegeerVintecc
Copy link

Unable to find image 'nvidia/cuda:11.6.2-base-ubuntu20.04' locally
11.6.2-base-ubuntu20.04: Pulling from nvidia/cuda
846c0b181fff: Already exists 
b787be75b30b: Pull complete 
40a5337e592b: Pull complete 
8055c4cd4ab2: Pull complete 
a0c882e23131: Pull complete 
Digest: sha256:9928940c6e88ed3cdee08e0ea451c082a0ebf058f258f6fbc7f6c116aeb02143
Status: Downloaded newer image for nvidia/cuda:11.6.2-base-ubuntu20.04
Tue Apr 25 10:57:44 2023       
+-----------------------------------------------------------------------------+
| NVIDIA-SMI 525.105.17   Driver Version: 525.105.17   CUDA Version: 12.0     |
|-------------------------------+----------------------+----------------------+
| GPU  Name        Persistence-M| Bus-Id        Disp.A | Volatile Uncorr. ECC |
| Fan  Temp  Perf  Pwr:Usage/Cap|         Memory-Usage | GPU-Util  Compute M. |
|                               |                      |               MIG M. |
|===============================+======================+======================|
|   0  NVIDIA GeForce ...  Off  | 00000000:09:00.0  On |                  N/A |
|  0%   41C    P8    20W / 370W |     50MiB / 24576MiB |      0%      Default |
|                               |                      |                  N/A |
+-------------------------------+----------------------+----------------------+
                                                                               
+-----------------------------------------------------------------------------+
| Processes:                                                                  |
|  GPU   GI   CI        PID   Type   Process name                  GPU Memory |
|        ID   ID                                                   Usage      |
|=============================================================================|
+-----------------------------------------------------------------------------+

These are the exact steps that I follow:

CVAT_HOST=10.0.20.90 docker compose -f docker-compose.yml -f docker-compose.dev.yml -f components/serverless/docker-compose.serverless.yml up -d

nuctl create project cvat

./deploy_gpu.sh pytorch/facebookresearch/sam/nuclio/

23.04.25 14:09:34.478                     nuctl (I) Project created {"Name": "cvat", "Namespace": "nuclio"}
Deploying pytorch/facebookresearch/sam function...
23.04.25 14:09:34.600                     nuctl (I) Deploying function {"name": ""}
23.04.25 14:09:34.600                     nuctl (I) Building {"builderKind": "docker", "versionInfo": "Label: 1.8.14, Git commit: cbb0774230996a3eb4621c1a2079e2317578005b, OS: linux, Arch: amd64, Go version: go1.17.8", "name": ""}
23.04.25 14:09:34.665                     nuctl (I) Staging files and preparing base images
23.04.25 14:09:34.666                     nuctl (I) Building processor image {"registryURL": "", "imageName": "cvat.pth.facebookresearch.sam.vit_h:latest"}
23.04.25 14:09:34.666     nuctl.platform.docker (I) Pulling image {"imageName": "quay.io/nuclio/handler-builder-python-onbuild:1.8.14-amd64"}
23.04.25 14:09:36.058     nuctl.platform.docker (W) Docker command outputted to stderr - this may result in errors {"workingDir": "/tmp/nuclio-build-1414436413/staging", "cmd": "docker build --network host --force-rm -t nuclio-onbuild-ch3s5vpchdh57ngg6f4g -f /tmp/nuclio-build-1414436413/staging/Dockerfile.onbuild   --build-arg NUCLIO_LABEL=1.8.14 --build-arg NUCLIO_ARCH=amd64 --build-arg NUCLIO_BUILD_LOCAL_HANDLER_DIR=handler  .", "stderr": "#1 [internal] load build definition from Dockerfile.onbuild\n#1 transferring dockerfile: 142B done\n#1 DONE 0.0s\n\n#2 [internal] load .dockerignore\n#2 transferring context: 2B done\n#2 DONE 0.0s\n\n#3 [internal] load metadata for quay.io/nuclio/handler-builder-python-onbuild:1.8.14-amd64\n#3 DONE 0.0s\n\n#4 [1/1] FROM quay.io/nuclio/handler-builder-python-onbuild:1.8.14-amd64\n#4 CACHED\n\n#5 exporting to image\n#5 exporting layers done\n#5 writing image sha256:a7adbd3a9671ac582fe78d151a7afd660f512c70eac942b99ef29b5372243015 done\n#5 naming to docker.io/library/nuclio-onbuild-ch3s5vpchdh57ngg6f4g done\n#5 DONE 0.0s\n"}
23.04.25 14:09:36.311     nuctl.platform.docker (I) Pulling image {"imageName": "quay.io/nuclio/uhttpc:0.0.1-amd64"}
23.04.25 14:09:38.286     nuctl.platform.docker (W) Docker command outputted to stderr - this may result in errors {"workingDir": "/tmp/nuclio-build-1414436413/staging", "cmd": "docker build --network host --force-rm -t nuclio-onbuild-ch3s60hchdh57ngg6f50 -f /tmp/nuclio-build-1414436413/staging/Dockerfile.onbuild   --build-arg NUCLIO_BUILD_LOCAL_HANDLER_DIR=handler --build-arg NUCLIO_LABEL=1.8.14 --build-arg NUCLIO_ARCH=amd64  .", "stderr": "#1 [internal] load build definition from Dockerfile.onbuild\n#1 transferring dockerfile: 117B done\n#1 DONE 0.0s\n\n#2 [internal] load .dockerignore\n#2 transferring context: 2B done\n#2 DONE 0.0s\n\n#3 [internal] load metadata for quay.io/nuclio/uhttpc:0.0.1-amd64\n#3 DONE 0.0s\n\n#4 [1/1] FROM quay.io/nuclio/uhttpc:0.0.1-amd64\n#4 CACHED\n\n#5 exporting to image\n#5 exporting layers done\n#5 writing image sha256:9943b85af94c13d2c584c901927b0b5c771dd68b142f846151c555a1bd049fb2 done\n#5 naming to docker.io/library/nuclio-onbuild-ch3s60hchdh57ngg6f50 done\n#5 DONE 0.0s\n"}
23.04.25 14:09:38.405            nuctl.platform (I) Building docker image {"image": "cvat.pth.facebookresearch.sam.vit_h:latest"}
23.04.25 14:09:38.544     nuctl.platform.docker (W) Docker command outputted to stderr - this may result in errors {"workingDir": "/tmp/nuclio-build-1414436413/staging", "cmd": "docker build --network host --force-rm -t cvat.pth.facebookresearch.sam.vit_h:latest -f /tmp/nuclio-build-1414436413/staging/Dockerfile.processor   --build-arg NUCLIO_LABEL=1.8.14 --build-arg NUCLIO_ARCH=amd64 --build-arg NUCLIO_BUILD_LOCAL_HANDLER_DIR=handler  .", "stderr": "#1 [internal] load .dockerignore\n#1 transferring context: 2B done\n#1 DONE 0.0s\n\n#2 [internal] load build definition from Dockerfile.processor\n#2 transferring dockerfile: 946B done\n#2 DONE 0.0s\n\n#3 [internal] load metadata for vintecc.azurecr.io/cvat-sam:latest\n#3 DONE 0.0s\n\n#4 [1/7] FROM vintecc.azurecr.io/cvat-sam\n#4 DONE 0.0s\n\n#5 [internal] load build context\n#5 transferring context: 9.13kB done\n#5 DONE 0.0s\n\n#6 [5/7] COPY artifacts/uhttpc /usr/local/bin/uhttpc\n#6 CACHED\n\n#7 [2/7] COPY artifacts/processor /usr/local/bin/processor\n#7 CACHED\n\n#8 [4/7] COPY artifacts/py3.8-whl /opt/nuclio/whl\n#8 CACHED\n\n#9 [3/7] COPY artifacts/py /opt/nuclio/\n#9 CACHED\n\n#10 [6/7] COPY handler /opt/nuclio\n#10 CACHED\n\n#11 [7/7] RUN python /opt/nuclio/whl/$(basename /opt/nuclio/whl/pip-*.whl)/pip install pip --no-index --find-links /opt/nuclio/whl && python -m pip install nuclio-sdk msgpack --no-index --find-links /opt/nuclio/whl\n#11 CACHED\n\n#12 exporting to image\n#12 exporting layers done\n#12 writing image sha256:47e28d1397a468e1e8e2239d13fa9f80da57f55a7df6fc3f4b26b32bf82e6a89 done\n#12 naming to docker.io/library/cvat.pth.facebookresearch.sam.vit_h:latest done\n#12 DONE 0.0s\n"}
23.04.25 14:09:38.544            nuctl.platform (I) Pushing docker image into registry {"image": "cvat.pth.facebookresearch.sam.vit_h:latest", "registry": ""}
23.04.25 14:09:38.544            nuctl.platform (I) Docker image was successfully built and pushed into docker registry {"image": "cvat.pth.facebookresearch.sam.vit_h:latest"}
23.04.25 14:09:38.544                     nuctl (I) Build complete {"result": {"Image":"cvat.pth.facebookresearch.sam.vit_h:latest","UpdatedFunctionConfig":{"metadata":{"name":"pth.facebookresearch.sam.vit_h","namespace":"nuclio","labels":{"nuclio.io/project-name":"cvat"},"annotations":{"animated_gif":"https://raw.githubusercontent.com/opencv/cvat/develop/site/content/en/images/hrnet_example.gif","framework":"pytorch","help_message":"The interactor allows to get a mask of an object using at least one positive, and any negative points inside it","min_neg_points":"0","min_pos_points":"1","name":"Segment Anything","spec":"","type":"interactor","version":"2"}},"spec":{"description":"Interactive object segmentation with Segment-Anything","handler":"main:handler","runtime":"python:3.8","env":[{"name":"PYTHONPATH","value":"/opt/nuclio/sam"}],"resources":{"limits":{"nvidia.com/gpu":"1"},"requests":{"cpu":"25m","memory":"1Mi"}},"image":"cvat.pth.facebookresearch.sam.vit_h:latest","targetCPU":75,"triggers":{"myHttpTrigger":{"class":"","kind":"http","name":"myHttpTrigger","maxWorkers":1,"workerAvailabilityTimeoutMilliseconds":10000,"attributes":{"maxRequestBodySize":33554432}}},"volumes":[{"volume":{"name":"volume-1","hostPath":{"path":"/home/vintecc/gilles/cvat/serverless/common"}},"volumeMount":{"name":"volume-1","mountPath":"/opt/nuclio/common"}}],"build":{"functionConfigPath":"pytorch/facebookresearch/sam/nuclio//function-gpu.yaml","image":"cvat.pth.facebookresearch.sam.vit_h","baseImage":"vintecc.azurecr.io/cvat-sam","codeEntryType":"image"},"platform":{"attributes":{"mountMode":"volume","restartPolicy":{"maximumRetryCount":3,"name":"always"}}},"readinessTimeoutSeconds":120,"securityContext":{},"eventTimeout":"30s"}}}}
23.04.25 14:09:38.548                     nuctl (I) Cleaning up before deployment {"functionName": "pth.facebookresearch.sam.vit_h"}
23.04.25 14:09:39.489            nuctl.platform (I) Waiting for function to be ready {"timeout": 120}
23.04.25 14:09:41.172                     nuctl (I) Function deploy complete {"functionName": "pth.facebookresearch.sam.vit_h", "httpPort": 32769, "internalInvocationURLs": ["172.17.0.4:8080"], "externalInvocationURLs": []}
  NAMESPACE |              NAME              | PROJECT | STATE | REPLICAS | NODE PORT  
  nuclio    | pth.facebookresearch.sam.vit_h | cvat    | ready | 1/1      |     32769  

docker logs nuclio-nuclio-pth.facebookresearch.sam.vit_h


==========
== CUDA ==
==========

CUDA Version 11.7.1

Container image Copyright (c) 2016-2022, NVIDIA CORPORATION & AFFILIATES. All rights reserved.

This container image and its contents are governed by the NVIDIA Deep Learning Container License.
By pulling and using the container, you accept the terms and conditions of this license:
https://developer.nvidia.com/ngc/nvidia-deep-learning-container-license

A copy of this license is made available in this container at /NGC-DL-CONTAINER-LICENSE for your convenience.

23.04.25 12:09:39.499                 processor (I) Starting processor {"version": "Label: 1.8.14, Git commit: cbb0774230996a3eb4621c1a2079e2317578005b, OS: linux, Arch: amd64, Go version: go1.17.8"}
23.04.25 12:09:39.499                 processor (D) Read configuration {"config": "{\n    \"metadata\": {\n        \"name\": \"pth.facebookresearch.sam.vit_h\",\n        \"namespace\": \"nuclio\",\n        \"labels\": {\n            \"nuclio.io/project-name\": \"cvat\"\n        },\n        \"annotations\": {\n            \"animated_gif\": \"https://raw.githubusercontent.com/opencv/cvat/develop/site/content/en/images/hrnet_example.gif\",\n            \"framework\": \"pytorch\",\n            \"help_message\": \"The interactor allows to get a mask of an object using at least one positive, and any negative points inside it\",\n            \"min_neg_points\": \"0\",\n            \"min_pos_points\": \"1\",\n            \"name\": \"Segment Anything\",\n            \"spec\": \"\",\n            \"type\": \"interactor\",\n            \"version\": \"2\"\n        }\n    },\n    \"spec\": {\n        \"description\": \"Interactive object segmentation with Segment-Anything\",\n        \"handler\": \"main:handler\",\n        \"runtime\": \"python:3.8\",\n        \"env\": [\n            {\n                \"name\": \"PYTHONPATH\",\n                \"value\": \"/opt/nuclio/sam\"\n            }\n        ],\n        \"resources\": {\n            \"limits\": {\n                \"nvidia.com/gpu\": \"1\"\n            },\n            \"requests\": {\n                \"cpu\": \"25m\",\n                \"memory\": \"1Mi\"\n            }\n        },\n        \"image\": \"cvat.pth.facebookresearch.sam.vit_h:latest\",\n        \"targetCPU\": 75,\n        \"triggers\": {\n            \"myHttpTrigger\": {\n                \"class\": \"\",\n                \"kind\": \"http\",\n                \"name\": \"myHttpTrigger\",\n                \"maxWorkers\": 1,\n                \"workerAvailabilityTimeoutMilliseconds\": 10000,\n                \"attributes\": {\n                    \"maxRequestBodySize\": 33554432\n                }\n            }\n        },\n        \"volumes\": [\n            {\n                \"volume\": {\n                    \"name\": \"volume-1\",\n                    \"hostPath\": {\n                        \"path\": \"/home/vintecc/gilles/cvat/serverless/common\"\n                    }\n                },\n                \"volumeMount\": {\n                    \"name\": \"volume-1\",\n                    \"mountPath\": \"/opt/nuclio/common\"\n                }\n            }\n        ],\n        \"build\": {\n            \"functionConfigPath\": \"pytorch/facebookresearch/sam/nuclio//function-gpu.yaml\",\n            \"image\": \"cvat.pth.facebookresearch.sam.vit_h\",\n            \"baseImage\": \"vintecc.azurecr.io/cvat-sam\",\n            \"codeEntryType\": \"image\",\n            \"timestamp\": 1682424578\n        },\n        \"platform\": {\n            \"attributes\": {\n                \"mountMode\": \"volume\",\n                \"restartPolicy\": {\n                    \"maximumRetryCount\": 3,\n                    \"name\": \"always\"\n                }\n            }\n        },\n        \"readinessTimeoutSeconds\": 120,\n        \"securityContext\": {},\n        \"eventTimeout\": \"30s\"\n    },\n    \"PlatformConfig\": null\n}", "platformConfig": "{\n    \"kind\": \"local\",\n    \"webAdmin\": {\n        \"enabled\": true,\n        \"listenAddress\": \":8081\"\n    },\n    \"healthCheck\": {\n        \"enabled\": true,\n        \"listenAddress\": \":8082\"\n    },\n    \"logger\": {\n        \"sinks\": {\n            \"stdout\": {\n                \"kind\": \"stdout\"\n            }\n        },\n        \"system\": [\n            {\n                \"level\": \"debug\",\n                \"sink\": \"stdout\"\n            }\n        ],\n        \"functions\": [\n            {\n                \"level\": \"debug\",\n                \"sink\": \"stdout\"\n            }\n        ]\n    },\n    \"metrics\": {},\n    \"scaleToZero\": {\n        \"multiTargetStrategy\": \"random\"\n    },\n    \"autoScale\": {},\n    \"cronTriggerCreationMode\": \"processor\",\n    \"functionReadinessTimeout\": \"2m0s\",\n    \"ingressConfig\": {},\n    \"kube\": {\n        \"defaultServiceType\": \"ClusterIP\",\n        \"defaultFunctionPodResources\": {\n            \"requests\": {},\n            \"limits\": {}\n        }\n    },\n    \"local\": {\n        \"FunctionContainersHealthinessEnabled\": false,\n        \"FunctionContainersHealthinessTimeout\": 5000000000,\n        \"FunctionContainersHealthinessInterval\": 30000000000\n    },\n    \"imageRegistryOverrides\": {},\n    \"opa\": {\n        \"address\": \"127.0.0.1:8181\",\n        \"clientKind\": \"nop\",\n        \"requestTimeout\": 10,\n        \"permissionQueryPath\": \"/v1/data/iguazio/authz/allow\",\n        \"permissionFilterPath\": \"/v1/data/iguazio/authz/filter_allowed\"\n    },\n    \"streamMonitoring\": {\n        \"webapiURL\": \"http://v3io-webapi:8081\",\n        \"v3ioRequestConcurrency\": 64\n    }\n}"}
23.04.25 12:09:39.499 cessor.healthcheck.server (I) Listening {"listenAddress": ":8082"}
23.04.25 12:09:39.499            processor.http (D) Creating worker pool {"num": 1}
23.04.25 12:09:39.499 sor.http.w0.python.logger (D) Creating listener socket {"path": "/tmp/nuclio-rpc-ch3s60sjmibg4qhjqf6g.sock"}
23.04.25 12:09:39.499 sor.http.w0.python.logger (D) Using Python wrapper script path {"path": "/opt/nuclio/_nuclio_wrapper.py"}
23.04.25 12:09:39.499 sor.http.w0.python.logger (D) Using Python handler {"handler": "main:handler"}
23.04.25 12:09:39.499 sor.http.w0.python.logger (D) Using Python executable {"path": "/usr/bin/python3"}
23.04.25 12:09:39.500 sor.http.w0.python.logger (D) Setting PYTHONPATH {"value": "PYTHONPATH=/opt/nuclio:/opt/nuclio/sam"}
23.04.25 12:09:39.500 sor.http.w0.python.logger (D) Running wrapper {"command": "/usr/bin/python3 -u /opt/nuclio/_nuclio_wrapper.py --handler main:handler --socket-path /tmp/nuclio-rpc-ch3s60sjmibg4qhjqf6g.sock --platform-kind local --namespace nuclio --worker-id 0 --trigger-kind http --trigger-name myHttpTrigger --decode-event-strings"}
23.04.25 12:09:40.341 sor.http.w0.python.logger (I) Wrapper connected {"wid": 0, "pid": 45}
23.04.25 12:09:40.341 sor.http.w0.python.logger (D) Waiting for start
{"datetime": "2023-04-25 12:09:40,341", "level": "info", "message": "Replacing logger output", "with": {"handler_name": "default", "worker_id": "0"}}
23.04.25 12:09:40.342 sor.http.w0.python.logger (I) Init context...  0% {"worker_id": "0"}
23.04.25 12:09:46.971 sor.http.w0.python.logger (I) Init context...100% {"worker_id": "0"}
23.04.25 12:09:46.971 sor.http.w0.python.logger (D) Started
23.04.25 12:09:46.971                 processor (I) Starting event timeout watcher {"timeout": "30s"}
23.04.25 12:09:46.971 .webadmin.server.triggers (D) Registered custom route {"routeName": "triggers", "stream": false, "pattern": "/{id}/stats", "method": "GET"}
23.04.25 12:09:46.971 processor.webadmin.server (D) Registered resource {"name": "triggers"}
23.04.25 12:09:46.971                 processor (W) No metric sinks configured, metrics will not be published
23.04.25 12:09:46.971                 processor (D) Starting triggers {"triggersError": "json: unsupported value: encountered a cycle via *http.http"}
23.04.25 12:09:46.972            processor.http (I) Starting {"listenAddress": ":8080", "readBufferSize": 16384, "maxRequestBodySize": 33554432, "reduceMemoryUsage": false, "cors": null}
23.04.25 12:09:46.972 processor.webadmin.server (I) Listening {"listenAddress": ":8081"}
23.04.25 12:09:46.972                 processor (D) Processor started

docker compose -f docker-compose.yml -f docker-compose.dev.yml -f components/serverless/docker-compose.serverless.yml logs -f

cvat_server             | debug3: identity_permitted: entering: key RSA comment "django@c8306433483f", 0 socket bindings, 0 constraints
nuclio                  | 23.04.25 12:16:14.100 dashboard.platform.docker (D) Executing in container {"containerID": "nuclio-local-storage-reader", "execOptions": {"Command":"/bin/sh -c \"/bin/cat /etc/nuclio/store/functions/nuclio/*\"","Stdout":"","Stderr":"","Env":null}}
nuclio                  | 23.04.25 12:16:14.100 rd.platform.docker.runner (D) Executing {"command": "docker exec  nuclio-local-storage-reader /bin/sh -c \"/bin/cat /etc/nuclio/store/functions/nuclio/*\""}
nuclio                  | 23.04.25 12:16:14.196 rd.platform.docker.runner (D) Command executed successfully {"output": "eyJtZXRhZGF0YSI6eyJuYW1lIjoicHRoLmZhY2Vib29rcmVzZWFyY2guc2FtLnZpdF9oIiwibmFtZXNwYWNlIjoibnVjbGlvIiwibGFiZWxzIjp7Im51Y2xpby5pby9wcm9qZWN0LW5hbWUiOiJjdmF0In0sImFubm90YXRpb25zIjp7ImFuaW1hdGVkX2dpZiI6Imh0dHBzOi8vcmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbS9vcGVuY3YvY3ZhdC9kZXZlbG9wL3NpdGUvY29udGVudC9lbi9pbWFnZXMvaHJuZXRfZXhhbXBsZS5naWYiLCJmcmFtZXdvcmsiOiJweXRvcmNoIiwiaGVscF9tZXNzYWdlIjoiVGhlIGludGVyYWN0b3IgYWxsb3dzIHRvIGdldCBhIG1hc2sgb2YgYW4gb2JqZWN0IHVzaW5nIGF0IGxlYXN0IG9uZSBwb3NpdGl2ZSwgYW5kIGFueSBuZWdhdGl2ZSBwb2ludHMgaW5zaWRlIGl0IiwibWluX25lZ19wb2ludHMiOiIwIiwibWluX3Bvc19wb2ludHMiOiIxIiwibmFtZSI6IlNlZ21lbnQgQW55dGhpbmciLCJzcGVjIjoiIiwidHlwZSI6ImludGVyYWN0b3IiLCJ2ZXJzaW9uIjoiMiJ9fSwic3BlYyI6eyJkZXNjcmlwdGlvbiI6IkludGVyYWN0aXZlIG9iamVjdCBzZWdtZW50YXRpb24gd2l0aCBTZWdtZW50LUFueXRoaW5nIiwiaGFuZGxlciI6Im1haW46aGFuZGxlciIsInJ1bnRpbWUiOiJweXRob246My44IiwiZW52IjpbeyJuYW1lIjoiUFlUSE9OUEFUSCIsInZhbHVlIjoiL29wdC9udWNsaW8vc2FtIn1dLCJyZXNvdXJjZXMiOnsibGltaXRzIjp7Im52aWRpYS5jb20vZ3B1IjoiMSJ9LCJyZXF1ZXN0cyI6eyJjcHUiOiIyNW0iLCJtZW1vcnkiOiIxTWkifX0sImltYWdlIjoiY3ZhdC5wdGguZmFjZWJvb2tyZXNlYXJjaC5zYW0udml0X2g6bGF0ZXN0IiwidGFyZ2V0Q1BVIjo3NSwidHJpZ2dlcnMiOnsibXlIdHRwVHJpZ2dlciI6eyJjbGFzcyI6IiIsImtpbmQiOiJodHRwIiwibmFtZSI6Im15SHR0cFRyaWdnZXIiLCJtYXhXb3JrZXJzIjoxLCJ3b3JrZXJBdmFpbGFiaWxpdHlUaW1lb3V0TWlsbGlzZWNvbmRzIjoxMDAwMCwiYXR0cmlidXRlcyI6eyJtYXhSZXF1ZXN0Qm9keVNpemUiOjMzNTU0NDMyfX19LCJ2b2x1bWVzIjpbeyJ2b2x1bWUiOnsibmFtZSI6InZvbHVtZS0xIiwiaG9zdFBhdGgiOnsicGF0aCI6Ii9ob21lL3ZpbnRlY2MvZ2lsbGVzL2N2YXQvc2VydmVybGVzcy9jb21tb24ifX0sInZvbHVtZU1vdW50Ijp7Im5hbWUiOiJ2b2x1bWUtMSIsIm1vdW50UGF0aCI6Ii9vcHQvbnVjbGlvL2NvbW1vbiJ9fV0sImJ1aWxkIjp7ImZ1bmN0aW9uQ29uZmlnUGF0aCI6InB5dG9yY2gvZmFjZWJvb2tyZXNlYXJjaC9zYW0vbnVjbGlvLy9mdW5jdGlvbi1ncHUueWFtbCIsImltYWdlIjoiY3ZhdC5wdGguZmFjZWJvb2tyZXNlYXJjaC5zYW0udml0X2giLCJiYXNlSW1hZ2UiOiJ2aW50ZWNjLmF6dXJlY3IuaW8vY3ZhdC1zYW0iLCJjb2RlRW50cnlUeXBlIjoiaW1hZ2UiLCJ0aW1lc3RhbXAiOjE2ODI0MjQ1Nzh9LCJwbGF0Zm9ybSI6eyJhdHRyaWJ1dGVzIjp7Im1vdW50TW9kZSI6InZvbHVtZSIsInJlc3RhcnRQb2xpY3kiOnsibWF4aW11bVJldHJ5Q291bnQiOjMsIm5hbWUiOiJhbHdheXMifX19LCJyZWFkaW5lc3NUaW1lb3V0U2Vjb25kcyI6MTIwLCJzZWN1cml0eUNvbnRleHQiOnt9LCJldmVudFRpbWVvdXQiOiIzMHMifSwic3RhdHVzIjp7InN0YXRlIjoicmVhZHkiLCJodHRwUG9ydCI6MzI3NjksImludGVybmFsSW52b2NhdGlvblVybHMiOlsiMTcyLjE3LjAuNDo4MDgwIl19fQ==\n", "stderr": "", "exitCode": 0}
nuclio                  | 23.04.25 12:16:14.197 dashboard.platform.docker (D) Getting containers {"options": {"Name":"nuclio-nuclio-pth.facebookresearch.sam.vit_h","Labels":null,"Stopped":false,"ID":""}}
nuclio                  | 23.04.25 12:16:14.197 rd.platform.docker.runner (D) Executing {"command": "docker ps --quiet   --filter \"name=^/nuclio-nuclio-pth.facebookresearch.sam.vit_h$\"  "}
nuclio                  | 23.04.25 12:16:14.213 rd.platform.docker.runner (D) Command executed successfully {"output": "2077dbadc7ee\n", "stderr": "", "exitCode": 0}
nuclio                  | 23.04.25 12:16:14.213 rd.platform.docker.runner (D) Executing {"command": "docker inspect 2077dbadc7ee "}
nuclio                  | 23.04.25 12:16:14.244 rd.platform.docker.runner (D) Command executed successfully {"output": "[\n    {\n        \"Id\": \"2077dbadc7ee1387e268731313169feaddffc243769edc7b87be7bfeef5fbf1d\",\n        \"Created\": \"2023-04-25T12:09:38.937378195Z\",\n        \"Path\": \"/opt/nvidia/nvidia_entrypoint.sh\",\n        \"Args\": [\n            \"processor\"\n        ],\n        \"State\": {\n            \"Status\": \"running\",\n            \"Running\": true,\n            \"Paused\": false,\n            \"Restarting\": false,\n            \"OOMKilled\": false,\n            \"Dead\": false,\n            \"Pid\": 38437,\n            \"ExitCode\": 0,\n            \"Error\": \"\",\n            \"StartedAt\": \"2023-04-25T12:09:39.474716887Z\",\n            \"FinishedAt\": \"0001-01-01T00:00:00Z\",\n            \"Health\": {\n                \"Status\": \"healthy\",\n                \"FailingStreak\": 0,\n                \"Log\": [\n                    {\n                        \"Start\": \"2023-04-25T14:16:08.758555203+02:00\",\n                        \"End\": \"2023-04-25T14:16:08.821270885+02:00\",\n                        \"ExitCode\": 0,\n                        \"Output\": \"\"\n                    },\n                    {\n                        \"Start\": \"2023-04-25T14:16:09.842139055+02:00\",\n                        \"End\": \"2023-04-25T14:16:09.909260103+02:00\",\n                        \"ExitCode\": 0,\n                        \"Output\": \"\"\n                    },\n                    {\n                        \"Start\": \"2023-04-25T14:16:10.930888669+02:00\",\n                        \"End\": \"2023-04-25T14:16:11.001350312+02:00\",\n                        \"ExitCode\": 0,\n                        \"Output\": \"\"\n                    },\n                    {\n                        \"Start\": \"2023-04-25T14:16:12.02196+02:00\",\n                        \"End\": \"2023-04-25T14:16:12.101274676+02:00\",\n                        \"ExitCode\": 0,\n                        \"Output\": \"\"\n                    },\n                    {\n                        \"Start\": \"2023-04-25T14:16:13.12266661+02:00\",\n                        \"End\": \"2023-04-25T14:16:13.18145733+02:00\",\n                        \"ExitCode\": 0,\n                        \"Output\": \"\"\n                    }\n                ]\n            }\n        },\n        \"Image\": \"sha256:47e28d1397a468e1e8e2239d13fa9f80da57f55a7df6fc3f4b26b32bf82e6a89\",\n        \"ResolvConfPath\": \"/var/lib/docker/containers/2077dbadc7ee1387e268731313169feaddffc243769edc7b87be7bfeef5fbf1d/resolv.conf\",\n        \"HostnamePath\": \"/var/lib/docker/containers/2077dbadc7ee1387e268731313169feaddffc243769edc7b87be7bfeef5fbf1d/hostname\",\n        \"HostsPath\": \"/var/lib/docker/containers/2077dbadc7ee1387e268731313169feaddffc243769edc7b87be7bfeef5fbf1d/hosts\",\n        \"LogPath\": \"/var/lib/docker/containers/2077dbadc7ee1387e268731313169feaddffc243769edc7b87be7bfeef5fbf1d/2077dbadc7ee1387e268731313169feaddffc243769edc7b87be7bfeef5fbf1d-json.log\",\n        \"Name\": \"/nuclio-nuclio-pth.facebookresearch.sam.vit_h\",\n        \"RestartCount\": 0,\n        \"Driver\": \"overlay2\",\n        \"Platform\": \"linux\",\n        \"MountLabel\": \"\",\n        \"ProcessLabel\": \"\",\n        \"AppArmorProfile\": \"docker-default\",\n        \"ExecIDs\": [\n            \"3b0037275e09bcef81e8ad9aaa1166c7086eb6ab323556586547a0f9c6a8c8b3\"\n        ],\n        \"HostConfig\": {\n            \"Binds\": [\n                \"/home/vintecc/gilles/cvat/serverless/common:/opt/nuclio/common\"\n            ],\n            \"ContainerIDFile\": \"\",\n            \"LogConfig\": {\n                \"Type\": \"json-file\",\n                \"Config\": {}\n            },\n            \"NetworkMode\": \"default\",\n            \"PortBindings\": {\n                \"8080/tcp\": [\n                    {\n                        \"HostIp\": \"\",\n                        \"HostPort\": \"\"\n                    }\n                ]\n            },\n            \"RestartPolicy\": {\n                \"Name\": \"always\",\n                \"MaximumRetryCount\": 0\n            },\n            \"AutoRemove\": false,\n            \"VolumeDriver\": \"\",\n            \"VolumesFrom\": null,\n            \"ConsoleSize\": [\n                0,\n                0\n            ],\n            \"CapAdd\": null,\n            \"CapDrop\": null,\n            \"CgroupnsMode\": \"host\",\n            \"Dns\": [],\n            \"DnsOptions\": [],\n            \"DnsSearch\": [],\n            \"ExtraHosts\": null,\n            \"GroupAdd\": null,\n            \"IpcMode\": \"private\",\n            \"Cgroup\": \"\",\n            \"Links\": null,\n            \"OomScoreAdj\": 0,\n            \"PidMode\": \"\",\n            \"Privileged\": false,\n            \"PublishAllPorts\": false,\n            \"ReadonlyRootfs\": false,\n            \"SecurityOpt\": null,\n            \"UTSMode\": \"\",\n            \"UsernsMode\": \"\",\n            \"ShmSize\": 67108864,\n            \"Runtime\": \"runc\",\n            \"Isolation\": \"\",\n            \"CpuShares\": 0,\n            \"Memory\": 0,\n            \"NanoCpus\": 0,\n            \"CgroupParent\": \"\",\n            \"BlkioWeight\": 0,\n            \"BlkioWeightDevice\": [],\n            \"BlkioDeviceReadBps\": [],\n            \"BlkioDeviceWriteBps\": [],\n            \"BlkioDeviceReadIOps\": [],\n            \"BlkioDeviceWriteIOps\": [],\n            \"CpuPeriod\": 0,\n            \"CpuQuota\": 0,\n            \"CpuRealtimePeriod\": 0,\n            \"CpuRealtimeRuntime\": 0,\n            \"CpusetCpus\": \"\",\n            \"CpusetMems\": \"\",\n            \"Devices\": [],\n            \"DeviceCgroupRules\": null,\n            \"DeviceRequests\": [\n                {\n                    \"Driver\": \"\",\n                    \"Count\": -1,\n                    \"DeviceIDs\": null,\n                    \"Capabilities\": [\n                        [\n                            \"gpu\"\n                        ]\n                    ],\n                    \"Options\": {}\n                }\n            ],\n            \"MemoryReservation\": 0,\n            \"MemorySwap\": 0,\n            \"MemorySwappiness\": null,\n            \"OomKillDisable\": false,\n            \"PidsLimit\": null,\n            \"Ulimits\": null,\n            \"CpuCount\": 0,\n            \"CpuPercent\": 0,\n            \"IOMaximumIOps\": 0,\n            \"IOMaximumBandwidth\": 0,\n            \"Mounts\": [\n                {\n                    \"Type\": \"volume\",\n                    \"Source\": \"nuclio-nuclio-pth.facebookresearch.sam.vit_h\",\n                    \"Target\": \"/etc/nuclio/config/processor\",\n                    \"ReadOnly\": true\n                }\n            ],\n            \"MaskedPaths\": [\n                \"/proc/asound\",\n                \"/proc/acpi\",\n                \"/proc/kcore\",\n                \"/proc/keys\",\n                \"/proc/latency_stats\",\n                \"/proc/timer_list\",\n                \"/proc/timer_stats\",\n                \"/proc/sched_debug\",\n                \"/proc/scsi\",\n                \"/sys/firmware\"\n            ],\n            \"ReadonlyPaths\": [\n                \"/proc/bus\",\n                \"/proc/fs\",\n                \"/proc/irq\",\n                \"/proc/sys\",\n                \"/proc/sysrq-trigger\"\n            ]\n        },\n        \"GraphDriver\": {\n            \"Data\": {\n                \"LowerDir\": \"/var/lib/docker/overlay2/8f8acb342386d35271e19a329b20c7a6cd1d050fe6f9fe014628aa709c5e9b89-init/diff:/var/lib/docker/overlay2/javo5di7r38c1lm8v3wtlcv34/diff:/var/lib/docker/overlay2/k3s805gig3v86321lsnrefkq7/diff:/var/lib/docker/overlay2/ryviecvg1ryiodjo7tgq1on93/diff:/var/lib/docker/overlay2/23pw99cx8l67upun5ex9hsdi8/diff:/var/lib/docker/overlay2/y06xwz0tkmauf426tbaadvrgm/diff:/var/lib/docker/overlay2/nsyooz5jjgoxogtj61s9xwpu0/diff:/var/lib/docker/overlay2/nyktltez6h4ts8mr0qtofvk0m/diff:/var/lib/docker/overlay2/loij1jpisxnvr0jogkxgnyhrm/diff:/var/lib/docker/overlay2/xwrebi0t3xu6upqcgerfkhfye/diff:/var/lib/docker/overlay2/ujcywfmsk12w0uyp73x0adf11/diff:/var/lib/docker/overlay2/y184e9tccvw66o6sct8xdevw2/diff:/var/lib/docker/overlay2/t1861qoksv4pggvke047ywhzi/diff:/var/lib/docker/overlay2/9ac3ddcd3f2c02f1484f88ae5f2088ca2dbaf0a9bc1be7cc15e90ef114a0306d/diff:/var/lib/docker/overlay2/3e8e3b4afd9cc5c5c665af36f39e1dbc9522f63a510d3c620e45c71c4f6bb785/diff:/var/lib/docker/overlay2/18c3045f694dec976f04527282629e9b739727acd4ee20829c34cd936d5f08be/diff:/var/lib/docker/overlay2/4cb0a3945a5fa77fb4442013cdaf4a6bbd5029271342f433bd7de911ed2bed58/diff:/var/lib/docker/overlay2/9a554695795153c0946406fdd28ac3dc47600da7e4050c56f8f842d60fad828d/diff:/var/lib/docker/overlay2/7755d2b26113002a3530c8f94f7d3e9dbaacc643d4b2046d416dfdf1d4fccf34/diff:/var/lib/docker/overlay2/4716a0fcb98e806bf0c36fa022a59a0a26accb033dfea0f5e92cba6c7c5a3b08/diff:/var/lib/docker/overlay2/4630fe6659338f41f2f0236afc8e28df1acd4812cb9f42ad126c7b2555aac761/diff:/var/lib/docker/overlay2/93932ae5a08ab5cb07318f163c295dae1aece78e2a395ab92eff866777980a5c/diff:/var/lib/docker/overlay2/e495f2374ad3e68869f9f733835465759c4969e66b6c23acca34fbbd3d725f28/diff:/var/lib/docker/overlay2/7a5a72cb035f02a500c58ddc8b69aeca56a83918462c7a92702735961caa1903/diff:/var/lib/docker/overlay2/53272fa168f190808223fb641ff2b45c25c0f6de0dfcb7c424eedc6d43d52d3f/diff\",\n                \"MergedDir\": \"/var/lib/docker/overlay2/8f8acb342386d35271e19a329b20c7a6cd1d050fe6f9fe014628aa709c5e9b89/merged\",\n                \"UpperDir\": \"/var/lib/docker/overlay2/8f8acb342386d35271e19a329b20c7a6cd1d050fe6f9fe014628aa709c5e9b89/diff\",\n                \"WorkDir\": \"/var/lib/docker/overlay2/8f8acb342386d35271e19a329b20c7a6cd1d050fe6f9fe014628aa709c5e9b89/work\"\n            },\n            \"Name\": \"overlay2\"\n        },\n        \"Mounts\": [\n            {\n                \"Type\": \"bind\",\n                \"Source\": \"/home/vintecc/gilles/cvat/serverless/common\",\n                \"Destination\": \"/opt/nuclio/common\",\n                \"Mode\": \"\",\n                \"RW\": true,\n                \"Propagation\": \"rprivate\"\n            },\n            {\n                \"Type\": \"volume\",\n                \"Name\": \"nuclio-nuclio-pth.facebookresearch.sam.vit_h\",\n                \"Source\": \"/var/lib/docker/volumes/nuclio-nuclio-pth.facebookresearch.sam.vit_h/_data\",\n                \"Destination\": \"/etc/nuclio/config/processor\",\n                \"Driver\": \"local\",\n                \"Mode\": \"z\",\n                \"RW\": false,\n                \"Propagation\": \"\"\n            }\n        ],\n        \"Config\": {\n            \"Hostname\": \"2077dbadc7ee\",\n            \"Domainname\": \"\",\n            \"User\": \"\",\n            \"AttachStdin\": false,\n            \"AttachStdout\": false,\n            \"AttachStderr\": false,\n            \"ExposedPorts\": {\n                \"8080/tcp\": {}\n            },\n            \"Tty\": false,\n            \"OpenStdin\": false,\n            \"StdinOnce\": false,\n            \"Env\": [\n                \"PYTHONPATH=/opt/nuclio/sam\",\n                \"PATH=/usr/local/nvidia/bin:/usr/local/cuda/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin\",\n                \"NVARCH=x86_64\",\n                \"NVIDIA_REQUIRE_CUDA=cuda>=11.7 brand=tesla,driver>=450,driver<451 brand=tesla,driver>=470,driver<471 brand=unknown,driver>=470,driver<471 brand=nvidia,driver>=470,driver<471 brand=nvidiartx,driver>=470,driver<471 brand=geforce,driver>=470,driver<471 brand=geforcertx,driver>=470,driver<471 brand=quadro,driver>=470,driver<471 brand=quadrortx,driver>=470,driver<471 brand=titan,driver>=470,driver<471 brand=titanrtx,driver>=470,driver<471 brand=tesla,driver>=510,driver<511 brand=unknown,driver>=510,driver<511 brand=nvidia,driver>=510,driver<511 brand=nvidiartx,driver>=510,driver<511 brand=geforce,driver>=510,driver<511 brand=geforcertx,driver>=510,driver<511 brand=quadro,driver>=510,driver<511 brand=quadrortx,driver>=510,driver<511 brand=titan,driver>=510,driver<511 brand=titanrtx,driver>=510,driver<511\",\n                \"NV_CUDA_CUDART_VERSION=11.7.99-1\",\n                \"NV_CUDA_COMPAT_PACKAGE=cuda-compat-11-7\",\n                \"CUDA_VERSION=11.7.1\",\n                \"LD_LIBRARY_PATH=/usr/local/nvidia/lib:/usr/local/nvidia/lib64\",\n                \"NVIDIA_VISIBLE_DEVICES=all\",\n                \"NVIDIA_DRIVER_CAPABILITIES=compute,utility\",\n                \"NV_CUDA_LIB_VERSION=11.7.1-1\",\n                \"NV_NVTX_VERSION=11.7.91-1\",\n                \"NV_LIBNPP_VERSION=11.7.4.75-1\",\n                \"NV_LIBNPP_PACKAGE=libnpp-11-7=11.7.4.75-1\",\n                \"NV_LIBCUSPARSE_VERSION=11.7.4.91-1\",\n                \"NV_LIBCUBLAS_PACKAGE_NAME=libcublas-11-7\",\n                \"NV_LIBCUBLAS_VERSION=11.10.3.66-1\",\n                \"NV_LIBCUBLAS_PACKAGE=libcublas-11-7=11.10.3.66-1\",\n                \"NV_LIBNCCL_PACKAGE_NAME=libnccl2\",\n                \"NV_LIBNCCL_PACKAGE_VERSION=2.13.4-1\",\n                \"NCCL_VERSION=2.13.4-1\",\n                \"NV_LIBNCCL_PACKAGE=libnccl2=2.13.4-1+cuda11.7\",\n                \"NVIDIA_PRODUCT_NAME=CUDA\",\n                \"NV_CUDA_CUDART_DEV_VERSION=11.7.99-1\",\n                \"NV_NVML_DEV_VERSION=11.7.91-1\",\n                \"NV_LIBCUSPARSE_DEV_VERSION=11.7.4.91-1\",\n                \"NV_LIBNPP_DEV_VERSION=11.7.4.75-1\",\n                \"NV_LIBNPP_DEV_PACKAGE=libnpp-dev-11-7=11.7.4.75-1\",\n                \"NV_LIBCUBLAS_DEV_VERSION=11.10.3.66-1\",\n                \"NV_LIBCUBLAS_DEV_PACKAGE_NAME=libcublas-dev-11-7\",\n                \"NV_LIBCUBLAS_DEV_PACKAGE=libcublas-dev-11-7=11.10.3.66-1\",\n                \"NV_NVPROF_VERSION=11.7.101-1\",\n                \"NV_NVPROF_DEV_PACKAGE=cuda-nvprof-11-7=11.7.101-1\",\n                \"NV_LIBNCCL_DEV_PACKAGE_NAME=libnccl-dev\",\n                \"NV_LIBNCCL_DEV_PACKAGE_VERSION=2.13.4-1\",\n                \"NV_LIBNCCL_DEV_PACKAGE=libnccl-dev=2.13.4-1+cuda11.7\",\n                \"LIBRARY_PATH=/usr/local/cuda/lib64/stubs\",\n                \"NV_CUDNN_VERSION=8.5.0.96\",\n                \"NV_CUDNN_PACKAGE_NAME=libcudnn8\",\n                \"NV_CUDNN_PACKAGE=libcudnn8=8.5.0.96-1+cuda11.7\",\n                \"NV_CUDNN_PACKAGE_DEV=libcudnn8-dev=8.5.0.96-1+cuda11.7\",\n                \"DEBIAN_FRONTEND=noninteractive\"\n            ],\n            \"Cmd\": [\n                \"processor\"\n            ],\n            \"Healthcheck\": {\n                \"Test\": [\n                    \"CMD-SHELL\",\n                    \"/usr/local/bin/uhttpc --url http://127.0.0.1:8082/ready || exit 1\"\n                ],\n                \"Interval\": 1000000000,\n                \"Timeout\": 3000000000\n            },\n            \"Image\": \"cvat.pth.facebookresearch.sam.vit_h:latest\",\n            \"Volumes\": null,\n            \"WorkingDir\": \"/opt/nuclio/sam\",\n            \"Entrypoint\": [\n                \"/opt/nvidia/nvidia_entrypoint.sh\"\n            ],\n            \"OnBuild\": null,\n            \"Labels\": {\n                \"com.nvidia.cudnn.version\": \"8.5.0.96\",\n                \"maintainer\": \"NVIDIA CORPORATION <[email protected]>\",\n                \"nuclio.io/annotations\": \"{\\\"animated_gif\\\":\\\"https://raw.githubusercontent.com/opencv/cvat/develop/site/content/en/images/hrnet_example.gif\\\",\\\"framework\\\":\\\"pytorch\\\",\\\"help_message\\\":\\\"The interactor allows to get a mask of an object using at least one positive, and any negative points inside it\\\",\\\"min_neg_points\\\":\\\"0\\\",\\\"min_pos_points\\\":\\\"1\\\",\\\"name\\\":\\\"Segment Anything\\\",\\\"spec\\\":\\\"\\\",\\\"type\\\":\\\"interactor\\\",\\\"version\\\":\\\"2\\\"}\",\n                \"nuclio.io/function-name\": \"pth.facebookresearch.sam.vit_h\",\n                \"nuclio.io/function-spec\": \"{\\\"description\\\":\\\"Interactive object segmentation with Segment-Anything\\\",\\\"handler\\\":\\\"main:handler\\\",\\\"runtime\\\":\\\"python:3.8\\\",\\\"env\\\":[{\\\"name\\\":\\\"PYTHONPATH\\\",\\\"value\\\":\\\"/opt/nuclio/sam\\\"}],\\\"resources\\\":{\\\"limits\\\":{\\\"nvidia.com/gpu\\\":\\\"1\\\"},\\\"requests\\\":{\\\"cpu\\\":\\\"25m\\\",\\\"memory\\\":\\\"1Mi\\\"}},\\\"image\\\":\\\"cvat.pth.facebookresearch.sam.vit_h:latest\\\",\\\"targetCPU\\\":75,\\\"triggers\\\":{\\\"myHttpTrigger\\\":{\\\"class\\\":\\\"\\\",\\\"kind\\\":\\\"http\\\",\\\"name\\\":\\\"myHttpTrigger\\\",\\\"maxWorkers\\\":1,\\\"workerAvailabilityTimeoutMilliseconds\\\":10000,\\\"attributes\\\":{\\\"maxRequestBodySize\\\":33554432}}},\\\"volumes\\\":[{\\\"volume\\\":{\\\"name\\\":\\\"volume-1\\\",\\\"hostPath\\\":{\\\"path\\\":\\\"/home/vintecc/gilles/cvat/serverless/common\\\"}},\\\"volumeMount\\\":{\\\"name\\\":\\\"volume-1\\\",\\\"mountPath\\\":\\\"/opt/nuclio/common\\\"}}],\\\"build\\\":{\\\"functionConfigPath\\\":\\\"pytorch/facebookresearch/sam/nuclio//function-gpu.yaml\\\",\\\"image\\\":\\\"cvat.pth.facebookresearch.sam.vit_h\\\",\\\"baseImage\\\":\\\"vintecc.azurecr.io/cvat-sam\\\",\\\"codeEntryType\\\":\\\"image\\\",\\\"timestamp\\\":1682424578},\\\"platform\\\":{\\\"attributes\\\":{\\\"mountMode\\\":\\\"volume\\\",\\\"restartPolicy\\\":{\\\"maximumRetryCount\\\":3,\\\"name\\\":\\\"always\\\"}}},\\\"readinessTimeoutSeconds\\\":120,\\\"securityContext\\\":{},\\\"eventTimeout\\\":\\\"30s\\\"}\",\n                \"nuclio.io/namespace\": \"nuclio\",\n                \"nuclio.io/platform\": \"local\",\n                \"nuclio.io/project-name\": \"cvat\"\n            }\n        },\n        \"NetworkSettings\": {\n            \"Bridge\": \"\",\n            \"SandboxID\": \"8e4f1a2f13e94e351ad82da656d701f1cffcd76cf5060fcbf5f2d989b07fefb9\",\n            \"HairpinMode\": false,\n            \"LinkLocalIPv6Address\": \"\",\n            \"LinkLocalIPv6PrefixLen\": 0,\n            \"Ports\": {\n                \"8080/tcp\": [\n                    {\n                        \"HostIp\": \"0.0.0.0\",\n                        \"HostPort\": \"32769\"\n                    },\n                    {\n                        \"HostIp\": \"::\",\n                        \"HostPort\": \"32769\"\n                    }\n                ]\n            },\n            \"SandboxKey\": \"/var/run/docker/netns/8e4f1a2f13e9\",\n            \"SecondaryIPAddresses\": null,\n            \"SecondaryIPv6Addresses\": null,\n            \"EndpointID\": \"6cf228180c0d18e15e660078800fe67a209da30c969303aea5a2b8fe27c8909d\",\n            \"Gateway\": \"172.17.0.1\",\n            \"GlobalIPv6Address\": \"\",\n            \"GlobalIPv6PrefixLen\": 0,\n            \"IPAddress\": \"172.17.0.4\",\n            \"IPPrefixLen\": 16,\n            \"IPv6Gateway\": \"\",\n            \"MacAddress\": \"02:42:ac:11:00:04\",\n            \"Networks\": {\n                \"bridge\": {\n                    \"IPAMConfig\": null,\n                    \"Links\": null,\n                    \"Aliases\": null,\n                    \"NetworkID\": \"fba41848976bbc8ba2570cec0b4dbaabc147a506054c403333ba0a1311d19f97\",\n                    \"EndpointID\": \"6cf228180c0d18e15e660078800fe67a209da30c969303aea5a2b8fe27c8909d\",\n                    \"Gateway\": \"172.17.0.1\",\n                    \"IPAddress\": \"172.17.0.4\",\n                    \"IPPrefixLen\": 16,\n                    \"IPv6Gateway\": \"\",\n                    \"GlobalIPv6Address\": \"\",\n                    \"GlobalIPv6PrefixLen\": 0,\n                    \"MacAddress\": \"02:42:ac:11:00:04\",\n                    \"DriverOpts\": null\n                }\n            }\n        }\n    }\n]\n", "stderr": "", "exitCode": 0}
nuclio                  | 23.04.25 12:16:14.245 dashboard.platform.docker (D) Awaiting container health {"containerID": "2077dbadc7ee1387e268731313169feaddffc243769edc7b87be7bfeef5fbf1d", "timeout": "5s"}
nuclio                  | 23.04.25 12:16:14.245 dashboard.platform.docker (D) Getting containers {"options": {"Name":"","Labels":null,"Stopped":true,"ID":"2077dbadc7ee1387e268731313169feaddffc243769edc7b87be7bfeef5fbf1d"}}
nuclio                  | 23.04.25 12:16:14.245 rd.platform.docker.runner (D) Executing {"command": "docker ps --quiet --all  --filter \"id=2077dbadc7ee1387e268731313169feaddffc243769edc7b87be7bfeef5fbf1d\"  "}
nuclio                  | 23.04.25 12:16:14.261 rd.platform.docker.runner (D) Command executed successfully {"output": "2077dbadc7ee\n", "stderr": "", "exitCode": 0}
nuclio                  | 23.04.25 12:16:14.261 rd.platform.docker.runner (D) Executing {"command": "docker inspect 2077dbadc7ee "}
nuclio                  | 23.04.25 12:16:14.276 rd.platform.docker.runner (D) Command executed successfully {"output": "[\n    {\n        \"Id\": \"2077dbadc7ee1387e268731313169feaddffc243769edc7b87be7bfeef5fbf1d\",\n        \"Created\": \"2023-04-25T12:09:38.937378195Z\",\n        \"Path\": \"/opt/nvidia/nvidia_entrypoint.sh\",\n        \"Args\": [\n            \"processor\"\n        ],\n        \"State\": {\n            \"Status\": \"running\",\n            \"Running\": true,\n            \"Paused\": false,\n            \"Restarting\": false,\n            \"OOMKilled\": false,\n            \"Dead\": false,\n            \"Pid\": 38437,\n            \"ExitCode\": 0,\n            \"Error\": \"\",\n            \"StartedAt\": \"2023-04-25T12:09:39.474716887Z\",\n            \"FinishedAt\": \"0001-01-01T00:00:00Z\",\n            \"Health\": {\n                \"Status\": \"healthy\",\n                \"FailingStreak\": 0,\n                \"Log\": [\n                    {\n                        \"Start\": \"2023-04-25T14:16:09.842139055+02:00\",\n                        \"End\": \"2023-04-25T14:16:09.909260103+02:00\",\n                        \"ExitCode\": 0,\n                        \"Output\": \"\"\n                    },\n                    {\n                        \"Start\": \"2023-04-25T14:16:10.930888669+02:00\",\n                        \"End\": \"2023-04-25T14:16:11.001350312+02:00\",\n                        \"ExitCode\": 0,\n                        \"Output\": \"\"\n                    },\n                    {\n                        \"Start\": \"2023-04-25T14:16:12.02196+02:00\",\n                        \"End\": \"2023-04-25T14:16:12.101274676+02:00\",\n                        \"ExitCode\": 0,\n                        \"Output\": \"\"\n                    },\n                    {\n                        \"Start\": \"2023-04-25T14:16:13.12266661+02:00\",\n                        \"End\": \"2023-04-25T14:16:13.18145733+02:00\",\n                        \"ExitCode\": 0,\n                        \"Output\": \"\"\n                    },\n                    {\n                        \"Start\": \"2023-04-25T14:16:14.203069038+02:00\",\n                        \"End\": \"2023-04-25T14:16:14.244247641+02:00\",\n                        \"ExitCode\": 0,\n                        \"Output\": \"\"\n                    }\n                ]\n            }\n        },\n        \"Image\": \"sha256:47e28d1397a468e1e8e2239d13fa9f80da57f55a7df6fc3f4b26b32bf82e6a89\",\n        \"ResolvConfPath\": \"/var/lib/docker/containers/2077dbadc7ee1387e268731313169feaddffc243769edc7b87be7bfeef5fbf1d/resolv.conf\",\n        \"HostnamePath\": \"/var/lib/docker/containers/2077dbadc7ee1387e268731313169feaddffc243769edc7b87be7bfeef5fbf1d/hostname\",\n        \"HostsPath\": \"/var/lib/docker/containers/2077dbadc7ee1387e268731313169feaddffc243769edc7b87be7bfeef5fbf1d/hosts\",\n        \"LogPath\": \"/var/lib/docker/containers/2077dbadc7ee1387e268731313169feaddffc243769edc7b87be7bfeef5fbf1d/2077dbadc7ee1387e268731313169feaddffc243769edc7b87be7bfeef5fbf1d-json.log\",\n        \"Name\": \"/nuclio-nuclio-pth.facebookresearch.sam.vit_h\",\n        \"RestartCount\": 0,\n        \"Driver\": \"overlay2\",\n        \"Platform\": \"linux\",\n        \"MountLabel\": \"\",\n        \"ProcessLabel\": \"\",\n        \"AppArmorProfile\": \"docker-default\",\n        \"ExecIDs\": null,\n        \"HostConfig\": {\n            \"Binds\": [\n                \"/home/vintecc/gilles/cvat/serverless/common:/opt/nuclio/common\"\n            ],\n            \"ContainerIDFile\": \"\",\n            \"LogConfig\": {\n                \"Type\": \"json-file\",\n                \"Config\": {}\n            },\n            \"NetworkMode\": \"default\",\n            \"PortBindings\": {\n                \"8080/tcp\": [\n                    {\n                        \"HostIp\": \"\",\n                        \"HostPort\": \"\"\n                    }\n                ]\n            },\n            \"RestartPolicy\": {\n                \"Name\": \"always\",\n                \"MaximumRetryCount\": 0\n            },\n            \"AutoRemove\": false,\n            \"VolumeDriver\": \"\",\n            \"VolumesFrom\": null,\n            \"ConsoleSize\": [\n                0,\n                0\n            ],\n            \"CapAdd\": null,\n            \"CapDrop\": null,\n            \"CgroupnsMode\": \"host\",\n            \"Dns\": [],\n            \"DnsOptions\": [],\n            \"DnsSearch\": [],\n            \"ExtraHosts\": null,\n            \"GroupAdd\": null,\n            \"IpcMode\": \"private\",\n            \"Cgroup\": \"\",\n            \"Links\": null,\n            \"OomScoreAdj\": 0,\n            \"PidMode\": \"\",\n            \"Privileged\": false,\n            \"PublishAllPorts\": false,\n            \"ReadonlyRootfs\": false,\n            \"SecurityOpt\": null,\n            \"UTSMode\": \"\",\n            \"UsernsMode\": \"\",\n            \"ShmSize\": 67108864,\n            \"Runtime\": \"runc\",\n            \"Isolation\": \"\",\n            \"CpuShares\": 0,\n            \"Memory\": 0,\n            \"NanoCpus\": 0,\n            \"CgroupParent\": \"\",\n            \"BlkioWeight\": 0,\n            \"BlkioWeightDevice\": [],\n            \"BlkioDeviceReadBps\": [],\n            \"BlkioDeviceWriteBps\": [],\n            \"BlkioDeviceReadIOps\": [],\n            \"BlkioDeviceWriteIOps\": [],\n            \"CpuPeriod\": 0,\n            \"CpuQuota\": 0,\n            \"CpuRealtimePeriod\": 0,\n            \"CpuRealtimeRuntime\": 0,\n            \"CpusetCpus\": \"\",\n            \"CpusetMems\": \"\",\n            \"Devices\": [],\n            \"DeviceCgroupRules\": null,\n            \"DeviceRequests\": [\n                {\n                    \"Driver\": \"\",\n                    \"Count\": -1,\n                    \"DeviceIDs\": null,\n                    \"Capabilities\": [\n                        [\n                            \"gpu\"\n                        ]\n                    ],\n                    \"Options\": {}\n                }\n            ],\n            \"MemoryReservation\": 0,\n            \"MemorySwap\": 0,\n            \"MemorySwappiness\": null,\n            \"OomKillDisable\": false,\n            \"PidsLimit\": null,\n            \"Ulimits\": null,\n            \"CpuCount\": 0,\n            \"CpuPercent\": 0,\n            \"IOMaximumIOps\": 0,\n            \"IOMaximumBandwidth\": 0,\n            \"Mounts\": [\n                {\n                    \"Type\": \"volume\",\n                    \"Source\": \"nuclio-nuclio-pth.facebookresearch.sam.vit_h\",\n                    \"Target\": \"/etc/nuclio/config/processor\",\n                    \"ReadOnly\": true\n                }\n            ],\n            \"MaskedPaths\": [\n                \"/proc/asound\",\n                \"/proc/acpi\",\n                \"/proc/kcore\",\n                \"/proc/keys\",\n                \"/proc/latency_stats\",\n                \"/proc/timer_list\",\n                \"/proc/timer_stats\",\n                \"/proc/sched_debug\",\n                \"/proc/scsi\",\n                \"/sys/firmware\"\n            ],\n            \"ReadonlyPaths\": [\n                \"/proc/bus\",\n                \"/proc/fs\",\n                \"/proc/irq\",\n                \"/proc/sys\",\n                \"/proc/sysrq-trigger\"\n            ]\n        },\n        \"GraphDriver\": {\n            \"Data\": {\n                \"LowerDir\": \"/var/lib/docker/overlay2/8f8acb342386d35271e19a329b20c7a6cd1d050fe6f9fe014628aa709c5e9b89-init/diff:/var/lib/docker/overlay2/javo5di7r38c1lm8v3wtlcv34/diff:/var/lib/docker/overlay2/k3s805gig3v86321lsnrefkq7/diff:/var/lib/docker/overlay2/ryviecvg1ryiodjo7tgq1on93/diff:/var/lib/docker/overlay2/23pw99cx8l67upun5ex9hsdi8/diff:/var/lib/docker/overlay2/y06xwz0tkmauf426tbaadvrgm/diff:/var/lib/docker/overlay2/nsyooz5jjgoxogtj61s9xwpu0/diff:/var/lib/docker/overlay2/nyktltez6h4ts8mr0qtofvk0m/diff:/var/lib/docker/overlay2/loij1jpisxnvr0jogkxgnyhrm/diff:/var/lib/docker/overlay2/xwrebi0t3xu6upqcgerfkhfye/diff:/var/lib/docker/overlay2/ujcywfmsk12w0uyp73x0adf11/diff:/var/lib/docker/overlay2/y184e9tccvw66o6sct8xdevw2/diff:/var/lib/docker/overlay2/t1861qoksv4pggvke047ywhzi/diff:/var/lib/docker/overlay2/9ac3ddcd3f2c02f1484f88ae5f2088ca2dbaf0a9bc1be7cc15e90ef114a0306d/diff:/var/lib/docker/overlay2/3e8e3b4afd9cc5c5c665af36f39e1dbc9522f63a510d3c620e45c71c4f6bb785/diff:/var/lib/docker/overlay2/18c3045f694dec976f04527282629e9b739727acd4ee20829c34cd936d5f08be/diff:/var/lib/docker/overlay2/4cb0a3945a5fa77fb4442013cdaf4a6bbd5029271342f433bd7de911ed2bed58/diff:/var/lib/docker/overlay2/9a554695795153c0946406fdd28ac3dc47600da7e4050c56f8f842d60fad828d/diff:/var/lib/docker/overlay2/7755d2b26113002a3530c8f94f7d3e9dbaacc643d4b2046d416dfdf1d4fccf34/diff:/var/lib/docker/overlay2/4716a0fcb98e806bf0c36fa022a59a0a26accb033dfea0f5e92cba6c7c5a3b08/diff:/var/lib/docker/overlay2/4630fe6659338f41f2f0236afc8e28df1acd4812cb9f42ad126c7b2555aac761/diff:/var/lib/docker/overlay2/93932ae5a08ab5cb07318f163c295dae1aece78e2a395ab92eff866777980a5c/diff:/var/lib/docker/overlay2/e495f2374ad3e68869f9f733835465759c4969e66b6c23acca34fbbd3d725f28/diff:/var/lib/docker/overlay2/7a5a72cb035f02a500c58ddc8b69aeca56a83918462c7a92702735961caa1903/diff:/var/lib/docker/overlay2/53272fa168f190808223fb641ff2b45c25c0f6de0dfcb7c424eedc6d43d52d3f/diff\",\n                \"MergedDir\": \"/var/lib/docker/overlay2/8f8acb342386d35271e19a329b20c7a6cd1d050fe6f9fe014628aa709c5e9b89/merged\",\n                \"UpperDir\": \"/var/lib/docker/overlay2/8f8acb342386d35271e19a329b20c7a6cd1d050fe6f9fe014628aa709c5e9b89/diff\",\n                \"WorkDir\": \"/var/lib/docker/overlay2/8f8acb342386d35271e19a329b20c7a6cd1d050fe6f9fe014628aa709c5e9b89/work\"\n            },\n            \"Name\": \"overlay2\"\n        },\n        \"Mounts\": [\n            {\n                \"Type\": \"bind\",\n                \"Source\": \"/home/vintecc/gilles/cvat/serverless/common\",\n                \"Destination\": \"/opt/nuclio/common\",\n                \"Mode\": \"\",\n                \"RW\": true,\n                \"Propagation\": \"rprivate\"\n            },\n            {\n                \"Type\": \"volume\",\n                \"Name\": \"nuclio-nuclio-pth.facebookresearch.sam.vit_h\",\n                \"Source\": \"/var/lib/docker/volumes/nuclio-nuclio-pth.facebookresearch.sam.vit_h/_data\",\n                \"Destination\": \"/etc/nuclio/config/processor\",\n                \"Driver\": \"local\",\n                \"Mode\": \"z\",\n                \"RW\": false,\n                \"Propagation\": \"\"\n            }\n        ],\n        \"Config\": {\n            \"Hostname\": \"2077dbadc7ee\",\n            \"Domainname\": \"\",\n            \"User\": \"\",\n            \"AttachStdin\": false,\n            \"AttachStdout\": false,\n            \"AttachStderr\": false,\n            \"ExposedPorts\": {\n                \"8080/tcp\": {}\n            },\n            \"Tty\": false,\n            \"OpenStdin\": false,\n            \"StdinOnce\": false,\n            \"Env\": [\n                \"PYTHONPATH=/opt/nuclio/sam\",\n                \"PATH=/usr/local/nvidia/bin:/usr/local/cuda/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin\",\n                \"NVARCH=x86_64\",\n                \"NVIDIA_REQUIRE_CUDA=cuda>=11.7 brand=tesla,driver>=450,driver<451 brand=tesla,driver>=470,driver<471 brand=unknown,driver>=470,driver<471 brand=nvidia,driver>=470,driver<471 brand=nvidiartx,driver>=470,driver<471 brand=geforce,driver>=470,driver<471 brand=geforcertx,driver>=470,driver<471 brand=quadro,driver>=470,driver<471 brand=quadrortx,driver>=470,driver<471 brand=titan,driver>=470,driver<471 brand=titanrtx,driver>=470,driver<471 brand=tesla,driver>=510,driver<511 brand=unknown,driver>=510,driver<511 brand=nvidia,driver>=510,driver<511 brand=nvidiartx,driver>=510,driver<511 brand=geforce,driver>=510,driver<511 brand=geforcertx,driver>=510,driver<511 brand=quadro,driver>=510,driver<511 brand=quadrortx,driver>=510,driver<511 brand=titan,driver>=510,driver<511 brand=titanrtx,driver>=510,driver<511\",\n                \"NV_CUDA_CUDART_VERSION=11.7.99-1\",\n                \"NV_CUDA_COMPAT_PACKAGE=cuda-compat-11-7\",\n                \"CUDA_VERSION=11.7.1\",\n                \"LD_LIBRARY_PATH=/usr/local/nvidia/lib:/usr/local/nvidia/lib64\",\n                \"NVIDIA_VISIBLE_DEVICES=all\",\n                \"NVIDIA_DRIVER_CAPABILITIES=compute,utility\",\n                \"NV_CUDA_LIB_VERSION=11.7.1-1\",\n                \"NV_NVTX_VERSION=11.7.91-1\",\n                \"NV_LIBNPP_VERSION=11.7.4.75-1\",\n                \"NV_LIBNPP_PACKAGE=libnpp-11-7=11.7.4.75-1\",\n                \"NV_LIBCUSPARSE_VERSION=11.7.4.91-1\",\n                \"NV_LIBCUBLAS_PACKAGE_NAME=libcublas-11-7\",\n                \"NV_LIBCUBLAS_VERSION=11.10.3.66-1\",\n                \"NV_LIBCUBLAS_PACKAGE=libcublas-11-7=11.10.3.66-1\",\n                \"NV_LIBNCCL_PACKAGE_NAME=libnccl2\",\n                \"NV_LIBNCCL_PACKAGE_VERSION=2.13.4-1\",\n                \"NCCL_VERSION=2.13.4-1\",\n                \"NV_LIBNCCL_PACKAGE=libnccl2=2.13.4-1+cuda11.7\",\n                \"NVIDIA_PRODUCT_NAME=CUDA\",\n                \"NV_CUDA_CUDART_DEV_VERSION=11.7.99-1\",\n                \"NV_NVML_DEV_VERSION=11.7.91-1\",\n                \"NV_LIBCUSPARSE_DEV_VERSION=11.7.4.91-1\",\n                \"NV_LIBNPP_DEV_VERSION=11.7.4.75-1\",\n                \"NV_LIBNPP_DEV_PACKAGE=libnpp-dev-11-7=11.7.4.75-1\",\n                \"NV_LIBCUBLAS_DEV_VERSION=11.10.3.66-1\",\n                \"NV_LIBCUBLAS_DEV_PACKAGE_NAME=libcublas-dev-11-7\",\n                \"NV_LIBCUBLAS_DEV_PACKAGE=libcublas-dev-11-7=11.10.3.66-1\",\n                \"NV_NVPROF_VERSION=11.7.101-1\",\n                \"NV_NVPROF_DEV_PACKAGE=cuda-nvprof-11-7=11.7.101-1\",\n                \"NV_LIBNCCL_DEV_PACKAGE_NAME=libnccl-dev\",\n                \"NV_LIBNCCL_DEV_PACKAGE_VERSION=2.13.4-1\",\n                \"NV_LIBNCCL_DEV_PACKAGE=libnccl-dev=2.13.4-1+cuda11.7\",\n                \"LIBRARY_PATH=/usr/local/cuda/lib64/stubs\",\n                \"NV_CUDNN_VERSION=8.5.0.96\",\n                \"NV_CUDNN_PACKAGE_NAME=libcudnn8\",\n                \"NV_CUDNN_PACKAGE=libcudnn8=8.5.0.96-1+cuda11.7\",\n                \"NV_CUDNN_PACKAGE_DEV=libcudnn8-dev=8.5.0.96-1+cuda11.7\",\n                \"DEBIAN_FRONTEND=noninteractive\"\n            ],\n            \"Cmd\": [\n                \"processor\"\n            ],\n            \"Healthcheck\": {\n                \"Test\": [\n                    \"CMD-SHELL\",\n                    \"/usr/local/bin/uhttpc --url http://127.0.0.1:8082/ready || exit 1\"\n                ],\n                \"Interval\": 1000000000,\n                \"Timeout\": 3000000000\n            },\n            \"Image\": \"cvat.pth.facebookresearch.sam.vit_h:latest\",\n            \"Volumes\": null,\n            \"WorkingDir\": \"/opt/nuclio/sam\",\n            \"Entrypoint\": [\n                \"/opt/nvidia/nvidia_entrypoint.sh\"\n            ],\n            \"OnBuild\": null,\n            \"Labels\": {\n                \"com.nvidia.cudnn.version\": \"8.5.0.96\",\n                \"maintainer\": \"NVIDIA CORPORATION <[email protected]>\",\n                \"nuclio.io/annotations\": \"{\\\"animated_gif\\\":\\\"https://raw.githubusercontent.com/opencv/cvat/develop/site/content/en/images/hrnet_example.gif\\\",\\\"framework\\\":\\\"pytorch\\\",\\\"help_message\\\":\\\"The interactor allows to get a mask of an object using at least one positive, and any negative points inside it\\\",\\\"min_neg_points\\\":\\\"0\\\",\\\"min_pos_points\\\":\\\"1\\\",\\\"name\\\":\\\"Segment Anything\\\",\\\"spec\\\":\\\"\\\",\\\"type\\\":\\\"interactor\\\",\\\"version\\\":\\\"2\\\"}\",\n                \"nuclio.io/function-name\": \"pth.facebookresearch.sam.vit_h\",\n                \"nuclio.io/function-spec\": \"{\\\"description\\\":\\\"Interactive object segmentation with Segment-Anything\\\",\\\"handler\\\":\\\"main:handler\\\",\\\"runtime\\\":\\\"python:3.8\\\",\\\"env\\\":[{\\\"name\\\":\\\"PYTHONPATH\\\",\\\"value\\\":\\\"/opt/nuclio/sam\\\"}],\\\"resources\\\":{\\\"limits\\\":{\\\"nvidia.com/gpu\\\":\\\"1\\\"},\\\"requests\\\":{\\\"cpu\\\":\\\"25m\\\",\\\"memory\\\":\\\"1Mi\\\"}},\\\"image\\\":\\\"cvat.pth.facebookresearch.sam.vit_h:latest\\\",\\\"targetCPU\\\":75,\\\"triggers\\\":{\\\"myHttpTrigger\\\":{\\\"class\\\":\\\"\\\",\\\"kind\\\":\\\"http\\\",\\\"name\\\":\\\"myHttpTrigger\\\",\\\"maxWorkers\\\":1,\\\"workerAvailabilityTimeoutMilliseconds\\\":10000,\\\"attributes\\\":{\\\"maxRequestBodySize\\\":33554432}}},\\\"volumes\\\":[{\\\"volume\\\":{\\\"name\\\":\\\"volume-1\\\",\\\"hostPath\\\":{\\\"path\\\":\\\"/home/vintecc/gilles/cvat/serverless/common\\\"}},\\\"volumeMount\\\":{\\\"name\\\":\\\"volume-1\\\",\\\"mountPath\\\":\\\"/opt/nuclio/common\\\"}}],\\\"build\\\":{\\\"functionConfigPath\\\":\\\"pytorch/facebookresearch/sam/nuclio//function-gpu.yaml\\\",\\\"image\\\":\\\"cvat.pth.facebookresearch.sam.vit_h\\\",\\\"baseImage\\\":\\\"vintecc.azurecr.io/cvat-sam\\\",\\\"codeEntryType\\\":\\\"image\\\",\\\"timestamp\\\":1682424578},\\\"platform\\\":{\\\"attributes\\\":{\\\"mountMode\\\":\\\"volume\\\",\\\"restartPolicy\\\":{\\\"maximumRetryCount\\\":3,\\\"name\\\":\\\"always\\\"}}},\\\"readinessTimeoutSeconds\\\":120,\\\"securityContext\\\":{},\\\"eventTimeout\\\":\\\"30s\\\"}\",\n                \"nuclio.io/namespace\": \"nuclio\",\n                \"nuclio.io/platform\": \"local\",\n                \"nuclio.io/project-name\": \"cvat\"\n            }\n        },\n        \"NetworkSettings\": {\n            \"Bridge\": \"\",\n            \"SandboxID\": \"8e4f1a2f13e94e351ad82da656d701f1cffcd76cf5060fcbf5f2d989b07fefb9\",\n            \"HairpinMode\": false,\n            \"LinkLocalIPv6Address\": \"\",\n            \"LinkLocalIPv6PrefixLen\": 0,\n            \"Ports\": {\n                \"8080/tcp\": [\n                    {\n                        \"HostIp\": \"0.0.0.0\",\n                        \"HostPort\": \"32769\"\n                    },\n                    {\n                        \"HostIp\": \"::\",\n                        \"HostPort\": \"32769\"\n                    }\n                ]\n            },\n            \"SandboxKey\": \"/var/run/docker/netns/8e4f1a2f13e9\",\n            \"SecondaryIPAddresses\": null,\n            \"SecondaryIPv6Addresses\": null,\n            \"EndpointID\": \"6cf228180c0d18e15e660078800fe67a209da30c969303aea5a2b8fe27c8909d\",\n            \"Gateway\": \"172.17.0.1\",\n            \"GlobalIPv6Address\": \"\",\n            \"GlobalIPv6PrefixLen\": 0,\n            \"IPAddress\": \"172.17.0.4\",\n            \"IPPrefixLen\": 16,\n            \"IPv6Gateway\": \"\",\n            \"MacAddress\": \"02:42:ac:11:00:04\",\n            \"Networks\": {\n                \"bridge\": {\n                    \"IPAMConfig\": null,\n                    \"Links\": null,\n                    \"Aliases\": null,\n                    \"NetworkID\": \"fba41848976bbc8ba2570cec0b4dbaabc147a506054c403333ba0a1311d19f97\",\n                    \"EndpointID\": \"6cf228180c0d18e15e660078800fe67a209da30c969303aea5a2b8fe27c8909d\",\n                    \"Gateway\": \"172.17.0.1\",\n                    \"IPAddress\": \"172.17.0.4\",\n                    \"IPPrefixLen\": 16,\n                    \"IPv6Gateway\": \"\",\n                    \"GlobalIPv6Address\": \"\",\n                    \"GlobalIPv6PrefixLen\": 0,\n                    \"MacAddress\": \"02:42:ac:11:00:04\",\n                    \"DriverOpts\": null\n                }\n            }\n        }\n    }\n]\n", "stderr": "", "exitCode": 0}
nuclio                  | 23.04.25 12:16:14.276 dashboard.platform.docker (D) Container is healthy {"containerID": "2077dbadc7ee1387e268731313169feaddffc243769edc7b87be7bfeef5fbf1d"}
nuclio                  | 23.04.25 12:16:44.100 dashboard.platform.docker (D) Executing in container {"containerID": "nuclio-local-storage-reader", "execOptions": {"Command":"/bin/sh -c \"/bin/cat /etc/nuclio/store/functions/nuclio/*\"","Stdout":"","Stderr":"","Env":null}}
cvat_server             | debug2: process_request_identities: replying with 1 allowed of 1 available keys
cvat_server             | 
cvat_server             | 2023-04-25 12:09:38,941 DEBG 'runserver' stdout output:
cvat_server             | Successfully ran command.
cvat_server             | Server URL         : http://localhost:8080/
cvat_server             | Server Root        : /tmp/cvat-server
cvat_server             | Server Conf        : /tmp/cvat-server/httpd.conf
cvat_server             | Error Log File     : /dev/stderr (INFO)
cvat_server             | Operating Mode     : daemon
cvat_server             | Request Capacity   : 5 (1 process * 5 threads)
cvat_server             | Request Timeout    : 60 (seconds)
cvat_server             | Startup Timeout    : 15 (seconds)
cvat_server             | Queue Backlog      : 100 (connections)
cvat_server             | Queue Timeout      : 45 (seconds)
cvat_server             | Server Capacity    : 20 (event/worker), 20 (prefork)
cvat_server             | Server Backlog     : 500 (connections)
cvat_server             | Locale Setting     : C.UTF-8
cvat_server             | 
cvat_server             | 2023-04-25 12:09:38,967 DEBG 'runserver' stderr output:
cvat_server             | [Tue Apr 25 12:09:38.967693 2023] [wsgi:info] [pid 335:tid 139845125900160] mod_wsgi (pid=335): Starting process 'localhost:8080' with threads=5.
cvat_server             | 
cvat_server             | 2023-04-25 12:09:38,967 DEBG 'runserver' stderr output:
cvat_server             | [Tue Apr 25 12:09:38.967773 2023] [mpm_event:notice] [pid 9:tid 139845125900160] AH00489: Apache/2.4.52 (Ubuntu) mod_wsgi/4.9.4 Python/3.10 configured -- resuming normal operations
cvat_server             | [Tue Apr 25 12:09:38.967807 2023] [mpm_event:info] [pid 9:tid 139845125900160] AH00490: Server built: 2023-03-08T17:32:01
cvat_server             | [Tue Apr 25 12:09:38.967811 2023] [core:notice] [pid 9:tid 139845125900160] AH00094: Command line: 'apache2 (mod_wsgi-express) -f /tmp/cvat-server/httpd.conf -D MOD_WSGI_KEEP_ALIVE -D MOD_WSGI_MPM_ENABLE_EVENT_MODULE -D MOD_WSGI_MPM_EXISTS_EVENT_MODULE -D MOD_WSGI_MPM_EXISTS_WORKER_MODULE -D MOD_WSGI_MPM_EXISTS_PREFORK_MODULE -D FOREGROUND'
cvat_server             | [Tue Apr 25 12:09:38.967883 2023] [wsgi:info] [pid 335:tid 139845125900160] mod_wsgi (pid=335): Python home /opt/venv.
cvat_server             | [Tue Apr 25 12:09:38.967911 2023] [wsgi:info] [pid 335:tid 139845125900160] mod_wsgi (pid=335): Initializing Python.
cvat_server             | 
cvat_server             | 2023-04-25 12:09:38,986 DEBG 'runserver' stderr output:
cvat_server             | [Tue Apr 25 12:09:38.986194 2023] [wsgi:info] [pid 335:tid 139845125900160] mod_wsgi (pid=335): Attach interpreter ''.
nuclio                  | 23.04.25 12:16:44.100 rd.platform.docker.runner (D) Executing {"command": "docker exec  nuclio-local-storage-reader /bin/sh -c \"/bin/cat /etc/nuclio/store/functions/nuclio/*\""}
nuclio                  | 23.04.25 12:16:44.185 rd.platform.docker.runner (D) Command executed successfully {"output": "eyJtZXRhZGF0YSI6eyJuYW1lIjoicHRoLmZhY2Vib29rcmVzZWFyY2guc2FtLnZpdF9oIiwibmFtZXNwYWNlIjoibnVjbGlvIiwibGFiZWxzIjp7Im51Y2xpby5pby9wcm9qZWN0LW5hbWUiOiJjdmF0In0sImFubm90YXRpb25zIjp7ImFuaW1hdGVkX2dpZiI6Imh0dHBzOi8vcmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbS9vcGVuY3YvY3ZhdC9kZXZlbG9wL3NpdGUvY29udGVudC9lbi9pbWFnZXMvaHJuZXRfZXhhbXBsZS5naWYiLCJmcmFtZXdvcmsiOiJweXRvcmNoIiwiaGVscF9tZXNzYWdlIjoiVGhlIGludGVyYWN0b3IgYWxsb3dzIHRvIGdldCBhIG1hc2sgb2YgYW4gb2JqZWN0IHVzaW5nIGF0IGxlYXN0IG9uZSBwb3NpdGl2ZSwgYW5kIGFueSBuZWdhdGl2ZSBwb2ludHMgaW5zaWRlIGl0IiwibWluX25lZ19wb2ludHMiOiIwIiwibWluX3Bvc19wb2ludHMiOiIxIiwibmFtZSI6IlNlZ21lbnQgQW55dGhpbmciLCJzcGVjIjoiIiwidHlwZSI6ImludGVyYWN0b3IiLCJ2ZXJzaW9uIjoiMiJ9fSwic3BlYyI6eyJkZXNjcmlwdGlvbiI6IkludGVyYWN0aXZlIG9iamVjdCBzZWdtZW50YXRpb24gd2l0aCBTZWdtZW50LUFueXRoaW5nIiwiaGFuZGxlciI6Im1haW46aGFuZGxlciIsInJ1bnRpbWUiOiJweXRob246My44IiwiZW52IjpbeyJuYW1lIjoiUFlUSE9OUEFUSCIsInZhbHVlIjoiL29wdC9udWNsaW8vc2FtIn1dLCJyZXNvdXJjZXMiOnsibGltaXRzIjp7Im52aWRpYS5jb20vZ3B1IjoiMSJ9LCJyZXF1ZXN0cyI6eyJjcHUiOiIyNW0iLCJtZW1vcnkiOiIxTWkifX0sImltYWdlIjoiY3ZhdC5wdGguZmFjZWJvb2tyZXNlYXJjaC5zYW0udml0X2g6bGF0ZXN0IiwidGFyZ2V0Q1BVIjo3NSwidHJpZ2dlcnMiOnsibXlIdHRwVHJpZ2dlciI6eyJjbGFzcyI6IiIsImtpbmQiOiJodHRwIiwibmFtZSI6Im15SHR0cFRyaWdnZXIiLCJtYXhXb3JrZXJzIjoxLCJ3b3JrZXJBdmFpbGFiaWxpdHlUaW1lb3V0TWlsbGlzZWNvbmRzIjoxMDAwMCwiYXR0cmlidXRlcyI6eyJtYXhSZXF1ZXN0Qm9keVNpemUiOjMzNTU0NDMyfX19LCJ2b2x1bWVzIjpbeyJ2b2x1bWUiOnsibmFtZSI6InZvbHVtZS0xIiwiaG9zdFBhdGgiOnsicGF0aCI6Ii9ob21lL3ZpbnRlY2MvZ2lsbGVzL2N2YXQvc2VydmVybGVzcy9jb21tb24ifX0sInZvbHVtZU1vdW50Ijp7Im5hbWUiOiJ2b2x1bWUtMSIsIm1vdW50UGF0aCI6Ii9vcHQvbnVjbGlvL2NvbW1vbiJ9fV0sImJ1aWxkIjp7ImZ1bmN0aW9uQ29uZmlnUGF0aCI6InB5dG9yY2gvZmFjZWJvb2tyZXNlYXJjaC9zYW0vbnVjbGlvLy9mdW5jdGlvbi1ncHUueWFtbCIsImltYWdlIjoiY3ZhdC5wdGguZmFjZWJvb2tyZXNlYXJjaC5zYW0udml0X2giLCJiYXNlSW1hZ2UiOiJ2aW50ZWNjLmF6dXJlY3IuaW8vY3ZhdC1zYW0iLCJjb2RlRW50cnlUeXBlIjoiaW1hZ2UiLCJ0aW1lc3RhbXAiOjE2ODI0MjQ1Nzh9LCJwbGF0Zm9ybSI6eyJhdHRyaWJ1dGVzIjp7Im1vdW50TW9kZSI6InZvbHVtZSIsInJlc3RhcnRQb2xpY3kiOnsibWF4aW11bVJldHJ5Q291bnQiOjMsIm5hbWUiOiJhbHdheXMifX19LCJyZWFkaW5lc3NUaW1lb3V0U2Vjb25kcyI6MTIwLCJzZWN1cml0eUNvbnRleHQiOnt9LCJldmVudFRpbWVvdXQiOiIzMHMifSwic3RhdHVzIjp7InN0YXRlIjoicmVhZHkiLCJodHRwUG9ydCI6MzI3NjksImludGVybmFsSW52b2NhdGlvblVybHMiOlsiMTcyLjE3LjAuNDo4MDgwIl19fQ==\n", "stderr": "", "exitCode": 0}
nuclio                  | 23.04.25 12:16:44.185 dashboard.platform.docker (D) Getting containers {"options": {"Name":"nuclio-nuclio-pth.facebookresearch.sam.vit_h","Labels":null,"Stopped":false,"ID":""}}
nuclio                  | 23.04.25 12:16:44.186 rd.platform.docker.runner (D) Executing {"command": "docker ps --quiet   --filter \"name=^/nuclio-nuclio-pth.facebookresearch.sam.vit_h$\"  "}
nuclio                  | 23.04.25 12:16:44.202 rd.platform.docker.runner (D) Command executed successfully {"output": "2077dbadc7ee\n", "stderr": "", "exitCode": 0}
nuclio                  | 23.04.25 12:16:44.202 rd.platform.docker.runner (D) Executing {"command": "docker inspect 2077dbadc7ee "}
cvat_server             | 
cvat_server             | 2023-04-25 12:09:38,989 DEBG 'runserver' stderr output:
cvat_server             | [Tue Apr 25 12:09:38.989606 2023] [wsgi:info] [pid 335:tid 139845125900160] mod_wsgi (pid=335): Imported 'mod_wsgi'.
cvat_server             | 
cvat_server             | 2023-04-25 12:09:38,989 DEBG 'runserver' stderr output:
cvat_server             | [Tue Apr 25 12:09:38.989635 2023] [wsgi:info] [pid 335:tid 139845125900160] mod_wsgi (pid=335, process='localhost:8080', application=''): Loading Python script file '/tmp/cvat-server/handler.wsgi'.
cvat_server             | 
cvat_server             | 2023-04-25 12:09:39,270 DEBG 'ssh-agent' stderr output:
cvat_server             | debug1: new_socket: type = CONNECTION
cvat_server             | debug2: fd 4 setting O_NONBLOCK
cvat_server             | 
cvat_server             | 2023-04-25 12:09:39,271 DEBG 'ssh-agent' stderr output:
cvat_server             | debug1: process_message: socket 1 (fd=4) type 17
cvat_server             | debug2: process_add_identity: entering
cvat_server             | 
cvat_server             | 2023-04-25 12:09:39,272 DEBG 'ssh-agent' stderr output:
cvat_server             | debug3: identity_permitted: entering: key RSA comment "django@c8306433483f", 0 socket bindings, 0 constraints
cvat_server             | 
cvat_server             | 2023-04-25 12:09:39,272 DEBG 'ssh-agent' stderr output:
cvat_server             | debug1: process_add_identity: add ssh-rsa SHA256:v/PbULQWUtHr+zGImW3Swfq9ndaZkWDOVsQZNZDIIFU "django@c8306433483f" (life: 0) (confirm: 0) (provider: none) (destination constraints: 0)
cvat_server             | 
cvat_server             | 2023-04-25 12:09:39,274 DEBG 'ssh-agent' stderr output:
cvat_server             | debug1: new_socket: type = CONNECTION
cvat_server             | debug2: fd 4 setting O_NONBLOCK
cvat_server             | debug1: process_message: socket 1 (fd=4) type 11
cvat_server             | debug2: process_request_identities: entering
cvat_server             | debug3: identity_permitted: entering: key RSA comment "django@c8306433483f", 0 socket bindings, 0 constraints
cvat_server             | debug2: process_request_identities: replying with 1 allowed of 1 available keys
cvat_server             | 
cvat_server             | 2023-04-25 12:09:44,412 DEBG 'runserver' stderr output:
cvat_server             | [Tue Apr 25 12:09:44.412446 2023] [wsgi:info] [pid 335:tid 139843413087808] mod_wsgi (pid=335): Application startup timer triggered 'localhost:8080'.
cvat_server             | 
cvat_server             | 2023-04-25 12:09:44,412 DEBG 'runserver' stderr output:
cvat_server             | [Tue Apr 25 12:09:44.412527 2023] [wsgi:info] [pid 335:tid 139843413087808] mod_wsgi (pid=335): Application startup timer cancelled 'localhost:8080'.
cvat_server             | 
cvat_server             | 2023-04-25 12:13:20,031 DEBG 'runserver' stderr output:
nuclio                  | 23.04.25 12:16:44.217 rd.platform.docker.runner (D) Command executed successfully {"output": "[\n    {\n        \"Id\": \"2077dbadc7ee1387e268731313169feaddffc243769edc7b87be7bfeef5fbf1d\",\n        \"Created\": \"2023-04-25T12:09:38.937378195Z\",\n        \"Path\": \"/opt/nvidia/nvidia_entrypoint.sh\",\n        \"Args\": [\n            \"processor\"\n        ],\n        \"State\": {\n            \"Status\": \"running\",\n            \"Running\": true,\n            \"Paused\": false,\n            \"Restarting\": false,\n            \"OOMKilled\": false,\n            \"Dead\": false,\n            \"Pid\": 38437,\n            \"ExitCode\": 0,\n            \"Error\": \"\",\n            \"StartedAt\": \"2023-04-25T12:09:39.474716887Z\",\n            \"FinishedAt\": \"0001-01-01T00:00:00Z\",\n            \"Health\": {\n                \"Status\": \"healthy\",\n                \"FailingStreak\": 0,\n                \"Log\": [\n                    {\n                        \"Start\": \"2023-04-25T14:16:39.238404869+02:00\",\n                        \"End\": \"2023-04-25T14:16:39.301361298+02:00\",\n                        \"ExitCode\": 0,\n                        \"Output\": \"\"\n                    },\n                    {\n                        \"Start\": \"2023-04-25T14:16:40.322560618+02:00\",\n                        \"End\": \"2023-04-25T14:16:40.393611892+02:00\",\n                        \"ExitCode\": 0,\n                        \"Output\": \"\"\n                    },\n                    {\n                        \"Start\": \"2023-04-25T14:16:41.414292242+02:00\",\n                        \"End\": \"2023-04-25T14:16:41.469271179+02:00\",\n                        \"ExitCode\": 0,\n                        \"Output\": \"\"\n                    },\n                    {\n                        \"Start\": \"2023-04-25T14:16:42.489898761+02:00\",\n                        \"End\": \"2023-04-25T14:16:42.549579195+02:00\",\n                        \"ExitCode\": 0,\n                        \"Output\": \"\"\n                    },\n                    {\n                        \"Start\": \"2023-04-25T14:16:43.570297631+02:00\",\n                        \"End\": \"2023-04-25T14:16:43.645291188+02:00\",\n                        \"ExitCode\": 0,\n                        \"Output\": \"\"\n                    }\n                ]\n            }\n        },\n        \"Image\": \"sha256:47e28d1397a468e1e8e2239d13fa9f80da57f55a7df6fc3f4b26b32bf82e6a89\",\n        \"ResolvConfPath\": \"/var/lib/docker/containers/2077dbadc7ee1387e268731313169feaddffc243769edc7b87be7bfeef5fbf1d/resolv.conf\",\n        \"HostnamePath\": \"/var/lib/docker/containers/2077dbadc7ee1387e268731313169feaddffc243769edc7b87be7bfeef5fbf1d/hostname\",\n        \"HostsPath\": \"/var/lib/docker/containers/2077dbadc7ee1387e268731313169feaddffc243769edc7b87be7bfeef5fbf1d/hosts\",\n        \"LogPath\": \"/var/lib/docker/containers/2077dbadc7ee1387e268731313169feaddffc243769edc7b87be7bfeef5fbf1d/2077dbadc7ee1387e268731313169feaddffc243769edc7b87be7bfeef5fbf1d-json.log\",\n        \"Name\": \"/nuclio-nuclio-pth.facebookresearch.sam.vit_h\",\n        \"RestartCount\": 0,\n        \"Driver\": \"overlay2\",\n        \"Platform\": \"linux\",\n        \"MountLabel\": \"\",\n        \"ProcessLabel\": \"\",\n        \"AppArmorProfile\": \"docker-default\",\n        \"ExecIDs\": null,\n        \"HostConfig\": {\n            \"Binds\": [\n                \"/home/vintecc/gilles/cvat/serverless/common:/opt/nuclio/common\"\n            ],\n            \"ContainerIDFile\": \"\",\n            \"LogConfig\": {\n                \"Type\": \"json-file\",\n                \"Config\": {}\n            },\n            \"NetworkMode\": \"default\",\n            \"PortBindings\": {\n                \"8080/tcp\": [\n                    {\n                        \"HostIp\": \"\",\n                        \"HostPort\": \"\"\n                    }\n                ]\n            },\n            \"RestartPolicy\": {\n                \"Name\": \"always\",\n                \"MaximumRetryCount\": 0\n            },\n            \"AutoRemove\": false,\n            \"VolumeDriver\": \"\",\n            \"VolumesFrom\": null,\n            \"ConsoleSize\": [\n                0,\n                0\n            ],\n            \"CapAdd\": null,\n            \"CapDrop\": null,\n            \"CgroupnsMode\": \"host\",\n            \"Dns\": [],\n            \"DnsOptions\": [],\n            \"DnsSearch\": [],\n            \"ExtraHosts\": null,\n            \"GroupAdd\": null,\n            \"IpcMode\": \"private\",\n            \"Cgroup\": \"\",\n            \"Links\": null,\n            \"OomScoreAdj\": 0,\n            \"PidMode\": \"\",\n            \"Privileged\": false,\n            \"PublishAllPorts\": false,\n            \"ReadonlyRootfs\": false,\n            \"SecurityOpt\": null,\n            \"UTSMode\": \"\",\n            \"UsernsMode\": \"\",\n            \"ShmSize\": 67108864,\n            \"Runtime\": \"runc\",\n            \"Isolation\": \"\",\n            \"CpuShares\": 0,\n            \"Memory\": 0,\n            \"NanoCpus\": 0,\n            \"CgroupParent\": \"\",\n            \"BlkioWeight\": 0,\n            \"BlkioWeightDevice\": [],\n            \"BlkioDeviceReadBps\": [],\n            \"BlkioDeviceWriteBps\": [],\n            \"BlkioDeviceReadIOps\": [],\n            \"BlkioDeviceWriteIOps\": [],\n            \"CpuPeriod\": 0,\n            \"CpuQuota\": 0,\n            \"CpuRealtimePeriod\": 0,\n            \"CpuRealtimeRuntime\": 0,\n            \"CpusetCpus\": \"\",\n            \"CpusetMems\": \"\",\n            \"Devices\": [],\n            \"DeviceCgroupRules\": null,\n            \"DeviceRequests\": [\n                {\n                    \"Driver\": \"\",\n                    \"Count\": -1,\n                    \"DeviceIDs\": null,\n                    \"Capabilities\": [\n                        [\n                            \"gpu\"\n                        ]\n                    ],\n                    \"Options\": {}\n                }\n            ],\n            \"MemoryReservation\": 0,\n            \"MemorySwap\": 0,\n            \"MemorySwappiness\": null,\n            \"OomKillDisable\": false,\n            \"PidsLimit\": null,\n            \"Ulimits\": null,\n            \"CpuCount\": 0,\n            \"CpuPercent\": 0,\n            \"IOMaximumIOps\": 0,\n            \"IOMaximumBandwidth\": 0,\n            \"Mounts\": [\n                {\n                    \"Type\": \"volume\",\n                    \"Source\": \"nuclio-nuclio-pth.facebookresearch.sam.vit_h\",\n                    \"Target\": \"/etc/nuclio/config/processor\",\n                    \"ReadOnly\": true\n                }\n            ],\n            \"MaskedPaths\": [\n                \"/proc/asound\",\n                \"/proc/acpi\",\n                \"/proc/kcore\",\n                \"/proc/keys\",\n                \"/proc/latency_stats\",\n                \"/proc/timer_list\",\n                \"/proc/timer_stats\",\n                \"/proc/sched_debug\",\n                \"/proc/scsi\",\n                \"/sys/firmware\"\n            ],\n            \"ReadonlyPaths\": [\n                \"/proc/bus\",\n                \"/proc/fs\",\n                \"/proc/irq\",\n                \"/proc/sys\",\n                \"/proc/sysrq-trigger\"\n            ]\n        },\n        \"GraphDriver\": {\n            \"Data\": {\n                \"LowerDir\": \"/var/lib/docker/overlay2/8f8acb342386d35271e19a329b20c7a6cd1d050fe6f9fe014628aa709c5e9b89-init/diff:/var/lib/docker/overlay2/javo5di7r38c1lm8v3wtlcv34/diff:/var/lib/docker/overlay2/k3s805gig3v86321lsnrefkq7/diff:/var/lib/docker/overlay2/ryviecvg1ryiodjo7tgq1on93/diff:/var/lib/docker/overlay2/23pw99cx8l67upun5ex9hsdi8/diff:/var/lib/docker/overlay2/y06xwz0tkmauf426tbaadvrgm/diff:/var/lib/docker/overlay2/nsyooz5jjgoxogtj61s9xwpu0/diff:/var/lib/docker/overlay2/nyktltez6h4ts8mr0qtofvk0m/diff:/var/lib/docker/overlay2/loij1jpisxnvr0jogkxgnyhrm/diff:/var/lib/docker/overlay2/xwrebi0t3xu6upqcgerfkhfye/diff:/var/lib/docker/overlay2/ujcywfmsk12w0uyp73x0adf11/diff:/var/lib/docker/overlay2/y184e9tccvw66o6sct8xdevw2/diff:/var/lib/docker/overlay2/t1861qoksv4pggvke047ywhzi/diff:/var/lib/docker/overlay2/9ac3ddcd3f2c02f1484f88ae5f2088ca2dbaf0a9bc1be7cc15e90ef114a0306d/diff:/var/lib/docker/overlay2/3e8e3b4afd9cc5c5c665af36f39e1dbc9522f63a510d3c620e45c71c4f6bb785/diff:/var/lib/docker/overlay2/18c3045f694dec976f04527282629e9b739727acd4ee20829c34cd936d5f08be/diff:/var/lib/docker/overlay2/4cb0a3945a5fa77fb4442013cdaf4a6bbd5029271342f433bd7de911ed2bed58/diff:/var/lib/docker/overlay2/9a554695795153c0946406fdd28ac3dc47600da7e4050c56f8f842d60fad828d/diff:/var/lib/docker/overlay2/7755d2b26113002a3530c8f94f7d3e9dbaacc643d4b2046d416dfdf1d4fccf34/diff:/var/lib/docker/overlay2/4716a0fcb98e806bf0c36fa022a59a0a26accb033dfea0f5e92cba6c7c5a3b08/diff:/var/lib/docker/overlay2/4630fe6659338f41f2f0236afc8e28df1acd4812cb9f42ad126c7b2555aac761/diff:/var/lib/docker/overlay2/93932ae5a08ab5cb07318f163c295dae1aece78e2a395ab92eff866777980a5c/diff:/var/lib/docker/overlay2/e495f2374ad3e68869f9f733835465759c4969e66b6c23acca34fbbd3d725f28/diff:/var/lib/docker/overlay2/7a5a72cb035f02a500c58ddc8b69aeca56a83918462c7a92702735961caa1903/diff:/var/lib/docker/overlay2/53272fa168f190808223fb641ff2b45c25c0f6de0dfcb7c424eedc6d43d52d3f/diff\",\n                \"MergedDir\": \"/var/lib/docker/overlay2/8f8acb342386d35271e19a329b20c7a6cd1d050fe6f9fe014628aa709c5e9b89/merged\",\n                \"UpperDir\": \"/var/lib/docker/overlay2/8f8acb342386d35271e19a329b20c7a6cd1d050fe6f9fe014628aa709c5e9b89/diff\",\n                \"WorkDir\": \"/var/lib/docker/overlay2/8f8acb342386d35271e19a329b20c7a6cd1d050fe6f9fe014628aa709c5e9b89/work\"\n            },\n            \"Name\": \"overlay2\"\n        },\n        \"Mounts\": [\n            {\n                \"Type\": \"bind\",\n                \"Source\": \"/home/vintecc/gilles/cvat/serverless/common\",\n                \"Destination\": \"/opt/nuclio/common\",\n                \"Mode\": \"\",\n                \"RW\": true,\n                \"Propagation\": \"rprivate\"\n            },\n            {\n                \"Type\": \"volume\",\n                \"Name\": \"nuclio-nuclio-pth.facebookresearch.sam.vit_h\",\n                \"Source\": \"/var/lib/docker/volumes/nuclio-nuclio-pth.facebookresearch.sam.vit_h/_data\",\n                \"Destination\": \"/etc/nuclio/config/processor\",\n                \"Driver\": \"local\",\n                \"Mode\": \"z\",\n                \"RW\": false,\n                \"Propagation\": \"\"\n            }\n        ],\n        \"Config\": {\n            \"Hostname\": \"2077dbadc7ee\",\n            \"Domainname\": \"\",\n            \"User\": \"\",\n            \"AttachStdin\": false,\n            \"AttachStdout\": false,\n            \"AttachStderr\": false,\n            \"ExposedPorts\": {\n                \"8080/tcp\": {}\n            },\n            \"Tty\": false,\n            \"OpenStdin\": false,\n            \"StdinOnce\": false,\n            \"Env\": [\n                \"PYTHONPATH=/opt/nuclio/sam\",\n                \"PATH=/usr/local/nvidia/bin:/usr/local/cuda/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin\",\n                \"NVARCH=x86_64\",\n                \"NVIDIA_REQUIRE_CUDA=cuda>=11.7 brand=tesla,driver>=450,driver<451 brand=tesla,driver>=470,driver<471 brand=unknown,driver>=470,driver<471 brand=nvidia,driver>=470,driver<471 brand=nvidiartx,driver>=470,driver<471 brand=geforce,driver>=470,driver<471 brand=geforcertx,driver>=470,driver<471 brand=quadro,driver>=470,driver<471 brand=quadrortx,driver>=470,driver<471 brand=titan,driver>=470,driver<471 brand=titanrtx,driver>=470,driver<471 brand=tesla,driver>=510,driver<511 brand=unknown,driver>=510,driver<511 brand=nvidia,driver>=510,driver<511 brand=nvidiartx,driver>=510,driver<511 brand=geforce,driver>=510,driver<511 brand=geforcertx,driver>=510,driver<511 brand=quadro,driver>=510,driver<511 brand=quadrortx,driver>=510,driver<511 brand=titan,driver>=510,driver<511 brand=titanrtx,driver>=510,driver<511\",\n                \"NV_CUDA_CUDART_VERSION=11.7.99-1\",\n                \"NV_CUDA_COMPAT_PACKAGE=cuda-compat-11-7\",\n                \"CUDA_VERSION=11.7.1\",\n                \"LD_LIBRARY_PATH=/usr/local/nvidia/lib:/usr/local/nvidia/lib64\",\n                \"NVIDIA_VISIBLE_DEVICES=all\",\n                \"NVIDIA_DRIVER_CAPABILITIES=compute,utility\",\n                \"NV_CUDA_LIB_VERSION=11.7.1-1\",\n                \"NV_NVTX_VERSION=11.7.91-1\",\n                \"NV_LIBNPP_VERSION=11.7.4.75-1\",\n                \"NV_LIBNPP_PACKAGE=libnpp-11-7=11.7.4.75-1\",\n                \"NV_LIBCUSPARSE_VERSION=11.7.4.91-1\",\n                \"NV_LIBCUBLAS_PACKAGE_NAME=libcublas-11-7\",\n                \"NV_LIBCUBLAS_VERSION=11.10.3.66-1\",\n                \"NV_LIBCUBLAS_PACKAGE=libcublas-11-7=11.10.3.66-1\",\n                \"NV_LIBNCCL_PACKAGE_NAME=libnccl2\",\n                \"NV_LIBNCCL_PACKAGE_VERSION=2.13.4-1\",\n                \"NCCL_VERSION=2.13.4-1\",\n                \"NV_LIBNCCL_PACKAGE=libnccl2=2.13.4-1+cuda11.7\",\n                \"NVIDIA_PRODUCT_NAME=CUDA\",\n                \"NV_CUDA_CUDART_DEV_VERSION=11.7.99-1\",\n                \"NV_NVML_DEV_VERSION=11.7.91-1\",\n                \"NV_LIBCUSPARSE_DEV_VERSION=11.7.4.91-1\",\n                \"NV_LIBNPP_DEV_VERSION=11.7.4.75-1\",\n                \"NV_LIBNPP_DEV_PACKAGE=libnpp-dev-11-7=11.7.4.75-1\",\n                \"NV_LIBCUBLAS_DEV_VERSION=11.10.3.66-1\",\n                \"NV_LIBCUBLAS_DEV_PACKAGE_NAME=libcublas-dev-11-7\",\n                \"NV_LIBCUBLAS_DEV_PACKAGE=libcublas-dev-11-7=11.10.3.66-1\",\n                \"NV_NVPROF_VERSION=11.7.101-1\",\n                \"NV_NVPROF_DEV_PACKAGE=cuda-nvprof-11-7=11.7.101-1\",\n                \"NV_LIBNCCL_DEV_PACKAGE_NAME=libnccl-dev\",\n                \"NV_LIBNCCL_DEV_PACKAGE_VERSION=2.13.4-1\",\n                \"NV_LIBNCCL_DEV_PACKAGE=libnccl-dev=2.13.4-1+cuda11.7\",\n                \"LIBRARY_PATH=/usr/local/cuda/lib64/stubs\",\n                \"NV_CUDNN_VERSION=8.5.0.96\",\n                \"NV_CUDNN_PACKAGE_NAME=libcudnn8\",\n                \"NV_CUDNN_PACKAGE=libcudnn8=8.5.0.96-1+cuda11.7\",\n                \"NV_CUDNN_PACKAGE_DEV=libcudnn8-dev=8.5.0.96-1+cuda11.7\",\n                \"DEBIAN_FRONTEND=noninteractive\"\n            ],\n            \"Cmd\": [\n                \"processor\"\n            ],\n            \"Healthcheck\": {\n                \"Test\": [\n                    \"CMD-SHELL\",\n                    \"/usr/local/bin/uhttpc --url http://127.0.0.1:8082/ready || exit 1\"\n                ],\n                \"Interval\": 1000000000,\n                \"Timeout\": 3000000000\n            },\n            \"Image\": \"cvat.pth.facebookresearch.sam.vit_h:latest\",\n            \"Volumes\": null,\n            \"WorkingDir\": \"/opt/nuclio/sam\",\n            \"Entrypoint\": [\n                \"/opt/nvidia/nvidia_entrypoint.sh\"\n            ],\n            \"OnBuild\": null,\n            \"Labels\": {\n                \"com.nvidia.cudnn.version\": \"8.5.0.96\",\n                \"maintainer\": \"NVIDIA CORPORATION <[email protected]>\",\n                \"nuclio.io/annotations\": \"{\\\"animated_gif\\\":\\\"https://raw.githubusercontent.com/opencv/cvat/develop/site/content/en/images/hrnet_example.gif\\\",\\\"framework\\\":\\\"pytorch\\\",\\\"help_message\\\":\\\"The interactor allows to get a mask of an object using at least one positive, and any negative points inside it\\\",\\\"min_neg_points\\\":\\\"0\\\",\\\"min_pos_points\\\":\\\"1\\\",\\\"name\\\":\\\"Segment Anything\\\",\\\"spec\\\":\\\"\\\",\\\"type\\\":\\\"interactor\\\",\\\"version\\\":\\\"2\\\"}\",\n                \"nuclio.io/function-name\": \"pth.facebookresearch.sam.vit_h\",\n                \"nuclio.io/function-spec\": \"{\\\"description\\\":\\\"Interactive object segmentation with Segment-Anything\\\",\\\"handler\\\":\\\"main:handler\\\",\\\"runtime\\\":\\\"python:3.8\\\",\\\"env\\\":[{\\\"name\\\":\\\"PYTHONPATH\\\",\\\"value\\\":\\\"/opt/nuclio/sam\\\"}],\\\"resources\\\":{\\\"limits\\\":{\\\"nvidia.com/gpu\\\":\\\"1\\\"},\\\"requests\\\":{\\\"cpu\\\":\\\"25m\\\",\\\"memory\\\":\\\"1Mi\\\"}},\\\"image\\\":\\\"cvat.pth.facebookresearch.sam.vit_h:latest\\\",\\\"targetCPU\\\":75,\\\"triggers\\\":{\\\"myHttpTrigger\\\":{\\\"class\\\":\\\"\\\",\\\"kind\\\":\\\"http\\\",\\\"name\\\":\\\"myHttpTrigger\\\",\\\"maxWorkers\\\":1,\\\"workerAvailabilityTimeoutMilliseconds\\\":10000,\\\"attributes\\\":{\\\"maxRequestBodySize\\\":33554432}}},\\\"volumes\\\":[{\\\"volume\\\":{\\\"name\\\":\\\"volume-1\\\",\\\"hostPath\\\":{\\\"path\\\":\\\"/home/vintecc/gilles/cvat/serverless/common\\\"}},\\\"volumeMount\\\":{\\\"name\\\":\\\"volume-1\\\",\\\"mountPath\\\":\\\"/opt/nuclio/common\\\"}}],\\\"build\\\":{\\\"functionConfigPath\\\":\\\"pytorch/facebookresearch/sam/nuclio//function-gpu.yaml\\\",\\\"image\\\":\\\"cvat.pth.facebookresearch.sam.vit_h\\\",\\\"baseImage\\\":\\\"vintecc.azurecr.io/cvat-sam\\\",\\\"codeEntryType\\\":\\\"image\\\",\\\"timestamp\\\":1682424578},\\\"platform\\\":{\\\"attributes\\\":{\\\"mountMode\\\":\\\"volume\\\",\\\"restartPolicy\\\":{\\\"maximumRetryCount\\\":3,\\\"name\\\":\\\"always\\\"}}},\\\"readinessTimeoutSeconds\\\":120,\\\"securityContext\\\":{},\\\"eventTimeout\\\":\\\"30s\\\"}\",\n                \"nuclio.io/namespace\": \"nuclio\",\n                \"nuclio.io/platform\": \"local\",\n                \"nuclio.io/project-name\": \"cvat\"\n            }\n        },\n        \"NetworkSettings\": {\n            \"Bridge\": \"\",\n            \"SandboxID\": \"8e4f1a2f13e94e351ad82da656d701f1cffcd76cf5060fcbf5f2d989b07fefb9\",\n            \"HairpinMode\": false,\n            \"LinkLocalIPv6Address\": \"\",\n            \"LinkLocalIPv6PrefixLen\": 0,\n            \"Ports\": {\n                \"8080/tcp\": [\n                    {\n                        \"HostIp\": \"0.0.0.0\",\n                        \"HostPort\": \"32769\"\n                    },\n                    {\n                        \"HostIp\": \"::\",\n                        \"HostPort\": \"32769\"\n                    }\n                ]\n            },\n            \"SandboxKey\": \"/var/run/docker/netns/8e4f1a2f13e9\",\n            \"SecondaryIPAddresses\": null,\n            \"SecondaryIPv6Addresses\": null,\n            \"EndpointID\": \"6cf228180c0d18e15e660078800fe67a209da30c969303aea5a2b8fe27c8909d\",\n            \"Gateway\": \"172.17.0.1\",\n            \"GlobalIPv6Address\": \"\",\n            \"GlobalIPv6PrefixLen\": 0,\n            \"IPAddress\": \"172.17.0.4\",\n            \"IPPrefixLen\": 16,\n            \"IPv6Gateway\": \"\",\n            \"MacAddress\": \"02:42:ac:11:00:04\",\n            \"Networks\": {\n                \"bridge\": {\n                    \"IPAMConfig\": null,\n                    \"Links\": null,\n                    \"Aliases\": null,\n                    \"NetworkID\": \"fba41848976bbc8ba2570cec0b4dbaabc147a506054c403333ba0a1311d19f97\",\n                    \"EndpointID\": \"6cf228180c0d18e15e660078800fe67a209da30c969303aea5a2b8fe27c8909d\",\n                    \"Gateway\": \"172.17.0.1\",\n                    \"IPAddress\": \"172.17.0.4\",\n                    \"IPPrefixLen\": 16,\n                    \"IPv6Gateway\": \"\",\n                    \"GlobalIPv6Address\": \"\",\n                    \"GlobalIPv6PrefixLen\": 0,\n                    \"MacAddress\": \"02:42:ac:11:00:04\",\n                    \"DriverOpts\": null\n                }\n            }\n        }\n    }\n]\n", "stderr": "", "exitCode": 0}
nuclio                  | 23.04.25 12:16:44.217 dashboard.platform.docker (D) Awaiting container health {"containerID": "2077dbadc7ee1387e268731313169feaddffc243769edc7b87be7bfeef5fbf1d", "timeout": "5s"}
nuclio                  | 23.04.25 12:16:44.217 dashboard.platform.docker (D) Getting containers {"options": {"Name":"","Labels":null,"Stopped":true,"ID":"2077dbadc7ee1387e268731313169feaddffc243769edc7b87be7bfeef5fbf1d"}}
nuclio                  | 23.04.25 12:16:44.217 rd.platform.docker.runner (D) Executing {"command": "docker ps --quiet --all  --filter \"id=2077dbadc7ee1387e268731313169feaddffc243769edc7b87be7bfeef5fbf1d\"  "}
nuclio                  | 23.04.25 12:16:44.232 rd.platform.docker.runner (D) Command executed successfully {"output": "2077dbadc7ee\n", "stderr": "", "exitCode": 0}
nuclio                  | 23.04.25 12:16:44.232 rd.platform.docker.runner (D) Executing {"command": "docker inspect 2077dbadc7ee "}
nuclio                  | 23.04.25 12:16:44.248 rd.platform.docker.runner (D) Command executed successfully {"output": "[\n    {\n        \"Id\": \"2077dbadc7ee1387e268731313169feaddffc243769edc7b87be7bfeef5fbf1d\",\n        \"Created\": \"2023-04-25T12:09:38.937378195Z\",\n        \"Path\": \"/opt/nvidia/nvidia_entrypoint.sh\",\n        \"Args\": [\n            \"processor\"\n        ],\n        \"State\": {\n            \"Status\": \"running\",\n            \"Running\": true,\n            \"Paused\": false,\n            \"Restarting\": false,\n            \"OOMKilled\": false,\n            \"Dead\": false,\n            \"Pid\": 38437,\n            \"ExitCode\": 0,\n            \"Error\": \"\",\n            \"StartedAt\": \"2023-04-25T12:09:39.474716887Z\",\n            \"FinishedAt\": \"0001-01-01T00:00:00Z\",\n            \"Health\": {\n                \"Status\": \"healthy\",\n                \"FailingStreak\": 0,\n                \"Log\": [\n                    {\n                        \"Start\": \"2023-04-25T14:16:39.238404869+02:00\",\n                        \"End\": \"2023-04-25T14:16:39.301361298+02:00\",\n                        \"ExitCode\": 0,\n                        \"Output\": \"\"\n                    },\n                    {\n                        \"Start\": \"2023-04-25T14:16:40.322560618+02:00\",\n                        \"End\": \"2023-04-25T14:16:40.393611892+02:00\",\n                        \"ExitCode\": 0,\n                        \"Output\": \"\"\n                    },\n                    {\n                        \"Start\": \"2023-04-25T14:16:41.414292242+02:00\",\n                        \"End\": \"2023-04-25T14:16:41.469271179+02:00\",\n                        \"ExitCode\": 0,\n                        \"Output\": \"\"\n                    },\n                    {\n                        \"Start\": \"2023-04-25T14:16:42.489898761+02:00\",\n                        \"End\": \"2023-04-25T14:16:42.549579195+02:00\",\n                        \"ExitCode\": 0,\n                        \"Output\": \"\"\n                    },\n                    {\n                        \"Start\": \"2023-04-25T14:16:43.570297631+02:00\",\n                        \"End\": \"2023-04-25T14:16:43.645291188+02:00\",\n                        \"ExitCode\": 0,\n                        \"Output\": \"\"\n                    }\n                ]\n            }\n        },\n        \"Image\": \"sha256:47e28d1397a468e1e8e2239d13fa9f80da57f55a7df6fc3f4b26b32bf82e6a89\",\n        \"ResolvConfPath\": \"/var/lib/docker/containers/2077dbadc7ee1387e268731313169feaddffc243769edc7b87be7bfeef5fbf1d/resolv.conf\",\n        \"HostnamePath\": \"/var/lib/docker/containers/2077dbadc7ee1387e268731313169feaddffc243769edc7b87be7bfeef5fbf1d/hostname\",\n        \"HostsPath\": \"/var/lib/docker/containers/2077dbadc7ee1387e268731313169feaddffc243769edc7b87be7bfeef5fbf1d/hosts\",\n        \"LogPath\": \"/var/lib/docker/containers/2077dbadc7ee1387e268731313169feaddffc243769edc7b87be7bfeef5fbf1d/2077dbadc7ee1387e268731313169feaddffc243769edc7b87be7bfeef5fbf1d-json.log\",\n        \"Name\": \"/nuclio-nuclio-pth.facebookresearch.sam.vit_h\",\n        \"RestartCount\": 0,\n        \"Driver\": \"overlay2\",\n        \"Platform\": \"linux\",\n        \"MountLabel\": \"\",\n        \"ProcessLabel\": \"\",\n        \"AppArmorProfile\": \"docker-default\",\n        \"ExecIDs\": null,\n        \"HostConfig\": {\n            \"Binds\": [\n                \"/home/vintecc/gilles/cvat/serverless/common:/opt/nuclio/common\"\n            ],\n            \"ContainerIDFile\": \"\",\n            \"LogConfig\": {\n                \"Type\": \"json-file\",\n                \"Config\": {}\n            },\n            \"NetworkMode\": \"default\",\n            \"PortBindings\": {\n                \"8080/tcp\": [\n                    {\n                        \"HostIp\": \"\",\n                        \"HostPort\": \"\"\n                    }\n                ]\n            },\n            \"RestartPolicy\": {\n                \"Name\": \"always\",\n                \"MaximumRetryCount\": 0\n            },\n            \"AutoRemove\": false,\n            \"VolumeDriver\": \"\",\n            \"VolumesFrom\": null,\n            \"ConsoleSize\": [\n                0,\n                0\n            ],\n            \"CapAdd\": null,\n            \"CapDrop\": null,\n            \"CgroupnsMode\": \"host\",\n            \"Dns\": [],\n            \"DnsOptions\": [],\n            \"DnsSearch\": [],\n            \"ExtraHosts\": null,\n            \"GroupAdd\": null,\n            \"IpcMode\": \"private\",\n            \"Cgroup\": \"\",\n            \"Links\": null,\n            \"OomScoreAdj\": 0,\n            \"PidMode\": \"\",\n            \"Privileged\": false,\n            \"PublishAllPorts\": false,\n            \"ReadonlyRootfs\": false,\n            \"SecurityOpt\": null,\n            \"UTSMode\": \"\",\n            \"UsernsMode\": \"\",\n            \"ShmSize\": 67108864,\n            \"Runtime\": \"runc\",\n            \"Isolation\": \"\",\n            \"CpuShares\": 0,\n            \"Memory\": 0,\n            \"NanoCpus\": 0,\n            \"CgroupParent\": \"\",\n            \"BlkioWeight\": 0,\n            \"BlkioWeightDevice\": [],\n            \"BlkioDeviceReadBps\": [],\n            \"BlkioDeviceWriteBps\": [],\n            \"BlkioDeviceReadIOps\": [],\n            \"BlkioDeviceWriteIOps\": [],\n            \"CpuPeriod\": 0,\n            \"CpuQuota\": 0,\n            \"CpuRealtimePeriod\": 0,\n            \"CpuRealtimeRuntime\": 0,\n            \"CpusetCpus\": \"\",\n            \"CpusetMems\": \"\",\n            \"Devices\": [],\n            \"DeviceCgroupRules\": null,\n            \"DeviceRequests\": [\n                {\n                    \"Driver\": \"\",\n                    \"Count\": -1,\n                    \"DeviceIDs\": null,\n                    \"Capabilities\": [\n                        [\n                            \"gpu\"\n                        ]\n                    ],\n                    \"Options\": {}\n                }\n            ],\n            \"MemoryReservation\": 0,\n            \"MemorySwap\": 0,\n            \"MemorySwappiness\": null,\n            \"OomKillDisable\": false,\n            \"PidsLimit\": null,\n            \"Ulimits\": null,\n            \"CpuCount\": 0,\n            \"CpuPercent\": 0,\n            \"IOMaximumIOps\": 0,\n            \"IOMaximumBandwidth\": 0,\n            \"Mounts\": [\n                {\n                    \"Type\": \"volume\",\n                    \"Source\": \"nuclio-nuclio-pth.facebookresearch.sam.vit_h\",\n                    \"Target\": \"/etc/nuclio/config/processor\",\n                    \"ReadOnly\": true\n                }\n            ],\n            \"MaskedPaths\": [\n                \"/proc/asound\",\n                \"/proc/acpi\",\n                \"/proc/kcore\",\n                \"/proc/keys\",\n                \"/proc/latency_stats\",\n                \"/proc/timer_list\",\n                \"/proc/timer_stats\",\n                \"/proc/sched_debug\",\n                \"/proc/scsi\",\n                \"/sys/firmware\"\n            ],\n            \"ReadonlyPaths\": [\n                \"/proc/bus\",\n                \"/proc/fs\",\n                \"/proc/irq\",\n                \"/proc/sys\",\n                \"/proc/sysrq-trigger\"\n            ]\n        },\n        \"GraphDriver\": {\n            \"Data\": {\n                \"LowerDir\": \"/var/lib/docker/overlay2/8f8acb342386d35271e19a329b20c7a6cd1d050fe6f9fe014628aa709c5e9b89-init/diff:/var/lib/docker/overlay2/javo5di7r38c1lm8v3wtlcv34/diff:/var/lib/docker/overlay2/k3s805gig3v86321lsnrefkq7/diff:/var/lib/docker/overlay2/ryviecvg1ryiodjo7tgq1on93/diff:/var/lib/docker/overlay2/23pw99cx8l67upun5ex9hsdi8/diff:/var/lib/docker/overlay2/y06xwz0tkmauf426tbaadvrgm/diff:/var/lib/docker/overlay2/nsyooz5jjgoxogtj61s9xwpu0/diff:/var/lib/docker/overlay2/nyktltez6h4ts8mr0qtofvk0m/diff:/var/lib/docker/overlay2/loij1jpisxnvr0jogkxgnyhrm/diff:/var/lib/docker/overlay2/xwrebi0t3xu6upqcgerfkhfye/diff:/var/lib/docker/overlay2/ujcywfmsk12w0uyp73x0adf11/diff:/var/lib/docker/overlay2/y184e9tccvw66o6sct8xdevw2/diff:/var/lib/docker/overlay2/t1861qoksv4pggvke047ywhzi/diff:/var/lib/docker/overlay2/9ac3ddcd3f2c02f1484f88ae5f2088ca2dbaf0a9bc1be7cc15e90ef114a0306d/diff:/var/lib/docker/overlay2/3e8e3b4afd9cc5c5c665af36f39e1dbc9522f63a510d3c620e45c71c4f6bb785/diff:/var/lib/docker/overlay2/18c3045f694dec976f04527282629e9b739727acd4ee20829c34cd936d5f08be/diff:/var/lib/docker/overlay2/4cb0a3945a5fa77fb4442013cdaf4a6bbd5029271342f433bd7de911ed2bed58/diff:/var/lib/docker/overlay2/9a554695795153c0946406fdd28ac3dc47600da7e4050c56f8f842d60fad828d/diff:/var/lib/docker/overlay2/7755d2b26113002a3530c8f94f7d3e9dbaacc643d4b2046d416dfdf1d4fccf34/diff:/var/lib/docker/overlay2/4716a0fcb98e806bf0c36fa022a59a0a26accb033dfea0f5e92cba6c7c5a3b08/diff:/var/lib/docker/overlay2/4630fe6659338f41f2f0236afc8e28df1acd4812cb9f42ad126c7b2555aac761/diff:/var/lib/docker/overlay2/93932ae5a08ab5cb07318f163c295dae1aece78e2a395ab92eff866777980a5c/diff:/var/lib/docker/overlay2/e495f2374ad3e68869f9f733835465759c4969e66b6c23acca34fbbd3d725f28/diff:/var/lib/docker/overlay2/7a5a72cb035f02a500c58ddc8b69aeca56a83918462c7a92702735961caa1903/diff:/var/lib/docker/overlay2/53272fa168f190808223fb641ff2b45c25c0f6de0dfcb7c424eedc6d43d52d3f/diff\",\n                \"MergedDir\": \"/var/lib/docker/overlay2/8f8acb342386d35271e19a329b20c7a6cd1d050fe6f9fe014628aa709c5e9b89/merged\",\n                \"UpperDir\": \"/var/lib/docker/overlay2/8f8acb342386d35271e19a329b20c7a6cd1d050fe6f9fe014628aa709c5e9b89/diff\",\n                \"WorkDir\": \"/var/lib/docker/overlay2/8f8acb342386d35271e19a329b20c7a6cd1d050fe6f9fe014628aa709c5e9b89/work\"\n            },\n            \"Name\": \"overlay2\"\n        },\n        \"Mounts\": [\n            {\n                \"Type\": \"bind\",\n                \"Source\": \"/home/vintecc/gilles/cvat/serverless/common\",\n                \"Destination\": \"/opt/nuclio/common\",\n                \"Mode\": \"\",\n                \"RW\": true,\n                \"Propagation\": \"rprivate\"\n            },\n            {\n                \"Type\": \"volume\",\n                \"Name\": \"nuclio-nuclio-pth.facebookresearch.sam.vit_h\",\n                \"Source\": \"/var/lib/docker/volumes/nuclio-nuclio-pth.facebookresearch.sam.vit_h/_data\",\n                \"Destination\": \"/etc/nuclio/config/processor\",\n                \"Driver\": \"local\",\n                \"Mode\": \"z\",\n                \"RW\": false,\n                \"Propagation\": \"\"\n            }\n        ],\n        \"Config\": {\n            \"Hostname\": \"2077dbadc7ee\",\n            \"Domainname\": \"\",\n            \"User\": \"\",\n            \"AttachStdin\": false,\n            \"AttachStdout\": false,\n            \"AttachStderr\": false,\n            \"ExposedPorts\": {\n                \"8080/tcp\": {}\n            },\n            \"Tty\": false,\n            \"OpenStdin\": false,\n            \"StdinOnce\": false,\n            \"Env\": [\n                \"PYTHONPATH=/opt/nuclio/sam\",\n                \"PATH=/usr/local/nvidia/bin:/usr/local/cuda/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin\",\n                \"NVARCH=x86_64\",\n                \"NVIDIA_REQUIRE_CUDA=cuda>=11.7 brand=tesla,driver>=450,driver<451 brand=tesla,driver>=470,driver<471 brand=unknown,driver>=470,driver<471 brand=nvidia,driver>=470,driver<471 brand=nvidiartx,driver>=470,driver<471 brand=geforce,driver>=470,driver<471 brand=geforcertx,driver>=470,driver<471 brand=quadro,driver>=470,driver<471 brand=quadrortx,driver>=470,driver<471 brand=titan,driver>=470,driver<471 brand=titanrtx,driver>=470,driver<471 brand=tesla,driver>=510,driver<511 brand=unknown,driver>=510,driver<511 brand=nvidia,driver>=510,driver<511 brand=nvidiartx,driver>=510,driver<511 brand=geforce,driver>=510,driver<511 brand=geforcertx,driver>=510,driver<511 brand=quadro,driver>=510,driver<511 brand=quadrortx,driver>=510,driver<511 brand=titan,driver>=510,driver<511 brand=titanrtx,driver>=510,driver<511\",\n                \"NV_CUDA_CUDART_VERSION=11.7.99-1\",\n                \"NV_CUDA_COMPAT_PACKAGE=cuda-compat-11-7\",\n                \"CUDA_VERSION=11.7.1\",\n                \"LD_LIBRARY_PATH=/usr/local/nvidia/lib:/usr/local/nvidia/lib64\",\n                \"NVIDIA_VISIBLE_DEVICES=all\",\n                \"NVIDIA_DRIVER_CAPABILITIES=compute,utility\",\n                \"NV_CUDA_LIB_VERSION=11.7.1-1\",\n                \"NV_NVTX_VERSION=11.7.91-1\",\n                \"NV_LIBNPP_VERSION=11.7.4.75-1\",\n                \"NV_LIBNPP_PACKAGE=libnpp-11-7=11.7.4.75-1\",\n                \"NV_LIBCUSPARSE_VERSION=11.7.4.91-1\",\n                \"NV_LIBCUBLAS_PACKAGE_NAME=libcublas-11-7\",\n                \"NV_LIBCUBLAS_VERSION=11.10.3.66-1\",\n                \"NV_LIBCUBLAS_PACKAGE=libcublas-11-7=11.10.3.66-1\",\n                \"NV_LIBNCCL_PACKAGE_NAME=libnccl2\",\n                \"NV_LIBNCCL_PACKAGE_VERSION=2.13.4-1\",\n                \"NCCL_VERSION=2.13.4-1\",\n                \"NV_LIBNCCL_PACKAGE=libnccl2=2.13.4-1+cuda11.7\",\n                \"NVIDIA_PRODUCT_NAME=CUDA\",\n                \"NV_CUDA_CUDART_DEV_VERSION=11.7.99-1\",\n                \"NV_NVML_DEV_VERSION=11.7.91-1\",\n                \"NV_LIBCUSPARSE_DEV_VERSION=11.7.4.91-1\",\n                \"NV_LIBNPP_DEV_VERSION=11.7.4.75-1\",\n                \"NV_LIBNPP_DEV_PACKAGE=libnpp-dev-11-7=11.7.4.75-1\",\n                \"NV_LIBCUBLAS_DEV_VERSION=11.10.3.66-1\",\n                \"NV_LIBCUBLAS_DEV_PACKAGE_NAME=libcublas-dev-11-7\",\n                \"NV_LIBCUBLAS_DEV_PACKAGE=libcublas-dev-11-7=11.10.3.66-1\",\n                \"NV_NVPROF_VERSION=11.7.101-1\",\n                \"NV_NVPROF_DEV_PACKAGE=cuda-nvprof-11-7=11.7.101-1\",\n                \"NV_LIBNCCL_DEV_PACKAGE_NAME=libnccl-dev\",\n                \"NV_LIBNCCL_DEV_PACKAGE_VERSION=2.13.4-1\",\n                \"NV_LIBNCCL_DEV_PACKAGE=libnccl-dev=2.13.4-1+cuda11.7\",\n                \"LIBRARY_PATH=/usr/local/cuda/lib64/stubs\",\n                \"NV_CUDNN_VERSION=8.5.0.96\",\n                \"NV_CUDNN_PACKAGE_NAME=libcudnn8\",\n                \"NV_CUDNN_PACKAGE=libcudnn8=8.5.0.96-1+cuda11.7\",\n                \"NV_CUDNN_PACKAGE_DEV=libcudnn8-dev=8.5.0.96-1+cuda11.7\",\n                \"DEBIAN_FRONTEND=noninteractive\"\n            ],\n            \"Cmd\": [\n                \"processor\"\n            ],\n            \"Healthcheck\": {\n                \"Test\": [\n                    \"CMD-SHELL\",\n                    \"/usr/local/bin/uhttpc --url http://127.0.0.1:8082/ready || exit 1\"\n                ],\n                \"Interval\": 1000000000,\n                \"Timeout\": 3000000000\n            },\n            \"Image\": \"cvat.pth.facebookresearch.sam.vit_h:latest\",\n            \"Volumes\": null,\n            \"WorkingDir\": \"/opt/nuclio/sam\",\n            \"Entrypoint\": [\n                \"/opt/nvidia/nvidia_entrypoint.sh\"\n            ],\n            \"OnBuild\": null,\n            \"Labels\": {\n                \"com.nvidia.cudnn.version\": \"8.5.0.96\",\n                \"maintainer\": \"NVIDIA CORPORATION <[email protected]>\",\n                \"nuclio.io/annotations\": \"{\\\"animated_gif\\\":\\\"https://raw.githubusercontent.com/opencv/cvat/develop/site/content/en/images/hrnet_example.gif\\\",\\\"framework\\\":\\\"pytorch\\\",\\\"help_message\\\":\\\"The interactor allows to get a mask of an object using at least one positive, and any negative points inside it\\\",\\\"min_neg_points\\\":\\\"0\\\",\\\"min_pos_points\\\":\\\"1\\\",\\\"name\\\":\\\"Segment Anything\\\",\\\"spec\\\":\\\"\\\",\\\"type\\\":\\\"interactor\\\",\\\"version\\\":\\\"2\\\"}\",\n                \"nuclio.io/function-name\": \"pth.facebookresearch.sam.vit_h\",\n                \"nuclio.io/function-spec\": \"{\\\"description\\\":\\\"Interactive object segmentation with Segment-Anything\\\",\\\"handler\\\":\\\"main:handler\\\",\\\"runtime\\\":\\\"python:3.8\\\",\\\"env\\\":[{\\\"name\\\":\\\"PYTHONPATH\\\",\\\"value\\\":\\\"/opt/nuclio/sam\\\"}],\\\"resources\\\":{\\\"limits\\\":{\\\"nvidia.com/gpu\\\":\\\"1\\\"},\\\"requests\\\":{\\\"cpu\\\":\\\"25m\\\",\\\"memory\\\":\\\"1Mi\\\"}},\\\"image\\\":\\\"cvat.pth.facebookresearch.sam.vit_h:latest\\\",\\\"targetCPU\\\":75,\\\"triggers\\\":{\\\"myHttpTrigger\\\":{\\\"class\\\":\\\"\\\",\\\"kind\\\":\\\"http\\\",\\\"name\\\":\\\"myHttpTrigger\\\",\\\"maxWorkers\\\":1,\\\"workerAvailabilityTimeoutMilliseconds\\\":10000,\\\"attributes\\\":{\\\"maxRequestBodySize\\\":33554432}}},\\\"volumes\\\":[{\\\"volume\\\":{\\\"name\\\":\\\"volume-1\\\",\\\"hostPath\\\":{\\\"path\\\":\\\"/home/vintecc/gilles/cvat/serverless/common\\\"}},\\\"volumeMount\\\":{\\\"name\\\":\\\"volume-1\\\",\\\"mountPath\\\":\\\"/opt/nuclio/common\\\"}}],\\\"build\\\":{\\\"functionConfigPath\\\":\\\"pytorch/facebookresearch/sam/nuclio//function-gpu.yaml\\\",\\\"image\\\":\\\"cvat.pth.facebookresearch.sam.vit_h\\\",\\\"baseImage\\\":\\\"vintecc.azurecr.io/cvat-sam\\\",\\\"codeEntryType\\\":\\\"image\\\",\\\"timestamp\\\":1682424578},\\\"platform\\\":{\\\"attributes\\\":{\\\"mountMode\\\":\\\"volume\\\",\\\"restartPolicy\\\":{\\\"maximumRetryCount\\\":3,\\\"name\\\":\\\"always\\\"}}},\\\"readinessTimeoutSeconds\\\":120,\\\"securityContext\\\":{},\\\"eventTimeout\\\":\\\"30s\\\"}\",\n                \"nuclio.io/namespace\": \"nuclio\",\n                \"nuclio.io/platform\": \"local\",\n                \"nuclio.io/project-name\": \"cvat\"\n            }\n        },\n        \"NetworkSettings\": {\n            \"Bridge\": \"\",\n            \"SandboxID\": \"8e4f1a2f13e94e351ad82da656d701f1cffcd76cf5060fcbf5f2d989b07fefb9\",\n            \"HairpinMode\": false,\n            \"LinkLocalIPv6Address\": \"\",\n            \"LinkLocalIPv6PrefixLen\": 0,\n            \"Ports\": {\n                \"8080/tcp\": [\n                    {\n                        \"HostIp\": \"0.0.0.0\",\n                        \"HostPort\": \"32769\"\n                    },\n                    {\n                        \"HostIp\": \"::\",\n                        \"HostPort\": \"32769\"\n                    }\n                ]\n            },\n            \"SandboxKey\": \"/var/run/docker/netns/8e4f1a2f13e9\",\n            \"SecondaryIPAddresses\": null,\n            \"SecondaryIPv6Addresses\": null,\n            \"EndpointID\": \"6cf228180c0d18e15e660078800fe67a209da30c969303aea5a2b8fe27c8909d\",\n            \"Gateway\": \"172.17.0.1\",\n            \"GlobalIPv6Address\": \"\",\n            \"GlobalIPv6PrefixLen\": 0,\n            \"IPAddress\": \"172.17.0.4\",\n            \"IPPrefixLen\": 16,\n            \"IPv6Gateway\": \"\",\n            \"MacAddress\": \"02:42:ac:11:00:04\",\n            \"Networks\": {\n                \"bridge\": {\n                    \"IPAMConfig\": null,\n                    \"Links\": null,\n                    \"Aliases\": null,\n                    \"NetworkID\": \"fba41848976bbc8ba2570cec0b4dbaabc147a506054c403333ba0a1311d19f97\",\n                    \"EndpointID\": \"6cf228180c0d18e15e660078800fe67a209da30c969303aea5a2b8fe27c8909d\",\n                    \"Gateway\": \"172.17.0.1\",\n                    \"IPAddress\": \"172.17.0.4\",\n                    \"IPPrefixLen\": 16,\n                    \"IPv6Gateway\": \"\",\n                    \"GlobalIPv6Address\": \"\",\n                    \"GlobalIPv6PrefixLen\": 0,\n                    \"MacAddress\": \"02:42:ac:11:00:04\",\n                    \"DriverOpts\": null\n                }\n            }\n        }\n    }\n]\n", "stderr": "", "exitCode": 0}
nuclio                  | 23.04.25 12:16:44.248 dashboard.platform.docker (D) Container is healthy {"containerID": "2077dbadc7ee1387e268731313169feaddffc243769edc7b87be7bfeef5fbf1d"}
cvat_server             | [Tue Apr 25 12:13:20.031619 2023] [wsgi:error] [pid 335:tid 139843413087808] [remote 172.19.0.8:35188] [2023-04-25 12:13:20,031] WARNING django.request: Unauthorized: /api/users/self
cvat_server             | 
cvat_server             | 2023-04-25 12:13:20,031 DEBG 'runserver' stderr output:
cvat_server             | [Tue Apr 25 12:13:20.031703 2023] [wsgi:error] [pid 335:tid 139843413087808] [remote 172.19.0.8:35188] WARNING:django.request:Unauthorized: /api/users/self
cvat_server             | 
cvat_server             | 2023-04-25 12:13:20,074 DEBG 'runserver' stderr output:
cvat_server             | [Tue Apr 25 12:13:20.074115 2023] [wsgi:error] [pid 335:tid 139843379516992] [remote 172.19.0.8:35188] [2023-04-25 12:13:20,074] WARNING django.request: Unauthorized: /api/auth/password/change
cvat_server             | 
cvat_server             | 2023-04-25 12:13:20,074 DEBG 'runserver' stderr output:
cvat_server             | [Tue Apr 25 12:13:20.074335 2023] [wsgi:error] [pid 335:tid 139843379516992] [remote 172.19.0.8:35188] WARNING:django.request:Unauthorized: /api/auth/password/change
cvat_server             | 
cvat_server             | 2023-04-25 12:13:20,085 DEBG 'runserver' stderr output:
cvat_server             | [Tue Apr 25 12:13:20.085544 2023] [wsgi:error] [pid 335:tid 139843387909696] [remote 172.19.0.8:35210] [2023-04-25 12:13:20,085] WARNING django.request: Not Found: /api/user-agreements
cvat_server             | 
cvat_server             | 2023-04-25 12:13:20,085 DEBG 'runserver' stderr output:
cvat_server             | [Tue Apr 25 12:13:20.085617 2023] [wsgi:error] [pid 335:tid 139843387909696] [remote 172.19.0.8:35210] WARNING:django.request:Not Found: /api/user-agreements
cvat_server             | 
cvat_server             | 2023-04-25 12:13:24,747 DEBG 'runserver' stderr output:
cvat_server             | [Tue Apr 25 12:13:24.747486 2023] [wsgi:error] [pid 335:tid 139843413087808] [remote 172.19.0.8:35220] [2023-04-25 12:13:24,747] WARNING django.request: Not Found: /api/functions
cvat_server             | 
cvat_server             | 2023-04-25 12:13:24,747 DEBG 'runserver' stderr output:
cvat_server             | [Tue Apr 25 12:13:24.747573 2023] [wsgi:error] [pid 335:tid 139843413087808] [remote 172.19.0.8:35220] WARNING:django.request:Not Found: /api/functions
cvat_server             | 
cvat_server             | 2023-04-25 12:13:24,868 DEBG 'runserver' stderr output:
cvat_server             | [Tue Apr 25 12:13:24.868727 2023] [wsgi:error] [pid 335:tid 139843387909696] [remote 172.19.0.8:35220] [2023-04-25 12:13:24,868] WARNING django.request: Not Found: /api/functions/requests/
cvat_server             | 
cvat_server             | 2023-04-25 12:13:24,868 DEBG 'runserver' stderr output:
cvat_server             | [Tue Apr 25 12:13:24.868804 2023] [wsgi:error] [pid 335:tid 139843387909696] [remote 172.19.0.8:35220] WARNING:django.request:Not Found: /api/functions/requests/
cvat_server             | 
cvat_server             | 2023-04-25 12:14:27,819 DEBG 'runserver' stderr output:
cvat_server             | [Tue Apr 25 12:14:27.819897 2023] [wsgi:error] [pid 335:tid 139843387909696] [remote 172.19.0.8:48902] [2023-04-25 12:14:27,819] WARNING django.request: Not Found: /api/functions/requests/
cvat_server             | 
cvat_server             | 2023-04-25 12:14:27,820 DEBG 'runserver' stderr output:
cvat_server             | [Tue Apr 25 12:14:27.819976 2023] [wsgi:error] [pid 335:tid 139843387909696] [remote 172.19.0.8:48902] WARNING:django.request:Not Found: /api/functions/requests/
cvat_server             | 
cvat_server             | 2023-04-25 12:14:55,372 DEBG 'runserver' stderr output:
cvat_server             | [Tue Apr 25 12:14:55.372778 2023] [wsgi:error] [pid 335:tid 139843413087808] [remote 172.19.0.8:47702] [2023-04-25 12:14:55,372] INFO cvat.server.task_1: label:create Label id:1 for spec:OrderedDict([('name', 'object'), ('color', '#ff0085'), ('type', 'any')]) with sublabels:[], parent_label:None
cvat_server             | 
cvat_server             | 2023-04-25 12:14:55,373 DEBG 'runserver' stderr output:
cvat_server             | [Tue Apr 25 12:14:55.372847 2023] [wsgi:error] [pid 335:tid 139843413087808] [remote 172.19.0.8:47702] INFO:cvat.server.task_1:label:create Label id:1 for spec:OrderedDict([('name', 'object'), ('color', '#ff0085'), ('type', 'any')]) with sublabels:[], parent_label:None
cvat_server             | 
cvat_server             | 2023-04-25 12:14:59,963 DEBG 'runserver' stderr output:
cvat_server             | [Tue Apr 25 12:14:59.963719 2023] [wsgi:error] [pid 335:tid 139843396302400] [remote 172.19.0.8:55118] [2023-04-25 12:14:59,962] INFO cvat.server.task_1: get repository request
cvat_server             | 
cvat_server             | 2023-04-25 12:14:59,963 DEBG 'runserver' stderr output:
cvat_server             | [Tue Apr 25 12:14:59.963793 2023] [wsgi:error] [pid 335:tid 139843396302400] [remote 172.19.0.8:55118] INFO:cvat.server.task_1:get repository request
cvat_server             | 
cvat_server             | 2023-04-25 12:16:10,728 DEBG 'runserver' stderr output:
cvat_server             | [Tue Apr 25 12:16:10.728215 2023] [wsgi:error] [pid 427:tid 139845115102784] [client 172.19.0.8:34452] Timeout when reading response headers from daemon process 'localhost:8080': /tmp/cvat-server/htdocs/api, referer: http://10.0.20.90:8080/tasks/1/jobs/1
cvat_server             | 

@OutSorcerer
Copy link

OutSorcerer commented Apr 25, 2023

In my case SAM is working on CPU.

To make it work from the first request, which takes 1.5 minute in my case, in addition to increasing eventTimeout like written above I had to add --socket-timeout 120 (60 seconds by default) to python3 $HOME/manage.py runmodwsgi command in supervisord/server.conf, otherwise I was seeing Gateway Timeout (504) in the UI of CVAT and the following in the server logs:

[Tue Apr 25 14:19:03.122466 2023] [wsgi:error] [pid 109:tid 139934034003520] [client 172.26.0.6:44016] Timeout when reading response headers from daemon process 'localhost:8080': /tmp/cvat-server/htdocs/api, referer: https://cvat.deevio.ai/tasks/670/jobs/571

The second and following requests for the same image were slow not because it was running on CPU as I worked this around by removing mask from the output of the SAM function (in "convert masks to polygons" mode).

If I may suggest, masks should not be sent by CVAT when they are not needed. Also, in my case a size of a mask was over 100MB, while a size of the image was just 35MB, some kind of RLE encoding or other compression should be used, I believe.

@bsekachev
Copy link
Member

Hi @OutSorcerer

Actually CVAT operates by RLE-encoded masks, but serverless functions return just bitmaps for now.
We need to optimize this behaviour. It's relevant for all the serverless functions, working with masks, not only for SAM.

Moreover mask is usually relates to a fragment of an image, and better to send only this fragment with some additional data [top, left, width, height] data.

@GillesBallegeerVintecc , @OutSorcerer
BTW, what is resolution of your images?

@OutSorcerer
Copy link

@bsekachev, in my case images are quite huge, 4096 by 9000 pixels, with a bit depth of 8 a single image in BMP format is ~35MB, the mask size from SAM was over 100MB (from the response size on the network tab of a Chrome debugger).

@bsekachev
Copy link
Member

The issue with huge masks is gonna be fixed here #6019

@GillesBallegeerVintecc
Copy link

@bsekachev The images are 3024x4032 JPEG encoded (4.3MB), I just test with a simple image (1280x1280) and there I got the same result.

image

@whom-da whom-da mentioned this issue Apr 28, 2023
2 tasks
@Victorsoukhov
Copy link

Same issue with same logs... Not working with GPU or CPU.

@JattKisaan
Copy link

JattKisaan commented Apr 30, 2023

I'm also having the same issue, No "AI Tool", either SAM interactor or YOLO detectors, are working on GPU or CPU on my desktop. However, they are working fine on my laptop, where I used identical installation steps. The laptop has lesser hardware in every respect than my desktop.

My desktop has openvpn and ssh servers installed. They aren't running in docker. I don't think this should affect anything, but I can't think of why else my computer would differ significantly from any other.

The operation simply times out, with the error message shown in the following image
cvat_issue

Here are logs from nuclio-nuclio-pth.facebookresearch.sam.vit_h container, on both my laptop and desktop. This one is the only one that looked significantly different between the desktop and laptop, at least to my eye. I can see two calls to the call handler on my laptop which correspond to the two times I used SAM. On my desktop, there are no lines corresponding to the call handler. So it seems the container built from nuclio-nuclio-pth.facebookresearch.sam.vit_h is not communicating with the others properly?

Desktop:

serverless$ docker logs nuclio-nuclio-pth.facebookresearch.sam.vit_h | tail
/opt/nuclio/_nuclio_wrapper.py:395: DeprecationWarning: There is no current event loop
  loop = asyncio.get_event_loop()
/opt/nuclio/_nuclio_wrapper.py:395: DeprecationWarning: There is no current event loop
  loop = asyncio.get_event_loop()
23.04.30 15:38:52.392 sor.http.w0.python.logger (I) Init context...100% {"worker_id": "0"}
23.04.30 15:38:52.392 sor.http.w0.python.logger (D) Started
23.04.30 15:38:52.392                 processor (I) Starting event timeout watcher {"timeout": "30s"}
23.04.30 15:38:52.392 .webadmin.server.triggers (D) Registered custom route {"routeName": "triggers", "stream": false, "pattern": "/{id}/stats", "method": "GET"}
23.04.30 15:38:52.392 processor.webadmin.server (D) Registered resource {"name": "triggers"}
23.04.30 15:38:52.392                 processor (W) No metric sinks configured, metrics will not be published
23.04.30 15:38:52.392                 processor (D) Starting triggers {"triggersError": "json: unsupported value: encountered a cycle via *http.http"}
23.04.30 15:38:52.393            processor.http (I) Starting {"listenAddress": ":8080", "readBufferSize": 16384, "maxRequestBodySize": 33554432, "reduceMemoryUsage": false, "cors": null}
23.04.30 15:38:52.393 processor.webadmin.server (I) Listening {"listenAddress": ":8081"}
23.04.30 15:38:52.393                 processor (D) Processor started

Laptop

serverless$ docker logs nuclio-nuclio-pth.facebookresearch.sam.vit_h  | tail
/opt/nuclio/_nuclio_wrapper.py:395: DeprecationWarning: There is no current event loop
  loop = asyncio.get_event_loop()
/opt/nuclio/_nuclio_wrapper.py:395: DeprecationWarning: There is no current event loop
  loop = asyncio.get_event_loop()
23.04.30 15:33:17.291                 processor (I) Starting event timeout watcher {"timeout": "30s"}
23.04.30 15:33:17.293 .webadmin.server.triggers (D) Registered custom route {"routeName": "triggers", "stream": false, "pattern": "/{id}/stats", "method": "GET"}
23.04.30 15:33:17.293 processor.webadmin.server (D) Registered resource {"name": "triggers"}
23.04.30 15:33:17.294                 processor (W) No metric sinks configured, metrics will not be published
23.04.30 15:33:17.294                 processor (D) Starting triggers {"triggersError": "json: unsupported value: encountered a cycle via *http.http"}
23.04.30 15:33:17.307            processor.http (I) Starting {"listenAddress": ":8080", "readBufferSize": 16384, "maxRequestBodySize": 33554432, "reduceMemoryUsage": false, "cors": null}
23.04.30 15:33:17.310 processor.webadmin.server (I) Listening {"listenAddress": ":8081"}
23.04.30 15:33:17.310                 processor (D) Processor started
23.04.30 15:35:48.483 sor.http.w0.python.logger (I) call handler {"worker_id": "0"}
23.04.30 15:37:04.823 sor.http.w1.python.logger (I) call handler {"worker_id": "1"}

Supplementary Info

To install, I followed these steps.

  1. Installed CVAT, using these instructions. I followed them only up to the git clone.
  2. I downloaded nuctl as described here, 2nd bullet. I created a project for cvat as described there, but I didn't deploy any of the models.
  3. I followed these instructions to deploy the segment anything model, i.e. this command, cd serverless && ./deploy_cpu.sh pytorch/facebookresearch/sam/nuclio/
  4. Finally, I used the docker up command from back here, 1st bullet to get cvat and nuclio running.
  5. I go to localhost:8080 in Chrome, create a project and task, upload any image you'd like (I used this).
  6. Once I select Segment Anything in the interactors under AI Tools and click somewhere on the image, it buffers for 10s of seconds, and then returns with an error message about timing out. If I monitor htop while it is running, I see nothing happening after I click.
  • Docker version docker version (e.g. Docker 17.0.05):
    23.0.5
  • Are you using Docker Swarm or Kubernetes?
    No
  • Operating System and version (e.g. Linux, Windows, MacOS):
    Ubuntu 20.04

@tlpss
Copy link

tlpss commented May 2, 2023

I've got exactly the same issue. The weird this is that I got it to work on CPU on one computer and then followed the exact same steps on another and there it doesn't work.

In the docker logs I've found this:

2023-04-20 09:15:55,536 DEBG 'runserver' stderr output:
[Thu Apr 20 09:15:55.536775 2023] [wsgi:error] [pid 337:tid 140222251001408] [remote 172.19.0.6:48534] WARNING:django.request:Not Found: /api/functions/requests/


cvat_server             | 2023-04-20 09:09:43,395 DEBG 'runserver' stderr output:
cvat_server             | [Thu Apr 20 09:09:43.395696 2023] [wsgi:error] [pid 337:tid 140222267786816] [remote 172.19.0.6:45738] [2023-04-20 09:09:43,395] ERROR django.request: Service Unavailable: /api/lambda/functions/pth.facebookresearch.sam.vit_h
cvat_server             | 
cvat_server             | 2023-04-20 09:09:43,396 DEBG 'runserver' stderr output:
cvat_server             | [Thu Apr 20 09:09:43.395858 2023] [wsgi:error] [pid 337:tid 140222267786816] [remote 172.19.0.6:45738] ERROR:django.request:Service Unavailable: /api/lambda/functions/pth.facebookresearch.sam.vit_h

I found no further errors in the nuclio container and the sam container.

I've tested with another serverless function and there I got the same issue. Currently I run with the env CVAT_HOST, but I got the same behaviour without.

So I suspect that there might be some communication issues between the cvat containers, but I don't really see a clear way to debug this.

I'm having the exact same issue on cvat 2.4.3, both with SAM and YOLOv5.

Logs seem to indicate that the cvat server is not able to communicate with the serverless container (example for YOLOv5):

...

cvat_server               | 2023-05-02 08:20:36,954 DEBG 'runserver' stderr output:
cvat_server               | [Tue May 02 08:20:36.954546 2023] [wsgi:error] [pid 147:tid 140425650320960] [remote 172.23.0.2:57610] ERROR:django.request:Service Unavailable: /api/lambda/functions/ultralytics-yolov5

...

Logs of the YOLO container: (SAM is similar to previous comment ) :

(base) tlips@paard:~/Documents/cvat/serverless$ docker logs nuclio-nuclio-ultralytics-yolov5 
23.05.02 08:16:24.371                 processor (I) Starting processor {"version": "Label: 1.8.14, Git commit: cbb0774230996a3eb4621c1a2079e2317578005b, OS: linux, Arch: amd64, Go version: go1.17.8"}
23.05.02 08:16:24.371                 processor (D) Read configuration {"config": "{\n    \"metadata\": {\n        \"name\": \"ultralytics-yolov5\",\n        \"namespace\": \"nuclio\",\n        \"labels\": {\n            \"nuclio.io/project-name\": \"cvat\"\n        },\n        \"annotations\": {\n            \"framework\": \"pytorch\",\n            \"name\": \"YOLO v5\",\n            \"spec\": \"[\\n  { \\\"id\\\": 0, \\\"name\\\": \\\"person\\\" },\\n  { \\\"id\\\": 1, \\\"name\\\": \\\"bicycle\\\" },\\n  { \\\"id\\\": 2, \\\"name\\\": \\\"car\\\" },\\n  { \\\"id\\\": 3, \\\"name\\\": \\\"motorbike\\\" },\\n  { \\\"id\\\": 4, \\\"name\\\": \\\"aeroplane\\\" },\\n  { \\\"id\\\": 5, \\\"name\\\": \\\"bus\\\" },\\n  { \\\"id\\\": 6, \\\"name\\\": \\\"train\\\" },\\n  { \\\"id\\\": 7, \\\"name\\\": \\\"truck\\\" },\\n  { \\\"id\\\": 8, \\\"name\\\": \\\"boat\\\" },\\n  { \\\"id\\\": 9, \\\"name\\\": \\\"traffic light\\\" },\\n  { \\\"id\\\": 10, \\\"name\\\": \\\"fire hydrant\\\" },\\n  { \\\"id\\\": 11, \\\"name\\\": \\\"stop sign\\\" },\\n  { \\\"id\\\": 12, \\\"name\\\": \\\"parking meter\\\" },\\n  { \\\"id\\\": 13, \\\"name\\\": \\\"bench\\\" },\\n  { \\\"id\\\": 14, \\\"name\\\": \\\"bird\\\" },\\n  { \\\"id\\\": 15, \\\"name\\\": \\\"cat\\\" },\\n  { \\\"id\\\": 16, \\\"name\\\": \\\"dog\\\" },\\n  { \\\"id\\\": 17, \\\"name\\\": \\\"horse\\\" },\\n  { \\\"id\\\": 18, \\\"name\\\": \\\"sheep\\\" },\\n  { \\\"id\\\": 19, \\\"name\\\": \\\"cow\\\" },\\n  { \\\"id\\\": 20, \\\"name\\\": \\\"elephant\\\" },\\n  { \\\"id\\\": 21, \\\"name\\\": \\\"bear\\\" },\\n  { \\\"id\\\": 22, \\\"name\\\": \\\"zebra\\\" },\\n  { \\\"id\\\": 23, \\\"name\\\": \\\"giraffe\\\" },\\n  { \\\"id\\\": 24, \\\"name\\\": \\\"backpack\\\" },\\n  { \\\"id\\\": 25, \\\"name\\\": \\\"umbrella\\\" },\\n  { \\\"id\\\": 26, \\\"name\\\": \\\"handbag\\\" },\\n  { \\\"id\\\": 27, \\\"name\\\": \\\"tie\\\" },\\n  { \\\"id\\\": 28, \\\"name\\\": \\\"suitcase\\\" },\\n  { \\\"id\\\": 29, \\\"name\\\": \\\"frisbee\\\" },\\n  { \\\"id\\\": 30, \\\"name\\\": \\\"skis\\\" },\\n  { \\\"id\\\": 31, \\\"name\\\": \\\"snowboard\\\" },\\n  { \\\"id\\\": 32, \\\"name\\\": \\\"sports ball\\\" },\\n  { \\\"id\\\": 33, \\\"name\\\": \\\"kite\\\" },\\n  { \\\"id\\\": 34, \\\"name\\\": \\\"baseball bat\\\" },\\n  { \\\"id\\\": 35, \\\"name\\\": \\\"baseball glove\\\" },\\n  { \\\"id\\\": 36, \\\"name\\\": \\\"skateboard\\\" },\\n  { \\\"id\\\": 37, \\\"name\\\": \\\"surfboard\\\" },\\n  { \\\"id\\\": 38, \\\"name\\\": \\\"tennis racket\\\" },\\n  { \\\"id\\\": 39, \\\"name\\\": \\\"bottle\\\" },\\n  { \\\"id\\\": 40, \\\"name\\\": \\\"wine glass\\\" },\\n  { \\\"id\\\": 41, \\\"name\\\": \\\"cup\\\" },\\n  { \\\"id\\\": 42, \\\"name\\\": \\\"fork\\\" },\\n  { \\\"id\\\": 43, \\\"name\\\": \\\"knife\\\" },\\n  { \\\"id\\\": 44, \\\"name\\\": \\\"spoon\\\" },\\n  { \\\"id\\\": 45, \\\"name\\\": \\\"bowl\\\" },\\n  { \\\"id\\\": 46, \\\"name\\\": \\\"banana\\\" },\\n  { \\\"id\\\": 47, \\\"name\\\": \\\"apple\\\" },\\n  { \\\"id\\\": 48, \\\"name\\\": \\\"sandwich\\\" },\\n  { \\\"id\\\": 49, \\\"name\\\": \\\"orange\\\" },\\n  { \\\"id\\\": 50, \\\"name\\\": \\\"broccoli\\\" },\\n  { \\\"id\\\": 51, \\\"name\\\": \\\"carrot\\\" },\\n  { \\\"id\\\": 52, \\\"name\\\": \\\"hot dog\\\" },\\n  { \\\"id\\\": 53, \\\"name\\\": \\\"pizza\\\" },\\n  { \\\"id\\\": 54, \\\"name\\\": \\\"donut\\\" },\\n  { \\\"id\\\": 55, \\\"name\\\": \\\"cake\\\" },\\n  { \\\"id\\\": 56, \\\"name\\\": \\\"chair\\\" },\\n  { \\\"id\\\": 57, \\\"name\\\": \\\"sofa\\\" },\\n  { \\\"id\\\": 58, \\\"name\\\": \\\"pottedplant\\\" },\\n  { \\\"id\\\": 59, \\\"name\\\": \\\"bed\\\" },\\n  { \\\"id\\\": 60, \\\"name\\\": \\\"diningtable\\\" },\\n  { \\\"id\\\": 61, \\\"name\\\": \\\"toilet\\\" },\\n  { \\\"id\\\": 62, \\\"name\\\": \\\"tvmonitor\\\" },\\n  { \\\"id\\\": 63, \\\"name\\\": \\\"laptop\\\" },\\n  { \\\"id\\\": 64, \\\"name\\\": \\\"mouse\\\" },\\n  { \\\"id\\\": 65, \\\"name\\\": \\\"remote\\\" },\\n  { \\\"id\\\": 66, \\\"name\\\": \\\"keyboard\\\" },\\n  { \\\"id\\\": 67, \\\"name\\\": \\\"cell phone\\\" },\\n  { \\\"id\\\": 68, \\\"name\\\": \\\"microwave\\\" },\\n  { \\\"id\\\": 69, \\\"name\\\": \\\"oven\\\" },\\n  { \\\"id\\\": 70, \\\"name\\\": \\\"toaster\\\" },\\n  { \\\"id\\\": 71, \\\"name\\\": \\\"sink\\\" },\\n  { \\\"id\\\": 72, \\\"name\\\": \\\"refrigerator\\\" },\\n  { \\\"id\\\": 73, \\\"name\\\": \\\"book\\\" },\\n  { \\\"id\\\": 74, \\\"name\\\": \\\"clock\\\" },\\n  { \\\"id\\\": 75, \\\"name\\\": \\\"vase\\\" },\\n  { \\\"id\\\": 76, \\\"name\\\": \\\"scissors\\\" },\\n  { \\\"id\\\": 77, \\\"name\\\": \\\"teddy bear\\\" },\\n  { \\\"id\\\": 78, \\\"name\\\": \\\"hair drier\\\" },\\n  { \\\"id\\\": 79, \\\"name\\\": \\\"toothbrush\\\" }\\n]\\n\",\n            \"type\": \"detector\"\n        }\n    },\n    \"spec\": {\n        \"description\": \"YOLO v5 via pytorch hub\",\n        \"handler\": \"main:handler\",\n        \"runtime\": \"python:3.6\",\n        \"resources\": {\n            \"limits\": {\n                \"nvidia.com/gpu\": \"1\"\n            },\n            \"requests\": {\n                \"cpu\": \"25m\",\n                \"memory\": \"1Mi\"\n            }\n        },\n        \"image\": \"cvat/ultralytics-yolov5:latest\",\n        \"targetCPU\": 75,\n        \"triggers\": {\n            \"myHttpTrigger\": {\n                \"class\": \"\",\n                \"kind\": \"http\",\n                \"name\": \"myHttpTrigger\",\n                \"maxWorkers\": 1,\n                \"workerAvailabilityTimeoutMilliseconds\": 10000,\n                \"attributes\": {\n                    \"maxRequestBodySize\": 33554432\n                }\n            }\n        },\n        \"volumes\": [\n            {\n                \"volume\": {\n                    \"name\": \"volume-1\",\n                    \"hostPath\": {\n                        \"path\": \"/home/tlips/Documents/cvat/serverless/common\"\n                    }\n                },\n                \"volumeMount\": {\n                    \"name\": \"volume-1\",\n                    \"mountPath\": \"/opt/nuclio/common\"\n                }\n            }\n        ],\n        \"build\": {\n            \"functionConfigPath\": \"pytorch/ultralytics/yolov5/nuclio//function-gpu.yaml\",\n            \"image\": \"cvat/ultralytics-yolov5\",\n            \"baseImage\": \"ultralytics/yolov5:latest\",\n            \"directives\": {\n                \"preCopy\": [\n                    {\n                        \"kind\": \"USER\",\n                        \"value\": \"root\"\n                    },\n                    {\n                        \"kind\": \"RUN\",\n                        \"value\": \"apt update \\u0026\\u0026 apt install --no-install-recommends -y libglib2.0-0\"\n                    },\n                    {\n                        \"kind\": \"WORKDIR\",\n                        \"value\": \"/opt/nuclio\"\n                    }\n                ]\n            },\n            \"codeEntryType\": \"image\",\n            \"timestamp\": 1683015382\n        },\n        \"platform\": {\n            \"attributes\": {\n                \"mountMode\": \"volume\",\n                \"restartPolicy\": {\n                    \"maximumRetryCount\": 3,\n                    \"name\": \"always\"\n                }\n            }\n        },\n        \"readinessTimeoutSeconds\": 120,\n        \"securityContext\": {},\n        \"eventTimeout\": \"30s\"\n    },\n    \"PlatformConfig\": null\n}", "platformConfig": "{\n    \"kind\": \"local\",\n    \"webAdmin\": {\n        \"enabled\": true,\n        \"listenAddress\": \":8081\"\n    },\n    \"healthCheck\": {\n        \"enabled\": true,\n        \"listenAddress\": \":8082\"\n    },\n    \"logger\": {\n        \"sinks\": {\n            \"stdout\": {\n                \"kind\": \"stdout\"\n            }\n        },\n        \"system\": [\n            {\n                \"level\": \"debug\",\n                \"sink\": \"stdout\"\n            }\n        ],\n        \"functions\": [\n            {\n                \"level\": \"debug\",\n                \"sink\": \"stdout\"\n            }\n        ]\n    },\n    \"metrics\": {},\n    \"scaleToZero\": {\n        \"multiTargetStrategy\": \"random\"\n    },\n    \"autoScale\": {},\n    \"cronTriggerCreationMode\": \"processor\",\n    \"functionReadinessTimeout\": \"2m0s\",\n    \"ingressConfig\": {},\n    \"kube\": {\n        \"defaultServiceType\": \"ClusterIP\",\n        \"defaultFunctionPodResources\": {\n            \"requests\": {},\n            \"limits\": {}\n        }\n    },\n    \"local\": {\n        \"FunctionContainersHealthinessEnabled\": false,\n        \"FunctionContainersHealthinessTimeout\": 5000000000,\n        \"FunctionContainersHealthinessInterval\": 30000000000\n    },\n    \"imageRegistryOverrides\": {},\n    \"opa\": {\n        \"address\": \"127.0.0.1:8181\",\n        \"clientKind\": \"nop\",\n        \"requestTimeout\": 10,\n        \"permissionQueryPath\": \"/v1/data/iguazio/authz/allow\",\n        \"permissionFilterPath\": \"/v1/data/iguazio/authz/filter_allowed\"\n    },\n    \"streamMonitoring\": {\n        \"webapiURL\": \"http://v3io-webapi:8081\",\n        \"v3ioRequestConcurrency\": 64\n    }\n}"}
23.05.02 08:16:24.371 cessor.healthcheck.server (I) Listening {"listenAddress": ":8082"}
23.05.02 08:16:24.371            processor.http (D) Creating worker pool {"num": 1}
23.05.02 08:16:24.371 sor.http.w0.python.logger (D) Creating listener socket {"path": "/tmp/nuclio-rpc-ch8cdm4kja0bes7paqb0.sock"}
23.05.02 08:16:24.372 sor.http.w0.python.logger (W) Python 3.6 runtime is deprecated and will soon not be supported. Please migrate your code and use Python 3.7 runtime (`python:3.7`) or higher
23.05.02 08:16:24.372 sor.http.w0.python.logger (D) Using Python wrapper script path {"path": "/opt/nuclio/_nuclio_wrapper.py"}
23.05.02 08:16:24.372 sor.http.w0.python.logger (D) Using Python handler {"handler": "main:handler"}
23.05.02 08:16:24.372 sor.http.w0.python.logger (D) Using Python executable {"path": "/opt/conda/bin/python3"}
23.05.02 08:16:24.372 sor.http.w0.python.logger (D) Setting PYTHONPATH {"value": "PYTHONPATH=/opt/nuclio"}
23.05.02 08:16:24.372 sor.http.w0.python.logger (D) Running wrapper {"command": "/opt/conda/bin/python3 -u /opt/nuclio/_nuclio_wrapper.py --handler main:handler --socket-path /tmp/nuclio-rpc-ch8cdm4kja0bes7paqb0.sock --platform-kind local --namespace nuclio --worker-id 0 --trigger-kind http --trigger-name myHttpTrigger --decode-event-strings"}
/opt/nuclio/_nuclio_wrapper.py:395: DeprecationWarning: There is no current event loop
  loop = asyncio.get_event_loop()
23.05.02 08:16:26.091 sor.http.w0.python.logger (I) Wrapper connected {"wid": 0, "pid": 19}
23.05.02 08:16:26.091 sor.http.w0.python.logger (D) Waiting for start
{"datetime": "2023-05-02 08:16:26,091", "level": "info", "message": "Replacing logger output", "with": {"handler_name": "default", "worker_id": "0"}}
23.05.02 08:16:26.091 sor.http.w0.python.logger (I) Init context...  0% {"worker_id": "0"}
/opt/conda/lib/python3.10/site-packages/torch/hub.py:286: UserWarning: You are about to download and run code from an untrusted repository. In a future release, this won't be allowed. To add the repository to your trusted list, change the command to {calling_fn}(..., trust_repo=False) and a command prompt will appear asking for an explicit confirmation of trust, or load(..., trust_repo=True), which will assume that the prompt is to be answered with 'yes'. You can also use load(..., trust_repo='check') which will only prompt for confirmation if the repo is not already trusted. This will eventually be the default behaviour
  warnings.warn(
Downloading: "https://github.com/ultralytics/yolov5/zipball/master" to /root/.cache/torch/hub/master.zip
requirements: /root/.cache/torch/hub/requirements.txt not found, check failed.
YOLOv5 🚀 2023-5-2 Python-3.10.9 torch-2.0.0 CUDA:0 (NVIDIA GeForce RTX 3090, 24260MiB)

Downloading https://github.com/ultralytics/yolov5/releases/download/v7.0/yolov5s.pt to yolov5s.pt...
100%|██████████| 14.1M/14.1M [00:01<00:00, 8.44MB/s]

Fusing layers... 
YOLOv5s summary: 213 layers, 7225885 parameters, 0 gradients
Adding AutoShape... 
23.05.02 08:16:36.209 sor.http.w0.python.logger (I) Init context...100% {"worker_id": "0"}
23.05.02 08:16:36.209 sor.http.w0.python.logger (D) Started
23.05.02 08:16:36.209                 processor (I) Starting event timeout watcher {"timeout": "30s"}
23.05.02 08:16:36.209 .webadmin.server.triggers (D) Registered custom route {"routeName": "triggers", "stream": false, "pattern": "/{id}/stats", "method": "GET"}
23.05.02 08:16:36.209 processor.webadmin.server (D) Registered resource {"name": "triggers"}
23.05.02 08:16:36.209                 processor (W) No metric sinks configured, metrics will not be published
23.05.02 08:16:36.209                 processor (D) Starting triggers {"triggersError": "json: unsupported value: encountered a cycle via *http.http"}
23.05.02 08:16:36.214            processor.http (I) Starting {"listenAddress": ":8080", "readBufferSize": 16384, "maxRequestBodySize": 33554432, "reduceMemoryUsage": false, "cors": null}
23.05.02 08:16:36.214 processor.webadmin.server (I) Listening {"listenAddress": ":8081"}
23.05.02 08:16:36.214                 processor (D) Processor started
 

@JattKisaan
Copy link

One update on this topic. I noticed that all the docker containers cvat launches when using serverless functions by default on boot were interfering with my ability to perform an Ubuntu desktop share.

I first noticed that I couldn't do this over my openvpn connection. But it seemed like the openvpn connection was being made successfully. So when I killed the openvpn services on both server and client I noticed that even on my home network, I couldn't use a desktop share. When I killed the docker containers, deleted my cvat directory, and rebooted, I was able to use a desktop share just fine.

I don't know if this holds any kind of clue to the issue at hand... Though even if it doesn't, if anyone can explain to me why what was happening might happen that would be most welcome!

bsekachev added a commit that referenced this issue May 11, 2023
<!-- Raise an issue to propose your change
(https://github.com/opencv/cvat/issues).
It helps to avoid duplication of efforts from multiple independent
contributors.
Discuss your ideas with maintainers to be sure that changes will be
approved and merged.
Read the [Contribution
guide](https://opencv.github.io/cvat/docs/contributing/). -->

<!-- Provide a general summary of your changes in the Title above -->

### Motivation and context
Resolved #5984 
Resolved #6049
Resolved #6041

- Compatible only with ``sam_vit_h_4b8939.pth`` weights. Need to
re-export ONNX mask decoder with some custom model changes (see below)
to support other weights (or just download them using links below)
- Need to redeploy the serverless function because its interface has
been changed.

Decoders for other weights:
sam_vit_l_0b3195.pth:
[Download](https://drive.google.com/file/d/1Nb5CJKQm_6s1n3xLSZYso6VNgljjfR-6/view?usp=sharing)
sam_vit_b_01ec64.pth:
[Download](https://drive.google.com/file/d/17cZAXBPaOABS170c9bcj9PdQsMziiBHw/view?usp=sharing)

Changes done in ONNX part:
```
git diff scripts/export_onnx_model.py
diff --git a/scripts/export_onnx_model.py b/scripts/export_onnx_model.py
index 8441258..18d5be7 100644
--- a/scripts/export_onnx_model.py
+++ b/scripts/export_onnx_model.py
@@ -138,7 +138,7 @@ def run_export(

     _ = onnx_model(**dummy_inputs)

-    output_names = ["masks", "iou_predictions", "low_res_masks"]
+    output_names = ["masks", "iou_predictions", "low_res_masks", "xtl", "ytl", "xbr", "ybr"]

     with warnings.catch_warnings():
         warnings.filterwarnings("ignore", category=torch.jit.TracerWarning)
bsekachev@DESKTOP-OTBLK26:~/sam$ git diff segment_anything/utils/onnx.py
diff --git a/segment_anything/utils/onnx.py b/segment_anything/utils/onnx.py
index 3196bdf..85729c1 100644
--- a/segment_anything/utils/onnx.py
+++ b/segment_anything/utils/onnx.py
@@ -87,7 +87,15 @@ class SamOnnxModel(nn.Module):
         orig_im_size = orig_im_size.to(torch.int64)
         h, w = orig_im_size[0], orig_im_size[1]
         masks = F.interpolate(masks, size=(h, w), mode="bilinear", align_corners=False)
-        return masks
+        masks = torch.gt(masks, 0).to(torch.uint8)
+        nonzero = torch.nonzero(masks)
+        xindices = nonzero[:, 3:4]
+        yindices = nonzero[:, 2:3]
+        ytl = torch.min(yindices).to(torch.int64)
+        ybr = torch.max(yindices).to(torch.int64)
+        xtl = torch.min(xindices).to(torch.int64)
+        xbr = torch.max(xindices).to(torch.int64)
+        return masks[:, :, ytl:ybr + 1, xtl:xbr + 1], xtl, ytl, xbr, ybr

     def select_masks(
         self, masks: torch.Tensor, iou_preds: torch.Tensor, num_points: int
@@ -132,7 +140,7 @@ class SamOnnxModel(nn.Module):
         if self.return_single_mask:
             masks, scores = self.select_masks(masks, scores, point_coords.shape[1])

-        upscaled_masks = self.mask_postprocessing(masks, orig_im_size)
+        upscaled_masks, xtl, ytl, xbr, ybr = self.mask_postprocessing(masks, orig_im_size)

         if self.return_extra_metrics:
             stability_scores = calculate_stability_score(
@@ -141,4 +149,4 @@ class SamOnnxModel(nn.Module):
             areas = (upscaled_masks > self.model.mask_threshold).sum(-1).sum(-1)
             return upscaled_masks, scores, stability_scores, areas, masks

-        return upscaled_masks, scores, masks
+        return upscaled_masks, scores, masks, xtl, ytl, xbr, ybr
```

### How has this been tested?
<!-- Please describe in detail how you tested your changes.
Include details of your testing environment, and the tests you ran to
see how your change affects other areas of the code, etc. -->

### Checklist
<!-- Go over all the following points, and put an `x` in all the boxes
that apply.
If an item isn't applicable for some reason, then ~~explicitly
strikethrough~~ the whole
line. If you don't do that, GitHub will show incorrect progress for the
pull request.
If you're unsure about any of these, don't hesitate to ask. We're here
to help! -->
- [x] I submit my changes into the `develop` branch
- [x] I have added a description of my changes into the
[CHANGELOG](https://github.com/opencv/cvat/blob/develop/CHANGELOG.md)
file
- [ ] I have updated the documentation accordingly
- [ ] I have added tests to cover my changes
- [x] I have linked related issues (see [GitHub docs](

https://help.github.com/en/github/managing-your-work-on-github/linking-a-pull-request-to-an-issue#linking-a-pull-request-to-an-issue-using-a-keyword))
- [x] I have increased versions of npm packages if it is necessary

([cvat-canvas](https://github.com/opencv/cvat/tree/develop/cvat-canvas#versioning),

[cvat-core](https://github.com/opencv/cvat/tree/develop/cvat-core#versioning),

[cvat-data](https://github.com/opencv/cvat/tree/develop/cvat-data#versioning)
and

[cvat-ui](https://github.com/opencv/cvat/tree/develop/cvat-ui#versioning))

### License

- [x] I submit _my code changes_ under the same [MIT License](
https://github.com/opencv/cvat/blob/develop/LICENSE) that covers the
project.
  Feel free to contact the maintainers if that's a concern.
@bsekachev
Copy link
Member

In the new implementation mask isn't sent from server to cclient anymore, only image embeddings.
Mask is calculated on client side.

Please read also some action required in PRs description to upgrade SAM if you wish to do that.

@whom-da
Copy link

whom-da commented May 19, 2023

For those still having "ERROR django.request: Service Unavailable" issues, I found yaochenglouis's answer at #2641 worked for me. Was just a firewall issue - do "ufw allow" on the port the Nuclio function is listening on.

@JattKisaan
Copy link

@whom-da dawg, thanks for this comment. I finally got things working after struggling for weeks! Because I have openvpn and ssh servers installed on my machine, I enabled the firewall which is disabled in Ubuntu by default. And so I had to issue sudo ufw allow 32772/tcp. A little more info is at the issue that I posted, #6087

@kirilman
Copy link

kirilman commented May 23, 2023

@bsekachev Hello, I am having a problem when using sam. When I click with ai tools, sam loads and then the following error pops up: Interaction error occurred. TypeError: Cannot read properties of undefined (reading 'length').
And cvat doesn't show anything in the image.
Test example for nuctl function gives positive result.

image=$(curl https://upload.wikimedia.org/wikipedia/en/7/7d/Lenna_%28test_image%29.png --output - | base64 | tr -d '\n')
cat << EOF > /tmp/input.json
{"image": "$image"}
EOF
cat /tmp/input.json | nuctl invoke yolov7x -c 'application/json'

cli

And example docker log sam container:

23.05.23 12:26:44.572 sor.http.w0.python.logger (I) Wrapper connected {"wid": 0, "pid": 20}
23.05.23 12:26:44.572 sor.http.w0.python.logger (D) Creating control connection {"wid": 0}
23.05.23 12:26:44.572 sor.http.w0.python.logger (D) Control connection created {"wid": 0}
23.05.23 12:26:44.572 sor.http.w0.python.logger (D) Waiting for start
23.05.23 12:26:44.572 sor.http.w1.python.logger (I) Wrapper connected {"wid": 1, "pid": 21}
23.05.23 12:26:44.572 sor.http.w1.python.logger (D) Creating control connection {"wid": 1}
23.05.23 12:26:44.572 sor.http.w1.python.logger (D) Control connection created {"wid": 1}
23.05.23 12:26:44.572 sor.http.w1.python.logger (D) Waiting for start
23.05.23 12:26:44.572 sor.http.w0.python.logger (I) Init context...  0% {"worker_id": "0"}
23.05.23 12:26:44.572 sor.http.w1.python.logger (I) Init context...  0% {"worker_id": "1"}
23.05.23 12:26:45.494 sor.http.w0.python.logger (I) Init context...100% {"worker_id": "0"}
23.05.23 12:26:45.494 sor.http.w0.python.logger (D) Sending data on control socket {"data_length": 2, "worker_id": "0"}
23.05.23 12:26:45.494 sor.http.w0.python.logger (D) Started
23.05.23 12:26:45.495 sor.http.w0.python.logger (D) Received control message {"messageKind": "wrapperInitialized"}
23.05.23 12:26:45.497 sor.http.w1.python.logger (I) Init context...100% {"worker_id": "1"}
23.05.23 12:26:45.497 sor.http.w1.python.logger (D) Started
23.05.23 12:26:45.497                 processor (I) Starting event timeout watcher {"timeout": "3m20s"}
23.05.23 12:26:45.497 sor.http.w1.python.logger (D) Sending data on control socket {"data_length": 2, "worker_id": "1"}
23.05.23 12:26:45.497 .webadmin.server.triggers (D) Registered custom route {"routeName": "triggers", "stream": false, "pattern": "/{id}/stats", "method": "GET"}
23.05.23 12:26:45.497 sor.http.w1.python.logger (D) Received control message {"messageKind": "wrapperInitialized"}
23.05.23 12:26:45.497 processor.webadmin.server (D) Registered resource {"name": "triggers"}
23.05.23 12:26:45.497                 processor (W) No metric sinks configured, metrics will not be published
23.05.23 12:26:45.498                 processor (D) Starting triggers {"triggersError": "json: unsupported value: encountered a cycle via *http.http"}
23.05.23 12:26:45.498            processor.http (I) Starting {"listenAddress": ":8080", "readBufferSize": 16384, "maxRequestBodySize": 33554432, "reduceMemoryUsage": false, "cors": null}
23.05.23 12:26:45.498 processor.webadmin.server (I) Listening {"listenAddress": ":8081"}
23.05.23 12:26:45.499                 processor (D) Processor started
23.05.23 12:31:47.288            processor.http (I) call handler {"worker_id": "0"}
23.05.23 12:36:47.295 sor.http.w1.python.logger (I) call handler {"worker_id": "1"}
23.05.23 12:37:04.391 sor.http.w0.python.logger (I) call handler {"worker_id": "0"}
23.05.23 12:37:18.427 sor.http.w1.python.logger (I) call handler {"worker_id": "1"}
23.05.23 12:38:50.742 sor.http.w0.python.logger (I) call handler {"worker_id": "0"}
23.05.23 12:52:42.241 sor.http.w1.python.logger (I) call handler {"worker_id": "1"}
23.05.23 12:54:59.591 sor.http.w0.python.logger (I) call handler {"worker_id": "0"}
23.05.23 13:06:35.378 sor.http.w1.python.logger (I) call handler {"worker_id": "1"}
23.05.23 14:16:33.684 sor.http.w0.python.logger (I) call handler {"worker_id": "0"}
23.05.23 14:27:57.120 sor.http.w1.python.logger (I) call handler {"worker_id": "1"}
23.05.23 14:29:21.038            processor.http (I) call handler {"worker_id": "0"}
23.05.23 14:29:41.620            processor.http (I) call handler {"worker_id": "1"}
23.05.23 14:30:24.948 sor.http.w0.python.logger (I) call handler {"worker_id": "0"}
23.05.23 14:35:00.712 sor.http.w1.python.logger (I) call handler {"worker_id": "1"}
23.05.23 14:47:58.526 sor.http.w0.python.logger (I) call handler {"worker_id": "0"}
23.05.23 14:49:09.423            processor.http (I) call handler {"worker_id": "1"}
23.05.23 14:49:58.230 sor.http.w0.python.logger (I) call handler {"worker_id": "0"}
23.05.23 14:52:27.784 sor.http.w1.python.logger (I) call handler {"worker_id": "1"}
23.05.23 14:53:04.726 sor.http.w0.python.logger (I) call handler {"worker_id": "0"}
23.05.23 14:53:26.355 sor.http.w1.python.logger (I) call handler {"worker_id": "1"}
23.05.23 14:53:44.996 sor.http.w0.python.logger (I) call handler {"worker_id": "0"}
23.05.23 14:54:25.299 sor.http.w1.python.logger (I) call handler {"worker_id": "1"}

@bsekachev
Copy link
Member

bsekachev commented May 23, 2023

@kirilman

Probably you did not upgdade CVAT till the latest version (2.4.4)

https://opencv.github.io/cvat/docs/administration/advanced/upgrade_guide/
https://opencv.github.io/cvat/docs/administration/basics/installation/#how-to-pullbuildupdate-cvat-images

You can also build from current source code using the following command:

docker compose -f docker-compose.yml -f docker-compose.dev.yml -f components/serverless/docker-compose.serverless.yml up -d --build

@tlpss
Copy link

tlpss commented Jun 15, 2023

@whom-da dawg, thanks for this comment. I finally got things working after struggling for weeks! Because I have openvpn and ssh servers installed on my machine, I enabled the firewall which is disabled in Ubuntu by default. And so I had to issue sudo ufw allow 32772/tcp. A little more info is at the issue that I posted, #6087

I also got SAM working by opening the nuclio port on ufw (though my port was different from the one above, so make sure to use 'nuctl get functions` to verify what port you need to open).

@bsekachev, maybe this could be added to the docs?

mikhail-treskin pushed a commit to retailnext/cvat that referenced this issue Jul 1, 2023
<!-- Raise an issue to propose your change
(https://github.com/opencv/cvat/issues).
It helps to avoid duplication of efforts from multiple independent
contributors.
Discuss your ideas with maintainers to be sure that changes will be
approved and merged.
Read the [Contribution
guide](https://opencv.github.io/cvat/docs/contributing/). -->

<!-- Provide a general summary of your changes in the Title above -->

### Motivation and context
Resolved cvat-ai#5984 
Resolved cvat-ai#6049
Resolved cvat-ai#6041

- Compatible only with ``sam_vit_h_4b8939.pth`` weights. Need to
re-export ONNX mask decoder with some custom model changes (see below)
to support other weights (or just download them using links below)
- Need to redeploy the serverless function because its interface has
been changed.

Decoders for other weights:
sam_vit_l_0b3195.pth:
[Download](https://drive.google.com/file/d/1Nb5CJKQm_6s1n3xLSZYso6VNgljjfR-6/view?usp=sharing)
sam_vit_b_01ec64.pth:
[Download](https://drive.google.com/file/d/17cZAXBPaOABS170c9bcj9PdQsMziiBHw/view?usp=sharing)

Changes done in ONNX part:
```
git diff scripts/export_onnx_model.py
diff --git a/scripts/export_onnx_model.py b/scripts/export_onnx_model.py
index 8441258..18d5be7 100644
--- a/scripts/export_onnx_model.py
+++ b/scripts/export_onnx_model.py
@@ -138,7 +138,7 @@ def run_export(

     _ = onnx_model(**dummy_inputs)

-    output_names = ["masks", "iou_predictions", "low_res_masks"]
+    output_names = ["masks", "iou_predictions", "low_res_masks", "xtl", "ytl", "xbr", "ybr"]

     with warnings.catch_warnings():
         warnings.filterwarnings("ignore", category=torch.jit.TracerWarning)
bsekachev@DESKTOP-OTBLK26:~/sam$ git diff segment_anything/utils/onnx.py
diff --git a/segment_anything/utils/onnx.py b/segment_anything/utils/onnx.py
index 3196bdf..85729c1 100644
--- a/segment_anything/utils/onnx.py
+++ b/segment_anything/utils/onnx.py
@@ -87,7 +87,15 @@ class SamOnnxModel(nn.Module):
         orig_im_size = orig_im_size.to(torch.int64)
         h, w = orig_im_size[0], orig_im_size[1]
         masks = F.interpolate(masks, size=(h, w), mode="bilinear", align_corners=False)
-        return masks
+        masks = torch.gt(masks, 0).to(torch.uint8)
+        nonzero = torch.nonzero(masks)
+        xindices = nonzero[:, 3:4]
+        yindices = nonzero[:, 2:3]
+        ytl = torch.min(yindices).to(torch.int64)
+        ybr = torch.max(yindices).to(torch.int64)
+        xtl = torch.min(xindices).to(torch.int64)
+        xbr = torch.max(xindices).to(torch.int64)
+        return masks[:, :, ytl:ybr + 1, xtl:xbr + 1], xtl, ytl, xbr, ybr

     def select_masks(
         self, masks: torch.Tensor, iou_preds: torch.Tensor, num_points: int
@@ -132,7 +140,7 @@ class SamOnnxModel(nn.Module):
         if self.return_single_mask:
             masks, scores = self.select_masks(masks, scores, point_coords.shape[1])

-        upscaled_masks = self.mask_postprocessing(masks, orig_im_size)
+        upscaled_masks, xtl, ytl, xbr, ybr = self.mask_postprocessing(masks, orig_im_size)

         if self.return_extra_metrics:
             stability_scores = calculate_stability_score(
@@ -141,4 +149,4 @@ class SamOnnxModel(nn.Module):
             areas = (upscaled_masks > self.model.mask_threshold).sum(-1).sum(-1)
             return upscaled_masks, scores, stability_scores, areas, masks

-        return upscaled_masks, scores, masks
+        return upscaled_masks, scores, masks, xtl, ytl, xbr, ybr
```

### How has this been tested?
<!-- Please describe in detail how you tested your changes.
Include details of your testing environment, and the tests you ran to
see how your change affects other areas of the code, etc. -->

### Checklist
<!-- Go over all the following points, and put an `x` in all the boxes
that apply.
If an item isn't applicable for some reason, then ~~explicitly
strikethrough~~ the whole
line. If you don't do that, GitHub will show incorrect progress for the
pull request.
If you're unsure about any of these, don't hesitate to ask. We're here
to help! -->
- [x] I submit my changes into the `develop` branch
- [x] I have added a description of my changes into the
[CHANGELOG](https://github.com/opencv/cvat/blob/develop/CHANGELOG.md)
file
- [ ] I have updated the documentation accordingly
- [ ] I have added tests to cover my changes
- [x] I have linked related issues (see [GitHub docs](

https://help.github.com/en/github/managing-your-work-on-github/linking-a-pull-request-to-an-issue#linking-a-pull-request-to-an-issue-using-a-keyword))
- [x] I have increased versions of npm packages if it is necessary

([cvat-canvas](https://github.com/opencv/cvat/tree/develop/cvat-canvas#versioning),

[cvat-core](https://github.com/opencv/cvat/tree/develop/cvat-core#versioning),

[cvat-data](https://github.com/opencv/cvat/tree/develop/cvat-data#versioning)
and

[cvat-ui](https://github.com/opencv/cvat/tree/develop/cvat-ui#versioning))

### License

- [x] I submit _my code changes_ under the same [MIT License](
https://github.com/opencv/cvat/blob/develop/LICENSE) that covers the
project.
  Feel free to contact the maintainers if that's a concern.
nmanovic pushed a commit that referenced this issue Sep 11, 2023
See these several issues. They are connected to each other in some way. 
The thing is that nuclio has a default timeout of 1 minute. With this
change we can force nuclio dashboard not to terminate the connection.
nuclio/nuclio#3016
#3301
#6041
mikhail-treskin pushed a commit to retailnext/cvat that referenced this issue Oct 25, 2023
See these several issues. They are connected to each other in some way. 
The thing is that nuclio has a default timeout of 1 minute. With this
change we can force nuclio dashboard not to terminate the connection.
nuclio/nuclio#3016
cvat-ai#3301
cvat-ai#6041
@tealeeseng
Copy link

For Ubuntu, nuctl get functions shows the list of "NODE PORT". We can then sudo ufw allow 32768/tcp if 32768 is found in the list of "NODE PORT".

@Commifreak
Copy link

To make it work from the first request, which takes 1.5 minute in my case, in addition to increasing eventTimeout like written above I had to add --socket-timeout 120 (60 seconds by default) to python3 $HOME/manage.py runmodwsgi command in supervisord/server.conf

That doesnt worked for me. I use the serveless traefik implementation. How to handle the 60 secs timeout here?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
need info Need more information to investigate the issue
Projects
None yet
Development

Successfully merging a pull request may close this issue.