Task exception was never retrieved
16.11. 20:38 appeared traceback with 504 error on haproxy
[2021-11-16T17:38:38.932Z] | asyncio | ERROR - Task exception was never retrieved
future: <Task finished name='Task-2' coro=<critical.<locals>.wrapper() done, defined at /document_service/prozorro_sale/document_service/utils.py:61> exception=SystemExit(1)> | X-Request-ID: unknown
Traceback (most recent call last):
File "/usr/local/lib/python3.9/site-packages/aiohttp/connector.py", line 969, in _wrap_create_connection
return await self._loop.create_connection(*args, **kwargs) # type: ignore # noqa
File "uvloop/loop.pyx", line 2062, in create_connection
File "uvloop/loop.pyx", line 2057, in uvloop.loop.Loop.create_connection
ConnectionAbortedError: SSL handshake is taking longer than 60.0 seconds: aborting the connection
The above exception was the direct cause of the following exception:
Traceback (most recent call last):
File "/document_service/prozorro_sale/document_service/utils.py", line 63, in wrapper
return await func(*args, **kwargs)
File "/document_service/prozorro_sale/document_service/storages/swift_storage.py", line 93, in refresh_token
resp = await session.post(self._auth_url, json=auth_data, ssl=False)
File "/usr/local/lib/python3.9/site-packages/aiohttp/client.py", line 520, in _request
conn = await self._connector.connect(
File "/usr/local/lib/python3.9/site-packages/aiohttp/connector.py", line 535, in connect
proto = await self._create_connection(req, traces, timeout)
File "/usr/local/lib/python3.9/site-packages/aiohttp/connector.py", line 892, in _create_connection
_, proto = await self._create_direct_connection(req, traces, timeout)
File "/usr/local/lib/python3.9/site-packages/aiohttp/connector.py", line 1051, in _create_direct_connection
raise last_exc
File "/usr/local/lib/python3.9/site-packages/aiohttp/connector.py", line 1020, in _create_direct_connection
transp, proto = await self._wrap_create_connection(
File "/usr/local/lib/python3.9/site-packages/aiohttp/connector.py", line 975, in _wrap_create_connection
raise client_error(req.connection_key, exc) from exc
aiohttp.client_exceptions.ClientConnectorError: Cannot connect to host swift-auth:443 ssl:False [None]
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "uvloop/loop.pyx", line 467, in uvloop.loop.Loop._on_idle
File "uvloop/cbhandles.pyx", line 83, in uvloop.loop.Handle._run
File "uvloop/cbhandles.pyx", line 61, in uvloop.loop.Handle._run
File "/document_service/prozorro_sale/document_service/utils.py", line 66, in wrapper
sys.exit(1)
SystemExit: 1