What is the problem you are having with rclone?
When trying to copy files to my digitalocean space i get a Failed to copy: s3 upload: 400 Bad Request, but i can copy files from the space just fine.
What is your rclone version (output from rclone version
)
I'm using rclone v1.49.5.
- os/arch: linux/amd64
- go version: go1.13.1
Which OS you are using and how many bits (eg Windows 7, 64 bit)
My os is Antergos Linux.
Which cloud storage system are you using? (eg Google Drive)
I am using Digital Ocean spaces.
The command you were trying to run (eg rclone copy /tmp remote:tmp
)
rclone copy mozilla.pdf digitalocean:sc-images/test_bucket
A log from the command with the -vv
flag (eg output from rclone -vv copy /tmp remote:tmp
)
2019/10/14 22:40:46 ERROR : mozilla.pdf: Failed to copy: s3 upload: 400 Bad Request: <?xml version="1.0" encoding="UTF-8"?><Error><Code>InvalidArgument</Code><BucketName>sc-images</BucketName><RequestId>tx0000000000001c4a3629f-005da53fbe-23fcca-sfo2a</RequestId><HostId>23fcca-sfo2a-sfo</HostId></Error>
2019/10/14 22:40:46 ERROR : Attempt 1/3 failed with 3 errors and: s3 upload: 400 Bad Request: <?xml version="1.0" encoding="UTF-8"?><Error><Code>InvalidArgument</Code><BucketName>sc-images</BucketName><RequestId>tx0000000000001c4a3629f-005da53fbe-23fcca-sfo2a</RequestId><HostId>23fcca-sfo2a-sfo</HostId></Error>
2019/10/14 22:40:47 ERROR : mozilla.pdf: Failed to copy: s3 upload: 400 Bad Request: <?xml version="1.0" encoding="UTF-8"?><Error><Code>InvalidArgument</Code><BucketName>sc-images</BucketName><RequestId>tx0000000000001c4a363ed-005da53fbf-23fcca-sfo2a</RequestId><HostId>23fcca-sfo2a-sfo</HostId></Error>
2019/10/14 22:40:47 ERROR : Attempt 2/3 failed with 3 errors and: s3 upload: 400 Bad Request: <?xml version="1.0" encoding="UTF-8"?><Error><Code>InvalidArgument</Code><BucketName>sc-images</BucketName><RequestId>tx0000000000001c4a363ed-005da53fbf-23fcca-sfo2a</RequestId><HostId>23fcca-sfo2a-sfo</HostId></Error>
2019/10/14 22:40:47 ERROR : mozilla.pdf: Failed to copy: s3 upload: 400 Bad Request: <?xml version="1.0" encoding="UTF-8"?><Error><Code>InvalidArgument</Code><BucketName>sc-images</BucketName><RequestId>tx0000000000001c4758715-005da53fbf-23e283-sfo2a</RequestId><HostId>23e283-sfo2a-sfo</HostId></Error>
2019/10/14 22:40:47 ERROR : Attempt 3/3 failed with 3 errors and: s3 upload: 400 Bad Request: <?xml version="1.0" encoding="UTF-8"?><Error><Code>InvalidArgument</Code><BucketName>sc-images</BucketName><RequestId>tx0000000000001c4758715-005da53fbf-23e283-sfo2a</RequestId><HostId>23e283-sfo2a-sfo</HostId></Error>
2019/10/14 22:40:47 Failed to copy with 3 errors: last error was: s3 upload: 400 Bad Request: <?xml version="1.0" encoding="UTF-8"?><Error><Code>InvalidArgument</Code><BucketName>sc-images</BucketName><RequestId>tx0000000000001c4758715-005da53fbf-23e283-sfo2a</RequestId><HostId>23e283-sfo2a-sfo</HostId></Error>
rclone copy mozilla.pdf digitalocean:sc-images/test_bucket --log-level DEBUG output
2019/10/14 23:23:40 DEBUG : rclone: Version "v1.49.5" starting with parameters ["rclone" "copy" "mozilla.pdf" "digitalocean:sc-images/test_bucket" "--log-level" "DEBUG"]
2019/10/14 23:23:40 DEBUG : Using config file from "/home/bruno/.config/rclone/rclone.conf"
2019/10/14 23:23:40 DEBUG : mozilla.pdf: Couldn't find file - need to transfer
2019/10/14 23:23:41 ERROR : mozilla.pdf: Failed to copy: s3 upload: 400 Bad Request: <?xml version="1.0" encoding="UTF-8"?><Error><Code>InvalidArgument</Code><BucketName>sc-images</BucketName><RequestId>tx0000000000001c48a8a56-005da549cd-23e283-sfo2a</RequestId><HostId>23e283-sfo2a-sfo</HostId></Error>
2019/10/14 23:23:41 ERROR : Attempt 1/3 failed with 3 errors and: s3 upload: 400 Bad Request: <?xml version="1.0" encoding="UTF-8"?><Error><Code>InvalidArgument</Code><BucketName>sc-images</BucketName><RequestId>tx0000000000001c48a8a56-005da549cd-23e283-sfo2a</RequestId><HostId>23e283-sfo2a-sfo</HostId></Error>
2019/10/14 23:23:41 DEBUG : mozilla.pdf: Couldn't find file - need to transfer
2019/10/14 23:23:41 DEBUG : pacer: low level retry 1/1 (error s3 upload: 503 Slow Down: <?xml version="1.0" encoding="UTF-8"?>
<Error>
<Code>SlowDown</Code>
<Message>Please reduce your request rate.</Message>
<RequestId></RequestId>
</Error>
)
2019/10/14 23:23:41 DEBUG : pacer: Rate limited, increasing sleep to 10ms
2019/10/14 23:23:41 DEBUG : mozilla.pdf: Received error: s3 upload: 503 Slow Down: <?xml version="1.0" encoding="UTF-8"?>
<Error>
<Code>SlowDown</Code>
<Message>Please reduce your request rate.</Message>
<RequestId></RequestId>
</Error>
- low level retry 1/10
2019/10/14 23:23:42 DEBUG : pacer: low level retry 1/1 (error s3 upload: 503 Slow Down: <?xml version="1.0" encoding="UTF-8"?>
<Error>
<Code>SlowDown</Code>
<Message>Please reduce your request rate.</Message>
<RequestId></RequestId>
</Error>
)
2019/10/14 23:23:42 DEBUG : pacer: Rate limited, increasing sleep to 20ms
2019/10/14 23:23:42 DEBUG : mozilla.pdf: Received error: s3 upload: 503 Slow Down: <?xml version="1.0" encoding="UTF-8"?>
<Error>
<Code>SlowDown</Code>
<Message>Please reduce your request rate.</Message>
<RequestId></RequestId>
</Error>
- low level retry 2/10
2019/10/14 23:23:42 DEBUG : pacer: Reducing sleep to 15ms
2019/10/14 23:23:42 ERROR : mozilla.pdf: Failed to copy: s3 upload: 400 Bad Request: <?xml version="1.0" encoding="UTF-8"?><Error><Code>InvalidArgument</Code><BucketName>sc-images</BucketName><RequestId>tx0000000000001c48a8c3d-005da549ce-23e283-sfo2a</RequestId><HostId>23e283-sfo2a-sfo</HostId></Error>
2019/10/14 23:23:42 ERROR : Attempt 2/3 failed with 3 errors and: s3 upload: 400 Bad Request: <?xml version="1.0" encoding="UTF-8"?><Error><Code>InvalidArgument</Code><BucketName>sc-images</BucketName><RequestId>tx0000000000001c48a8c3d-005da549ce-23e283-sfo2a</RequestId><HostId>23e283-sfo2a-sfo</HostId></Error>
2019/10/14 23:23:42 DEBUG : pacer: Reducing sleep to 11.25ms
2019/10/14 23:23:42 DEBUG : mozilla.pdf: Couldn't find file - need to transfer
2019/10/14 23:23:43 DEBUG : pacer: Reducing sleep to 0s
2019/10/14 23:23:43 ERROR : mozilla.pdf: Failed to copy: s3 upload: 400 Bad Request: <?xml version="1.0" encoding="UTF-8"?><Error><Code>InvalidArgument</Code><BucketName>sc-images</BucketName><RequestId>tx0000000000001c4b798e1-005da549cf-23fcca-sfo2a</RequestId><HostId>23fcca-sfo2a-sfo</HostId></Error>
2019/10/14 23:23:43 ERROR : Attempt 3/3 failed with 3 errors and: s3 upload: 400 Bad Request: <?xml version="1.0" encoding="UTF-8"?><Error><Code>InvalidArgument</Code><BucketName>sc-images</BucketName><RequestId>tx0000000000001c4b798e1-005da549cf-23fcca-sfo2a</RequestId><HostId>23fcca-sfo2a-sfo</HostId></Error>
2019/10/14 23:23:43 Failed to copy with 3 errors: last error was: s3 upload: 400 Bad Request: <?xml version="1.0" encoding="UTF-8"?><Error><Code>InvalidArgument</Code><BucketName>sc-images</BucketName><RequestId>tx0000000000001c4b798e1-005da549cf-23fcca-sfo2a</RequestId><HostId>23fcca-sfo2a-sfo</HostId></Error>
Here is my config file
[digitalocean]
type=s3
env_auth = false
endpoint = sfo2.digitaloceanspaces.com
region = sfo2
acl = public
access_key_id = *****
secret_access_key = *****
[digitalocean2]
type=s3
env_auth = false
endpoint = sfo2.digitaloceanspaces.com
region = sfo2
acl = public
access_key_id = *****
secret_access_key = *****