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

mc cp error message is misleading when there is not enough capacity in the bucket to copy an object #5085

Open
pavelanni opened this issue Nov 22, 2024 · 0 comments

Comments

@pavelanni
Copy link

I am running mc cp 5gb.bin minio/bucket1 when there is insufficient space in the object store.

Expected behavior

Ideally, mc should tell me that there is not enough space available in the object store before starting the copy operation.

If it's not possible, it should tell me that the reason for the failure is insufficient space in the object store.

Actual behavior

mc starts copying the file, and when it reaches the object store capacity, it gives me this error message:

mc: <ERROR> Failed to copy `/root/5gb.bin`. You did not provide the number of bytes specified by the Content-Length HTTP header.

This sounds misleading, and the user won't know what the issue is.

Steps to reproduce the behavior

mc --version

mc version RELEASE.2024-11-17T19-35-25Z (commit-id=bb4ff4951a3e54bbee6ac75cfaf387c521e98709)
Runtime: go1.23.3 linux/amd64

System information

Ubuntu 24.04

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

No branches or pull requests

1 participant