cvat: Remote access results in 404 Not Found error (nginx/1.16.1)
I’ve set up and installed cvat on a remote PC connected to a LAN, from which I use my laptop to access cvat remotely. It seems like it’s able to connect to cvat remotely, but there’s no web page found, giving the 404 Not Found error as per the title.
I’ve set up the docker-compose.override.yml file as follows:
version: "2.3"
services:
cvat:
environment:
ALLOWED_HOSTS: "*"
UI_SCHEME: http
UI_HOST: 192.168.10.4
ports:
- "80:8080"
cvat_ui:
build:
args:
REACT_APP_API_HOST: 192.168.10.4
REACT_APP_API_PORT: 8080
The file docker-compose.yml is left as is.
After rebuilding with
docker-compose build
and starting the cvat server with
docker-compose -f docker-compose.yml -f docker-compose.override.yml up -d
the error still persists.
About this issue
- Original URL
- State: closed
- Created 4 years ago
- Comments: 18 (4 by maintainers)
For version 3.3 only deleting server{…} block from cvat_proxy/conf.d/cvat.conf.template file and restarting solved the issue.
Please, follow the docs: https://openvinotoolkit.github.io/cvat/docs/faq/#how-to-change-default-cvat-hostname-or-port
@azhavoro Thanks this helped me. I had to use a wildcard though, because cav-ui seems to mix IPs on Client-Side (server and client ips). When I set CVAT_HOST only to the Client IP I will get 404 Errors - I think because the client won’t be able to reach the server IP then (not verified). Nevertheless it does work with wildcard. Using only “*” as wildcard does not work either.
it seems that you just need to specify CVAT_HOST as the installation guide shows. The method you use is deprecated
Thanks for your link, I’ve checked but dont understand why it must be the domain instead of localhost (sorry I’m not so good with technology)
@RomanVeretenov This helped. I added ALLOWED_HOST: ‘*’ to environment sections and rebuilt the docker container. Then the login succeeded.
I’m using last
developcommit (8afb5dda2a6471ff9274a6ac18c6a425786ddfea) on windows and face following issue:cvat gui can’t connect cvat database when I’m accessing cvat from outside of our vpn. I have forwarded a port (on homeip.net) and added
CVAT_HOST: .homeip.netto docker-compose.ymlGui is accessible (on <some_name>.homeip.net:38811) but when I connect I see following error message
Opening the console, I see this message
I have added also ALLOWED_HOST: ‘*’ to all container’s
environmentsectionso my docker-compose is now following:
In cvat’s console, I see following messages
Another remark is, if I connect the gui while I’m connected to VPN (where the cvat is physically located) and set
CVAT_HOST: 192.168.100.176, everything works fine