404 Page not found on CVAT server link
Closed this issue · 3 comments
I am encountering the same issue as described in the title. I have searched this in the history issues.
I am sure I have export CVAT_HOST correctly before the up
command, like this:
CVAT_HOST=my_host_ip docker compose up -d
I have also checked logs of cvat_db, cvat_server and cvat_opa. Only cvat_opa show some errors.
I have attached the log output for each service here.
log1.txt
log2.txt
log3.txt
If I run health_check, it report everything is working, no error or warning message reported.
Cache backend: default ... working
Cache backend: media ... working
DatabaseBackend ... working
DiskUsage ... working
MemoryUsage ... working
OPAHealthCheck ... working
So what is the problem?
There are no `up` and `down` commands for docker, you probably mean `docker compose`.
Seems you just forgot to export the CVAT_HOST environment variable before the `up` command.
If this does not help, please provide the exact steps on how we can reproduce the problem.
Originally posted by @azhavoro in #7072 (comment)
@ywangwxd what is output of docker inspect --format '{{ index .Config.Labels "traefik.http.routers.cvat.rule"}}' cvat_server
?
@ywangwxd what is output of
docker inspect --format '{{ index .Config.Labels "traefik.http.routers.cvat.rule"}}' cvat_server
?
I got the solution. Using hostname instead of the ip address when export CVAT_HOST. This is very tricky.
There is only one reason for this - the HOST header that comes to traefik does not match the Host value in the configuration.