question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

404 Not found error when loading the browser UI for CVAT

See original GitHub issue

My actions before raising this issue

  • Read/searched the docs
  • Searched past issues

I have installed and previously used the CVAT server in my remote system (Ubuntu 18.04) and accessed it from the default URL localhost:8080. This usually worked fine. For solving previous issues, I had to start a brand new clone of the repo (development branch and up-to-date) and attempted to rebuild the docker containers using docker-compose. Since there were already images available for the containers, I could directly up the container (skipping the rebuild) with sudo -E docker-compose up -d. The output of this also seems to up the containers without issues. I use the -E flag for environment variables http_proxy, https_proxy, and no_proxy, which are enterprised defined. I have also set the docker/config.json accordingly. I also access the Ubuntu host from a remote connection, using Putty, and behind a corporate VPN.

When trying to access the default localhost:8080 where CVAT runs (set in Putty in my tunnel connections), I get a 404 Not found Error using Chrome. I have experimented with setting CVAT_HOST environment variable to localhost or http://localhost or 127.0.0.1, but none seem not to have a positive effect, and CVAT is not able to load the UI.

When accessing the container logs, I see that traefik has errors regarding /etc/traefik/rules file not found. This path is mentioned within the docker-compose.yml. Note also that I don’t have a cvat_proxy container or a docker-compose.override.yml file, and am not aware of how to set these or if they are necessary. Could someone provide some guidance in order to be able to load the UI again? Many thanks in advance!

docker-compose.yml as follows:

` version: ‘3.3’

services: cvat_db: container_name: cvat_db image: postgres:10-alpine restart: always environment: POSTGRES_USER: root POSTGRES_DB: cvat POSTGRES_HOST_AUTH_METHOD: trust volumes: - cvat_db:/var/lib/postgresql/data networks: - cvat

cvat_redis: container_name: cvat_redis image: redis:4.0-alpine restart: always networks: - cvat

cvat: container_name: cvat image: openvino/cvat_server restart: always depends_on: - cvat_redis - cvat_db - cvat_opa environment: DJANGO_MODWSGI_EXTRA_ARGS: ‘’ ALLOWED_HOSTS: ‘*’ CVAT_REDIS_HOST: ‘cvat_redis’ CVAT_POSTGRES_HOST: ‘cvat_db’ ADAPTIVE_AUTO_ANNOTATION: ‘false’ no_proxy: elasticsearch,kibana,logstash,nuclio,opa,${no_proxy} labels: - traefik.enable=true - traefik.http.services.cvat.loadbalancer.server.port=8080 - traefik.http.routers.cvat.rule=Host(${CVAT_HOST:-localhost}) && PathPrefix(/api/, /git/, /opencv/, /static/, /admin, /documentation/, /django-rq) - traefik.http.routers.cvat.entrypoints=web volumes: - cvat_data:/home/django/data - cvat_keys:/home/django/keys - cvat_logs:/home/django/logs networks: - cvat

cvat_ui: container_name: cvat_ui image: openvino/cvat_ui restart: always depends_on: - cvat labels: - traefik.enable=true - traefik.http.services.cvat-ui.loadbalancer.server.port=80 - traefik.http.routers.cvat-ui.rule=Host(${CVAT_HOST:-localhost}) - traefik.http.routers.cvat-ui.entrypoints=web networks: - cvat

traefik: image: traefik:v2.4 container_name: traefik restart: always command: - ‘–providers.docker.exposedByDefault=false’ - ‘–providers.docker.network=cvat’ - ‘–entryPoints.web.address=:8080’ - ‘–providers.file.directory=/etc/traefik/rules’ # Uncomment to get Traefik dashboard # - “–entryPoints.dashboard.address=:8090” # - “–api.dashboard=true” # labels: # - traefik.enable=true # - traefik.http.routers.dashboard.entrypoints=dashboard # - traefik.http.routers.dashboard.service=api@internal # - traefik.http.routers.dashboard.rule=Host(${CVAT_HOST:-localhost}) ports: - 8080:8080 - 8090:8090 volumes: - /var/run/docker.sock:/var/run/docker.sock:ro networks: - cvat

cvat_opa: container_name: cvat_opa image: openpolicyagent/opa:0.34.2-rootless restart: always networks: cvat: aliases: - opa volumes: - ./cvat/apps/iam/rules:/rules ports: - ‘8181:8181’ command: run --server --addr :8181 --set=decision_logs.console=true /rules

volumes: cvat_db: cvat_data: cvat_keys: cvat_logs:

networks: cvat: `

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Comments:8 (3 by maintainers)

github_iconTop GitHub Comments

2reactions
20jeka08commented, Oct 20, 2022

I also have false 404 in Ubuntu. Why just don’t make Qt aaplication, it is really just not a big utillity?

1reaction
azhavorocommented, Feb 17, 2022

Are you have any exported proxy environment variables on the server? If yes try to set empty values for the traefik service like this

  traefik:
    image: traefik:v2.4
    container_name: traefik
    restart: always
    environment:
      http_proxy: ""
      https_proxy: ""
      HTTP_PROXY: ""
      HTTPS_PROXY: ""
    command:
   ...
Read more comments on GitHub >

github_iconTop Results From Across the Web

404 Not found error when loading the browser UI for CVAT ...
When i access the default localhost:8080 ,I get the 404 error, The traefik log is this, How to solve it?I test it on...
Read more >
opencv-cvat/public - Gitter
After I log in as a superuser and press F12 (console tab), I see a lot of error messages. It isnot very clear...
Read more >
404 Page Not Found Error: What It Is and How to Fix It - Lifewire
The 404 Not Found error, also called Error 404 or an HTTP 404 error, means that the web page you were trying to...
Read more >
How to use CVAT for computer vision [2022 updates]
In this post, learn about CVAT's ability to make object detection annotations on images. See the steps used to annotate a public aerial ......
Read more >
What Is a 404 Error? How to Deal With the Web Error
A 404 error indicates that the webpage you're trying to reach can't be found, and usually means that the page has moved or...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found