osbuild-composer icon indicating copy to clipboard operation
osbuild-composer copied to clipboard

osbuild.host.RemoteError: RuntimeError: curl: error code 22

Open cospotato opened this issue 2 years ago • 9 comments

Hello all. I am building a fedora-iot-commit type compose. I'm using a additional source like this:

[docker-ce-stable]
name = "docker-ce-stable"
type = "yum-baseurl"
check_gpg = false
check_ssl = false
url ="https://download.docker.com/linux/fedora/$releasever/$basearch/stable"

But the job was failed. And I got the below error log from [email protected]:

May 09 16:21:56 fedora osbuild-worker[511156]: osbuild.host.RemoteError: RuntimeError: curl: error downloading {'url': 'https://download.docker.com/linux/fedora/$releasever/$basearch/stable/Packages/containerd.io-1.5.11-3.1.fc35.x86_64.rpm'}: error code 22
May 09 16:21:56 fedora osbuild-worker[511156]:    File "/usr/lib/python3.10/site-packages/osbuild/host.py", line 268, in serve
May 09 16:21:56 fedora osbuild-worker[511156]:     reply, reply_fds = self._handle_message(msg, fds)
May 09 16:21:56 fedora osbuild-worker[511156]:   File "/usr/lib/python3.10/site-packages/osbuild/host.py", line 301, in _handle_message
May 09 16:21:56 fedora osbuild-worker[511156]:     ret, fds = self.dispatch(name, args, fds)
May 09 16:21:56 fedora osbuild-worker[511156]:   File "/usr/lib/python3.10/site-packages/osbuild/sources.py", line 62, in dispatch
May 09 16:21:56 fedora osbuild-worker[511156]:     r = self.download(items,
May 09 16:21:56 fedora osbuild-worker[511156]:   File "/usr/lib/osbuild/sources/org.osbuild.curl", line 172, in download
May 09 16:21:56 fedora osbuild-worker[511156]:     download(items, cache)
May 09 16:21:56 fedora osbuild-worker[511156]:   File "/usr/lib/osbuild/sources/org.osbuild.curl", line 162, in download
May 09 16:21:56 fedora osbuild-worker[511156]:     for _ in results:
May 09 16:21:56 fedora osbuild-worker[511156]:   File "/usr/lib64/python3.10/concurrent/futures/process.py", line 567, in _chain_from_iterable_of_lists
May 09 16:21:56 fedora osbuild-worker[511156]:     for element in iterable:
May 09 16:21:56 fedora osbuild-worker[511156]:   File "/usr/lib64/python3.10/concurrent/futures/_base.py", line 609, in result_iterator
May 09 16:21:56 fedora osbuild-worker[511156]:     yield fs.pop().result()
May 09 16:21:56 fedora osbuild-worker[511156]:   File "/usr/lib64/python3.10/concurrent/futures/_base.py", line 446, in result
May 09 16:21:56 fedora osbuild-worker[511156]:     return self.__get_result()
May 09 16:21:56 fedora osbuild-worker[511156]:   File "/usr/lib64/python3.10/concurrent/futures/_base.py", line 391, in __get_result
May 09 16:21:56 fedora osbuild-worker[511156]:     raise self._exception

cospotato avatar May 09 '22 08:05 cospotato

Thanks for the report!

Could you tell us which version of osbuild you are using?

teg avatar May 09 '22 09:05 teg

Thanks for the report!

Could you tell us which version of osbuild you are using?

Hi teg. I'm using osbuild-54-py3.10

cospotato avatar May 09 '22 09:05 cospotato

Are you able to download the rpm manually? Looks like an http error.

teg avatar May 09 '22 10:05 teg

Replace $releasever and $basearch with the correct values in the source definition. osbuild doesn't support the dnf variable substitutions.

bcl avatar May 09 '22 16:05 bcl

Should $releasever et al. not have been resolved by Composer during dep-solve?

gicmo avatar May 11 '22 08:05 gicmo

Should $releasever et al. not have been resolved by Composer during dep-solve?

don't think we support it, might want to

teg avatar May 11 '22 14:05 teg

Replace $releasever and $basearch with the correct values in the source definition. osbuild doesn't support the dnf variable substitutions.

This work. But I think we should support these argument when building multi target arch.

cospotato avatar May 14 '22 02:05 cospotato

What's the status for this issue ? I see it as a request for enhancement. @obudai do we want to support $releasever ?

lavocatt avatar Feb 07 '23 12:02 lavocatt

I think this is something to be implemented in composer, moving.

ondrejbudai avatar Feb 07 '23 12:02 ondrejbudai