snapmatch: Timeout while retrieving data from the snapshot debian API
It talks also about a missing file, but that is maybe just a symptom of the timeout... please investigate.
21-08-13 12:02:30 DEBUG aliens4friends.commands.snap_match | API call result not found in cache. Making an API call...
multiprocessing.pool.RemoteTraceback:
"""
Traceback (most recent call last):
File "/usr/local/lib/python3.8/dist-packages/aliens4friends-0.4.0-py3.8.egg/aliens4friends/commands/snap_match.py", line 83, in get_data
response = pool.get(api_response_cached)
File "/usr/local/lib/python3.8/dist-packages/aliens4friends-0.4.0-py3.8.egg/aliens4friends/commons/pool.py", line 228, in get
return self._get(False, *path_args) #pytype: disable=bad-return-type
File "/usr/local/lib/python3.8/dist-packages/aliens4friends-0.4.0-py3.8.egg/aliens4friends/commons/pool.py", line 241, in _get
with open(path, f'r{flag}') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/build/gitlab-runner/common/a4fpool/apiresponse/a4f.snap_match-snapshot.debian.org.mr.package.gtk-vnc.json'
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
conn = connection.create_connection(
File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 84, in create_connection
raise err
File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 74, in create_connection
sock.connect(sa)
OSError: [Errno 101] Network is unreachable
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 665, in urlopen
httplib_response = self._make_request(
File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 376, in _make_request
self._validate_conn(conn)
File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 996, in _validate_conn
conn.connect()
File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 314, in connect
conn = self._new_conn()
File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 171, in _new_conn
raise NewConnectionError(
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f634829f4f0>: Failed to establish a new connection: [Errno 101] Network is unreachable
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/usr/lib/python3/dist-packages/requests/adapters.py", line 439, in send
resp = conn.urlopen(
File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 719, in urlopen
retries = retries.increment(
File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 436, in increment
raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='snapshot.debian.org', port=443): Max retries exceeded with url: /mr/package/gtk-vnc/ (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f634829f4f0>: Failed to establish a new connection: [Errno 101] Network is unreachable'))
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/usr/lib/python3.8/multiprocessing/pool.py", line 125, in worker
result = (True, func(*args, **kwds))
File "/usr/lib/python3.8/multiprocessing/pool.py", line 48, in mapstar
return list(map(*args))
File "/usr/local/lib/python3.8/dist-packages/aliens4friends-0.4.0-py3.8.egg/aliens4friends/commands/snap_match.py", line 449, in _execute
return AlienSnapMatcher().run(path)
File "/usr/local/lib/python3.8/dist-packages/aliens4friends-0.4.0-py3.8.egg/aliens4friends/commands/snap_match.py", line 291, in run
comparedResults, model = self.match(package)
File "/usr/local/lib/python3.8/dist-packages/aliens4friends-0.4.0-py3.8.egg/aliens4friends/commands/snap_match.py", line 161, in match
snap_match = self._searchPackage(apkg, True)
File "/usr/local/lib/python3.8/dist-packages/aliens4friends-0.4.0-py3.8.egg/aliens4friends/commands/snap_match.py", line 326, in _searchPackage
versionMatch = self._searchVersion(apkg, pkg['package'])
File "/usr/local/lib/python3.8/dist-packages/aliens4friends-0.4.0-py3.8.egg/aliens4friends/commands/snap_match.py", line 364, in _searchVersion
data = AlienSnapMatcher.get_data(AlienSnapMatcher.API_URL_ALLSRC + needle + '/')
File "/usr/local/lib/python3.8/dist-packages/aliens4friends-0.4.0-py3.8.egg/aliens4friends/commands/snap_match.py", line 88, in get_data
response = requests.get(uri)
File "/usr/lib/python3/dist-packages/requests/api.py", line 75, in get
return request('get', url, params=params, **kwargs)
File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
return session.request(method=method, url=url, **kwargs)
File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
resp = self.send(prep, **send_kwargs)
File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
r = adapter.send(request, **kwargs)
File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='snapshot.debian.org', port=443): Max retries exceeded with url: /mr/package/gtk-vnc/ (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f634829f4f0>: Failed to establish a new connection: [Errno 101] Network is unreachable'))
"""
The above exception was the direct cause of the following exception:
Traceback (most recent call last):
File "/usr/lib/python3.8/runpy.py", line 194, in _run_module_as_main
return _run_code(code, main_globals, None,
File "/usr/lib/python3.8/runpy.py", line 87, in _run_code
exec(code, run_globals)
File "/usr/local/lib/python3.8/dist-packages/aliens4friends-0.4.0-py3.8.egg/aliens4friends/__main__.py", line 443, in <module>
Aliens4Friends()
File "/usr/local/lib/python3.8/dist-packages/aliens4friends-0.4.0-py3.8.egg/aliens4friends/__main__.py", line 109, in __init__
getattr(self, self.args.command)()
File "/usr/local/lib/python3.8/dist-packages/aliens4friends-0.4.0-py3.8.egg/aliens4friends/__main__.py", line 390, in snapmatch
AlienSnapMatcher.execute(
File "/usr/local/lib/python3.8/dist-packages/aliens4friends-0.4.0-py3.8.egg/aliens4friends/commands/snap_match.py", line 433, in execute
results = multiprocessing_pool.map( # type: ignore
File "/usr/lib/python3.8/multiprocessing/pool.py", line 364, in map
return self._map_async(func, iterable, mapstar, chunksize).get()
File "/usr/lib/python3.8/multiprocessing/pool.py", line 771, in get
raise self._value
requests.exceptions.ConnectionError: None: Max retries exceeded with url: /mr/package/gtk-vnc/ (Caused by None)