Public bug reported:

The tests fail with this error:

596s ======================================================================
596s ERROR: test_download_file_retries 
(tests.test_net.NetTest.test_download_file_retries)
596s ----------------------------------------------------------------------
596s Traceback (most recent call last):
596s   File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 203, 
in _new_conn
596s     sock = connection.create_connection(
596s            ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
596s   File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 
85, in create_connection
596s     raise err
596s   File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 
73, in create_connection
596s     sock.connect(sa)
596s ConnectionRefusedError: [Errno 111] Connection refused
596s 
596s The above exception was the direct cause of the following exception:
596s 
596s Traceback (most recent call last):
596s   File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 
791, in urlopen
596s     response = self._make_request(
596s                ^^^^^^^^^^^^^^^^^^^
596s   File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 
497, in _make_request
596s     conn.request(
596s   File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 395, 
in request
596s     self.endheaders()
596s   File "/usr/lib/python3.12/http/client.py", line 1331, in endheaders
596s     self._send_output(message_body, encode_chunked=encode_chunked)
596s   File "/usr/lib/python3.12/http/client.py", line 1091, in _send_output
596s     self.send(msg)
596s   File "/usr/lib/python3.12/http/client.py", line 1035, in send
596s     self.connect()
596s   File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 243, 
in connect
596s     self.sock = self._new_conn()
596s                 ^^^^^^^^^^^^^^^^
596s   File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 218, 
in _new_conn
596s     raise NewConnectionError(
596s urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPConnection 
object at 0xeb7672e8>: Failed to establish a new connection: [Errno 111] 
Connection refused
596s 
596s The above exception was the direct cause of the following exception:
596s 
596s Traceback (most recent call last):
596s   File "/usr/lib/python3/dist-packages/requests/adapters.py", line 667, in 
send
596s     resp = conn.urlopen(
596s            ^^^^^^^^^^^^^
596s   File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 
875, in urlopen
596s     return self.urlopen(
596s            ^^^^^^^^^^^^^
596s   File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 
875, in urlopen
596s     return self.urlopen(
596s            ^^^^^^^^^^^^^
596s   File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 
875, in urlopen
596s     return self.urlopen(
596s            ^^^^^^^^^^^^^
596s   File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 
845, in urlopen
596s     retries = retries.increment(
596s               ^^^^^^^^^^^^^^^^^^
596s   File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 517, 
in increment
596s     raise MaxRetryError(_pool, url, reason) from reason  # type: 
ignore[arg-type]
596s     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
596s urllib3.exceptions.MaxRetryError: HTTPConnectionPool(host='localhost', 
port=42575): Max retries exceeded with url: /f.txt (Caused by 
NewConnectionError('<urllib3.connection.HTTPConnection object at 0xeb7672e8>: 
Failed to establish a new connection: [Errno 111] Connection refused'))
596s 
596s During handling of the above exception, another exception occurred:
596s 
596s Traceback (most recent call last):
596s   File "/usr/lib/python3.12/unittest/mock.py", line 1861, in _inner
596s     return f(*args, **kw)
596s            ^^^^^^^^^^^^^^
596s   File "/tmp/autopkgtest.AukTi1/build.QzL/src/tests/test_net.py", line 
112, in test_download_file_retries
596s     f = net.download_file('http://localhost:%d/f.txt' % server.port)
596s         ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
596s   File "/tmp/autopkgtest.AukTi1/build.QzL/src/fdroidserver/net.py", line 
63, in download_file
596s     r = session.get(
596s         ^^^^^^^^^^^^
596s   File "/usr/lib/python3/dist-packages/requests/sessions.py", line 602, in 
get
596s     return self.request("GET", url, **kwargs)
596s            ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
596s   File "/usr/lib/python3/dist-packages/requests/sessions.py", line 589, in 
request
596s     resp = self.send(prep, **send_kwargs)
596s            ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
596s   File "/usr/lib/python3/dist-packages/requests/sessions.py", line 703, in 
send
596s     r = adapter.send(request, **kwargs)
596s         ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
596s   File "/usr/lib/python3/dist-packages/requests/adapters.py", line 700, in 
send
596s     raise ConnectionError(e, request=request)
596s requests.exceptions.ConnectionError: HTTPConnectionPool(host='localhost', 
port=42575): Max retries exceeded with url: /f.txt (Caused by 
NewConnectionError('<urllib3.connection.HTTPConnection object at 0xeb7672e8>: 
Failed to establish a new connection: [Errno 111] Connection refused'))

** Affects: fdroidserver (Ubuntu)
     Importance: Undecided
         Status: In Progress


** Tags: update-excuse

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/2095111

Title:
  fdroidserver: autopkgtests fail in containers

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/fdroidserver/+bug/2095111/+subscriptions


-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to