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

Retry 404's for curl sources #40

Open
supakeen opened this issue Dec 21, 2024 · 1 comment
Open

Retry 404's for curl sources #40

supakeen opened this issue Dec 21, 2024 · 1 comment
Labels
🐞 bug Something isn't working

Comments

@supakeen
Copy link
Member

(I know this is the wrong place in the stack and we'll need issues in our other projects but I'm listing it here as a user of image-builder-cli).

Regularly when building images we get 404's because a mirror isn't fully up to date. We've been wanting to fix that for a while but now we have even more reason to do so:

source/org.osbuild.curl (org.osbuild.curl): WARNING: failed to download https://mirror.nl.mirhosting.net/fedora/linux/updates/41/Everything/x86_64/Packages/c/crun-1.19-1.fc41.x86_64.rpm: The requested URL returned error: 404
Traceback (most recent call last):
  File "/usr/bin/osbuild", line 33, in <module>
    sys.exit(load_entry_point('osbuild==138', 'console_scripts', 'osbuild')())
             ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^
  File "/usr/lib/python3.13/site-packages/osbuild/main_cli.py", line 183, in osbuild_cli
    manifest.download(object_store, monitor)
    ~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/lib/python3.13/site-packages/osbuild/pipeline.py", line 421, in download
    source.download(mgr, store)
    ~~~~~~~~~~~~~~~^^^^^^^^^^^^
  File "/usr/lib/python3.13/site-packages/osbuild/sources.py", line 39, in download
    reply = client.call("download", args)
  File "/usr/lib/python3.13/site-packages/osbuild/host.py", line 348, in call
    ret, _ = self.call_with_fds(method, args)
             ~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^
  File "/usr/lib/python3.13/site-packages/osbuild/host.py", line 384, in call_with_fds
    raise error
osbuild.host.RemoteError: RuntimeError: curl: error downloading https://mirror.nl.mirhosting.net/fedora/linux/updates/41/Everything/x86_64/Packages/g/glibc-common-2.40-14.fc41.x86_64.rpm: error code 22,https://mirror.nl.mirhosting.net/fedora/linux/updates/41/Everything/x86_64/Packages/g/glibc-gconv-extra-2.40-14.fc41.x86_64.rpm: error code 22,https://mirror.nl.mirhosting.net/fedora/linux/updates/41/Everything/x86_64/Packages/g/glibc-all-langpacks-2.40-14.fc41.x86_64.rpm: error code 22,https://mirror.nl.mirhosting.net/fedora/linux/updates/41/Everything/x86_64/Packages/c/crun-1.19-1.fc41.x86_64.rpm: error code 22,https://mirror.nl.mirhosting.net/fedora/linux/updates/41/Everything/x86_64/Packages/g/glibc-minimal-langpack-2.40-14.fc41.x86_64.rpm: error code 22,https://mirror.nl.mirhosting.net/fedora/linux/updates/41/Everything/x86_64/Packages/g/glibc-2.40-14.fc41.x86_64.rpm: error code 22
@supakeen supakeen added the 🐞 bug Something isn't working label Dec 21, 2024
@mvo5
Copy link
Collaborator

mvo5 commented Jan 6, 2025

Thanks for filing this issue - we also run into this is the bootc-image-builder CI with e.g. the fedora ISO, I would love to see this fixed. It seems the best option is to resurrect osbuild/osbuild#1304 and move to librepo based sources over curl. Does that sound right?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
🐞 bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants