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

LDAP login broken with CVAT 1.2 #2662

Closed
2 tasks done
a-andre opened this issue Jan 13, 2021 · 6 comments · Fixed by #2683
Closed
2 tasks done

LDAP login broken with CVAT 1.2 #2662

a-andre opened this issue Jan 13, 2021 · 6 comments · Fixed by #2683
Assignees
Labels
bug Something isn't working

Comments

@a-andre
Copy link
Contributor

a-andre commented Jan 13, 2021

My actions before raising this issue

Expected Behaviour

Successful login.

Current Behaviour

Could not login on the server
Error: Request failed with status code 400. {"non_field_errors":["Unable to log in with provided credentials."]}.

Possible Solution

Reverting 04ac49a fixed the problem.

Steps to Reproduce (for bugs)

  1. Setup LDAP as described in Add instruction to enable LDAP auth #311
  2. Enter credentials

Context

Your Environment

  • Git hash commit (git log -1): v1.2.0
  • Docker version docker version (e.g. Docker 17.0.05): 19.03.13
  • Are you using Docker Swarm or Kubernetes? no
  • Operating System and version (e.g. Linux, Windows, MacOS): Fedora 33
  • Code example or link to GitHub repo or gist to reproduce problem:
  • Other diagnostic information / logs: (Username and SHA replaced)
