404 Not found error when loading the browser UI for CVAT
See original GitHub issueMy 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:
- Created 2 years ago
- Comments:8 (3 by maintainers)
Top GitHub Comments
I also have false 404 in Ubuntu. Why just don’t make Qt aaplication, it is really just not a big utillity?
Are you have any exported proxy environment variables on the server? If yes try to set empty values for the traefik service like this