network unreachable in riscv64 livefs build

Asked by Dimitri John Ledkov on 2020-11-23

Traceback (most recent call last):
  File "/usr/share/livecd-rootfs/get-ppa-fingerprint", line 14, in <module>
    lp = Launchpad.login_anonymously('livecd-rootfs')
  File "/usr/lib/python3/dist-packages/launchpadlib/", line 400, in login_anonymously
    return cls(credentials, None, None, service_root=service_root,
  File "/usr/lib/python3/dist-packages/launchpadlib/", line 209, in __init__
    super(Launchpad, self).__init__(
  File "/usr/lib/python3/dist-packages/lazr/restfulclient/", line 485, in __init__
    self._wadl = self._browser.get_wadl_application(self._root_uri)
  File "/usr/lib/python3/dist-packages/lazr/restfulclient/", line 456, in get_wadl_application
    response, content = self._request(url, media_type=wadl_type)
  File "/usr/lib/python3/dist-packages/lazr/restfulclient/", line 398, in _request
    response, content = self._request_and_retry(
  File "/usr/lib/python3/dist-packages/lazr/restfulclient/", line 368, in _request_and_retry
    response, content = self._connection.request(
  File "/usr/lib/python3/dist-packages/httplib2/", line 1985, in request
    (response, content) = self._request(
  File "/usr/lib/python3/dist-packages/launchpadlib/", line 137, in _request
    response, content = super(
  File "/usr/lib/python3/dist-packages/lazr/restfulclient/", line 193, in _request
    return super(RestfulHttp, self)._request(
  File "/usr/lib/python3/dist-packages/httplib2/", line 1650, in _request
    (response, content) = self._conn_request(
  File "/usr/lib/python3/dist-packages/httplib2/", line 1557, in _conn_request
  File "/usr/lib/python3/dist-packages/httplib2/", line 1391, in connect
    raise socket_err
  File "/usr/lib/python3/dist-packages/httplib2/", line 1324, in connect
    sock.connect((, self.port))
OSError: [Errno 101] Network is unreachable

This is my first time building with extra_ppas: ["xnox/nonvirt"] metadata_override hence a request to launchpad is made to retrieve gpg key. Seems to fail.

Question information

English Edit question
Launchpad itself Edit question
No assignee Edit question
Last query:
Last reply:
Revision history for this message
Colin Watson (cjwatson) said :

I believe this is a livecd-rootfs bug, though I'm amazed it hasn't been noticed before now. get-ppa-fingerprint fails to specify a service_root to Launchpad.login_anonymously, which means it defaults to staging, and production builders indeed don't necessarily have access to (though may happen to by coincidence, and I suspect scalingstack ones currently do). `Launchpad.login_anonymously('livecd-rootfs', 'production')` works fine.

Revision history for this message
Dimitri John Ledkov (xnox) said :

Fixing that get's passed the python script.... and ends up with

gpg: keybox '/tmp/tmp.if9OkzXoSK/pubring.gpg' created
gpg: keyserver receive failed: Connection timed out
Build failed

which basically tries to do

gpg --no-default-keyring --no-options --homedir "$gpg_tmpdir" \
     --secret-keyring "$gpg_tmpdir/secring.gpg" \
     --keyserver hkp:// \
     --keyring "$gpg_tmpdir"/pubring.gpg \
     --recv 2D9DF1E22F3416238D46F49F157951FE4031D287

So it looks like there is still connectivity issue to at least hkp:// ?

Revision history for this message
Dimitri John Ledkov (xnox) said :
Revision history for this message
Colin Watson (cjwatson) said :

Connectivity to the keyserver should be fixed now. Please retry.

Can you help with this problem?

Provide an answer of your own, or ask Dimitri John Ledkov for more information if necessary.

To post a message you must log in.