2021-01-13 18:42:45,800 INFO RPC interface 'supervisor' initialized
2021-01-13 18:42:45,801 CRIT Server 'unix_http_server' running without any HTTP authentication checking
2021-01-13 18:42:45,801 INFO supervisord started with pid 1
2021-01-13 18:42:46,804 INFO spawned: 'ssh-agent' with pid 7
2021-01-13 18:42:46,807 INFO spawned: 'clamav_update' with pid 8
2021-01-13 18:42:46,810 INFO spawned: 'git_status_updater' with pid 9
2021-01-13 18:42:46,812 INFO spawned: 'rqscheduler' with pid 10
2021-01-13 18:42:46,815 INFO spawned: 'rqworker_default_0' with pid 11
2021-01-13 18:42:46,817 INFO spawned: 'rqworker_default_1' with pid 12
2021-01-13 18:42:46,819 INFO spawned: 'rqworker_low' with pid 13
2021-01-13 18:42:46,821 INFO spawned: 'runserver' with pid 14
2021-01-13 18:42:46,900 DEBG fd 10 closed, stopped monitoring <POutputDispatcher at 139639560645744 for <Subprocess at 139639560645072 with name clamav_update in state STARTING> (stdout)>
2021-01-13 18:42:46,901 DEBG fd 14 closed, stopped monitoring <POutputDispatcher at 139639560403024 for <Subprocess at 139639560645072 with name clamav_update in state STARTING> (stderr)>
2021-01-13 18:42:46,902 INFO exited: clamav_update (exit status 0; not expected)
2021-01-13 18:42:46,902 DEBG received SIGCHLD indicating a child quit
2021-01-13 18:42:46,913 DEBG 'ssh-agent' stdout output:
SSH_AUTH_SOCK=/tmp/ssh-agent.sock; export SSH_AUTH_SOCK;
echo Agent pid 7;
2021-01-13 18:42:46,913 DEBG 'ssh-agent' stderr output:
debug2: fd 3 setting O_NONBLOCK
2021-01-13 18:42:46,913 DEBG 'rqscheduler' stderr output:
wait-for-it.sh: waiting for cvat_redis:6379 without a timeout
2021-01-13 18:42:46,914 DEBG 'runserver' stderr output:
wait-for-it.sh: waiting for cvat_db:5432 without a timeout
2021-01-13 18:42:46,915 DEBG 'git_status_updater' stderr output:
wait-for-it.sh: waiting for cvat_redis:6379 without a timeout
2021-01-13 18:42:46,915 DEBG 'rqworker_default_0' stderr output:
wait-for-it.sh: waiting for cvat_redis:6379 without a timeout
2021-01-13 18:42:46,915 DEBG 'rqworker_default_1' stderr output:
wait-for-it.sh: waiting for cvat_redis:6379 without a timeout
2021-01-13 18:42:46,915 DEBG 'rqworker_low' stderr output:
wait-for-it.sh: waiting for cvat_redis:6379 without a timeout
2021-01-13 18:42:46,945 DEBG 'rqworker_default_1' stderr output:
wait-for-it.sh: cvat_redis:6379 is available after 0 seconds
2021-01-13 18:42:46,945 DEBG 'rqscheduler' stderr output:
wait-for-it.sh: cvat_redis:6379 is available after 0 seconds
2021-01-13 18:42:46,946 DEBG 'runserver' stderr output:
wait-for-it.sh: cvat_db:5432 is available after 0 seconds
2021-01-13 18:42:46,948 DEBG 'rqscheduler' stderr output:
bash: cannot set terminal process group (-1): Inappropriate ioctl for device
bash: no job control in this shell
2021-01-13 18:42:46,948 DEBG 'rqworker_default_1' stderr output:
bash: cannot set terminal process group (-1): Inappropriate ioctl for device
bash: no job control in this shell
2021-01-13 18:42:46,948 DEBG 'rqworker_low' stderr output:
wait-for-it.sh: cvat_redis:6379 is available after 0 seconds
bash: cannot set terminal process group (-1): Inappropriate ioctl for device
bash: no job control in this shell
2021-01-13 18:42:46,948 DEBG 'runserver' stderr output:
bash: cannot set terminal process group (-1): Inappropriate ioctl for device
bash: no job control in this shell
2021-01-13 18:42:46,949 DEBG 'rqworker_default_0' stderr output:
wait-for-it.sh: cvat_redis:6379 is available after 0 seconds
2021-01-13 18:42:46,950 DEBG 'git_status_updater' stderr output:
wait-for-it.sh: cvat_redis:6379 is available after 0 seconds
2021-01-13 18:42:46,951 DEBG 'rqworker_default_0' stderr output:
bash: cannot set terminal process group (-1): Inappropriate ioctl for device
bash: no job control in this shell
2021-01-13 18:42:46,951 DEBG 'git_status_updater' stderr output:
bash: cannot set terminal process group (-1): Inappropriate ioctl for device
bash: no job control in this shell
2021-01-13 18:42:47,191 DEBG 'ssh-agent' stderr output:
debug2: fd 4 setting O_NONBLOCK
2021-01-13 18:42:47,226 DEBG 'ssh-agent' stderr output:
debug2: fd 4 setting O_NONBLOCK
2021-01-13 18:42:47,237 DEBG 'ssh-agent' stderr output:
debug1: process_message: socket 1 (fd=4) type 11
2021-01-13 18:42:47,266 DEBG 'ssh-agent' stderr output:
debug2: fd 4 setting O_NONBLOCK
2021-01-13 18:42:47,272 DEBG 'ssh-agent' stderr output:
debug1: process_message: socket 1 (fd=4) type 17
2021-01-13 18:42:47,278 DEBG 'ssh-agent' stderr output:
debug1: process_add_identity: add ssh-rsa SHA256:1111111111111111111111111111111111111111111 "/home/django/.ssh/id_rsa" (life: 0) (confirm: 0) (provider: none)
2021-01-13 18:42:47,278 DEBG 'git_status_updater' stderr output:
Identity added: /home/django/.ssh/id_rsa (/home/django/.ssh/id_rsa)
2021-01-13 18:42:47,286 DEBG 'ssh-agent' stderr output:
debug2: fd 4 setting O_NONBLOCK
2021-01-13 18:42:47,289 DEBG 'rqscheduler' stderr output:
18:42:47 Registering birth
2021-01-13 18:42:47,291 DEBG 'ssh-agent' stderr output:
debug1: process_message: socket 1 (fd=4) type 17
2021-01-13 18:42:47,295 DEBG 'ssh-agent' stderr output:
debug1: process_add_identity: add ssh-rsa SHA256:1111111111111111111111111111111111111111111 "/home/django/.ssh/id_rsa" (life: 0) (confirm: 0) (provider: none)
2021-01-13 18:42:47,302 DEBG 'ssh-agent' stderr output:
debug2: fd 4 setting O_NONBLOCK
debug1: process_message: socket 1 (fd=4) type 11
2021-01-13 18:42:47,310 DEBG 'ssh-agent' stderr output:
debug2: fd 4 setting O_NONBLOCK
2021-01-13 18:42:47,315 DEBG 'ssh-agent' stderr output:
debug1: process_message: socket 1 (fd=4) type 17
2021-01-13 18:42:47,321 DEBG 'ssh-agent' stderr output:
debug1: process_add_identity: add ssh-rsa SHA256:1111111111111111111111111111111111111111111 "/home/django/.ssh/id_rsa" (life: 0) (confirm: 0) (provider: none)
2021-01-13 18:42:47,328 DEBG 'ssh-agent' stderr output:
debug2: fd 4 setting O_NONBLOCK
debug1: process_message: socket 1 (fd=4) type 11
2021-01-13 18:42:47,335 DEBG 'ssh-agent' stderr output:
debug2: fd 4 setting O_NONBLOCK
2021-01-13 18:42:47,341 DEBG 'ssh-agent' stderr output:
debug1: process_message: socket 1 (fd=4) type 17
2021-01-13 18:42:47,346 DEBG 'ssh-agent' stderr output:
debug1: process_add_identity: add ssh-rsa SHA256:1111111111111111111111111111111111111111111 "/home/django/.ssh/id_rsa" (life: 0) (confirm: 0) (provider: none)
2021-01-13 18:42:47,355 DEBG 'ssh-agent' stderr output:
debug2: fd 4 setting O_NONBLOCK
debug1: process_message: socket 1 (fd=4) type 11
2021-01-13 18:42:47,360 DEBG 'ssh-agent' stderr output:
debug2: fd 4 setting O_NONBLOCK
2021-01-13 18:42:47,363 DEBG 'ssh-agent' stderr output:
debug1: process_message: socket 1 (fd=4) type 17
2021-01-13 18:42:47,368 DEBG 'ssh-agent' stderr output:
debug1: process_add_identity: add ssh-rsa SHA256:1111111111111111111111111111111111111111111 "/home/django/.ssh/id_rsa" (life: 0) (confirm: 0) (provider: none)
2021-01-13 18:42:47,374 DEBG 'ssh-agent' stderr output:
debug2: fd 4 setting O_NONBLOCK
debug1: process_message: socket 1 (fd=4) type 11
2021-01-13 18:42:48,375 INFO success: ssh-agent entered RUNNING state, process has stayed up for > than 1 seconds (startsecs)
2021-01-13 18:42:48,377 INFO spawned: 'clamav_update' with pid 94
2021-01-13 18:42:48,377 INFO success: git_status_updater entered RUNNING state, process has stayed up for > than 1 seconds (startsecs)
2021-01-13 18:42:48,377 INFO success: rqscheduler entered RUNNING state, process has stayed up for > than 1 seconds (startsecs)
2021-01-13 18:42:48,377 INFO success: rqworker_default_0 entered RUNNING state, process has stayed up for > than 1 seconds (startsecs)
2021-01-13 18:42:48,377 INFO success: rqworker_default_1 entered RUNNING state, process has stayed up for > than 1 seconds (startsecs)
2021-01-13 18:42:48,377 INFO success: rqworker_low entered RUNNING state, process has stayed up for > than 1 seconds (startsecs)
2021-01-13 18:42:48,377 INFO success: runserver entered RUNNING state, process has stayed up for > than 1 seconds (startsecs)
2021-01-13 18:42:48,395 DEBG fd 16 closed, stopped monitoring <POutputDispatcher at 139639560403264 for <Subprocess at 139639560645072 with name clamav_update in state STARTING> (stderr)>
2021-01-13 18:42:48,402 DEBG fd 10 closed, stopped monitoring <POutputDispatcher at 139639560403168 for <Subprocess at 139639560645072 with name clamav_update in state STARTING> (stdout)>
2021-01-13 18:42:49,403 INFO success: clamav_update entered RUNNING state, process has stayed up for > than 1 seconds (startsecs)
2021-01-13 18:42:49,404 INFO exited: clamav_update (exit status 0; expected)
2021-01-13 18:42:49,404 DEBG received SIGCHLD indicating a child quit
2021-01-13 18:42:51,311 DEBG 'git_status_updater' stderr output:
WARNING:root:Failed to import module 'tf_detection_api_format.converter.py': Can't import tensorflow. Test process exit code: -4.
2021-01-13 18:42:51,608 DEBG 'runserver' stderr output:
WARNING:root:Failed to import module 'tf_detection_api_format.converter.py': Can't import tensorflow. Test process exit code: -4.
2021-01-13 18:42:51,626 DEBG 'rqworker_default_0' stderr output:
WARNING:root:Failed to import module 'tf_detection_api_format.converter.py': Can't import tensorflow. Test process exit code: -4.
2021-01-13 18:42:51,655 DEBG 'rqworker_default_1' stderr output:
WARNING:root:Failed to import module 'tf_detection_api_format.converter.py': Can't import tensorflow. Test process exit code: -4.
2021-01-13 18:42:51,709 DEBG 'rqworker_low' stderr output:
WARNING:root:Failed to import module 'tf_detection_api_format.converter.py': Can't import tensorflow. Test process exit code: -4.
2021-01-13 18:42:51,874 DEBG 'rqworker_default_0' stderr output:
System check identified some issues:
WARNINGS:
?: (urls.W005) URL namespace 'v1' isn't unique. You may not be able to reverse all URLs in this namespace
DEBUG:rq.worker:Registering birth of worker 420b634f6be14306a9fff54457ca7944
2021-01-13 18:42:51,877 DEBG 'rqworker_default_0' stderr output:
INFO:rq.worker:Worker rq:worker:420b634f6be14306a9fff54457ca7944: started, version 1.5.1
2021-01-13 18:42:51,877 DEBG 'rqworker_default_0' stderr output:
INFO:rq.worker:*** Listening on default...
2021-01-13 18:42:51,878 DEBG 'rqworker_default_0' stderr output:
DEBUG:rq.worker:Sent heartbeat to prevent worker timeout. Next one should arrive within 480 seconds.
2021-01-13 18:42:51,878 DEBG 'rqworker_default_0' stderr output:
INFO:rq.worker:Cleaning registries for queue: default
2021-01-13 18:42:51,880 DEBG 'rqworker_default_0' stderr output:
DEBUG:rq.worker:*** Listening on default...
2021-01-13 18:42:51,881 DEBG 'rqworker_default_0' stderr output:
DEBUG:rq.worker:Sent heartbeat to prevent worker timeout. Next one should arrive within 480 seconds.
2021-01-13 18:42:51,971 DEBG 'rqworker_default_1' stderr output:
System check identified some issues:
WARNINGS:
?: (urls.W005) URL namespace 'v1' isn't unique. You may not be able to reverse all URLs in this namespace
DEBUG:rq.worker:Registering birth of worker 077962bc46ce49998e4a1c160a2b3c16
2021-01-13 18:42:51,975 DEBG 'rqworker_default_1' stderr output:
INFO:rq.worker:Worker rq:worker:077962bc46ce49998e4a1c160a2b3c16: started, version 1.5.1
2021-01-13 18:42:51,976 DEBG 'rqworker_default_1' stderr output:
INFO:rq.worker:*** Listening on default...
2021-01-13 18:42:51,976 DEBG 'rqworker_default_1' stderr output:
DEBUG:rq.worker:Sent heartbeat to prevent worker timeout. Next one should arrive within 480 seconds.
2021-01-13 18:42:51,988 DEBG 'rqworker_default_1' stderr output:
DEBUG:rq.worker:*** Listening on default...
2021-01-13 18:42:51,988 DEBG 'rqworker_default_1' stderr output:
DEBUG:rq.worker:Sent heartbeat to prevent worker timeout. Next one should arrive within 480 seconds.
2021-01-13 18:42:51,993 DEBG 'rqworker_low' stderr output:
System check identified some issues:
WARNINGS:
?: (urls.W005) URL namespace 'v1' isn't unique. You may not be able to reverse all URLs in this namespace
DEBUG:rq.worker:Registering birth of worker 46afe7baafdd4d779b870cd45098f227
2021-01-13 18:42:51,995 DEBG 'rqworker_low' stderr output:
INFO:rq.worker:Worker rq:worker:46afe7baafdd4d779b870cd45098f227: started, version 1.5.1
2021-01-13 18:42:51,996 DEBG 'rqworker_low' stderr output:
INFO:rq.worker:*** Listening on low...
2021-01-13 18:42:51,997 DEBG 'rqworker_low' stderr output:
DEBUG:rq.worker:Sent heartbeat to prevent worker timeout. Next one should arrive within 480 seconds.
2021-01-13 18:42:51,998 DEBG 'rqworker_low' stderr output:
INFO:rq.worker:Cleaning registries for queue: low
2021-01-13 18:42:52,000 DEBG 'rqworker_low' stderr output:
DEBUG:rq.worker:*** Listening on low...
2021-01-13 18:42:52,000 DEBG 'rqworker_low' stderr output:
DEBUG:rq.worker:Sent heartbeat to prevent worker timeout. Next one should arrive within 480 seconds.
2021-01-13 18:42:52,968 DEBG 'runserver' stderr output:
System check identified some issues:
WARNINGS:
?: (urls.W005) URL namespace 'v1' isn't unique. You may not be able to reverse all URLs in this namespace
2021-01-13 18:42:52,968 DEBG 'runserver' stdout output:
Operations to perform:
  Apply all migrations: account, admin, auth, authtoken, contenttypes, dataset_repo, engine, sessions, sites, socialaccount
