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

CVAT : Localhost refused to connect. #1170

Closed
AhmadM-DL opened this issue Feb 20, 2020 · 5 comments
Closed

CVAT : Localhost refused to connect. #1170

AhmadM-DL opened this issue Feb 20, 2020 · 5 comments

Comments

@AhmadM-DL
Copy link

AhmadM-DL commented Feb 20, 2020

I am trying to get CVAT to work on windows 7.
I have docker version 19.03.1, build 74b1e89e8a.

After running :
docker-compose build

Then:
docker-compose up -d

Output:

Creating cvat_db ... done
Creating cvat_redis ... done
Creating cvat ... done
Creating cvat_ui ... done

However the server is not actually up as I can't really connect to it on localhost:8080.

docker logs cvat output: cvat_log.txt

@bsekachev
Copy link
Member

@AhmadM-DL

Hi, try this fix: #1146

@AhmadM-DL
Copy link
Author

Thanks @bsekachev for your time.

It seems it have worked.

But now I have the same problem with different logging output.
The problem this time is in cvat_db:

cvat_db_log.txt

Mainly it is saying:

Error: Database is uninitialized and superuser password is not specified.
       You must specify POSTGRES_PASSWORD for the superuser. Use
       "-e POSTGRES_PASSWORD=password" to set it in "docker run".

       You may also use POSTGRES_HOST_AUTH_METHOD=trust to allow all connections
       without a password. This is *not* recommended. See PostgreSQL
       documentation about "trust":
       https://www.postgresql.org/docs/current/auth-trust.html

@bsekachev
Copy link
Member

@AhmadM-DL

Oh, yes. Another recent fix: #1153

@AhmadM-DL
Copy link
Author

AhmadM-DL commented Feb 21, 2020

I did that but strangely enough connection to localhost is still being refused.

And I can't find any obvious problem in the logs:
cvat_db_log.txt
cvat_log.txt
cvat_redis_log.txt

And also docker ps shows that every thing is up and ready:
docker_ps.txt

Any thought?

@AhmadM-DL
Copy link
Author

It turns out the problem might have arisen from using Docker Toolbox.
(Docker Windows requires Windows 10 )

To resolve the problem I followed the following answer on stackoverflow.
It states the following:

I initially had a few issues with accessing my Applications at localhost:8080 while using DockerToolBox and OracleVM VirtualBox.

In VirtualBox:

Click the appropriate machine (probably the one labeled "default")
Settings
Network > Adapter 1 > Advanced > Port Forwarding
Click "+" to add a new Rule
Set Host Port 8080 & Guest Port 8080; be sure to leave Host IP and Guest IP empty

Though I had to do the same for port 7080 too.

Also I had to run chrome as an administrator and to use incognito mode.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants