Skip to content

problem using other regions for aws s3 storage #188

@kristjanvalur

Description

@kristjanvalur

Steps to reproduce

  1. Create aws bucket in, e.g. eu-west-1 (ireland). Set up access controls etc.
  2. add external storage, giving bucket name and region
  3. mount external storage
  4. create text file in mounted storage

Expected behaviour

Text file appears

Actual behaviour

Error occurs. Log file includes a line with error from aws: ""

Server configuration

Operating system: CentOS 7

Web server: Apache

Database: PostgreSQL

ownCloud version: 10.0.10.4

S3 Object Storage version: 1.0.3

Workaround:

Explicitly supply the hostname: "s3.eu-west-1.amazonaws.com"
Do not supply a "region" in the region field.

Discussion:

It would appear that the paths being created for buckets outside the standard US region do not follow the recommended practice by amazon. See here for proper access using both virtual host addressing and path-style: https://docs.aws.amazon.com/AmazonS3/latest/dev/UsingBucket.html#access-bucket-intro

Using buckets in regions local to the server greatly speeds up access.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions