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

Can't easily get the reason why a compose failed #4429

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

Can't easily get the reason why a compose failed #4429

jbenc opened this issue Oct 23, 2024 · 2 comments

Comments

@jbenc
Copy link

jbenc commented Oct 23, 2024

The documentation says to use composer-cli compose status to get the build status. However, when something gets wrong, only FAILED is displayed. That doesn't help to figure out what happened.

You need to go hunting for the logs. However, there's no documentation where to find the logs. In my case, I eventually found the error in journalctl -u osbuild-worker@1. That's far from obvious. Furthermore, the error there is present as a Python backtrace only; at least that's been the case for the errors I've hit so far (#4427 and getting out of disk space).

I'd expect either composer-cli compose status to get me the error, or to have a (documented!) another subcommand that displays the error for the particular failed compose in a useful and preferably actionable way (i.e. not a backtrace).

@bcl
Copy link
Contributor

bcl commented Oct 23, 2024

composer-cli compose logs UUID may get you more detail, but in general yes the logging and debugging of failures is something that needs improvement.

@jbenc
Copy link
Author

jbenc commented Oct 24, 2024

composer-cli compose logs UUID produces a tarball with a single file which contains a single line The compose result is empty. That's not useful.

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

2 participants