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

404 error on new install #7469

Closed
2 tasks done
MartinKlefas opened this issue Feb 9, 2024 · 9 comments
Closed
2 tasks done

404 error on new install #7469

MartinKlefas opened this issue Feb 9, 2024 · 9 comments
Labels
bug Something isn't working

Comments

@MartinKlefas
Copy link

Actions before raising this issue

  • I searched the existing issues and did not find anything similar.
  • I read/searched the docs

Steps to Reproduce

I've followed the guide here to install https://discordapp.com/channels/1000789942802337834/1000789943293063257/1205268156482846730 and the last step is to connect ot localhost:8080 when I do all I get is a 404 error page. I've checked it's coming from this by taking the containers down, and when I do I get a host not found error.

I don'tknow if there's files missing from github clones somehow, or if there's a config step missing from the install instructions, but can someone point me towards what I should change to get a home page of some kind

Expected Behavior

Open the homepage for the new server

Possible Solution

No response

Context

Brand new install on a local linux machine, and then a second attempt on a clean aws machine.

Environment

git clone from 08/02/2024
ubuntu 20.04 local
aws linux on ec2 instance
ubuntu 20.04 on remote machine for one last try!
@MartinKlefas MartinKlefas added the bug Something isn't working label Feb 9, 2024
@bsekachev
Copy link
Member

Hmmm..

If you deployed on AWS, you can't use localhost :)
It should have a specific IP address, but when in browser you use localhost it asks your computer to have this server up

@MartinKlefas
Copy link
Author

Hmmm..

If you deployed on AWS, you can't use localhost :) It should have a specific IP address, but when in browser you use localhost it asks your computer to have this server up

Yes, sorry I should perhaps have been more clear. When using my local machine I went to localhost from that local machine, an it served the 404 error.
when using a remote machine, I first opened the port on the relevant firewall for that remote machine and then went to the public facing IP of the machine.

In each instance I got a very specific looking 404 error page - with a particular font etc. When I turned off the containers that error page no longer came up.

I can run docker ps - but there were no errors starting the containers for CVAT and no other docker processes running as there was literally nothing else on the machine.

@bsekachev
Copy link
Member

went to the public facing IP of the machine.

You deployed on localhost, you can't use public IP. It is about security policies.
If you are planning to use on public IP, please export corresponding env variable and upgrade a port in config file: https://opencv.github.io/cvat/docs/faq/#how-to-change-default-cvat-hostname-or-port

@MartinKlefas
Copy link
Author

went to the public facing IP of the machine.

You deployed on localhost, you can't use public IP. It is about security policies. If you are planning to use on public IP, please export corresponding env variable and upgrade a port in config file: https://opencv.github.io/cvat/docs/faq/#how-to-change-default-cvat-hostname-or-port

Sorry I shouldn't have conflated the error on different machines back to one - I was trying to say that the behaviour was the same or similar from different installs. On the AWS machine I changed the configs as intended.
The error seems to be different today on my local machine though:
image

I've taken a screen recording of the process to get to error in case that helps. As mentioned in there I replaced 8080 & 8090 in the docker yaml file with 8082 and 8092 - maybe that needs changing elsewhere?

CVAT.install.error.mp4

@bsekachev
Copy link
Member

The error seems to be different today on my local machine though:

First of all, please check /healthcheck response in the browser console (F12, Network, Refresh page, wait).

@MartinKlefas
Copy link
Author

Similar to the homepage - spinning animated connection wheel then the same error message:
image

@bsekachev
Copy link
Member

Please, check one more time what the guide suggests to change and what you changed in the videofile.
That is not the same..

@MartinKlefas
Copy link
Author

Sorry I did a search and replace, and then a find to "demonstrate" the change and obviously picked the wrong place - I've had a look back and it's also changed in the right place:
image

It's also changed in some extra places that aren't mentioned though, so I've put those back for to 8080 to see if that fixes anything and the healthcheck runs for a bit longer maybe, but still comes up as unavailable:
image

@MartinKlefas
Copy link
Author

ok, healthcheck wasn't working, but the main screen now seems to.
It seems that whatever is on my port 8080 and my subsequent attempts to side-step it are what's caused all the issues.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants