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

Could not login on the server #1532

Closed
AI-sd opened this issue May 13, 2020 · 9 comments
Closed

Could not login on the server #1532

AI-sd opened this issue May 13, 2020 · 9 comments

Comments

@AI-sd
Copy link

AI-sd commented May 13, 2020

I am getting problem in login :
"Could not check authorization on the server
Open the Browser Console to get details":

Failed to load resource: the server responded with a status of 502 (Bad Gateway)
cvat-app.tsx:159 Error: Request failed with status code 502. "\r\n<title>502 Bad Gateway</title>\r\n\r\n

502 Bad Gateway

\r\n
nginx/1.16.1\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n".
e @ index.js:8

@azhavoro
Copy link
Contributor

Hi, please don't ignore the issue template and add more details about CVAT version, OS, etc. Also please attach logs docker logs cvat and docker logs cvat_proxy.

@AI-sd AI-sd closed this as completed May 13, 2020
@AI-sd
Copy link
Author

AI-sd commented May 13, 2020

It's working now after runing :
docker-compose down
docker-compose up -d

@xuanwu348
Copy link

I also meet this problem, but can't work around by docker-compose down and up
image

image

cvat_proxy | 2020/08/01 10:27:24 [error] 7#7: *9 connect() failed (111: Connection refused) while connecting to upstream, client: 192.168.1.103, server: 192.168.1.107, request: "POST /api/v1/auth/login HTTP/1.1", upstream: "http://172.19.0.4:8080/api/v1/auth/login", host: "192.168.1.107:8080", referrer: "http://192.168.1.107:8080/auth/login"

@xuanwu348
Copy link

I used this version
image

and when I run "docker-compose up", These information printed
cvat | 2020-08-01 10:41:08,810 INFO success: ssh-agent entered RUNNING state, process has stayed up for > than 1 seconds (startsecs)
cvat | 2020-08-01 10:41:08,810 INFO spawnerr: command at '/home/django/wait-for-it.sh' is not executable
cvat | 2020-08-01 10:41:08,811 INFO spawnerr: command at '/home/django/wait-for-it.sh' is not executable
cvat | 2020-08-01 10:41:08,811 INFO spawnerr: command at '/home/django/wait-for-it.sh' is not executable
cvat | 2020-08-01 10:41:08,812 INFO spawnerr: command at '/home/django/wait-for-it.sh' is not executable
cvat | 2020-08-01 10:41:08,812 INFO spawnerr: command at '/home/django/wait-for-it.sh' is not executable
cvat | 2020-08-01 10:41:08,812 INFO spawnerr: command at '/home/django/wait-for-it.sh' is not executable
cvat | 2020-08-01 10:41:10,824 INFO spawnerr: command at '/home/django/wait-for-it.sh' is not executable
cvat | 2020-08-01 10:41:10,825 INFO spawnerr: command at '/home/django/wait-for-it.sh' is not executable
cvat | 2020-08-01 10:41:10,825 INFO spawnerr: command at '/home/django/wait-for-it.sh' is not executable
cvat | 2020-08-01 10:41:10,826 INFO spawnerr: command at '/home/django/wait-for-it.sh' is not executable
cvat | 2020-08-01 10:41:10,826 INFO spawnerr: command at '/home/django/wait-for-it.sh' is not executable
cvat | 2020-08-01 10:41:10,826 INFO spawnerr: command at '/home/django/wait-for-it.sh' is not executable
cvat | 2020-08-01 10:41:13,835 INFO spawnerr: command at '/home/django/wait-for-it.sh' is not executable
cvat | 2020-08-01 10:41:13,835 INFO gave up: rqscheduler entered FATAL state, too many start retries too quickly
cvat | 2020-08-01 10:41:13,835 INFO spawnerr: command at '/home/django/wait-for-it.sh' is not executable
cvat | 2020-08-01 10:41:13,835 INFO gave up: runserver entered FATAL state, too many start retries too quickly
cvat | 2020-08-01 10:41:13,836 INFO spawnerr: command at '/home/django/wait-for-it.sh' is not executable
cvat | 2020-08-01 10:41:13,836 INFO gave up: rqworker_low entered FATAL state, too many start retries too quickly
cvat | 2020-08-01 10:41:13,836 INFO spawnerr: command at '/home/django/wait-for-it.sh' is not executable
cvat | 2020-08-01 10:41:13,836 INFO gave up: rqworker_default_0 entered FATAL state, too many start retries too quickly
cvat | 2020-08-01 10:41:13,837 INFO spawnerr: command at '/home/django/wait-for-it.sh' is not executable
cvat | 2020-08-01 10:41:13,837 INFO gave up: rqworker_default_1 entered FATAL state, too many start retries too quickly
cvat | 2020-08-01 10:41:13,837 INFO spawnerr: command at '/home/django/wait-for-it.sh' is not executable
cvat | 2020-08-01 10:41:13,837 INFO gave up: git_status_updater entered FATAL state, too many start retries too quickly

@Axrid
Copy link

Axrid commented Sep 19, 2020

U can try with "chmod -R 777 wait-for-it.sh"

@rilpires
Copy link

U can try with "chmod -R 777 wait-for-it.sh"

I'm not sure why, but after this my 'docker-composer up' took all the steps in building 'cvat' once again and it solved my problem that was very similar to xuanwu348

@chan60
Copy link

chan60 commented Apr 1, 2021

Hello,
I resolved same problem with migrate,
Please do

sudo docker exec -it cvat bash -ic 'python3 ~/manage.py migrate'

@vskubriev
Copy link
Contributor

So I faced the same issue with v1.5.0 release. To solve it, just use down containers cmd and you preffered up cmd to reinitialize stack. After this simplified manipulation all works out-of-the-box.

E.g.:

docker-compose -f docker-compose.yml -f docker-compose.https.yml -f components/analytics/docker-compose.analytics.yml -f docker-compose.override.yml down

docker-compose -f docker-compose.yml -f docker-compose.https.yml -f components/analytics/docker-compose.analytics.yml -f docker-compose.override.yml up -d

@Petros626
Copy link

Petros626 commented Sep 24, 2023

It's working now after runing : docker-compose down docker-compose up -d
@AI-sd
is this the analog command, if you use serverless functions?
docker compose -f docker-compose.yml -f components/serverless/docker-compose.serverless.yml down
docker compose -f docker-compose.yml -f components/serverless/docker-compose.serverless.yml up -d

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

8 participants