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

unexpected exception fetching https://www.debian.org/mirror/list #12

Open
Cronus89 opened this issue Jan 13, 2021 · 0 comments
Open

unexpected exception fetching https://www.debian.org/mirror/list #12

Cronus89 opened this issue Jan 13, 2021 · 0 comments

Comments

@Cronus89
Copy link

`root@plex:~# apt-smart -b
2021-01-13 13:19:24 plex.cronus89.com apt_smart[10633] INFO Checking if Debian 10 (buster) is available on http://security.debian.org ..
2021-01-13 13:19:29 plex.cronus89.com apt_smart[10633] INFO Debian 10 (buster) is supported (based on security mirror).
2021-01-13 13:19:29 plex.cronus89.com apt_smart[10633] INFO Adding BASE_URL mirror:
2021-01-13 13:19:29 plex.cronus89.com apt_smart[10633] INFO http://ftp.debian.org/debian
2021-01-13 13:19:29 plex.cronus89.com apt_smart.backends.debian[10633] INFO Discovering Debian mirrors at https://www.debian.org/mirror/list ..
2021-01-13 13:19:39 plex.cronus89.com apt_smart.cli[10633] ERROR Encountered unexpected exception! Aborting ..
Traceback (most recent call last):
File "/usr/local/lib/python3.7/dist-packages/apt_smart/backends/debian.py", line 108, in discover_mirrors
response = fetch_url(url, timeout=2)
File "/usr/local/lib/python3.7/dist-packages/apt_smart/http.py", line 53, in fetch_url
response = urlopen(url)
File "/usr/lib/python3.7/urllib/request.py", line 222, in urlopen
return opener.open(url, data, timeout)
File "/usr/lib/python3.7/urllib/request.py", line 525, in open
response = self._open(req, data)
File "/usr/lib/python3.7/urllib/request.py", line 543, in _open
'_open', req)
File "/usr/lib/python3.7/urllib/request.py", line 503, in _call_chain
result = func(*args)
File "/usr/lib/python3.7/urllib/request.py", line 1367, in https_open
context=self._context, check_hostname=self._check_hostname)
File "/usr/lib/python3.7/urllib/request.py", line 1324, in do_open
encode_chunked=req.has_header('Transfer-encoding'))
File "/usr/lib/python3.7/http/client.py", line 1244, in request
self._send_request(method, url, body, headers, encode_chunked)
File "/usr/lib/python3.7/http/client.py", line 1290, in _send_request
self.endheaders(body, encode_chunked=encode_chunked)
File "/usr/lib/python3.7/http/client.py", line 1239, in endheaders
self._send_output(message_body, encode_chunked=encode_chunked)
File "/usr/lib/python3.7/http/client.py", line 1026, in _send_output
self.send(msg)
File "/usr/lib/python3.7/http/client.py", line 966, in send
self.connect()
File "/usr/lib/python3.7/http/client.py", line 1399, in connect
super().connect()
File "/usr/lib/python3.7/http/client.py", line 938, in connect
(self.host,self.port), self.timeout, self.source_address)
File "/usr/lib/python3.7/socket.py", line 707, in create_connection
for res in getaddrinfo(host, port, 0, SOCK_STREAM):
File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
File "/usr/local/lib/python3.7/dist-packages/stopit/signalstop.py", line 29, in handle_timeout
'value (%d seconds).' % self.seconds)
stopit.utils.TimeoutException: Block exceeded maximum timeout value (2 seconds).

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File "/usr/local/lib/python3.7/dist-packages/apt_smart/cli.py", line 211, in main
callback()
File "/usr/local/lib/python3.7/dist-packages/apt_smart/cli.py", line 224, in report_best_mirror
output(updater.best_mirror)
File "/usr/local/lib/python3.7/dist-packages/property_manager3/init.py", line 784, in get
value = super(custom_property, self).get(obj, type)
File "/usr/local/lib/python3.7/dist-packages/apt_smart/init.py", line 208, in best_mirror
return self.ranked_mirrors[0].mirror_url
File "/usr/local/lib/python3.7/dist-packages/property_manager3/init.py", line 784, in get
value = super(custom_property, self).get(obj, type)
File "/usr/local/lib/python3.7/dist-packages/apt_smart/init.py", line 390, in ranked_mirrors
mirrors = sorted(self.available_mirrors, key=lambda c: c.sort_key, reverse=True)
File "/usr/local/lib/python3.7/dist-packages/property_manager3/init.py", line 784, in get
value = super(custom_property, self).get(obj, type)
File "/usr/local/lib/python3.7/dist-packages/apt_smart/init.py", line 153, in available_mirrors
for candidate in self.backend.discover_mirrors():
File "/usr/local/lib/python3.7/dist-packages/apt_smart/backends/debian.py", line 118, in discover_mirrors
response = fetch_url(url, timeout=5)
File "/usr/local/lib/python3.7/dist-packages/apt_smart/http.py", line 53, in fetch_url
response = urlopen(url)
File "/usr/lib/python3.7/urllib/request.py", line 222, in urlopen
return opener.open(url, data, timeout)
File "/usr/lib/python3.7/urllib/request.py", line 525, in open
response = self._open(req, data)
File "/usr/lib/python3.7/urllib/request.py", line 543, in _open
'_open', req)
File "/usr/lib/python3.7/urllib/request.py", line 503, in _call_chain
result = func(*args)
File "/usr/lib/python3.7/urllib/request.py", line 1352, in http_open
return self.do_open(http.client.HTTPConnection, req)
File "/usr/lib/python3.7/urllib/request.py", line 1324, in do_open
encode_chunked=req.has_header('Transfer-encoding'))
File "/usr/lib/python3.7/http/client.py", line 1244, in request
self._send_request(method, url, body, headers, encode_chunked)
File "/usr/lib/python3.7/http/client.py", line 1290, in _send_request
self.endheaders(body, encode_chunked=encode_chunked)
File "/usr/lib/python3.7/http/client.py", line 1239, in endheaders
self._send_output(message_body, encode_chunked=encode_chunked)
File "/usr/lib/python3.7/http/client.py", line 1026, in _send_output
self.send(msg)
File "/usr/lib/python3.7/http/client.py", line 966, in send
self.connect()
File "/usr/lib/python3.7/http/client.py", line 938, in connect
(self.host,self.port), self.timeout, self.source_address)
File "/usr/lib/python3.7/socket.py", line 707, in create_connection
for res in getaddrinfo(host, port, 0, SOCK_STREAM):
File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
File "/usr/local/lib/python3.7/dist-packages/stopit/signalstop.py", line 29, in handle_timeout
'value (%d seconds).' % self.seconds)
stopit.utils.TimeoutException: Block exceeded maximum timeout value (5 seconds).`

When I manually curl https://www.debian.org/mirror/list it connects fine and has no issues.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant