cvat icon indicating copy to clipboard operation
cvat copied to clipboard

500 (Internal Server Error)

Open RezaHajimohammadi opened this issue 2 years ago • 15 comments

Hello I installed cvat. i created a suoer user, but i have error in log in. my error is: 500 (Internal Server Error) Capture

RezaHajimohammadi avatar May 31 '22 12:05 RezaHajimohammadi

@RezaHajimohammadi Hi, please provide log file from cvat container: docker logs cvat > cvat.log.txt

azhavoro avatar May 31 '22 12:05 azhavoro

This is log of my last trying for log in:

2022-05-31 12:51:27,443 DEBG 'runserver' stderr output: [Tue May 31 12:51:27.443009 2022] [wsgi:error] [pid 585:tid 140578333779712] [remote 172.28.0.3:48224] [2022-05-31 12:51:27,442] ERROR django.request: Internal Server Error: /api/users/self [Tue May 31 12:51:27.443033 2022] [wsgi:error] [pid 585:tid 140578333779712] [remote 172.28.0.3:48224] Traceback (most recent call last): [Tue May 31 12:51:27.443035 2022] [wsgi:error] [pid 585:tid 140578333779712] [remote 172.28.0.3:48224]   File "/opt/venv/lib/python3.8/site-packages/urllib3/connection.py", line 174, in _new_conn [Tue May 31 12:51:27.443038 2022] [wsgi:error] [pid 585:tid 140578333779712] [remote 172.28.0.3:48224]     conn = connection.create_connection( [Tue May 31 12:51:27.443039 2022] [wsgi:error] [pid 585:tid 140578333779712] [remote 172.28.0.3:48224]   File "/opt/venv/lib/python3.8/site-packages/urllib3/util/connection.py", line 72, in create_connection [Tue May 31 12:51:27.443041 2022] [wsgi:error] [pid 585:tid 140578333779712] [remote 172.28.0.3:48224]     for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM): [Tue May 31 12:51:27.443043 2022] [wsgi:error] [pid 585:tid 140578333779712] [remote 172.28.0.3:48224]   File "/usr/lib/python3.8/socket.py", line 918, in getaddrinfo [Tue May 31 12:51:27.443045 2022] [wsgi:error] [pid 585:tid 140578333779712] [remote 172.28.0.3:48224]     for res in _socket.getaddrinfo(host, port, family, type, proto, flags): [Tue May 31 12:51:27.443056 2022] [wsgi:error] [pid 585:tid 140578333779712] [remote 172.28.0.3:48224] socket.gaierror: [Errno -3] Temporary failure in name resolution [Tue May 31 12:51:27.443058 2022] [wsgi:error] [pid 585:tid 140578333779712] [remote 172.28.0.3:48224]  [Tue May 31 12:51:27.443060 2022] [wsgi:error] [pid 585:tid 140578333779712] [remote 172.28.0.3:48224] During handling of the above exception, another exception occurred: [Tue May 31 12:51:27.443062 2022] [wsgi:error] [pid 585:tid 140578333779712] [remote 172.28.0.3:48224]  [Tue May 31 12:51:27.443063 2022] [wsgi:error] [pid 585:tid 140578333779712] [remote 172.28.0.3:48224] Traceback (most recent call last): [Tue May 31 12:51:27.443065 2022] [wsgi:error] [pid 585:tid 140578333779712] [remote 172.28.0.3:48224]   File "/opt/venv/lib/python3.8/site-packages/urllib3/connectionpool.py", line 703, in urlopen [Tue May 31 12:51:27.443067 2022] [wsgi:error] [pid 585:tid 140578333779712] [remote 172.28.0.3:48224]     httplib_response = self._make_request( [Tue May 31 12:51:27.443068 2022] [wsgi:error] [pid 585:tid 140578333779712] [remote 172.28.0.3:48224]   File "/opt/venv/lib/python3.8/site-packages/urllib3/connectionpool.py", line 398, in _make_request [Tue May 31 12:51:27.443070 2022] [wsgi:error] [pid 585:tid 140578333779712] [remote 172.28.0.3:48224]     conn.request(method, url, **httplib_request_kw) [Tue May 31 12:51:27.443071 2022] [wsgi:error] [pid 585:tid 140578333779712] [remote 172.28.0.3:48224]   File "/opt/venv/lib/python3.8/site-packages/urllib3/connection.py", line 239, in request [Tue May 31 12:51:27.443073 2022] [wsgi:error] [pid 585:tid 140578333779712] [remote 172.28.0.3:48224]     super(HTTPConnection, self).request(method, url, body=body, headers=headers) [Tue May 31 12:51:27.443075 2022] [wsgi:error] [pid 585:tid 140578333779712] [remote 172.28.0.3:48224]   File "/usr/lib/python3.8/http/client.py", line 1256, in request [Tue May 31 12:51:27.443076 2022] [wsgi:error] [pid 585:tid 140578333779712] [remote 172.28.0.3:48224]     self._send_request(method, url, body, headers, encode_chunked) [Tue May 31 12:51:27.443078 2022] [wsgi:error] [pid 585:tid 140578333779712] [remote 172.28.0.3:48224]   File "/usr/lib/python3.8/http/client.py", line 1302, in _send_request [Tue May 31 12:51:27.443079 2022] [wsgi:error] [pid 585:tid 140578333779712] [remote 172.28.0.3:48224]     self.endheaders(body, encode_chunked=encode_chunked) [Tue May 31 12:51:27.443081 2022] [wsgi:error] [pid 585:tid 140578333779712] [remote 172.28.0.3:48224]   File "/usr/lib/python3.8/http/client.py", line 1251, in endheaders [Tue May 31 12:51:27.443083 2022] [wsgi:error] [pid 585:tid 140578333779712] [remote 172.28.0.3:48224]     self._send_output(message_body, encode_chunked=encode_chunked) [Tue May 31 12:51:27.443087 2022] [wsgi:error] [pid 585:tid 140578333779712] [remote 172.28.0.3:48224]   File "/usr/lib/python3.8/http/client.py", line 1011, in _send_output [Tue May 31 12:51:27.443089 2022] [wsgi:error] [pid 585:tid 140578333779712] [remote 172.28.0.3:48224]     self.send(msg) [Tue May 31 12:51:27.443090 2022] [wsgi:error] [pid 585:tid 140578333779712] [remote 172.28.0.3:48224]   File "/usr/lib/python3.8/http/client.py", line 951, in send [Tue May 31 12:51:27.443092 2022] [wsgi:error] [pid 585:tid 140578333779712] [remote 172.28.0.3:48224]     self.connect() [Tue May 31 12:51:27.443094 2022] [wsgi:error] [pid 585:tid 140578333779712] [remote 172.28.0.3:48224]   File "/opt/venv/lib/python3.8/site-packages/urllib3/connection.py", line 205, in connect [Tue May 31 12:51:27.443095 2022] [wsgi:error] [pid 585:tid 140578333779712] [remote 172.28.0.3:48224]     conn = self._new_conn() [Tue May 31 12:51:27.443097 2022] [wsgi:error] [pid 585:tid 140578333779712] [remote 172.28.0.3:48224]   File "/opt/venv/lib/python3.8/site-packages/urllib3/connection.py", line 186, in _new_conn [Tue May 31 12:51:27.443098 2022] [wsgi:error] [pid 585:tid 140578333779712] [remote 172.28.0.3:48224]     raise NewConnectionError( [Tue May 31 12:51:27.443100 2022] [wsgi:error] [pid 585:tid 140578333779712] [remote 172.28.0.3:48224] urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPConnection object at 0x7fda4250b1f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution [Tue May 31 12:51:27.443102 2022] [wsgi:error] [pid 585:tid 140578333779712] [remote 172.28.0.3:48224]  [Tue May 31 12:51:27.443103 2022] [wsgi:error] [pid 585:tid 140578333779712] [remote 172.28.0.3:48224] During handling of the above exception, another exception occurred: [Tue May 31 12:51:27.443105 2022] [wsgi:error] [pid 585:tid 140578333779712] [remote 172.28.0.3:48224]  [Tue May 31 12:51:27.443106 2022] [wsgi:error] [pid 585:tid 140578333779712] [remote 172.28.0.3:48224] Traceback (most recent call last): [Tue May 31 12:51:27.443108 2022] [wsgi:error] [pid 585:tid 140578333779712] [remote 172.28.0.3:48224]   File "/opt/venv/lib/python3.8/site-packages/requests/adapters.py", line 439, in send [Tue May 31 12:51:27.443110 2022] [wsgi:error] [pid 585:tid 140578333779712] [remote 172.28.0.3:48224]     resp = conn.urlopen(

2022-05-31 12:51:27,443 DEBG 'runserver' stderr output: [Tue May 31 12:51:27.443111 2022] [wsgi:error] [pid 585:tid 140578333779712] [remote 172.28.0.3:48224]   File "/opt/venv/lib/python3.8/site-packages/urllib3/connectionpool.py", line 785, in urlopen [Tue May 31 12:51:27.443121 2022] [wsgi:error] [pid 585:tid 140578333779712] [remote 172.28.0.3:48224]     retries = retries.increment( [Tue May 31 12:51:27.443123 2022] [wsgi:error] [pid 585:tid 140578333779712] [remote 172.28.0.3:48224]   File "/opt/venv/lib/python3.8/site-packages/urllib3/util/retry.py", line 592, in increment [Tue May 31 12:51:27.443124 2022] [wsgi:error] [pid 585:tid 140578333779712] [remote 172.28.0.3:48224]     raise MaxRetryError(_pool, url, error or ResponseError(cause)) [Tue May 31 12:51:27.443126 2022] [wsgi:error] [pid 585:tid 140578333779712] [remote 172.28.0.3:48224] urllib3.exceptions.MaxRetryError: HTTPConnectionPool(host='opa', port=8181): Max retries exceeded with url: /v1/data/users/allow (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7fda4250b1f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution')) [Tue May 31 12:51:27.443129 2022] [wsgi:error] [pid 585:tid 140578333779712] [remote 172.28.0.3:48224]  [Tue May 31 12:51:27.443130 2022] [wsgi:error] [pid 585:tid 140578333779712] [remote 172.28.0.3:48224] During handling of the above exception, another exception occurred: [Tue May 31 12:51:27.443134 2022] [wsgi:error] [pid 585:tid 140578333779712] [remote 172.28.0.3:48224]  [Tue May 31 12:51:27.443136 2022] [wsgi:error] [pid 585:tid 140578333779712] [remote 172.28.0.3:48224] Traceback (most recent call last): [Tue May 31 12:51:27.443139 2022] [wsgi:error] [pid 585:tid 140578333779712] [remote 172.28.0.3:48224]   File "/opt/venv/lib/python3.8/site-packages/django/core/handlers/exception.py", line 47, in inner [Tue May 31 12:51:27.443141 2022] [wsgi:error] [pid 585:tid 140578333779712] [remote 172.28.0.3:48224]     response = get_response(request) [Tue May 31 12:51:27.443143 2022] [wsgi:error] [pid 585:tid 140578333779712] [remote 172.28.0.3:48224]   File "/opt/venv/lib/python3.8/site-packages/django/core/handlers/base.py", line 181, in _get_response [Tue May 31 12:51:27.443146 2022] [wsgi:error] [pid 585:tid 140578333779712] [remote 172.28.0.3:48224]     response = wrapped_callback(request, *callback_args, **callback_kwargs) [Tue May 31 12:51:27.443148 2022] [wsgi:error] [pid 585:tid 140578333779712] [remote 172.28.0.3:48224]   File "/opt/venv/lib/python3.8/site-packages/django/views/decorators/csrf.py", line 54, in wrapped_view [Tue May 31 12:51:27.443150 2022] [wsgi:error] [pid 585:tid 140578333779712] [remote 172.28.0.3:48224]     return view_func(*args, **kwargs) [Tue May 31 12:51:27.443152 2022] [wsgi:error] [pid 585:tid 140578333779712] [remote 172.28.0.3:48224]   File "/opt/venv/lib/python3.8/site-packages/rest_framework/viewsets.py", line 125, in view [Tue May 31 12:51:27.443155 2022] [wsgi:error] [pid 585:tid 140578333779712] [remote 172.28.0.3:48224]     return self.dispatch(request, *args, **kwargs) [Tue May 31 12:51:27.443157 2022] [wsgi:error] [pid 585:tid 140578333779712] [remote 172.28.0.3:48224]   File "/opt/venv/lib/python3.8/site-packages/rest_framework/views.py", line 509, in dispatch [Tue May 31 12:51:27.443159 2022] [wsgi:error] [pid 585:tid 140578333779712] [remote 172.28.0.3:48224]     response = self.handle_exception(exc) [Tue May 31 12:51:27.443161 2022] [wsgi:error] [pid 585:tid 140578333779712] [remote 172.28.0.3:48224]   File "/opt/venv/lib/python3.8/site-packages/rest_framework/views.py", line 469, in handle_exception [Tue May 31 12:51:27.443164 2022] [wsgi:error] [pid 585:tid 140578333779712] [remote 172.28.0.3:48224]     self.raise_uncaught_exception(exc) [Tue May 31 12:51:27.443166 2022] [wsgi:error] [pid 585:tid 140578333779712] [remote 172.28.0.3:48224]   File "/opt/venv/lib/python3.8/site-packages/rest_framework/views.py", line 480, in raise_uncaught_exception [Tue May 31 12:51:27.443168 2022] [wsgi:error] [pid 585:tid 140578333779712] [remote 172.28.0.3:48224]     raise exc [Tue May 31 12:51:27.443170 2022] [wsgi:error] [pid 585:tid 140578333779712] [remote 172.28.0.3:48224]   File "/opt/venv/lib/python3.8/site-packages/rest_framework/views.py", line 497, in dispatch [Tue May 31 12:51:27.443173 2022] [wsgi:error] [pid 585:tid 140578333779712] [remote 172.28.0.3:48224]     self.initial(request, *args, **kwargs) [Tue May 31 12:51:27.443175 2022] [wsgi:error] [pid 585:tid 140578333779712] [remote 172.28.0.3:48224]   File "/opt/venv/lib/python3.8/site-packages/rest_framework/views.py", line 415, in initial [Tue May 31 12:51:27.443177 2022] [wsgi:error] [pid 585:tid 140578333779712] [remote 172.28.0.3:48224]     self.check_permissions(request) [Tue May 31 12:51:27.443179 2022] [wsgi:error] [pid 585:tid 140578333779712] [remote 172.28.0.3:48224]   File "/opt/venv/lib/python3.8/site-packages/rest_framework/views.py", line 332, in check_permissions [Tue May 31 12:51:27.443182 2022] [wsgi:error] [pid 585:tid 140578333779712] [remote 172.28.0.3:48224]     if not permission.has_permission(request, self): [Tue May 31 12:51:27.443184 2022] [wsgi:error] [pid 585:tid 140578333779712] [remote 172.28.0.3:48224]   File "/home/django/cvat/apps/iam/permissions.py", line 1041, in has_permission [Tue May 31 12:51:27.443186 2022] [wsgi:error] [pid 585:tid 140578333779712] [remote 172.28.0.3:48224]     return self.check_permission(request, view, None) [Tue May 31 12:51:27.443188 2022] [wsgi:error] [pid 585:tid 140578333779712] [remote 172.28.0.3:48224]   File "/home/django/cvat/apps/iam/permissions.py", line 1037, in check_permission [Tue May 31 12:51:27.443190 2022] [wsgi:error] [pid 585:tid 140578333779712] [remote 172.28.0.3:48224]     return all(permissions) [Tue May 31 12:51:27.443192 2022] [wsgi:error] [pid 585:tid 140578333779712] [remote 172.28.0.3:48224]   File "/home/django/cvat/apps/iam/permissions.py", line 78, in bool [Tue May 31 12:51:27.443194 2022] [wsgi:error] [pid 585:tid 140578333779712] [remote 172.28.0.3:48224]     r = requests.post(self.url, json=self.payload) [Tue May 31 12:51:27.443196 2022] [wsgi:error] [pid 585:tid 140578333779712] [remote 172.28.0.3:48224]   File "/opt/venv/lib/python3.8/site-packages/requests/api.py", line 117, in post [Tue May 31 12:51:27.443199 2022] [wsgi:error] [pid 585:tid 140578333779712] [remote 172.28.0.3:48224]     return request('post', url, data=data, json=json, **kwargs) [Tue May 31 12:51:27.443201 2022] [wsgi:error] [pid 585:tid 140578333779712] [remote 172.28.0.3:48224]   File "/opt/venv/lib/python3.8/site-packages/requests/api.py", line 61, in request [Tue May 31 12:51:27.443203 2022] [wsgi:error] [pid 585:tid 140578333779712] [remote 172.28.0.3:48224]     return session.request(method=method, url=url, **kwargs) [Tue May 31 12:51:27.443205 2022] [wsgi:error] [pid 585:tid 140578333779712] [remote 172.28.0.3:48224]   File "/opt/venv/lib/python3.8/site-packages/requests/sessions.py", line 542, in request [Tue May 31 12:51:27.443207 2022] [wsgi:error] [pid 585:tid 140578333779712] [remote 172.28.0.3:48224]     resp = self.send(prep, **send_kwargs) [Tue May 31 12:51:27.443209 2022] [wsgi:error] [pid 585:tid 140578333779712] [remote 172.28.0.3:48224]   File "/opt/venv/lib/python3.8/site-packages/requests/sessions.py", line 655, in send [Tue May 31 12:51:27.443212 2022] [wsgi:error] [pid 585:tid 140578333779712] [remote 172.28.0.3:48224]     r = adapter.send(request, **kwargs) [Tue May 31 12:51:27.443214 2022] [wsgi:error] [pid 585:tid 140578333779712] [remote 172.28.0.3:48224]   File "/opt/venv/lib/python3.8/site-packages/requests/adapters.py", line 516, in send [Tue May 31 12:51:27.443215 2022] [wsgi:error] [pid 585:tid 140578333779712] [remote 172.28.0.3:48224]     raise ConnectionError(e, request=request) [Tue May 31 12:51:27.443217 2022] [wsgi:error] [pid 585:tid 140578333779712] [remote 172.28.0.3:48224] requests.exceptions.ConnectionError: HTTPConnectionPool(host='opa', port=8181): Max retries exceeded with url: /v1/data/users/allow (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7fda4250b1f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution')) [Tue May 31 12:51:27.443364 2022] [wsgi:error] [pid 585:tid 140578333779712] [remote 172.28.0.3:48224] ERROR - 2022-05-31 12:51:27,442 - log - Internal Server Error: /api/users/self [Tue May 31 12:51:27.443369 2022] [wsgi:error] [pid 585:tid 140578333779712] [remote 172.28.0.3:48224] Traceback (most recent call last): [Tue May 31 12:51:27.443371 2022] [wsgi:error] [pid 585:tid 140578333779712] [remote 172.28.0.3:48224]   File "/opt/venv/lib/python3.8/site-packages/urllib3/connection.py", line 174, in _new_conn [Tue May 31 12:51:27.443373 2022] [wsgi:error] [pid 585:tid 140578333779712] [remote 172.28.0.3:48224]     conn = connection.create_connection( [Tue May 31 12:51:27.443376 2022] [wsgi:error] [pid 585:tid 140578333779712] [remote 172.28.0.3:48224]   File "/opt/venv/lib/python3.8/site-packages/urllib3/util/connection.py", line 72, in create_connection [Tue May 31 12:51:27.443378 2022] [wsgi:error] [pid 585:tid 140578333779712] [remote 172.28.0.3:48224]     for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM): [Tue May 31 12:51:27.443380 2022] [wsgi:error] [pid 585:tid 140578333779712] [remote 172.28.0.3:48224]   File "/usr/lib/python3.8/socket.py", line 918, in getaddrinfo [Tue May 31 12:51:27.443382 2022] [wsgi:error] [pid 585:tid 140578333779712] [remote 172.28.0.3:48224]     for res in _socket.getaddrinfo(host, port, family, type, proto, flags): [Tue May 31 12:51:27.443384 2022] [wsgi:error] [pid 585:tid 140578333779712] [remote 172.28.0.3:48224] socket.gaierror: [Errno -3] Temporary failure in name resolution [Tue May 31 12:51:27.443387 2022] [wsgi:error] [pid 585:tid 140578333779712] [remote 172.28.0.3:48224]  [Tue May 31 12:51:27.443389 2022] [wsgi:error] [pid 585:tid 140578333779712] [remote 172.28.0.3:48224] During handling of the above exception, another exception occurred: [Tue May 31 12:51:27.443391 2022] [wsgi:error] [pid 585:tid 140578333779712] [remote 172.28.0.3:48224]  [Tue May 31 12:51:27.443393 2022] [wsgi:error] [pid 585:tid 140578333779712] [remote 172.28.0.3:48224] Traceback (most recent call last): [Tue May 31 12:51:27.443395 2022] [wsgi:error] [pid 585:tid 140578333779712] [remote 172.28.0.3:48224]   File "/opt/venv/lib/python3.8/site-packages/urllib3/connectionpool.py", line 703, in urlopen [Tue May 31 12:51:27.443397 2022] [wsgi:error] [pid 585:tid 140578333779712] [remote 172.28.0.3:48224]     httplib_response = self._make_request( [Tue May 31 12:51:27.443399 2022] [wsgi:error] [pid 585:tid 140578333779712] [remote 172.28.0.3:48224]   File "/opt/venv/lib/python3.8/site-packages/urllib3/connectionpool.py", line 398, in _make_request [Tue May 31 12:51:27.443401 2022] [wsgi:error] [pid 585:tid 140578333779712] [remote 172.28.0.3:48224]     conn.request(method, url, **httplib_request_kw) [Tue May 31 12:51:27.443403 2022] [wsgi:error] [pid 585:tid 140578333779712] [remote 172.28.0.3:48224]   File "/opt/venv/lib/python3.8/site-packages/urllib3/connection.py", line 239, in request [Tue May 31 12:51:27.443405 2022] [wsgi:error] [pid 585:tid 140578333779712] [remote 172.28.0.3:48224]     super(HTTPConnection, self).request(method, url, body=body, headers=headers) [Tue May 31 12:51:27.443407 2022] [wsgi:error] [pid 585:tid 140578333779712] [remote 172.28.0.3:48224]   File "/usr/lib/python3.8/http/client.py", line 1256, in request [Tue May 31 12:51:27.443409 2022] [wsgi:error] [pid 585:tid 140578333779712] [remote 172.28.0.3:48224]     self._send_request(method, url, body, headers, encode_chunked) [Tue May 31 12:51:27.443411 2022] [wsgi:error] [pid 585:tid 140578333779712] [remote 172.28.0.3:48224]   File "/usr/lib/python3.8/http/client.py", line 1302, in _send_request [Tue May 31 12:51:27.443412 2022] [wsgi:error] [pid 585:tid 140578333779712] [remote 172.28.0.3:48224]     self.endheaders(body, encode_chunked=encode_chunked) [Tue May 31 12:51:27.443415 2022] [wsgi:error] [pid 585:tid 140578333779712] [remote 172.28.0.3:48224]   File "/usr/lib/python3.8/http/client.py", line 1251, in endheaders [Tue May 31 12:51:27.443416 2022] [wsgi:error] [pid 585:tid 140578333779712] [remote 172.28.0.3:48224]     self._send_output(message_body, encode_chunked=encode_chunked) [Tue May 31 12:51:27.443418 2022] [wsgi:error] [pid 585:tid 140578333779712] [remote 172.28.0.3:48224]   File "/usr/lib/python3.8/http/client.py", line 1011, in _send_output [Tue May 31 12:51:27.443419 2022] [wsgi:error] [pid 585:tid 140578333779712] [remote 172.28.0.3:48224]     self.send(msg) [Tue May 31 12:51:27.443421 2022] [wsgi:error] [pid 585:tid 140578333779712] [remote 172.28.0.3:48224]   File "/usr/lib/python3.8/http/client.py", line 951, in send [Tue May 31 12:51:27.443423 2022] [wsgi:error] [pid 585:tid 140578333779712] [remote 172.28.0.3:48224]     self.connect() [Tue May 31 12:51:27.443424 2022] [wsgi:error] [pid 585:tid 140578333779712] [remote 172.28.0.3:48224]   File "/opt/venv/lib/python3.8/site-packages/urllib3/connection.py", line 205, in connect [Tue May 31 12:51:27.443426 2022] [wsgi:error] [pid 585:tid 140578333779712] [remote 172.28.0.3:48224]     conn = self._new_conn() [Tue May 31 12:51:27.443427 2022] [wsgi:error] [pid 585:tid 140578333779712] [remote 172.28.0.3:48224]   File "/opt/venv/lib/python3.8/site-packages/urllib3/connection.py", line 186, in _new_conn [Tue May 31 12:51:27.443429 2022] [wsgi:error] [pid 585:tid 140578333779712] [remote 172.28.0.3:48224]     raise NewConnectionError( [Tue May 31 12:51:27.443430 2022] [wsgi:error] [pid 585:tid 140578333779712] [remote 172.28.0.3:48224] urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPConnection object at 0x7fda4250b1f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution [Tue May 31 12:51:27.443432 2022] [wsgi:error] [pid 585:tid 140578333779712] [remote 172.28.0.3:48224]  [Tue May 31 12:51:27.443434 2022] [wsgi:error] [pid 585:tid 140578333779712] [remote 172.28.0.3:48224] During handling of the above exception, another exception occurred: [Tue May 31 12:51:27.443435 2022] [wsgi:error] [pid 585:tid 140578333779712] [remote 172.28.0.3:48224]  [Tue May 31 12:51:27.443437 2022] [wsgi:error] [pid 585:tid 140578333779712] [remote 172.28.0.3:48224] Traceback (most recent call last): [Tue May 31 12:51:27.443438 2022] [wsgi:error] [pid 585:tid 140578333779712] [remote 172.28.0.3:48224]   File "/opt/venv/lib/python3.8/site-packages/requests/adapters.py", line 439, in send [Tue May 31 12:51:27.443440 2022] [wsgi:error] [pid 585:tid 140578333779712] [remote 172.28.0.3:48224]     resp = conn.urlopen( [Tue May 31 12:51:27.443442 2022] [wsgi:error] [pid 585:tid 140578333779712] [remote 172.28.0.3:48224]   File "/opt/venv/lib/python3.8/site-packages/urllib3/connectionpool.py", line 785, in urlopen [Tue May 31 12:51:27.443443 2022] [wsgi:error] [pid 585:tid 140578333779712] [remote 172.28.0.3:48224]     retries = retries.increment( [Tue May 31 12:51:27.443445 2022] [wsgi:error] [pid 585:tid 140578333779712] [remote 172.28.0.3:48224]   File "/opt/venv/lib/python3.8/site-packages/urllib3/util/retry.py", line 592, in increment [Tue May 31 12:51:27.443446 2022] [wsgi:error] [pid 585:tid 140578333779712] [remote 172.28.0.3:48224]     raise MaxRetryError(_pool, url, error or ResponseError(cause))

2022-05-31 12:51:27,443 DEBG 'runserver' stderr output: [Tue May 31 12:51:27.443448 2022] [wsgi:error] [pid 585:tid 140578333779712] [remote 172.28.0.3:48224] urllib3.exceptions.MaxRetryError: HTTPConnectionPool(host='opa', port=8181): Max retries exceeded with url: /v1/data/users/allow (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7fda4250b1f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution')) [Tue May 31 12:51:27.443457 2022] [wsgi:error] [pid 585:tid 140578333779712] [remote 172.28.0.3:48224]  [Tue May 31 12:51:27.443459 2022] [wsgi:error] [pid 585:tid 140578333779712] [remote 172.28.0.3:48224] During handling of the above exception, another exception occurred: [Tue May 31 12:51:27.443460 2022] [wsgi:error] [pid 585:tid 140578333779712] [remote 172.28.0.3:48224]  [Tue May 31 12:51:27.443462 2022] [wsgi:error] [pid 585:tid 140578333779712] [remote 172.28.0.3:48224] Traceback (most recent call last): [Tue May 31 12:51:27.443463 2022] [wsgi:error] [pid 585:tid 140578333779712] [remote 172.28.0.3:48224]   File "/opt/venv/lib/python3.8/site-packages/django/core/handlers/exception.py", line 47, in inner [Tue May 31 12:51:27.443465 2022] [wsgi:error] [pid 585:tid 140578333779712] [remote 172.28.0.3:48224]     response = get_response(request) [Tue May 31 12:51:27.443467 2022] [wsgi:error] [pid 585:tid 140578333779712] [remote 172.28.0.3:48224]   File "/opt/venv/lib/python3.8/site-packages/django/core/handlers/base.py", line 181, in _get_response [Tue May 31 12:51:27.443468 2022] [wsgi:error] [pid 585:tid 140578333779712] [remote 172.28.0.3:48224]     response = wrapped_callback(request, *callback_args, **callback_kwargs) [Tue May 31 12:51:27.443470 2022] [wsgi:error] [pid 585:tid 140578333779712] [remote 172.28.0.3:48224]   File "/opt/venv/lib/python3.8/site-packages/django/views/decorators/csrf.py", line 54, in wrapped_view [Tue May 31 12:51:27.443472 2022] [wsgi:error] [pid 585:tid 140578333779712] [remote 172.28.0.3:48224]     return view_func(*args, **kwargs) [Tue May 31 12:51:27.443474 2022] [wsgi:error] [pid 585:tid 140578333779712] [remote 172.28.0.3:48224]   File "/opt/venv/lib/python3.8/site-packages/rest_framework/viewsets.py", line 125, in view [Tue May 31 12:51:27.443475 2022] [wsgi:error] [pid 585:tid 140578333779712] [remote 172.28.0.3:48224]     return self.dispatch(request, *args, **kwargs) [Tue May 31 12:51:27.443477 2022] [wsgi:error] [pid 585:tid 140578333779712] [remote 172.28.0.3:48224]   File "/opt/venv/lib/python3.8/site-packages/rest_framework/views.py", line 509, in dispatch [Tue May 31 12:51:27.443479 2022] [wsgi:error] [pid 585:tid 140578333779712] [remote 172.28.0.3:48224]     response = self.handle_exception(exc) [Tue May 31 12:51:27.443480 2022] [wsgi:error] [pid 585:tid 140578333779712] [remote 172.28.0.3:48224]   File "/opt/venv/lib/python3.8/site-packages/rest_framework/views.py", line 469, in handle_exception [Tue May 31 12:51:27.443482 2022] [wsgi:error] [pid 585:tid 140578333779712] [remote 172.28.0.3:48224]     self.raise_uncaught_exception(exc) [Tue May 31 12:51:27.443484 2022] [wsgi:error] [pid 585:tid 140578333779712] [remote 172.28.0.3:48224]   File "/opt/venv/lib/python3.8/site-packages/rest_framework/views.py", line 480, in raise_uncaught_exception [Tue May 31 12:51:27.443485 2022] [wsgi:error] [pid 585:tid 140578333779712] [remote 172.28.0.3:48224]     raise exc [Tue May 31 12:51:27.443487 2022] [wsgi:error] [pid 585:tid 140578333779712] [remote 172.28.0.3:48224]   File "/opt/venv/lib/python3.8/site-packages/rest_framework/views.py", line 497, in dispatch [Tue May 31 12:51:27.443489 2022] [wsgi:error] [pid 585:tid 140578333779712] [remote 172.28.0.3:48224]     self.initial(request, *args, **kwargs) [Tue May 31 12:51:27.443490 2022] [wsgi:error] [pid 585:tid 140578333779712] [remote 172.28.0.3:48224]   File "/opt/venv/lib/python3.8/site-packages/rest_framework/views.py", line 415, in initial [Tue May 31 12:51:27.443492 2022] [wsgi:error] [pid 585:tid 140578333779712] [remote 172.28.0.3:48224]     self.check_permissions(request) [Tue May 31 12:51:27.443494 2022] [wsgi:error] [pid 585:tid 140578333779712] [remote 172.28.0.3:48224]   File "/opt/venv/lib/python3.8/site-packages/rest_framework/views.py", line 332, in check_permissions [Tue May 31 12:51:27.443496 2022] [wsgi:error] [pid 585:tid 140578333779712] [remote 172.28.0.3:48224]     if not permission.has_permission(request, self): [Tue May 31 12:51:27.443498 2022] [wsgi:error] [pid 585:tid 140578333779712] [remote 172.28.0.3:48224]   File "/home/django/cvat/apps/iam/permissions.py", line 1041, in has_permission [Tue May 31 12:51:27.443499 2022] [wsgi:error] [pid 585:tid 140578333779712] [remote 172.28.0.3:48224]     return self.check_permission(request, view, None) [Tue May 31 12:51:27.443501 2022] [wsgi:error] [pid 585:tid 140578333779712] [remote 172.28.0.3:48224]   File "/home/django/cvat/apps/iam/permissions.py", line 1037, in check_permission [Tue May 31 12:51:27.443502 2022] [wsgi:error] [pid 585:tid 140578333779712] [remote 172.28.0.3:48224]     return all(permissions) [Tue May 31 12:51:27.443504 2022] [wsgi:error] [pid 585:tid 140578333779712] [remote 172.28.0.3:48224]   File "/home/django/cvat/apps/iam/permissions.py", line 78, in bool [Tue May 31 12:51:27.443506 2022] [wsgi:error] [pid 585:tid 140578333779712] [remote 172.28.0.3:48224]     r = requests.post(self.url, json=self.payload) [Tue May 31 12:51:27.443507 2022] [wsgi:error] [pid 585:tid 140578333779712] [remote 172.28.0.3:48224]   File "/opt/venv/lib/python3.8/site-packages/requests/api.py", line 117, in post [Tue May 31 12:51:27.443509 2022] [wsgi:error] [pid 585:tid 140578333779712] [remote 172.28.0.3:48224]     return request('post', url, data=data, json=json, **kwargs) [Tue May 31 12:51:27.443510 2022] [wsgi:error] [pid 585:tid 140578333779712] [remote 172.28.0.3:48224]   File "/opt/venv/lib/python3.8/site-packages/requests/api.py", line 61, in request [Tue May 31 12:51:27.443512 2022] [wsgi:error] [pid 585:tid 140578333779712] [remote 172.28.0.3:48224]     return session.request(method=method, url=url, **kwargs) [Tue May 31 12:51:27.443514 2022] [wsgi:error] [pid 585:tid 140578333779712] [remote 172.28.0.3:48224]   File "/opt/venv/lib/python3.8/site-packages/requests/sessions.py", line 542, in request [Tue May 31 12:51:27.443515 2022] [wsgi:error] [pid 585:tid 140578333779712] [remote 172.28.0.3:48224]     resp = self.send(prep, **send_kwargs) [Tue May 31 12:51:27.443517 2022] [wsgi:error] [pid 585:tid 140578333779712] [remote 172.28.0.3:48224]   File "/opt/venv/lib/python3.8/site-packages/requests/sessions.py", line 655, in send [Tue May 31 12:51:27.443518 2022] [wsgi:error] [pid 585:tid 140578333779712] [remote 172.28.0.3:48224]     r = adapter.send(request, **kwargs) [Tue May 31 12:51:27.443520 2022] [wsgi:error] [pid 585:tid 140578333779712] [remote 172.28.0.3:48224]   File "/opt/venv/lib/python3.8/site-packages/requests/adapters.py", line 516, in send [Tue May 31 12:51:27.443521 2022] [wsgi:error] [pid 585:tid 140578333779712] [remote 172.28.0.3:48224]     raise ConnectionError(e, request=request) [Tue May 31 12:51:27.443523 2022] [wsgi:error] [pid 585:tid 140578333779712] [remote 172.28.0.3:48224] requests.exceptions.ConnectionError: HTTPConnectionPool(host='opa', port=8181): Max retries exceeded with url: /v1/data/users/allow (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7fda4250b1f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

RezaHajimohammadi avatar May 31 '22 12:05 RezaHajimohammadi

@RezaHajimohammadi Is cvat_opa container running? What is docker ps output? Also please attach cvat_opa logs as well.

azhavoro avatar May 31 '22 13:05 azhavoro

Capture2 NO i dont have cvat_opa container. And i didnt understand your mean of docker ps, im sorry, im amateur in docker Uploading Capture.JPG…

RezaHajimohammadi avatar Jun 01 '22 05:06 RezaHajimohammadi

is there any solution for this? I am also facing the same issue

pravemp avatar Jun 01 '22 07:06 pravemp

@RezaHajimohammadi , please specify how you run CVAT.

nmanovic avatar Jun 01 '22 07:06 nmanovic

@pravemp , are you sure that you have the same error? Please check logs and look for raise ConnectionError(e, request=request). In the output above CVAT tries to send a request to another microservice (OPA) which is responsible for permissions. It cannot do that by a reason. Most probably OPA was not running properly using docker-compose.

nmanovic avatar Jun 01 '22 07:06 nmanovic

@nmanovic , i wanted to have access to cvat in internet, i searched and get help from a solution in a forum, this cvat is whit nginx, i downloaded the file(which i attached) and run this command: docker compose up -d. and it worked for me. Due to problems, I wanted to uninstall and reinstall it, but I had problems. cvat.zip

RezaHajimohammadi avatar Jun 01 '22 13:06 RezaHajimohammadi

@RezaHajimohammadi , please follow the documentation: https://openvinotoolkit.github.io/cvat/docs/administration/basics/installation/

nmanovic avatar Jun 01 '22 13:06 nmanovic

Thanks, i read documentation before i ask, it seems i have problems which i most check more.

RezaHajimohammadi avatar Jun 03 '22 08:06 RezaHajimohammadi

Hello guys,

I did a clean install on my machine (Alpine Linux distribution) to test the latest version of CVAT, i did deploy everything correctly and had the same problem as @RezaHajimohammadi.

Somehow, after digging, i found how to fix the problem @pravemp :

go to cvat/setting/base.py :

CHANGE IAM_OPA_DATA_URL = 'http://opa:8181/v1/data'

TO IAM_OPA_DATA_URL = 'http://{YOUR_DOMAIN_OR_HOST_IP}:8181/v1/data'

The value to SET is the SAME you've USED to set the CVAT_HOST, see : https://openvinotoolkit.github.io/cvat/docs/administration/basics/installation/

Heliex avatar Jun 13 '22 08:06 Heliex

Thanks, i will test it

RezaHajimohammadi avatar Jun 13 '22 10:06 RezaHajimohammadi

I had the same issue, but the problem was I copied the docker compose into another folder and deployed it. The issue was that there were some directories in the github repo that needed to be mounted in the compose file, the OPA at least needed it.

FeryET avatar Jun 13 '22 14:06 FeryET

Ensure you have opa rules loaded. I've tried today update to latest version CVAT and coudn't login for some time, because my opa rules where empty (I'm using default docker-compose configuration).

strcom avatar Jun 23 '22 12:06 strcom

hello guys, I was also facing similar error in communication with 'http://opa:8181/v1/data', my CVAT service is deployed in Kubernetes environment behind proxy. Make sure to add opa in the no_proxy environment variable.

shan100github avatar Jul 23 '22 14:07 shan100github

Hello guys,

I did a clean install on my machine (Alpine Linux distribution) to test the latest version of CVAT, i did deploy everything correctly and had the same problem as @RezaHajimohammadi.

Somehow, after digging, i found how to fix the problem @pravemp :

go to cvat/setting/base.py :

CHANGE IAM_OPA_DATA_URL = 'http://opa:8181/v1/data'

TO IAM_OPA_DATA_URL = 'http://{YOUR_DOMAIN_OR_HOST_IP}:8181/v1/data'

The value to SET is the SAME you've USED to set the CVAT_HOST, see : https://openvinotoolkit.github.io/cvat/docs/administration/basics/installation/

work for me, thanks

trandinh avatar Jun 27 '23 09:06 trandinh

Hey guys. So I've had a similar bug to the 500 (internal server error), and I've followed with this comment section and tried to change the base.py file:

IAM_OPA_HOST = 'http://opa:8181' IAM_OPA_DATA_URL = 'http://localhost:8181/v1/data'

I am still getting the same error, I've also tried using my ip address, and it gives me the same error

Waynium avatar Feb 05 '24 12:02 Waynium