Amazon S3 storage - creates the s3 bucket but on admin login get an internal server Error

I’ve configured NC12 instance to use Amazon s3 as the data file store.

I followed this guide:

I can see that my bucket in config.php has been created in my S3 instance. That much is working.

However then on the NC12 login screen I get the internal server error warning:

Internal Server Error
The server encountered an internal error and was unable to complete your request.
Please contact the server administrator if this error reappears multiple times, please include the technical details below in your report.
More details can be found in the server log.

The server log does not contact any errors whatsoever. when I remove my config.php code that added s3 I can login again no issues. So it’s definitely something to do with my config.

My config.php addition looks something like this:

'objectstore' => array(
        'class' => 'OC\\Files\\ObjectStore\\S3',
        'arguments' => array(
                'bucket' => 'test-bucket-3',
                'autocreate' => true,
                'key'    => 'ASFDASDFASFDASFD',
                'secret' => '0/asdasdasadasdadsasdasdasdasdasda//tROSJxmov',
                //'hostname' => '',
                //'port' => 1234,
                //'use_ssl' => true,
                //'region' => 'eu-west-1',
                // required for some non amazon s3 implementations
                // 'use_path_style'=>true

Any assistance would be great. I want to use s3 as my main file store as the data growth is more than I expected.



Also see the contents of my S3 bucket. It has about 20 of these files and the contents all look like this sort of XML:

Screenshot of s3 files in the bucket NC12 created:

What the files look like:

<Message>Access Denied</Message>

At a guess I’m thinking this is a permissions issue given the XML reads access denied.

Any tips on this anyone?



I am now facing almost a similar issue.

Regarding the contents of the bucket:

Contrary to using an object store as external storage, when an object store is used as primary storage, no metadata (names, directory structures, etc) is stored in the object store. The metadata is only stored in the database and the object store only holds the file content by unique identifier.

So this is “by design”.

I have an internal server error on the login screen when setting ssl =>true in the config.
Is your bucket in the Frankfurt region by any chance?


<My bucket was in Oregon US West region.

I ended up going with AWS EFS for the data folder.

I hope you sorted your issue.


Hi! How was your experience with EFS? Better than S3? How much did it cost you?

100GB storage. but not transfer costs!
and there are cheaper versions of s3. depends on your use case.

factor 10-15 :wink:


btw: why not ebs? do you plan a nextcloud cluster?