What is the problem you are having with rclone?
rclone can upload local file to ks3, and download file from ks3, but can't copy file from ks3 to ks3
What is your rclone version (output from rclone version
)
on master branch build
rclone v1.54.0-DEV
- os/arch: darwin/amd64
- go version: go1.15.3
Which OS you are using and how many bits (eg Windows 7, 64 bit)
macOS
Which cloud storage system are you using? (eg Google Drive)
KS3
The command you were trying to run (eg rclone copy /tmp remote:tmp
)
{16:39}~/Desktop/rclone ➭ ./go_build_rclone_go lsf ksyun-online:
testbucket/
testbucket2/
{16:39}~/Desktop/rclone ➭ ./go_build_rclone_go copy IMG_0018.JPG ksyun-online:testbucket/ -P
Transferred: 91.420k / 91.420 kBytes, 100%, 212.564 kBytes/s, ETA 0s
Transferred: 1 / 1, 100%
Elapsed time: 1.4s
{16:39}~/Desktop/rclone ➭ ./go_build_rclone_go copy ksyun-online:testbucket/IMG_0018.JPG . -P
Transferred: 0 / 0 Bytes, -, 0 Bytes/s, ETA -
Checks: 1 / 1, 100%
Elapsed time: 0.3s
{16:40}~/Desktop/rclone ➭ ./go_build_rclone_go copy ksyun-online:testbucket/ ksyun-online:testbucket2/ -P
2020-11-06 16:40:35 ERROR : IMG_0017.JPG: Failed to copy: InvalidArgument: Invalid Argument
status code: 400, request id: , host id:
2020-11-06 16:40:35 ERROR : IMG_0018.JPG: Failed to copy: InvalidArgument: Invalid Argument
status code: 400, request id: , host id:
2020-11-06 16:40:35 ERROR : Attempt 1/3 failed with 2 errors and: InvalidArgument: Invalid Argument
status code: 400, request id: , host id:
2020-11-06 16:40:35 ERROR : IMG_0017.JPG: Failed to copy: InvalidArgument: Invalid Argument
status code: 400, request id: , host id:
2020-11-06 16:40:35 ERROR : IMG_0018.JPG: Failed to copy: InvalidArgument: Invalid Argument
status code: 400, request id: , host id:
2020-11-06 16:40:35 ERROR : Attempt 2/3 failed with 2 errors and: InvalidArgument: Invalid Argument
status code: 400, request id: , host id:
2020-11-06 16:40:35 ERROR : IMG_0017.JPG: Failed to copy: InvalidArgument: Invalid Argument
status code: 400, request id: , host id:
2020-11-06 16:40:35 ERROR : IMG_0018.JPG: Failed to copy: InvalidArgument: Invalid Argument
status code: 400, request id: , host id:
2020-11-06 16:40:35 ERROR : Attempt 3/3 failed with 2 errors and: InvalidArgument: Invalid Argument
status code: 400, request id: , host id:
Transferred: 0 / 0 Bytes, -, 0 Bytes/s, ETA -
Errors: 2 (retrying may help)
Elapsed time: 0.8s
2020/11/06 16:40:35 Failed to copy with 2 errors: last error was: InvalidArgument: Invalid Argument
status code: 400, request id: , host id:
{16:40}~/Desktop/rclone ➭
The rclone config contents with secrets removed.
[ksyun-online]
type = s3
provider = Other
access_key_id =
secret_access_key =
endpoint = ks3-cn-beijing.ksyun.com
region = BEIJING
A log from the command with the -vv
flag
2020-11-06 16:43:07 DEBUG : <<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<
2020-11-06 16:43:07 DEBUG : S3 bucket testbucket2: Waiting for checks to finish
2020-11-06 16:43:07 DEBUG : S3 bucket testbucket2: Waiting for transfers to finish
2020-11-06 16:43:07 DEBUG : >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
2020-11-06 16:43:07 DEBUG : HTTP REQUEST (req 0xc000190800)
2020-11-06 16:43:07 DEBUG : PUT /testbucket2/IMG_0017.JPG HTTP/1.1
Host: ks3-cn-beijing.ksyun.com
User-Agent: rclone/v1.54.0-DEV
Content-Length: 0
Authorization: XXXX
X-Amz-Acl: private
X-Amz-Content-Sha256: e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855
X-Amz-Copy-Source: testbucket/IMG_0017.JPG
X-Amz-Date: 20201106T084307Z
X-Amz-Metadata-Directive: COPY
Accept-Encoding: gzip
2020-11-06 16:43:07 DEBUG : >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
2020-11-06 16:43:07 DEBUG : >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
2020-11-06 16:43:07 DEBUG : HTTP REQUEST (req 0xc000271400)
2020-11-06 16:43:07 DEBUG : PUT /testbucket2/IMG_0018.JPG HTTP/1.1
Host: ks3-cn-beijing.ksyun.com
User-Agent: rclone/v1.54.0-DEV
Content-Length: 0
Authorization: XXXX
X-Amz-Acl: private
X-Amz-Content-Sha256: e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855
X-Amz-Copy-Source: testbucket/IMG_0018.JPG
X-Amz-Date: 20201106T084307Z
X-Amz-Metadata-Directive: COPY
Accept-Encoding: gzip
2020-11-06 16:43:07 DEBUG : >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
2020-11-06 16:43:07 DEBUG : <<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<
2020-11-06 16:43:07 DEBUG : HTTP RESPONSE (req 0xc000190800)
2020-11-06 16:43:07 DEBUG : HTTP/1.1 400 Bad Request
Transfer-Encoding: chunked
Connection: keep-alive
Content-Type: application/xml
Date: Fri, 06 Nov 2020 08:43:07 GMT
Server: Tengine
X-Application-Context: application
X-Kss-Request-Id: 0a80b9dffc4945adbf8cc92e7d5b369b
ea
<?xml version="1.0" encoding="UTF-8" standalone="yes"?><Error><Code>InvalidArgument</Code><Message>Invalid Argument</Message><Resource>/testbucket2/IMG_0017.JPG</Resource><RequestId>0a80b9dffc4945adbf8cc92e7d5b369b</RequestId></Error>
0
2020-11-06 16:43:07 DEBUG : <<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<
2020-11-06 16:43:07 ERROR : IMG_0017.JPG: Failed to copy: InvalidArgument: Invalid Argument
status code: 400, request id: , host id:
2020-11-06 16:43:07 DEBUG : <<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<
2020-11-06 16:43:07 DEBUG : HTTP RESPONSE (req 0xc000271400)
2020-11-06 16:43:07 DEBUG : HTTP/1.1 400 Bad Request
Transfer-Encoding: chunked
Connection: keep-alive
Content-Type: application/xml
Date: Fri, 06 Nov 2020 08:43:07 GMT
Server: Tengine
X-Application-Context: application
X-Kss-Request-Id: c0684f4fde4641d38cb4aaa9e70d02fc
ea
<?xml version="1.0" encoding="UTF-8" standalone="yes"?><Error><Code>InvalidArgument</Code><Message>Invalid Argument</Message><Resource>/testbucket2/IMG_0018.JPG</Resource><RequestId>c0684f4fde4641d38cb4aaa9e70d02fc</RequestId></Error>
0
2020-11-06 16:43:07 DEBUG : <<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<