Running migrations:
  No migrations to apply.
2021-01-13 18:42:53,541 DEBG 'ssh-agent' stderr output:
debug2: fd 4 setting O_NONBLOCK
2021-01-13 18:42:53,545 DEBG 'ssh-agent' stderr output:
debug1: process_message: socket 1 (fd=4) type 17
2021-01-13 18:42:53,549 DEBG 'ssh-agent' stderr output:
debug1: process_add_identity: add ssh-rsa SHA256:1111111111111111111111111111111111111111111 "/home/django/.ssh/id_rsa" (life: 0) (confirm: 0) (provider: none)
2021-01-13 18:42:53,555 DEBG 'ssh-agent' stderr output:
debug2: fd 4 setting O_NONBLOCK
debug1: process_message: socket 1 (fd=4) type 11
2021-01-13 18:42:54,466 DEBG 'runserver' stdout output:
0 static files copied to '/home/django/static', 367 unmodified.
2021-01-13 18:42:54,747 DEBG 'ssh-agent' stderr output:
debug2: fd 4 setting O_NONBLOCK
2021-01-13 18:42:54,750 DEBG 'ssh-agent' stderr output:
debug1: process_message: socket 1 (fd=4) type 17
2021-01-13 18:42:54,753 DEBG 'ssh-agent' stderr output:
debug1: process_add_identity: add ssh-rsa SHA256:1111111111111111111111111111111111111111111 "/home/django/.ssh/id_rsa" (life: 0) (confirm: 0) (provider: none)
2021-01-13 18:42:54,758 DEBG 'ssh-agent' stderr output:
debug2: fd 4 setting O_NONBLOCK
debug1: process_message: socket 1 (fd=4) type 11
2021-01-13 18:42:57,227 DEBG 'runserver' stderr output:
WARNING:root:Failed to import module 'tf_detection_api_format.converter.py': Can't import tensorflow. Test process exit code: -4.
2021-01-13 18:42:57,434 DEBG 'runserver' stderr output:
System check identified some issues:
WARNINGS:
?: (urls.W005) URL namespace 'v1' isn't unique. You may not be able to reverse all URLs in this namespace
2021-01-13 18:42:57,434 DEBG 'runserver' stdout output:
Successfully ran command.
2021-01-13 18:42:57,439 DEBG 'runserver' stdout output:
Server URL         : http://localhost:8080/
Server Root        : /tmp/cvat-server
Server Conf        : /tmp/cvat-server/httpd.conf
Error Log File     : /dev/stderr (INFO)
Request Capacity   : 5 (1 process * 5 threads)
Request Timeout    : 60 (seconds)
Startup Timeout    : 15 (seconds)
Queue Backlog      : 100 (connections)
Queue Timeout      : 45 (seconds)
Server Capacity    : 20 (event/worker), 20 (prefork)
Server Backlog     : 500 (connections)
Locale Setting     : C.UTF-8
2021-01-13 18:42:57,517 DEBG 'runserver' stderr output:
[Wed Jan 13 18:42:57.517419 2021] [wsgi:info] [pid 201:tid 140235163176000] mod_wsgi (pid=201): Starting process 'localhost:8080' with threads=5.
[Wed Jan 13 18:42:57.517528 2021] [mpm_event:notice] [pid 14:tid 140235163176000] AH00489: Apache/2.4.41 (Ubuntu) mod_wsgi/4.7.1 Python/3.8 configured -- resuming normal operations
[Wed Jan 13 18:42:57.517611 2021] [mpm_event:info] [pid 14:tid 140235163176000] AH00490: Server built: 2020-08-12T19:46:17
[Wed Jan 13 18:42:57.517619 2021] [core:notice] [pid 14:tid 140235163176000] AH00094: Command line: 'apache2 (mod_wsgi-express) -f /tmp/cvat-server/httpd.conf -D MOD_WSGI_MPM_ENABLE_EVENT_MODULE -D MOD_WSGI_MPM_EXISTS_EVENT_MODULE -D MOD_WSGI_MPM_EXISTS_WORKER_MODULE -D MOD_WSGI_MPM_EXISTS_PREFORK_MODULE -D FOREGROUND'
2021-01-13 18:42:57,518 DEBG 'runserver' stderr output:
[Wed Jan 13 18:42:57.518587 2021] [wsgi:info] [pid 201:tid 140235163176000] mod_wsgi (pid=201): Python home /opt/venv.
2021-01-13 18:42:57,518 DEBG 'runserver' stderr output:
[Wed Jan 13 18:42:57.518905 2021] [wsgi:info] [pid 201:tid 140235163176000] mod_wsgi (pid=201): Initializing Python.
2021-01-13 18:42:57,550 DEBG 'runserver' stderr output:
[Wed Jan 13 18:42:57.550060 2021] [wsgi:info] [pid 201:tid 140235163176000] mod_wsgi (pid=201): Attach interpreter ''.
2021-01-13 18:42:57,556 DEBG 'runserver' stderr output:
[Wed Jan 13 18:42:57.556343 2021] [wsgi:info] [pid 201:tid 140235163176000] mod_wsgi (pid=201): Imported 'mod_wsgi'.
[Wed Jan 13 18:42:57.556414 2021] [wsgi:info] [pid 201:tid 140235163176000] mod_wsgi (pid=201, process='localhost:8080', application=''): Loading Python script file '/tmp/cvat-server/handler.wsgi'.
2021-01-13 18:42:57,910 DEBG 'ssh-agent' stderr output:
debug2: fd 4 setting O_NONBLOCK
2021-01-13 18:42:57,914 DEBG 'ssh-agent' stderr output:
debug1: process_message: socket 1 (fd=4) type 17
2021-01-13 18:42:57,917 DEBG 'ssh-agent' stderr output:
debug1: process_add_identity: add ssh-rsa SHA256:1111111111111111111111111111111111111111111 "/home/django/.ssh/id_rsa" (life: 0) (confirm: 0) (provider: none)
2021-01-13 18:42:57,924 DEBG 'ssh-agent' stderr output:
debug2: fd 4 setting O_NONBLOCK
debug1: process_message: socket 1 (fd=4) type 11
2021-01-13 18:43:35,078 DEBG 'runserver' stderr output:
[Wed Jan 13 18:43:35.078644 2021] [wsgi:error] [pid 201:tid 140235041015552] [remote 172.18.0.6:50846] WARNING:root:Failed to import module 'tf_detection_api_format.converter.py': Can't import tensorflow. Test process exit code: -4.
2021-01-13 18:43:35,223 DEBG 'runserver' stderr output:
[Wed Jan 13 18:43:35.222950 2021] [wsgi:error] [pid 201:tid 140235041015552] [remote 172.18.0.6:50846] [2021-01-13 18:43:35,222] WARNING django.request: Unauthorized: /api/v1/users/self
2021-01-13 18:43:35,223 DEBG 'runserver' stderr output:
[Wed Jan 13 18:43:35.223342 2021] [wsgi:error] [pid 201:tid 140235041015552] [remote 172.18.0.6:50846] WARNING:django.request:Unauthorized: /api/v1/users/self
2021-01-13 18:43:44,306 DEBG 'runserver' stderr output:
[Wed Jan 13 18:43:44.305681 2021] [wsgi:error] [pid 201:tid 140235041015552] [remote 172.18.0.6:50850] WARNING:django_auth_ldap:Caught LDAPError while authenticating ${USERNAME}: CONNECT_ERROR({'result': -11, 'desc': 'Connect error', 'errno': 2, 'ctrls': [], 'info': 'No such file or directory'})
2021-01-13 18:43:44,308 DEBG 'runserver' stderr output:
[Wed Jan 13 18:43:44.308144 2021] [wsgi:error] [pid 201:tid 140235041015552] [remote 172.18.0.6:50850] [2021-01-13 18:43:44,307] WARNING django.request: Bad Request: /api/v1/auth/login
2021-01-13 18:43:44,308 DEBG 'runserver' stderr output:
[Wed Jan 13 18:43:44.308451 2021] [wsgi:error] [pid 201:tid 140235041015552] [remote 172.18.0.6:50850] WARNING:django.request:Bad Request: /api/v1/auth/login

Next steps

You may join our Gitter channel for community support.

@azhavoro
Copy link
Contributor

Hi, please attach the logs from the CVAT container. I can also confirm that the above setting works for the internal instance without any changes.

@a-andre
Copy link
Contributor Author

a-andre commented Jan 13, 2021

I've updated the description.

@azhavoro
Copy link
Contributor

@a-andre Are you using LDAP over SSL, or is your connection to the LDAP server not encrypted?

@a-andre
Copy link
Contributor Author

a-andre commented Jan 14, 2021

I have AUTH_LDAP_START_TLS = True in the settings, so connection should be encrypted.

@azhavoro
Copy link
Contributor

Not sure that will help, but try to add ca-certificates package here https://github.com/openvinotoolkit/cvat/blob/develop/Dockerfile#L74 and rebuild the image.

@a-andre
Copy link
Contributor Author

a-andre commented Jan 14, 2021

That fixed the problem. Thanks.

@azhavoro azhavoro added the bug Something isn't working label Jan 18, 2021
@azhavoro azhavoro self-assigned this Jan 18, 2021
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

Successfully merging a pull request may close this issue.

2 participants