-
Notifications
You must be signed in to change notification settings - Fork 198
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
OCI upgrade fails with Processing tar via ostree: Failed to commit tar: ExitStatus(unix_wait_status(256))
#4820
Comments
And if it helps to identify the issue, I am able to successfully rollback to the pinned deployment from 4 or 5 days ago and upgrade to today's image, but cannot upgrade from yesterday to today's image. |
Can you share the Dockerfile or the lines installing the nvidia akmod packages? |
Installing the Nvidia akmods is done in this Dockerfile: And building the akmod package is done from this one: Please see the Neither repos have had changes for weeks, which is why I am looking at the dependencies that were different between the good and bad images. |
Hmm, this may be a regression from ostreedev/ostree-rs-ext#569 |
OK yeah, digging into your image the problem here is:
Note the hardlink. A simple minimal reproducer is:
So...technically this is an ostree-ext bug and it is almost certainly a regression from ostreedev/ostree-rs-ext#569 However, there's a simple workaround (and arguably what you want anyways): |
Moving this one to ostreedev/ostree-rs-ext#598 |
Thank you for looking into this issue. For now I'll be switching to Buildah to allow the squashing. Looking into each individual file and layers they are managed by is a good way to debug. I'll be doing that from now on :) If you've moved the issue to the ostree-rs-ext repo, I'm happy for this issue to be closed. |
I believe this is fixed now, please reopen if not. |
Describe the bug
Since the upgrade from 2023.11.1 to 2024.2-2, my image-based Fedora 39 system is failing to
rpm-ostree upgrade
to the latest version. I do not know if this is directly related to the rpm-ostree package upgrade, or is a coincidence that it started happening on the image containing the new version.Error:
My system does have Nvidia drivers pre-packaged and included in the OCI images, which appears to be what is causing the problems.
Reproduction steps
ostree-unverified-registry:ghcr.io/rsturla/eternal-linux/lumina@sha256:3de893fb538794b4126d34170ad26885dae27ec7632da94b5db36413d0945ce2
rpm-ostree rebase ostree-image-signed:registry:ghcr.io/rsturla/eternal-linux/lumina:39-nvidia
Have followed these steps in a VM and it should be reproducible (although time consuming).
Please do not try these steps in a production system as there are automations in place that will change your flatpaks on boot.
Expected behavior
The upgrade should succeed without errors
Actual behavior
The upgrade failed with
error: ostree-tar: Processing deferred hardlink var/cache/akmods/nvidia/.last.log: Failed to find object: No such file or directory: var: Processing tar via ostree: Failed to commit tar: ExitStatus(unix_wait_status(256))
System details
rpm-ostree db diff
(between known-good and bad versions)rpm-ostree --version
Additional information
Error log:
The text was updated successfully, but these errors were encountered: