rpm-ostree icon indicating copy to clipboard operation
rpm-ostree copied to clipboard

`rpm-ostree compose image` fails with: `error: compose tree failed: ExitStatus(unix_wait_status(256))`

Open travier opened this issue 1 year ago • 3 comments

Describe the bug

We are seeing compose failure with the error above in Fedora infra for Fedora Atomic Desktops Ostree Native Container composes.

Those are intermittent failures as some builds pass, some fail, without a specific change.

There is likely a race condition or an uncaught error somewhere.

Reproduction steps

Compose in Fedora infra. Difficult to reproduce locally unfortunately.

This generally only happens during scriplet execution, so might be related to bubblewrap.

Expected behavior

Composes pass.

Actual behavior

Composes randomly fail on error: compose tree failed: ExitStatus(unix_wait_status(256))

System details

Fedora 39

Additional information

Adding some additional debug info and context might help us diagnose the issue.

travier avatar Jan 25 '24 16:01 travier

Seen in https://github.com/coreos/rpm-ostree/issues/4609 as well but seems unlikely to be related.

travier avatar Jan 25 '24 16:01 travier

Agree that the error is not smart, does the format make sense like following? Or maybe we should also add the full command?

error: compose tree failed with : "error: bwrap test failed, see <https://github.com/coreos/rpm-ostree/pull/429>: Failed to execute child process “bwrap” (No such file or directory)\n"

HuijingHei avatar Feb 06 '24 13:02 HuijingHei

We already have the child process output to stderr according to https://github.com/coreos/rpm-ostree/pull/4818#discussion_r1479937409 from Colin, it would be better if we have it.

HuijingHei avatar Feb 19 '24 10:02 HuijingHei