-
Notifications
You must be signed in to change notification settings - Fork 550
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
mcli: Unable to prepare URL for copying. Unable to guess the type of copy operation. #4893
Comments
Tested Other smaller folders in the same bucket works with |
Tested to copy the folder from minio server to my local system with |
The data in our minio are now in a minio folder structure and as we can not access the contents via mcli/awscli/winscp, we have a huge data loss? Can anyone help here? Where do we find support? |
From what I can understand, it seems like when the bucket has hyphens in it, it is failing. At least that seems to be the case for me. |
I can confirm the same issue with a bucket with hypens in it |
@mmedic Could you share a script to let us to reproduce that? |
I was wracking my brain because I got this error, too. It turns out it appears when the source file does not exist |
I had the same issue, and apparently it was a certificate issue. |
I had the same issue with two mc commands. Command 1:mc alias set myminio $MINIO_ENDPOINT $MINIO_ACCESS_KEY $MINIO_SECRET_KEY
mc cp --recursive myminio/<folder> <local>/<folder>
# mc: <ERROR> Unable to prepare URL for copying. Unable to guess the type of copy operation. Looks like the Command 2:mc cp --recursive <local>/<folder> myminio/<folder>
# mc: <ERROR> Unable to prepare URL for copying. Unable to guess the type of copy operation. Turns out, the issue was that mc versionIt looks like this change was introduced in PR #4710. From version my test result:
$ docker run -it --rm minio/mc:RELEASE.2023-10-04T06-52-56Z cp -r /foo/ myio/bar
mc: Configuration written to `/root/.mc/config.json`. Please update your access credentials.
mc: Successfully created `/root/.mc/share`.
mc: Initialized share uploads `/root/.mc/share/uploads.json` file.
mc: Initialized share downloads `/root/.mc/share/downloads.json` file.
mc: <ERROR> Unable to validate source `/foo/`: Object does not exist |
I have the same issue. With a very small file (28 Bytes). I can replicate the issue by
cli version
server version
|
I had this very same issue when the source folder (uploading files to a minIO instance) contains hyphens. Removing the hyphens in the source folder fixed the issue. The error message is not very helpful. |
@XoseRamon Like what name? |
@jiuker I had something like
|
What's the |
local to remote |
Ok, I can't replicate this. Please share the quick bashScript to generate the dir |
I'm seeing this issue locally and in our Continuous Integration environment when using the We did not see this failure before the October 2nd release of |
Same issue here just trying to copy a remote file to local. |
I think the issue here is a dash |
Confirmed ;) |
Expected behavior
The folder in a bucket should be moved into another bucket
Actual behavior
The folder was not moved, mc results with error:
Other folders in the same folder structure was moved this way successful.
In an earlier version of mc, the error was
Steps to reproduce the behavior
Unknown why some folders cant be moved
mc --version
System information
Debian 11.5 Bullseye
The text was updated successfully, but these errors were encountered: