cvat-ai / cvat

Annotate better with CVAT, the industry-leading data engine for machine learning. Used and trusted by teams at any scale, for data of any scale.
https://cvat.ai
MIT License
12.38k stars 2.97k forks source link

Superuser login fails after updating docker desktop #8512

Open prnr opened 4 days ago

prnr commented 4 days ago

Actions before raising this issue

Steps to Reproduce

No response

Expected Behavior

No response

Possible Solution

No response

Context

I created a new superuser account with [docker exec -it cvat_server bash -ic 'python3 ~/manage.py createsuperuser'], but the error 'Unable to log in with provided credentials' occurred. If I create a regular account, I can log in with that account. If there's any change since the last login, it's about [1. downgraded the numpy version 2. updated the version of docker desktop to the latest version], but after you reboot the pc after that update, you've seen pulling the container when you use the command [docker compose -f docker-compose.yml -f components/serverless/docker-compose.yml up -d]. Is there a way to log in as a superuser? I want to back up data such as project/task/annotation.

This is the error message on browser console.

server-proxy.ts:467

POST http://localhost:8080/api/auth/login?org= 400 (Bad Request) (Anonymous) @ xhr.js:195 xhr @ xhr.js:15 Jo @ dispatchRequest.js:51 Promise.then
_request @ Axios.js:149 request @ Axios.js:40 (Anonymous) @ Axios.js:212 (Anonymous) @ bind.js:5 login @ server-proxy.ts:467 (Anonymous) @ api-implementation.ts:106 apiWrapper @ plugins.ts:43 await in apiWrapper
login @ api.ts:77 (Anonymous) @ auth-actions.ts:102 (Anonymous) @ index.js:16 t. @ bindActionCreators.js:8 onSubmit @ login-page.tsx:44 onFinish @ login-form.tsx:112 onFinish @ Form.js:73 (Anonymous) @ useForm.js:855 Promise.then
(Anonymous) @ useForm.js:851 onSubmit @ Form.js:130 Re @ react-dom.production.min.js:54 Be @ react-dom.production.min.js:54 (Anonymous) @ react-dom.production.min.js:55 zo @ react-dom.production.min.js:105 $o @ react-dom.production.min.js:106 (Anonymous) @ react-dom.production.min.js:117 uc @ react-dom.production.min.js:274 Pe @ react-dom.production.min.js:52 Vo @ react-dom.production.min.js:109 qn @ react-dom.production.min.js:74 Gn @ react-dom.production.min.js:73

cvat-app.tsx:421 Unable to log in with provided credentials. o @ cvat-app.tsx:421 showErrors @ cvat-app.tsx:431 componentDidUpdate @ cvat-app.tsx:306 As @ react-dom.production.min.js:261 _s @ react-dom.production.min.js:260 ys @ react-dom.production.min.js:259 (Anonymous) @ react-dom.production.min.js:283 wc @ react-dom.production.min.js:281 cc @ react-dom.production.min.js:273 Wl @ react-dom.production.min.js:127 (Anonymous) @ react-dom.production.min.js:267 XMLHttpRequest.send
(Anonymous) @ xhr.js:195 xhr @ xhr.js:15 Jo @ dispatchRequest.js:51 Promise.then
_request @ Axios.js:149 request @ Axios.js:40 (Anonymous) @ Axios.js:212 (Anonymous) @ bind.js:5 login @ server-proxy.ts:467 (Anonymous) @ api-implementation.ts:106 apiWrapper @ plugins.ts:43 await in apiWrapper
login @ api.ts:77 (Anonymous) @ auth-actions.ts:102 (Anonymous) @ index.js:16 t. @ bindActionCreators.js:8 onSubmit @ login-page.tsx:44 onFinish @ login-form.tsx:112 onFinish @ Form.js:73 (Anonymous) @ useForm.js:855 Promise.then
(Anonymous) @ useForm.js:851 onSubmit @ Form.js:130 Re @ react-dom.production.min.js:54 Be @ react-dom.production.min.js:54 (Anonymous) @ react-dom.production.min.js:55 zo @ react-dom.production.min.js:105 $o @ react-dom.production.min.js:106 (Anonymous) @ react-dom.production.min.js:117 uc @ react-dom.production.min.js:274 Pe @ react-dom.production.min.js:52 Vo @ react-dom.production.min.js:109 qn @ react-dom.production.min.js:74 Gn @ react-dom.production.min.js:73

Environment

WSL2 Ubuntu 22.04
Docker desktop 4.33.1>4.34.2(docker engine 27.1.1>27.2.0)
GPU RTX4090
bsekachev commented 2 days ago

POST http://localhost:8080/api/auth/login?org= 400 (Bad Request)

Please, check logs for cvat_server docker container.

bsekachev commented 2 days ago

Also, please provide available details in environment section. We do not know what version and where you are using.