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

s3

#1

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

I followed this guide:
https://docs.nextcloud.com/server/12/admin_manual/configuration_files/primary_storage.html

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' => 'example.com',
                //'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.

Regards,

Col

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:

<Error>
<Code>AccessDenied</Code>
<Message>Access Denied</Message>
<RequestId>04CCC3056823D240</RequestId>
<HostId>
/P4gf9r2RdoD3/RVbBsQABiHe1FyjAZUNzZ8UuE/HFW+YLuPX5EFI7WQ9p2P0onnrTCXJRnEPfs=
</HostId>
</Error>

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


#2

Any tips on this anyone?

Thanks,

Colin


#3

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?


#4

Hi,

<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.

Thanks
C