Getting error when using official IBM howto for rclone

What is the problem you are having with rclone?

Trying to use IBMCOS for storage using this howto https://cloud.ibm.com/docs/cloud-object-storage?topic=cloud-object-storage-rclone

but I can't figure out how to get the location_constraint. If anyone could explain how to get it, that would help a lot I suppose.

What is your rclone version (output from rclone version)

rclone v1.53.3

  • os/arch: linux/amd64
  • go version: go1.15.5

Which OS you are using and how many bits (eg Windows 7, 64 bit)

Fedora Linux 32

Which cloud storage system are you using? (eg Google Drive)

IBMCOS

The command you were trying to run (eg rclone copy /tmp remote:tmp)

➜  ~ rclone copy ss.jpg ibm1:
2020/12/10 01:24:51 ERROR : Attempt 1/3 failed with 1 errors and: InvalidParameter: 1 validation error(s) found.
- minimum field size of 1, HeadObjectInput.Key.
2020/12/10 01:24:51 ERROR : Attempt 2/3 failed with 1 errors and: InvalidParameter: 1 validation error(s) found.
- minimum field size of 1, HeadObjectInput.Key.
2020/12/10 01:24:51 ERROR : Attempt 3/3 failed with 1 errors and: InvalidParameter: 1 validation error(s) found.
- minimum field size of 1, HeadObjectInput.Key.
2020/12/10 01:24:51 Failed to copy: InvalidParameter: 1 validation error(s) found.
- minimum field size of 1, HeadObjectInput.Key.

The rclone config contents with secrets removed.

[ibm1]
type = s3
provider = IBMCOS
access_key_id = xxx
secret_access_key = xxx
endpoint = s3.eu-de.cloud-object-storage.appdomain.cloud
location_constraint = eu-standard
acl = private

A log from the command with the -vv flag

➜  ~ rclone copy -vv ss.jpg ibm1:   
2020/12/10 01:29:12 DEBUG : rclone: Version "v1.53.3" starting with parameters ["rclone" "copy" "-vv" "ss.jpg" "ibm1:"]
2020/12/10 01:29:12 DEBUG : Creating backend with remote "ss.jpg"
2020/12/10 01:29:12 DEBUG : Using config file from "/home/sandra/.config/rclone/rclone.conf"
2020/12/10 01:29:12 DEBUG : fs cache: adding new entry for parent of "ss.jpg", "/home/sandra"
2020/12/10 01:29:12 DEBUG : Creating backend with remote "ibm1:"
2020/12/10 01:29:12 ERROR : Attempt 1/3 failed with 1 errors and: InvalidParameter: 1 validation error(s) found.
- minimum field size of 1, HeadObjectInput.Key.
2020/12/10 01:29:12 ERROR : Attempt 2/3 failed with 1 errors and: InvalidParameter: 1 validation error(s) found.
- minimum field size of 1, HeadObjectInput.Key.
2020/12/10 01:29:12 ERROR : Attempt 3/3 failed with 1 errors and: InvalidParameter: 1 validation error(s) found.
- minimum field size of 1, HeadObjectInput.Key.
2020/12/10 01:29:12 INFO  : 
Transferred:   	         0 / 0 Bytes, -, 0 Bytes/s, ETA -
Errors:                 1 (retrying may help)
Elapsed time:         0.0s

2020/12/10 01:29:12 DEBUG : 2 go routines active
2020/12/10 01:29:12 Failed to copy: InvalidParameter: 1 validation error(s) found.
- minimum field size of 1, HeadObjectInput.Key.

hi,

what makes you think there is something wrong with the location constraint?

i think the problem might be, you need to have a bucket.
https://cloud.ibm.com/docs/cloud-object-storage?topic=cloud-object-storage-rclone#rclone-reference-copy-local

so try something like
rclone lsd ibm1: -vv

if that completes without error then try something like
rclone copy ss.jpg ibm1:testbucketname -vv

1 Like

This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.