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

Provide meaningful error message when the disk is full #237

Open
cbosdo opened this issue Apr 11, 2024 · 2 comments
Open

Provide meaningful error message when the disk is full #237

cbosdo opened this issue Apr 11, 2024 · 2 comments
Labels
enhancement New feature or request

Comments

@cbosdo
Copy link
Contributor

cbosdo commented Apr 11, 2024

When trying to upload a distro to the container I hit the disk size limit, but the error was the following. It should be clearer that the problem is due to lack of disk space.

# mgradm distro copy /root/SLE-15-SP5-Full-x86_64-GM-Media1.iso sle-15-sp5
4:14PM INF Welcome to mgradm
4:14PM INF Executing command: copy
4:14PM INF Copying distribution sle-15-sp5

⠸ podman cp /tmp/mgrctl2301103013 uyuni-server:/srv/www/distributions/sle-15-sp5Error: 2 errors occurred:
	* copying to container: copier: put: error creating "/srv/www/distributions/sle-15-sp5/Module-Containers/ARCHIVES.gz": copier: put: error writing file "/srv/www/distributions/sle-15-sp5/Module-Containers/ARCHIVES.gz": unexpected EOF
	* copying from host: copier: get: "/tmp/mgrctl2301103013"("/tmp/mgrctl2301103013"): copying /tmp/mgrctl2301103013/Module-Containers/ARCHIVES.gz: read /tmp/mgrctl2301103013/Module-Containers/ARCHIVES.gz: input/output error
Error: cannot copy /srv/www/distributions/sle-15-sp5: exit status 125
@cbosdo cbosdo added the enhancement New feature or request label Apr 11, 2024
@rjmateus
Copy link
Member

Can we check if the disk will have enough space on the disk before start copying stuff?

@cbosdo
Copy link
Contributor Author

cbosdo commented Apr 12, 2024

Can we check if the disk will have enough space on the disk before start copying stuff?

It's a bit more complex than that:

  1. podman cp doesn't give us any hint, so we would need to check in all cases
  2. we need to check the disk status of where the file goes, which is not that easy to find.

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

No branches or pull requests

2 participants