coreos/rpm-ostree

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

Opened this issue · 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.

Seen in #4609 as well but seems unlikely to be related.

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"

We already have the child process output to stderr according to #4818 (comment) from Colin, it would be better if we have it.