Skip to content

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

Open
@pavelanni

Description

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

Activity

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

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions