ibm-cloud-docs / cloud-object-storage

cloud-object-storage
15 stars 46 forks source link

S3CMD CLI only works with Cross-region buckets #42

Closed mgorbat closed 5 years ago

mgorbat commented 5 years ago

Prerequisite: s3cmd has been installed and configured according to instructions here s3cmd ls command executes well returning the list of the buckets

Problem: s3cmd ls s3://bucketname is not returning any content and produces the following error message:

ERROR: Bucket 'bucketname' does not exist ERROR: S3 error: 404 (NoSuchBucket): The specified bucket does not exist. Any attempt to write into the bucket results in subsequent errors.

Solution: The bucket type has to be Cross Region. Any other bucket type will not work with S3CMD. The documentation does not mention any guidance towards the bucket type.

nglange commented 5 years ago

Ahh, I see. The example config is set to a the US Cross Region endpoint. Editing the config to replace the lines with your desired endpoint:

host_base = s3-api.us-geo.objectstorage.softlayer.net
host_bucket = %(bucket)s.s3-api.us-geo.objectstorage.softlayer.net