What is the problem you are having with rclone?
Hi there is no bug with rclone but just curious why v1.46 seems to have introduced signed URLs for PUTs instead of regular "Authorization: AWS*" auth.
What is your rclone version (output from rclone version
)
(same behavior with latest 1.51.1)
bash-4.2# rclone-v1.46 --version
rclone v1.46
- os/arch: linux/amd64
- go version: go1.11.5
Which OS you are using and how many bits (eg Windows 7, 64 bit)
linux centos 7.7
Which cloud storage system are you using? (eg Google Drive)
S3-compatible Caringo Swarm
The command you were trying to run (eg rclone copy /tmp remote:tmp
)
The command is correct, just curious if anyone remembers why this version v1.46 (and later) use signed S3 PUT urls? At least I think that's what I'm seeing. Not seeing a related change here:
rclone-v1.46 -vv --dump headers copy empty caringo:mybucket/empty-v1.46
A log from the command with the -vv
flag (eg output from rclone -vv copy /tmp remote:tmp
)
bash-4.2# rclone-v1.46 -vv --dump headers copy empty caringo:mybucket/empty-v1.46
2020/04/26 00:16:13 DEBUG : rclone: Version "v1.46" starting with parameters ["rclone-v1.46" "-vv" "--dump" "headers" "copy" "empty" "caringo:mybucket/empty-v1.46"]
2020/04/26 00:16:13 DEBUG : Using config file from "/root/.rclone.conf"
...
2020/04/26 00:16:13 DEBUG : >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
2020/04/26 00:16:13 DEBUG : HTTP REQUEST (req 0xc000142300)
2020/04/26 00:16:13 DEBUG : PUT /mybucket/empty-v1.46/empty?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=3727cea2c7eacb6a335b7a56e047be19%2F20200426%2Fus-east-1%2Fs3%2Faws4_request&X-Amz-Date=20200426T001613Z&X-Amz-Expires=900&X-Amz-SignedHeaders=content-md5%3Bcontent-type%3Bhost%3Bx-amz-acl%3Bx-amz-meta-mtime&X-Amz-Signature=64efbc8b5c1b17426b1f0c16891879ea6707dc0037869ed8d521fd846f7ef150 HTTP/1.1
Host: backup69:8085
User-Agent: rclone/v1.46
Content-Length: 0
content-md5: 1B2M2Y8AsgTpgAmY7PhCfg==
content-type: application/octet-stream
x-amz-acl: private
x-amz-meta-mtime: 1587860137.587863
Accept-Encoding: gzip
2020/04/26 00:16:13 DEBUG : >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
2020/04/26 00:16:13 DEBUG : <<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<
2020/04/26 00:16:13 DEBUG : HTTP RESPONSE (req 0xc000142300)
2020/04/26 00:16:13 DEBUG : HTTP/1.1 403 Forbidden
Content-Length: 272
Content-Type: application/xml;charset=utf-8
Date: Sun, 26 Apr 2020 00:16:13 GMT
X-Amz-Request-Id: 788BE106794BA3B8
2020/04/26 00:16:13 DEBUG : <<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<
2020/04/26 00:16:13 ERROR : empty: Failed to copy: s3 upload: 403 Forbidden: <?xml version="1.0" encoding="UTF-8"?><Error><Code>AccessDenied</Code><Message>Returning 403 Access Denied over missing x-amz-date and data headers: ldap caringoadmin@</Message><Resource>/mybucket/empty-v1.46/empty</Resource><RequestId>788BE106794BA3B8</RequestId></Error>
The older v1.45 seemed to use regular header-based S3 auth:
2020/04/26 00:16:29 DEBUG : rclone: Version "v1.45" starting with parameters ["rclone-v1.45" "-vv" "--dump" "headers" "copy" "empty" "caringo:mybucket/empty-v1.45"]
2020/04/26 00:16:29 DEBUG : Using config file from "/root/.rclone.conf"
...
2020/04/26 00:16:29 DEBUG : >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
2020/04/26 00:16:29 DEBUG : HTTP REQUEST (req 0xc0003e5d00)
2020/04/26 00:16:29 DEBUG : PUT /mybucket/empty-v1.45/empty HTTP/1.1
Host: backup69:8085
User-Agent: rclone/v1.45
Content-Length: 0
Authorization: XXXX
Content-Md5: 1B2M2Y8AsgTpgAmY7PhCfg==
Content-Type: application/octet-stream
X-Amz-Acl:
X-Amz-Content-Sha256: e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855
X-Amz-Date: 20200426T001629Z
X-Amz-Meta-Mtime: 1587860137.587863
Accept-Encoding: gzip
2020/04/26 00:16:29 DEBUG : >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
2020/04/26 00:16:29 DEBUG : <<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<
2020/04/26 00:16:29 DEBUG : HTTP RESPONSE (req 0xc0003e5d00)
2020/04/26 00:16:29 DEBUG : HTTP/1.1 200 OK
Content-Length: 0
Date: Sun, 26 Apr 2020 00:16:29 GMT
Etag: "d41d8cd98f00b204e9800998ecf8427e"
X-Amz-Request-Id: 29591E700336232C
2020/04/26 00:16:29 DEBUG : <<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<