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

No error message when committing a container fails due to no space left on device #519

Open
boehmseb opened this issue Nov 15, 2022 · 3 comments
Assignees
Labels

Comments

@boehmseb
Copy link
Collaborator

I get no error message when committing a container fails due to a full hard drive.
This case is especially annoying because BB's output looks exactly like for a successful run.
I only detected this case because I had the --export flag enabled and it complained about not finding the required image.
Also the normal debug methods like containers/keep do not work (because there is no space to store the failed image`) so I had to manually trace back the steps to find the issue.

This is the output that buildah commit $image produces when run manually on the command line which clearly states the problem:
error committing container "debian-working-container" to "": error copying layers and metadata for container "e6f6731588d816f51ffd6c752a903074b75a2c9c35e27305013f6a756825e1d7": Error initializing source containers-storage:debian-wor king-container: error storing layer "b85af40f2294f58d92e5b319b2bafd3c7198954ba8da06342e7fd2d2f0ffc3c4" to file: write /var/tmp/buildah307038400/layer: no space left on device ERRO exit status 125

@boehmseb
Copy link
Collaborator Author

After a little digging, I think the culprit is that the following command is never checked for any error:

@simbuerg
Copy link
Member

"After a little digging" - I'm sorry :-), sounds painful.
I will make sure that there is useful output in the future.

@boehmseb
Copy link
Collaborator Author

boehmseb commented Nov 16, 2022

Same goes for some other commands btw., like export. It would probably be worth finding a common solution for all these non-layer-creating buildah commands.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants