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

Build fails because of out of sync mirrors #4427

Open
jbenc opened this issue Oct 23, 2024 · 5 comments
Open

Build fails because of out of sync mirrors #4427

jbenc opened this issue Oct 23, 2024 · 5 comments

Comments

@jbenc
Copy link

jbenc commented Oct 23, 2024

See #1031 (I can't reopen that one).

The build is failing every single time for me. journalctl -u osbuild-worker@1 shows:

osbuild-worker.log

Those two mirrors that it picked on random(?) are out of sync and do not have the newest packages.

@jbenc
Copy link
Author

jbenc commented Oct 23, 2024

This is on Fedora 40.

@bcl
Copy link
Contributor

bcl commented Oct 24, 2024

The metadata should get refreshed on restart of the system. If that fails you can remove it manually by deleting the rpmmd cache directories under /var/cache/osbuild-worker and /var/cache/osbuild-compose

@jbenc
Copy link
Author

jbenc commented Oct 24, 2024

This was on a freshly installed system. Between the two different mirrors in the log I rebooted the system. So no, this doesn't help. The #1031 states that the mirror from which the metadata were downloaded is not saved and the RPM fetch selects the mirror independently. Meaning the metadata and the data are fetched from a different mirror. This obviously can't work.

@teodor-pripoae
Copy link

I'm having the same issue on fedora 40.

Oct 28 18:41:52 localhost osbuild-worker[41346]:   File "/usr/lib/python3.12/site-packages/osbuild/host.py", line 384, in call_with_fds
Oct 28 18:41:52 localhost osbuild-worker[41346]:     raise error
Oct 28 18:41:52 localhost osbuild-worker[41346]: osbuild.host.RemoteError: RuntimeError: curl: error downloading https://mirrors.nxthost.com/fedora/updates/40/Everything/x86_64/Packages/e/edk2-ovmf-20240813-2.fc40.noarch.rpm: error code 22,https://mirrors.nxthost.com/fedora/updates/40/Everything/x86_64/Packages/d/daxctl-libs-80-1.fc40.x86_64.rpm: error code 22,https://mirrors.nxthost.com/fedora/updates/40/Everything/x86_64/Packages/n/ndctl-libs-80-1.fc40.x86_64.rpm: error code 22

It's trying to download ndctl-libs-80-1 while the mirror is still having only ndctl-libs-79-1.

@teodor-pripoae
Copy link

I fixed it temporary by hardcoding the mirror in /usr/share/osbuild-composer/repositories/fedora-40.json and removing rpmmd cache.

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

3 participants