Can rclone sync with Zadara VPSA Object Storage?

Can rclone sync with Zadara VPSA Object Storage ?

I tried this config:

$ rclone config show
[zadara]
type = s3
provider = Other
env_auth = false
access_key_id = xxxxx
secret_access_key = yyyyyy
region =
endpoint = https://zzzzzzzzz:443
location_constraint =
acl = private

However:

$ rclone -vvvvvv ls zadara:containerA
2018/07/10 19:50:11 DEBUG : rclone: Version "v1.42-DEV" starting with parameters ["rclone" "-vvvvvv" "ls" "zadara:containerA"]
2018/07/10 19:50:11 DEBUG : Using config file from "/home/lab/.config/rclone/rclone.conf"
2018/07/10 19:50:11 ERROR : : error listing: PreconditionFailed: Precondition Failed
        status code: 412, request id: , host id:
2018/07/10 19:50:11 Failed to ls: PreconditionFailed: Precondition Failed
        status code: 412, request id: , host id:
$

I see it is both s3 and swift compatible so it should do.

You might need to put a region in.

Try doing the ls command with -vv --dump bodies and see if that gives you any more info.

Thanks for the hint. --vv --dump shows more info. Will try to find out the region.

$ rclone -vv --dump bodies ls zadara:containerA
2018/07/11 10:43:42 DEBUG : rclone: Version "v1.42-DEV" starting with parameters ["rclone" "-vv" "--dump" "bodies" "ls" "zadara:containerA"]
2018/07/11 10:43:42 DEBUG : Using config file from "/home/lab/.config/rclone/rclone.conf"
2018/07/11 10:43:42 DEBUG : >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
2018/07/11 10:43:42 DEBUG : HTTP REQUEST (req 0xc00031d400)
2018/07/11 10:43:42 DEBUG : GET /containerA?delimiter=%2F&max-keys=1000&prefix= HTTP/1.1
Host: object.uoldiveo.com
User-Agent: rclone/v1.42-DEV
Authorization: XXXX
X-Amz-Content-Sha256: e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855
X-Amz-Date: 20180711T134342Z
Accept-Encoding: gzip

2018/07/11 10:43:42 DEBUG : >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
2018/07/11 10:43:42 DEBUG : <<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<
2018/07/11 10:43:42 DEBUG : HTTP RESPONSE (req 0xc00031d400)
2018/07/11 10:43:42 DEBUG : HTTP/1.1 412 Precondition Failed
Content-Length: 7
Content-Type: text/html; charset=UTF-8
Date: Wed, 11 Jul 2018 13:43:42 GMT
X-Trans-Id: tx3012acc39969479d906d3-005b46098e

Bad URL
2018/07/11 10:43:42 DEBUG : <<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<
2018/07/11 10:43:42 ERROR : : error listing: PreconditionFailed: Precondition Failed
        status code: 412, request id: , host id:
2018/07/11 10:43:42 Failed to ls: PreconditionFailed: Precondition Failed
        status code: 412, request id: , host id:

That query looks correct. Here is one I did with s3:

2018/07/11 15:03:43 DEBUG : HTTP REQUEST (req 0xc4203f8a00)
2018/07/11 15:03:43 DEBUG : GET /rclone?delimiter=%2F&max-keys=1000&prefix= HTTP/1.1
Host: s3.eu-west-2.amazonaws.com
User-Agent: rclone/v1.42-030-g793f594b-fix-2388-s3-fast-list
Authorization: XXXX
X-Amz-Content-Sha256: e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855
X-Amz-Date: 20180711T140343Z
Accept-Encoding: gzip

So check the key and secret and also check the endpoint.

I’m not sure what “Bad URL” might mean though.

Please check if your Zadara Object Storage is reachable from the client and proper ports are used.

Also, feel free to contact support@zadarastorage.com for any help. rclone should work with Zadara Object in the same way it works with S3 or Swift-based storage.

Regards