Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

problem using other regions for aws s3 storage #188

Open
kristjanvalur opened this issue Jul 1, 2019 · 3 comments
Open

problem using other regions for aws s3 storage #188

kristjanvalur opened this issue Jul 1, 2019 · 3 comments

Comments

@kristjanvalur
Copy link

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.

@patrickjahns patrickjahns transferred this issue from owncloud/core Jul 1, 2019
@caldetas
Copy link

caldetas commented Apr 21, 2023

Same Problem here, had to slightly adapt your workaround to get the S3 working with owncloud..

Workaround:

Explicitly supply the hostname: "s3.eu-west-1.amazonaws.com"
Region: "eu-west-1"

@kristjanvalur
Copy link
Author

Astonishing that this is still a problem. The world is big.

@chenhaibiao280555
Copy link

Thanks for the workaroud solution! I have been stuck for days! I am using the docker version.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants