Nextcloud-snap: Setup S3 as Primary Storage

Created on 4 Mar 2019  路  2Comments  路  Source: nextcloud/nextcloud-snap

Really like the snap install, but I'm having trouble configuring objectstore, specifically S3. I tried modifying the nextcloud configs under $SNAP_DATA but from the docs it sounds like this needs to be done before the install. Is this possible when installing via snap? Or are there instructions on how to set this up after the install?

Most helpful comment

@kyrofa I tried again and got it working! I had to try a few times, but here is correct order of operations:

  1. snap install
  2. Edit config /var/snap/nextcloud/current/nextcloud/config/config.php with S3 info:
'objectstore' => array(
        'class' => '\\OC\\Files\\ObjectStore\\S3',
        'arguments' => array(
                'bucket' => 'bucketname',
                'autocreate' => true,
                'key'    => 'key',
                'secret' => 'secret',
                'use_ssl' => true,
                'region' => 'region',
        ),
),
  1. login via web as admin

After that I see could objects getting written to S3 as I added users and files.

All 2 comments

Reading those same docs, it sounds like you can do this after install, but all the files you had in the data directory before the switch will become inaccessible. What happens if you add this to the config after install?

@kyrofa I tried again and got it working! I had to try a few times, but here is correct order of operations:

  1. snap install
  2. Edit config /var/snap/nextcloud/current/nextcloud/config/config.php with S3 info:
'objectstore' => array(
        'class' => '\\OC\\Files\\ObjectStore\\S3',
        'arguments' => array(
                'bucket' => 'bucketname',
                'autocreate' => true,
                'key'    => 'key',
                'secret' => 'secret',
                'use_ssl' => true,
                'region' => 'region',
        ),
),
  1. login via web as admin

After that I see could objects getting written to S3 as I added users and files.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

tinokizis picture tinokizis  路  8Comments

MichaelsGITIGIT picture MichaelsGITIGIT  路  6Comments

kyrofa picture kyrofa  路  6Comments

JWise1203 picture JWise1203  路  5Comments

edrohler picture edrohler  路  3Comments