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

Contributing to CVAT #5591

Closed
saifkhichi96 opened this issue Jan 16, 2023 · 11 comments
Closed

Contributing to CVAT #5591

saifkhichi96 opened this issue Jan 16, 2023 · 11 comments

Comments

@saifkhichi96
Copy link
Contributor

saifkhichi96 commented Jan 16, 2023

My actions before raising this issue

I successfully set up CVAT locally for annotation, and everything works as expected. But now, I want to make changes to CVAT itself (like updated UI, new buttons/functionalities, etc.). To do this, I followed the Contributing guidelines (https://opencv.github.io/cvat/docs/contributing/development-environment/).

Expected Behaviour

I was expecting CVAT to run in browser at http://localhost:3000, as described in the guidelines.

Current Behaviour

However, after I run the last command yarn run start:cvat-ui and then go to http://localhost:3000, I get the following error message in the browser:

"Cannot connect to the server
Make sure the CVAT backend and all necessary services (Database, Redis and Open Policy Agent) are running and avaliable. If you upgraded from version 2.2.0 or earlier, manual actions may be needed, see the Upgrade Guide."

I made sure that Redis is running by running systemctl start redis.service and then checking its status. Open Policy Agent is also running, which I verified by running docker ps. I am not sure how to check the database.

Context

I am trying to modify the UI of CVAT with our organization's branding, and add some additional functionality that is not currently available. And I need help setting up the local development environment. The Contributing guidelines in their current version feel incomplete and rather difficult to follow. Most of the instructions are focused on using CVAT, not building it with our own custom changes.

What can be the possible reasons for the error I am getting?

Your Environment

  • Ubuntu 20.04 and the latest version of Google Chrome.
  • Docker version 20.10.22, build 3a2c30b
  • Yarn 1.22.19
  • Node 18.0.0
@azhavoro
Copy link
Contributor

You also need to have all backend services running, make sure you follow the steps:

  • Open a new terminal window.
  • Run VScode from the virtual environment (run the following command from CVAT root directory):
  • source .env/bin/activate && code
  • Inside VScode, Open CVAT root dir
  • Select server: debug configuration and run it (F5) to run REST server and its workers

@saad-abdullah62
Copy link

@bsekachev I followed the steps that are mentioned in guide and here as well, I can connect to the browser, Redis and OPA are running, but I keep getting

Cannot connect to the server. Make sure the CVAT backend and all necessary services (Database, Redis and Open Policy Agent) are running and available. If you upgraded from version 2.2.0 or earlier, manual actions may be needed, see the [Upgrade Guide](https://opencv.github.io/cvat/docs/administration/advanced/upgrade_guide).

Can you kindly provide a hint what is going wrong?

@bsekachev
Copy link
Member

Could you please provide docker ps output? I am not sure cvat_opa container stated fine.

@bsekachev
Copy link
Member

@saad-abdullah62

And can I see logs from this container? docker logs cvat_opa_debug

@saad-abdullah62
Copy link

yeah sure here is the docker ps's output.

2c09274af8fc  openpolicyagent/opa:0.45.0-rootless   "/opa run --server -…"   About an hour ago   Up About an hour      0.0.0.0:8181->8181/tcp, :::8181->8181/tcp     cvat_opa_debug
4e6f48367bff   rbc_laserdetectronai                  "/bin/bash"              3 days ago          Up 2 hours                                                          rbclaser
abd1262a9df1   cvat/openvino.dextr:latest            "processor"              3 days ago          Up 3 days (healthy)   0.0.0.0:49153->8080/tcp, :::49153->8080/tcp   nuclio-nuclio-openvino-dextr```

@saad-abdullah62
Copy link

here are cvat_opa_debug logs.

{"addrs":[":8181"],"diagnostic-addrs":[],"level":"info","msg":"Initializing server.","time":"2023-02-06T07:35:32Z"}
{"level":"info","msg":"Starting bundle loader.","name":"cvat","plugin":"bundle","time":"2023-02-06T07:35:32Z"}
{"level":"info","msg":"Starting decision logger.","plugin":"decision_logs","time":"2023-02-06T07:35:32Z"}
{"level":"error","msg":"Bundle load failed: request failed: Get \"http://host.docker.internal:7000/api/auth/rules\": dial tcp: lookup host.docker.internal on 192.168.26.72:53: no such host","name":"cvat","plugin":"bundle","time":"2023-02-06T07:35:32Z"}
{"level":"error","msg":"Bundle load failed: request failed: Get \"http://host.docker.internal:7000/api/auth/rules\": dial tcp: lookup host.docker.internal on 192.168.26.72:53: no such host","name":"cvat","plugin":"bundle","time":"2023-02-06T07:35:32Z"}
{"level":"error","msg":"Bundle load failed: request failed: Get \"http://host.docker.internal:7000/api/auth/rules\": dial tcp: lookup host.docker.internal on 192.168.26.72:53: no such host","name":"cvat","plugin":"bundle","time":"2023-02-06T07:35:32Z"}
{"level":"error","msg":"Bundle load failed: request failed: Get \"http://host.docker.internal:7000/api/auth/rules\": dial tcp: lookup host.docker.internal on 192.168.26.72:53: no such host","name":"cvat","plugin":"bundle","time":"2023-02-06T07:35:32Z"}
{"current_version":"0.45.0","download_opa":"https://openpolicyagent.org/downloads/v0.48.0/opa_linux_amd64","latest_version":"0.48.0","level":"info","msg":"OPA is out of date.","release_notes":"https://github.com/open-policy-agent/opa/releases/tag/v0.48.0","time":"2023-02-06T07:35:33Z"}
{"level":"error","msg":"Bundle load failed: request failed: Get \"http://host.docker.internal:7000/api/auth/rules\": dial tcp: lookup host.docker.internal on 192.168.26.72:53: no such host","name":"cvat","plugin":"bundle","time":"2023-02-06T07:35:33Z"}
{"level":"error","msg":"Bundle load failed: request failed: Get \"http://host.docker.internal:7000/api/auth/rules\": dial tcp: lookup host.docker.internal on 192.168.26.72:53: no such host","name":"cvat","plugin":"bundle","time":"2023-02-06T07:35:33Z"}
{"level":"error","msg":"Bundle load failed: request failed: Get \"http://host.docker.internal:7000/api/auth/rules\": dial tcp: lookup host.docker.internal on 192.168.26.72:53: no such host","name":"cvat","plugin":"bundle","time":"2023-02-06T07:35:34Z"}
{"level":"error","msg":"Bundle load failed: request failed: Get \"http://host.docker.internal:7000/api/auth/rules\": dial tcp: lookup host.docker.internal on 192.168.26.72:53: no such host","name":"cvat","plugin":"bundle","time":"2023-02-06T07:35:36Z"}
{"level":"error","msg":"Bundle load failed: request failed: Get \"http://host.docker.internal:7000/api/auth/rules\": dial tcp: lookup host.docker.internal on 192.168.26.72:53: no such host","name":"cvat","plugin":"bundle","time":"2023-02-06T07:35:38Z"}
{"level":"error","msg":"Bundle load failed: request failed: Get \"http://host.docker.internal:7000/api/auth/rules\": dial tcp: lookup host.docker.internal on 192.168.26.72:53: no such host","name":"cvat","plugin":"bundle","time":"2023-02-06T07:35:43Z"}
{"level":"error","msg":"Bundle load failed: request failed: Get \"http://host.docker.internal:7000/api/auth/rules\": dial tcp: lookup host.docker.internal on 192.168.26.72:53: no such host","name":"cvat","plugin":"bundle","time":"2023-02-06T07:35:51Z"}
{"level":"error","msg":"Bundle load failed: request failed: Get \"http://host.docker.internal:7000/api/auth/rules\": dial tcp: lookup host.docker.internal on 192.168.26.72:53: no such host","name":"cvat","plugin":"bundle","time":"2023-02-06T07:36:00Z"}
{"level":"error","msg":"Bundle load failed: request failed: Get \"http://host.docker.internal:7000/api/auth/rules\": dial tcp: lookup host.docker.internal on 192.168.26.72:53: no such host","name":"cvat","plugin":"bundle","time":"2023-02-06T07:36:18Z"}
{"level":"error","msg":"Bundle load failed: request failed: Get \"http://host.docker.internal:7000/api/auth/rules\": dial tcp: lookup host.docker.internal on 192.168.26.72:53: no such host","name":"cvat","plugin":"bundle","time":"2023-02-06T07:36:48Z"}
{"level":"error","msg":"Bundle load failed: request failed: Get \"http://host.docker.internal:7000/api/auth/rules\": dial tcp: lookup host.docker.internal on 192.168.26.72:53: no such host","name":"cvat","plugin":"bundle","time":"2023-02-06T07:37:26Z"}
{"level":"error","msg":"Bundle load failed: request failed: Get \"http://host.docker.internal:7000/api/auth/rules\": dial tcp: lookup host.docker.internal on 192.168.26.72:53: no such host","name":"cvat","plugin":"bundle","time":"2023-02-06T07:38:24Z"}
{"client_addr":"172.17.0.1:48690","level":"info","msg":"Received request.","req_id":1,"req_method":"GET","req_path":"/health","time":"2023-02-06T07:40:03Z"}
{"client_addr":"172.17.0.1:48690","level":"info","msg":"Sent response.","req_id":1,"req_method":"GET","req_path":"/health","resp_bytes":49,"resp_duration":3.871738,"resp_status":500,"time":"2023-02-06T07:40:03Z"}
{"client_addr":"172.17.0.1:56488","level":"info","msg":"Received request.","req_id":2,"req_method":"GET","req_path":"/health","time":"2023-02-06T07:40:06Z"}
{"client_addr":"172.17.0.1:56488","level":"info","msg":"Sent response.","req_id":2,"req_method":"GET","req_path":"/health","resp_bytes":49,"resp_duration":0.26664,"resp_status":500,"time":"2023-02-06T07:40:06Z"}
{"level":"error","msg":"Bundle load failed: request failed: Get \"http://host.docker.internal:7000/api/auth/rules\": dial tcp: lookup host.docker.internal on 192.168.26.72:53: no such host","name":"cvat","plugin":"bundle","time":"2023-02-06T07:40:14Z"}
{"level":"error","msg":"Bundle load failed: request failed: Get \"http://host.docker.internal:7000/api/auth/rules\": dial tcp: lookup host.docker.internal on 192.168.26.72:53: no such host","name":"cvat","plugin":"bundle","time":"2023-02-06T07:42:15Z"}
{"level":"error","msg":"Bundle load failed: request failed: Get \"http://host.docker.internal:7000/api/auth/rules\": dial tcp: lookup host.docker.internal on 192.168.26.72:53: no such host","name":"cvat","plugin":"bundle","time":"2023-02-06T07:44:34Z"}
{"level":"error","msg":"Bundle load failed: request failed: Get \"http://host.docker.internal:7000/api/auth/rules\": dial tcp: lookup host.docker.internal on 192.168.26.72:53: no such host","name":"cvat","plugin":"bundle","time":"2023-02-06T07:46:48Z"}
{"level":"error","msg":"Bundle load failed: request failed: Get \"http://host.docker.internal:7000/api/auth/rules\": dial tcp: lookup host.docker.internal on 192.168.26.72:53: no such host","name":"cvat","plugin":"bundle","time":"2023-02-06T07:48:53Z"}
{"client_addr":"172.17.0.1:59276","level":"info","msg":"Received request.","req_id":3,"req_method":"GET","req_path":"/health","time":"2023-02-06T07:50:09Z"}
{"client_addr":"172.17.0.1:59276","level":"info","msg":"Sent response.","req_id":3,"req_method":"GET","req_path":"/health","resp_bytes":49,"resp_duration":0.297139,"resp_status":500,"time":"2023-02-06T07:50:09Z"}
{"client_addr":"172.17.0.1:59278","level":"info","msg":"Received request.","req_id":4,"req_method":"GET","req_path":"/health","time":"2023-02-06T07:50:12Z"}
{"client_addr":"172.17.0.1:59278","level":"info","msg":"Sent response.","req_id":4,"req_method":"GET","req_path":"/health","resp_bytes":49,"resp_duration":0.293622,"resp_status":500,"time":"2023-02-06T07:50:12Z"}
{"client_addr":"172.17.0.1:56350","level":"info","msg":"Received request.","req_id":5,"req_method":"GET","req_path":"/health","time":"2023-02-06T07:50:21Z"}
{"client_addr":"172.17.0.1:56350","level":"info","msg":"Sent response.","req_id":5,"req_method":"GET","req_path":"/health","resp_bytes":49,"resp_duration":0.352331,"resp_status":500,"time":"2023-02-06T07:50:21Z"}
{"client_addr":"172.17.0.1:56354","level":"info","msg":"Received request.","req_id":6,"req_method":"GET","req_path":"/health","time":"2023-02-06T07:50:24Z"}
{"client_addr":"172.17.0.1:56354","level":"info","msg":"Sent response.","req_id":6,"req_method":"GET","req_path":"/health","resp_bytes":49,"resp_duration":0.210677,"resp_status":500,"time":"2023-02-06T07:50:24Z"}
{"level":"error","msg":"Bundle load failed: request failed: Get \"http://host.docker.internal:7000/api/auth/rules\": dial tcp: lookup host.docker.internal on 192.168.26.72:53: no such host","name":"cvat","plugin":"bundle","time":"2023-02-06T07:50:42Z"}
{"client_addr":"172.17.0.1:55426","level":"info","msg":"Received request.","req_id":7,"req_method":"GET","req_path":"/health","time":"2023-02-06T07:51:00Z"}
{"client_addr":"172.17.0.1:55426","level":"info","msg":"Sent response.","req_id":7,"req_method":"GET","req_path":"/health","resp_bytes":49,"resp_duration":0.251148,"resp_status":500,"time":"2023-02-06T07:51:00Z"}
{"client_addr":"172.17.0.1:55434","level":"info","msg":"Received request.","req_id":8,"req_method":"GET","req_path":"/health","time":"2023-02-06T07:51:03Z"}
{"client_addr":"172.17.0.1:55434","level":"info","msg":"Sent response.","req_id":8,"req_method":"GET","req_path":"/health","resp_bytes":49,"resp_duration":0.240494,"resp_status":500,"time":"2023-02-06T07:51:03Z"}
{"level":"error","msg":"Bundle load failed: request failed: Get \"http://host.docker.internal:7000/api/auth/rules\": dial tcp: lookup host.docker.internal on 192.168.26.72:53: no such host","name":"cvat","plugin":"bundle","time":"2023-02-06T07:53:01Z"}
{"level":"error","msg":"Bundle load failed: request failed: Get \"http://host.docker.internal:7000/api/auth/rules\": dial tcp: lookup host.docker.internal on 192.168.26.72:53: no such host","name":"cvat","plugin":"bundle","time":"2023-02-06T07:54:59Z"}
{"client_addr":"172.17.0.1:56856","level":"info","msg":"Received request.","req_id":9,"req_method":"GET","req_path":"/health","time":"2023-02-06T07:55:36Z"}
{"client_addr":"172.17.0.1:56856","level":"info","msg":"Sent response.","req_id":9,"req_method":"GET","req_path":"/health","resp_bytes":49,"resp_duration":0.370229,"resp_status":500,"time":"2023-02-06T07:55:36Z"}
{"client_addr":"172.17.0.1:56864","level":"info","msg":"Received request.","req_id":10,"req_method":"GET","req_path":"/health","time":"2023-02-06T07:55:40Z"}
{"client_addr":"172.17.0.1:56864","level":"info","msg":"Sent response.","req_id":10,"req_method":"GET","req_path":"/health","resp_bytes":49,"resp_duration":0.299387,"resp_status":500,"time":"2023-02-06T07:55:40Z"}
{"client_addr":"172.17.0.1:56872","level":"info","msg":"Received request.","req_id":11,"req_method":"GET","req_path":"/health","time":"2023-02-06T07:55:40Z"}
{"client_addr":"172.17.0.1:56872","level":"info","msg":"Sent response.","req_id":11,"req_method":"GET","req_path":"/health","resp_bytes":49,"resp_duration":0.378436,"resp_status":500,"time":"2023-02-06T07:55:40Z"}
{"client_addr":"172.17.0.1:56878","level":"info","msg":"Received request.","req_id":12,"req_method":"GET","req_path":"/health","time":"2023-02-06T07:55:43Z"}
{"client_addr":"172.17.0.1:56878","level":"info","msg":"Sent response.","req_id":12,"req_method":"GET","req_path":"/health","resp_bytes":49,"resp_duration":0.28073,"resp_status":500,"time":"2023-02-06T07:55:43Z"}
{"client_addr":"172.17.0.1:58974","level":"info","msg":"Received request.","req_id":13,"req_method":"GET","req_path":"/health","time":"2023-02-06T07:56:00Z"}
{"client_addr":"172.17.0.1:58974","level":"info","msg":"Sent response.","req_id":13,"req_method":"GET","req_path":"/health","resp_bytes":49,"resp_duration":0.229042,"resp_status":500,"time":"2023-02-06T07:56:00Z"}
{"client_addr":"172.17.0.1:58986","level":"info","msg":"Received request.","req_id":14,"req_method":"GET","req_path":"/health","time":"2023-02-06T07:56:03Z"}
{"client_addr":"172.17.0.1:58986","level":"info","msg":"Sent response.","req_id":14,"req_method":"GET","req_path":"/health","resp_bytes":49,"resp_duration":0.231184,"resp_status":500,"time":"2023-02-06T07:56:03Z"}
{"level":"error","msg":"Bundle load failed: request failed: Get \"http://host.docker.internal:7000/api/auth/rules\": dial tcp: lookup host.docker.internal on 192.168.26.72:53: no such host","name":"cvat","plugin":"bundle","time":"2023-02-06T07:57:09Z"}
{"level":"error","msg":"Bundle load failed: request failed: Get \"http://host.docker.internal:7000/api/auth/rules\": dial tcp: lookup host.docker.internal on 192.168.26.72:53: no such host","name":"cvat","plugin":"bundle","time":"2023-02-06T07:59:14Z"}
{"client_addr":"172.17.0.1:34156","level":"info","msg":"Received request.","req_id":15,"req_method":"GET","req_path":"/health","time":"2023-02-06T08:00:07Z"}
{"client_addr":"172.17.0.1:34156","level":"info","msg":"Sent response.","req_id":15,"req_method":"GET","req_path":"/health","resp_bytes":49,"resp_duration":0.235168,"resp_status":500,"time":"2023-02-06T08:00:07Z"}
{"client_addr":"172.17.0.1:34158","level":"info","msg":"Received request.","req_id":16,"req_method":"GET","req_path":"/health","time":"2023-02-06T08:00:10Z"}
{"client_addr":"172.17.0.1:34158","level":"info","msg":"Sent response.","req_id":16,"req_method":"GET","req_path":"/health","resp_bytes":49,"resp_duration":0.246793,"resp_status":500,"time":"2023-02-06T08:00:10Z"}
{"level":"error","msg":"Bundle load failed: request failed: Get \"http://host.docker.internal:7000/api/auth/rules\": dial tcp: lookup host.docker.internal on 192.168.26.72:53: no such host","name":"cvat","plugin":"bundle","time":"2023-02-06T08:00:51Z"}
{"level":"error","msg":"Bundle load failed: request failed: Get \"http://host.docker.internal:7000/api/auth/rules\": dial tcp: lookup host.docker.internal on 192.168.26.72:53: no such host","name":"cvat","plugin":"bundle","time":"2023-02-06T08:02:59Z"}
{"level":"error","msg":"Bundle load failed: request failed: Get \"http://host.docker.internal:7000/api/auth/rules\": dial tcp: lookup host.docker.internal on 192.168.26.72:53: no such host","name":"cvat","plugin":"bundle","time":"2023-02-06T08:05:03Z"}
{"level":"error","msg":"Bundle load failed: request failed: Get \"http://host.docker.internal:7000/api/auth/rules\": dial tcp: lookup host.docker.internal on 192.168.26.72:53: no such host","name":"cvat","plugin":"bundle","time":"2023-02-06T08:06:52Z"}
{"client_addr":"172.17.0.1:52534","level":"info","msg":"Received request.","req_id":17,"req_method":"GET","req_path":"/health","time":"2023-02-06T08:08:03Z"}
{"client_addr":"172.17.0.1:52534","level":"info","msg":"Sent response.","req_id":17,"req_method":"GET","req_path":"/health","resp_bytes":49,"resp_duration":0.326197,"resp_status":500,"time":"2023-02-06T08:08:03Z"}
{"client_addr":"172.17.0.1:44876","level":"info","msg":"Received request.","req_id":18,"req_method":"GET","req_path":"/health","time":"2023-02-06T08:08:06Z"}
{"client_addr":"172.17.0.1:44876","level":"info","msg":"Sent response.","req_id":18,"req_method":"GET","req_path":"/health","resp_bytes":49,"resp_duration":0.344455,"resp_status":500,"time":"2023-02-06T08:08:06Z"}
{"client_addr":"172.17.0.1:45510","level":"info","msg":"Received request.","req_id":19,"req_method":"GET","req_path":"/health","time":"2023-02-06T08:08:30Z"}
{"client_addr":"172.17.0.1:45510","level":"info","msg":"Sent response.","req_id":19,"req_method":"GET","req_path":"/health","resp_bytes":49,"resp_duration":0.235391,"resp_status":500,"time":"2023-02-06T08:08:30Z"}
{"client_addr":"172.17.0.1:45514","level":"info","msg":"Received request.","req_id":20,"req_method":"GET","req_path":"/health","time":"2023-02-06T08:08:33Z"}
{"client_addr":"172.17.0.1:45514","level":"info","msg":"Sent response.","req_id":20,"req_method":"GET","req_path":"/health","resp_bytes":49,"resp_duration":0.23441,"resp_status":500,"time":"2023-02-06T08:08:33Z"}
{"client_addr":"172.17.0.1:49902","level":"info","msg":"Received request.","req_id":21,"req_method":"GET","req_path":"/health","time":"2023-02-06T08:08:50Z"}
{"client_addr":"172.17.0.1:49902","level":"info","msg":"Sent response.","req_id":21,"req_method":"GET","req_path":"/health","resp_bytes":49,"resp_duration":0.330713,"resp_status":500,"time":"2023-02-06T08:08:50Z"}
{"client_addr":"172.17.0.1:49904","level":"info","msg":"Received request.","req_id":22,"req_method":"GET","req_path":"/health","time":"2023-02-06T08:08:53Z"}
{"client_addr":"172.17.0.1:49904","level":"info","msg":"Sent response.","req_id":22,"req_method":"GET","req_path":"/health","resp_bytes":49,"resp_duration":0.227242,"resp_status":500,"time":"2023-02-06T08:08:53Z"}
{"level":"error","msg":"Bundle load failed: request failed: Get \"http://host.docker.internal:7000/api/auth/rules\": dial tcp: lookup host.docker.internal on 192.168.26.72:53: no such host","name":"cvat","plugin":"bundle","time":"2023-02-06T08:08:59Z"}
{"client_addr":"172.17.0.1:47080","level":"info","msg":"Received request.","req_id":23,"req_method":"GET","req_path":"/health","time":"2023-02-06T08:09:03Z"}
{"client_addr":"172.17.0.1:47080","level":"info","msg":"Sent response.","req_id":23,"req_method":"GET","req_path":"/health","resp_bytes":49,"resp_duration":0.23873,"resp_status":500,"time":"2023-02-06T08:09:03Z"}
{"client_addr":"172.17.0.1:54456","level":"info","msg":"Received request.","req_id":24,"req_method":"GET","req_path":"/health","time":"2023-02-06T08:09:06Z"}
{"client_addr":"172.17.0.1:54456","level":"info","msg":"Sent response.","req_id":24,"req_method":"GET","req_path":"/health","resp_bytes":49,"resp_duration":0.271998,"resp_status":500,"time":"2023-02-06T08:09:06Z"}
{"client_addr":"172.17.0.1:56904","level":"info","msg":"Received request.","req_id":25,"req_method":"GET","req_path":"/health","time":"2023-02-06T08:10:21Z"}
{"client_addr":"172.17.0.1:56904","level":"info","msg":"Sent response.","req_id":25,"req_method":"GET","req_path":"/health","resp_bytes":49,"resp_duration":0.418145,"resp_status":500,"time":"2023-02-06T08:10:21Z"}
{"client_addr":"172.17.0.1:56908","level":"info","msg":"Received request.","req_id":26,"req_method":"GET","req_path":"/health","time":"2023-02-06T08:10:24Z"}
{"client_addr":"172.17.0.1:56908","level":"info","msg":"Sent response.","req_id":26,"req_method":"GET","req_path":"/health","resp_bytes":49,"resp_duration":0.287986,"resp_status":500,"time":"2023-02-06T08:10:24Z"}
{"level":"error","msg":"Bundle load failed: request failed: Get \"http://host.docker.internal:7000/api/auth/rules\": dial tcp: lookup host.docker.internal on 192.168.26.72:53: no such host","name":"cvat","plugin":"bundle","time":"2023-02-06T08:10:47Z"}
{"level":"error","msg":"Bundle load failed: request failed: Get \"http://host.docker.internal:7000/api/auth/rules\": dial tcp: lookup host.docker.internal on 192.168.26.72:53: no such host","name":"cvat","plugin":"bundle","time":"2023-02-06T08:12:52Z"}
{"client_addr":"172.17.0.1:47168","level":"info","msg":"Received request.","req_id":27,"req_method":"GET","req_path":"/health","time":"2023-02-06T08:13:34Z"}
{"client_addr":"172.17.0.1:47168","level":"info","msg":"Sent response.","req_id":27,"req_method":"GET","req_path":"/health","resp_bytes":49,"resp_duration":0.885047,"resp_status":500,"time":"2023-02-06T08:13:34Z"}
{"client_addr":"172.17.0.1:38668","level":"info","msg":"Received request.","req_id":28,"req_method":"GET","req_path":"/health","time":"2023-02-06T08:13:37Z"}
{"client_addr":"172.17.0.1:38668","level":"info","msg":"Sent response.","req_id":28,"req_method":"GET","req_path":"/health","resp_bytes":49,"resp_duration":0.212666,"resp_status":500,"time":"2023-02-06T08:13:37Z"}
{"client_addr":"172.17.0.1:38672","level":"info","msg":"Received request.","req_id":29,"req_method":"GET","req_path":"/health","time":"2023-02-06T08:13:45Z"}
{"client_addr":"172.17.0.1:38672","level":"info","msg":"Sent response.","req_id":29,"req_method":"GET","req_path":"/health","resp_bytes":49,"resp_duration":0.786241,"resp_status":500,"time":"2023-02-06T08:13:45Z"}
{"client_addr":"172.17.0.1:59354","level":"info","msg":"Received request.","req_id":30,"req_method":"GET","req_path":"/health","time":"2023-02-06T08:13:48Z"}
{"client_addr":"172.17.0.1:59354","level":"info","msg":"Sent response.","req_id":30,"req_method":"GET","req_path":"/health","resp_bytes":49,"resp_duration":0.269039,"resp_status":500,"time":"2023-02-06T08:13:48Z"}
{"level":"error","msg":"Bundle load failed: request failed: Get \"http://host.docker.internal:7000/api/auth/rules\": dial tcp: lookup host.docker.internal on 192.168.26.72:53: no such host","name":"cvat","plugin":"bundle","time":"2023-02-06T08:14:58Z"}
{"level":"error","msg":"Bundle load failed: request failed: Get \"http://host.docker.internal:7000/api/auth/rules\": dial tcp: lookup host.docker.internal on 192.168.26.72:53: no such host","name":"cvat","plugin":"bundle","time":"2023-02-06T08:16:39Z"}
{"level":"error","msg":"Bundle load failed: request failed: Get \"http://host.docker.internal:7000/api/auth/rules\": dial tcp: lookup host.docker.internal on 192.168.26.72:53: no such host","name":"cvat","plugin":"bundle","time":"2023-02-06T08:18:30Z"}
{"client_addr":"172.17.0.1:47816","level":"info","msg":"Received request.","req_id":31,"req_method":"GET","req_path":"/health","time":"2023-02-06T08:20:27Z"}
{"client_addr":"172.17.0.1:47816","level":"info","msg":"Sent response.","req_id":31,"req_method":"GET","req_path":"/health","resp_bytes":49,"resp_duration":0.231427,"resp_status":500,"time":"2023-02-06T08:20:27Z"}
{"level":"error","msg":"Bundle load failed: request failed: Get \"http://host.docker.internal:7000/api/auth/rules\": dial tcp: lookup host.docker.internal on 192.168.26.72:53: no such host","name":"cvat","plugin":"bundle","time":"2023-02-06T08:20:31Z"}
{"client_addr":"172.17.0.1:42138","level":"info","msg":"Received request.","req_id":32,"req_method":"GET","req_path":"/health","time":"2023-02-06T08:20:54Z"}
{"client_addr":"172.17.0.1:42138","level":"info","msg":"Sent response.","req_id":32,"req_method":"GET","req_path":"/health","resp_bytes":49,"resp_duration":0.226344,"resp_status":500,"time":"2023-02-06T08:20:54Z"}
{"client_addr":"172.17.0.1:60858","level":"info","msg":"Received request.","req_id":33,"req_method":"GET","req_path":"/health","time":"2023-02-06T08:20:57Z"}
{"client_addr":"172.17.0.1:60858","level":"info","msg":"Sent response.","req_id":33,"req_method":"GET","req_path":"/health","resp_bytes":49,"resp_duration":0.238457,"resp_status":500,"time":"2023-02-06T08:20:57Z"}
{"level":"error","msg":"Bundle load failed: request failed: Get \"http://host.docker.internal:7000/api/auth/rules\": dial tcp: lookup host.docker.internal on 192.168.26.72:53: no such host","name":"cvat","plugin":"bundle","time":"2023-02-06T08:22:51Z"}
{"client_addr":"172.17.0.1:58072","level":"info","msg":"Received request.","req_id":34,"req_method":"GET","req_path":"/health","time":"2023-02-06T08:23:40Z"}
{"client_addr":"172.17.0.1:58072","level":"info","msg":"Sent response.","req_id":34,"req_method":"GET","req_path":"/health","resp_bytes":49,"resp_duration":0.279937,"resp_status":500,"time":"2023-02-06T08:23:40Z"}
{"client_addr":"172.17.0.1:58078","level":"info","msg":"Received request.","req_id":35,"req_method":"GET","req_path":"/health","time":"2023-02-06T08:23:43Z"}
{"client_addr":"172.17.0.1:58078","level":"info","msg":"Sent response.","req_id":35,"req_method":"GET","req_path":"/health","resp_bytes":49,"resp_duration":0.237364,"resp_status":500,"time":"2023-02-06T08:23:43Z"}
{"client_addr":"172.17.0.1:59788","level":"info","msg":"Received request.","req_id":36,"req_method":"GET","req_path":"/health","time":"2023-02-06T08:23:56Z"}
{"client_addr":"172.17.0.1:59788","level":"info","msg":"Sent response.","req_id":36,"req_method":"GET","req_path":"/health","resp_bytes":49,"resp_duration":1.127709,"resp_status":500,"time":"2023-02-06T08:23:56Z"}
{"client_addr":"172.17.0.1:59792","level":"info","msg":"Received request.","req_id":37,"req_method":"GET","req_path":"/health","time":"2023-02-06T08:23:59Z"}
{"client_addr":"172.17.0.1:59792","level":"info","msg":"Sent response.","req_id":37,"req_method":"GET","req_path":"/health","resp_bytes":49,"resp_duration":0.222836,"resp_status":500,"time":"2023-02-06T08:23:59Z"}
{"client_addr":"172.17.0.1:54684","level":"info","msg":"Received request.","req_id":38,"req_method":"GET","req_path":"/health","time":"2023-02-06T08:24:34Z"}
{"client_addr":"172.17.0.1:54684","level":"info","msg":"Sent response.","req_id":38,"req_method":"GET","req_path":"/health","resp_bytes":49,"resp_duration":0.441316,"resp_status":500,"time":"2023-02-06T08:24:34Z"}
{"client_addr":"172.17.0.1:54950","level":"info","msg":"Received request.","req_id":39,"req_method":"GET","req_path":"/health","time":"2023-02-06T08:24:37Z"}
{"client_addr":"172.17.0.1:54950","level":"info","msg":"Sent response.","req_id":39,"req_method":"GET","req_path":"/health","resp_bytes":49,"resp_duration":0.279676,"resp_status":500,"time":"2023-02-06T08:24:37Z"}
{"client_addr":"172.17.0.1:54962","level":"info","msg":"Received request.","req_id":40,"req_method":"GET","req_path":"/health","time":"2023-02-06T08:24:45Z"}
{"client_addr":"172.17.0.1:54962","level":"info","msg":"Sent response.","req_id":40,"req_method":"GET","req_path":"/health","resp_bytes":49,"resp_duration":0.310033,"resp_status":500,"time":"2023-02-06T08:24:45Z"}
{"level":"error","msg":"Bundle load failed: request failed: Get \"http://host.docker.internal:7000/api/auth/rules\": dial tcp: lookup host.docker.internal on 192.168.26.72:53: no such host","name":"cvat","plugin":"bundle","time":"2023-02-06T08:25:09Z"}
{"level":"error","msg":"Bundle load failed: request failed: Get \"http://host.docker.internal:7000/api/auth/rules\": dial tcp: lookup host.docker.internal on 192.168.26.72:53: no such host","name":"cvat","plugin":"bundle","time":"2023-02-06T08:27:09Z"}
{"level":"error","msg":"Bundle load failed: request failed: Get \"http://host.docker.internal:7000/api/auth/rules\": dial tcp: lookup host.docker.internal on 192.168.26.72:53: no such host","name":"cvat","plugin":"bundle","time":"2023-02-06T08:29:32Z"}
{"level":"error","msg":"Bundle load failed: request failed: Get \"http://host.docker.internal:7000/api/auth/rules\": dial tcp: lookup host.docker.internal on 192.168.26.72:53: no such host","name":"cvat","plugin":"bundle","time":"2023-02-06T08:31:20Z"}
{"level":"error","msg":"Bundle load failed: request failed: Get \"http://host.docker.internal:7000/api/auth/rules\": dial tcp: lookup host.docker.internal on 192.168.26.72:53: no such host","name":"cvat","plugin":"bundle","time":"2023-02-06T08:33:28Z"}
{"level":"error","msg":"Bundle load failed: request failed: Get \"http://host.docker.internal:7000/api/auth/rules\": dial tcp: lookup host.docker.internal on 192.168.26.72:53: no such host","name":"cvat","plugin":"bundle","time":"2023-02-06T08:35:30Z"}
{"current_version":"0.45.0","download_opa":"https://openpolicyagent.org/downloads/v0.48.0/opa_linux_amd64","latest_version":"0.48.0","level":"info","msg":"OPA is out of date.","release_notes":"https://github.com/open-policy-agent/opa/releases/tag/v0.48.0","time":"2023-02-06T08:35:33Z"}
{"level":"error","msg":"Bundle load failed: request failed: Get \"http://host.docker.internal:7000/api/auth/rules\": dial tcp: lookup host.docker.internal on 192.168.26.72:53: no such host","name":"cvat","plugin":"bundle","time":"2023-02-06T08:37:12Z"}
{"level":"error","msg":"Bundle load failed: request failed: Get \"http://host.docker.internal:7000/api/auth/rules\": dial tcp: lookup host.docker.internal on 192.168.26.72:53: no such host","name":"cvat","plugin":"bundle","time":"2023-02-06T08:39:28Z"}
{"level":"error","msg":"Bundle load failed: request failed: Get \"http://host.docker.internal:7000/api/auth/rules\": dial tcp: lookup host.docker.internal on 192.168.26.72:53: no such host","name":"cvat","plugin":"bundle","time":"2023-02-06T08:41:50Z"}
{"level":"error","msg":"Bundle load failed: request failed: Get \"http://host.docker.internal:7000/api/auth/rules\": dial tcp: lookup host.docker.internal on 192.168.26.72:53: no such host","name":"cvat","plugin":"bundle","time":"2023-02-06T08:44:01Z"}


@bsekachev
Copy link
Member

bsekachev commented Feb 6, 2023

@saifkhichi96

Try to remove this container and use this command instead:
docker run -d --rm --name cvat_opa_debug -p 8181:8181 -v ${PWD}/cvat/apps/iam/rules:/rules --network=host openpolicyagent/opa:0.45.0-rootless run --server --set=decision_logs.console=true /rules (from CVAT root directory)

@saifkhichi96
Copy link
Contributor Author

@saifkhichi96

Try to remove this container and use this command instead: docker run -d --rm --name cvat_opa_debug -p 8181:8181 -v ${PWD}/cvat/apps/iam/rules:/rules --network=host openpolicyagent/opa:0.45.0-rootless run --server --set=decision_logs.console=true /rules (from CVAT root directory)

This fixed the problem for me. Thanks!

@Tigran-Sargsyan
Copy link

Going into the following directory and cleaning the storage fixed the problem for me!
/var/lib/docker/volumes/cvat_cvat_data/_data/

(
You can ensure if your problem was with storage by running
docker exec -t cvat_server python manage.py health_check
)

@spped2000
Copy link

sudo apt-get install unzip
export CVAT_VERSION="v2.2.0"
cd cvat
docker compose down
cd ..
mv cvat cvat_170
wget https://github.com/opencv/cvat/archive/refs/tags/${CVAT_VERSION}.zip
unzip ${CVAT_VERSION}.zip && mv cvat-${CVAT_VERSION:1} cvat
cd cvat
docker pull cvat/server:${CVAT_VERSION}
docker tag cvat/server:${CVAT_VERSION} openvino/cvat_server:latest
docker pull cvat/ui:${CVAT_VERSION}
docker tag cvat/ui:${CVAT_VERSION} openvino/cvat_ui:latest

docker stop $(docker ps -aq)
docker compose up -d

@iaverypadberg
Copy link

firewall issue was causing my problems, see this post for the fix. #6041 (comment)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

7 participants