While investigating issues submitting test results from Bysen I discovered this in the logs:
[20-02-13 06:06:31] ERROR: HTTPSConnectionPool(host='testflinger.canonical.com', port=443): Read timed out. (read timeout=10)
Traceback (most recent call last):
File "/srv/testflinger-agent/bysen/env/lib/python3.6/site-packages/urllib3-1.25.3-py3.6.egg/urllib3/connectionpool.py", line 344, in _make_request
self._validate_conn(conn)
File "/srv/testflinger-agent/bysen/env/lib/python3.6/site-packages/urllib3-1.25.3-py3.6.egg/urllib3/connectionpool.py", line 843, in _validate_conn
conn.connect()
File "/srv/testflinger-agent/bysen/env/lib/python3.6/site-packages/urllib3-1.25.3-py3.6.egg/urllib3/connection.py", line 370, in connect
ssl_context=context)
File "/srv/testflinger-agent/bysen/env/lib/python3.6/site-packages/urllib3-1.25.3-py3.6.egg/urllib3/util/ssl_.py", line 355, in ssl_wrap_socket
return context.wrap_socket(sock, server_hostname=server_hostname)
File "/usr/lib/python3.6/ssl.py", line 407, in wrap_socket
_context=self, _session=session)
File "/usr/lib/python3.6/ssl.py", line 817, in __init__
self.do_handshake()
File "/usr/lib/python3.6/ssl.py", line 1077, in do_handshake
self._sslobj.do_handshake()
File "/usr/lib/python3.6/ssl.py", line 689, in do_handshake
self._sslobj.do_handshake()
socket.timeout: _ssl.c:830: The handshake operation timed out
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/srv/testflinger-agent/bysen/env/lib/python3.6/site-packages/requests-2.22.0-py3.6.egg/requests/adapters.py", line 449, in send
timeout=timeout
File "/srv/testflinger-agent/bysen/env/lib/python3.6/site-packages/urllib3-1.25.3-py3.6.egg/urllib3/connectionpool.py", line 641, in urlopen
_stacktrace=sys.exc_info()[2])
File "/srv/testflinger-agent/bysen/env/lib/python3.6/site-packages/urllib3-1.25.3-py3.6.egg/urllib3/util/retry.py", line 368, in increment
raise six.reraise(type(error), error, _stacktrace)
File "/srv/testflinger-agent/bysen/env/lib/python3.6/site-packages/urllib3-1.25.3-py3.6.egg/urllib3/packages/six.py", line 686, in reraise
raise value
File "/srv/testflinger-agent/bysen/env/lib/python3.6/site-packages/urllib3-1.25.3-py3.6.egg/urllib3/connectionpool.py", line 603, in urlopen
chunked=chunked)
File "/srv/testflinger-agent/bysen/env/lib/python3.6/site-packages/urllib3-1.25.3-py3.6.egg/urllib3/connectionpool.py", line 347, in _make_request
self._raise_timeout(err=e, url=url, timeout_value=conn.timeout)
File "/srv/testflinger-agent/bysen/env/lib/python3.6/site-packages/urllib3-1.25.3-py3.6.egg/urllib3/connectionpool.py", line 307, in _raise_timeout
raise ReadTimeoutError(self, url, "Read timed out. (read timeout=%s)" % timeout_value)
urllib3.exceptions.ReadTimeoutError: HTTPSConnectionPool(host='testflinger.canonical.com', port=443): Read timed out. (read timeout=10)
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/srv/testflinger-agent/bysen/env/lib/python3.6/site-packages/testflinger_agent-1.0-py3.6.egg/testflinger_agent/client.py", line 64, in check_jobs
timeout=10)
File "/srv/testflinger-agent/bysen/env/lib/python3.6/site-packages/requests-2.22.0-py3.6.egg/requests/api.py", line 75, in get
return request('get', url, params=params, **kwargs)
File "/srv/testflinger-agent/bysen/env/lib/python3.6/site-packages/requests-2.22.0-py3.6.egg/requests/api.py", line 60, in request
return session.request(method=method, url=url, **kwargs)
File "/srv/testflinger-agent/bysen/env/lib/python3.6/site-packages/requests-2.22.0-py3.6.egg/requests/sessions.py", line 533, in request
resp = self.send(prep, **send_kwargs)
File "/srv/testflinger-agent/bysen/env/lib/python3.6/site-packages/requests-2.22.0-py3.6.egg/requests/sessions.py", line 646, in send
r = adapter.send(request, **kwargs)
File "/srv/testflinger-agent/bysen/env/lib/python3.6/site-packages/requests-2.22.0-py3.6.egg/requests/adapters.py", line 529, in send
raise ReadTimeout(e, request=request)
requests.exceptions.ReadTimeout: HTTPSConnectionPool(host='testflinger.canonical.com', port=443): Read timed out. (read timeout=10)
Yes, that can happen when the network is too slow, or it can't reach the server for a time, but it *should* recover gracefully from that. Was it stuck or were there any other problems due to this? Normally things should keep going, and this is just there to let you know.