Docker + S3 Bucket configuration issue

I’m configuring OwnCloud on Docker, using a docker-compose file, connecting to S3 as primary storage.

The S3 connection does not works beacause of the file objectstore.config.php, the issue is in the following row:
endpoint’ => getenv(‘OWNCLOUD_OBJECTSTORE_ENDPOINT’)
because S3 does not need it, if i comment this line, it works fine.
Is there a conventional value for this variable that I can set in the docker env to make it works, or I’m forced to ovverride this script mounting it to docker with a correct one?

because S3 does not need it

It’s just not required because the library is doing it under the hood. We set it explicitly in the container because that works for all providers. Do you use Amazon S3? If you don’t set the environment variable, OWNCLOUD_OBJECTSTORE_ENDPOINT will auto-create the value in the form of s3-${OWNCLOUD_OBJECTSTORE_REGION}.amazonaws.com

Using Ireland region, if I don’t set it, it give me a 403, are you sure it should work?

What have you set as OWNCLOUD_OBJECTSTORE_REGION?

OWNCLOUD_OBJECTSTORE_ENABLED=true
OWNCLOUD_OBJECTSTORE_CLASS=OCA\Files_Primary_S3\S3Storage
OWNCLOUD_OBJECTSTORE_BUCKET=****
OWNCLOUD_OBJECTSTORE_PART_SIZE=5242880
OWNCLOUD_OBJECTSTORE_CONCURRENCY=3
OWNCLOUD_OBJECTSTORE_VERSION=2006-03-01
OWNCLOUD_OBJECTSTORE_REGION=eu-west-1
OWNCLOUD_OBJECTSTORE_KEY=****
OWNCLOUD_OBJECTSTORE_SECRET=****

Can you please try to set OWNCLOUD_OBJECTSTORE_ENDPOINT=s3.eu-west-1.amazonaws.com in your deployment?

It doesn’t work, same error

Thanks for testing. Please take a look at AWS S3 issue · Issue #632 · owncloud/files_primary_s3 · GitHub. We need to discuss this further.

Adding https:// now works

Thanks for the feedback! Then the easiest would be to fix the default endpoint to https://s3.${OWNCLOUD_OBJECTSTORE_REGION}.amazonaws.com in the container.

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