Gentle, Easy and Complete Steps to configure new S3 (using Ceph) backend?


#1

I know that this is likely pilot error here, but I am trying to make the new Object Storage plugin work with ownCloud 10.0.9. I am very likely NOT doing something correctly. But here is what I have done.

Steps to reproduce

  1. Configured OC on an OpenStack vm. Seems to work great with local storage.
  2. I downloaded and copied to “apps” the new “files_primary_s3” app from the marketplace to my server.
    2a. I enable the plugin via the UI.
  3. I configure in a new objectstore stanza in my config.php file following the instructions found on github (complete file below.)
  4. I reboot everything.
  5. The web UI does not ever respond after this. Locks up.
  6. No useful messages in owncloud.log
  7. If I take out the objectstore stanza, reboot, then all seems well again.

I know I am totally missing something here. Docs are scarce.

Any help appreciated.

Expected behaviour

my OC magically starts using my Rados bucket on Ceph.

Actual behaviour

UI Locks up.

Server configuration

SLE 15

Web server:
Apache 2.4.33

Database:
MariaDB

PHP version:
7.2.5

ownCloud version: (see ownCloud admin page)
10.0.9

Updated from an older ownCloud or fresh install:
Fresh

Where did you install ownCloud from:
OC Website download tarball

Signing status (ownCloud 9.0 and above):
?

Login as admin user into your ownCloud and access 
http://example.com/index.php/settings/integrity/failed 
paste the results into https://gist.github.com/ and puth the link here.

The content of config/config.php:

<?php
$CONFIG = array (
  'instanceid' => 'ocf8r04aht11',
  'passwordsalt' => xxxxxx,
  'secret' => yyyyyy,
  'trusted_domains' => 
  array (
    0 => 'ww.xx.yy.zz',
  ),
  'datadirectory' => '/srv/www/htdocs/owncloud/data',
  'overwrite.cli.url' => 'http:/ww.xx.yy.zz/owncloud',
  'dbtype' => 'mysql',
  'version' => '10.0.9.5',
  'dbname' => 'ocdb',
  'dbhost' => 'localhost',
  'dbtableprefix' => 'oc_',
  'mysql.utf8mb4' => true,
  'dbuser' => 'oc_admin',
  'dbpassword' => 'yyyyyyy',
  'logtimezone' => 'UTC',
  'installed' => true,
  'objectstore' => [
		'class' => 'OCA\Files_Primary_S3\S3Storage',
		'arguments' => [
			// replace with your bucket
			'bucket' => 'ownclouddemo',
			'autocreate' => true,
			// uncomment to enable server side encryption
			//'serversideencryption' => 'AES256',
			'options' => [
				// version and region are required
				'version' => '2006-03-01',
				'region'  => 'us-east-1',
				'credentials' => [
					// replace key and secret with your credentials
					'key'    => 'xxxxxx',
                			'secret' => 'yyyyyy',
				],
				'use_path_style_endpoint' => true,
				'endpoint' => 'oururl:80/',
			],
		],
	],
);

Log in to the web-UI with an administrator account and click on
‘admin’ -> ‘Generate Config Report’ -> ‘Download ownCloud config report’
This report includes the config.php settings, the list of activated apps
and other details in a well sanitized form.

or

If you have access to your command line run e.g.:
sudo -u www-data php occ config:list system
from within your ownCloud installation folder

ATTENTION: Do not post your config.php file in public as is. Please use one of the above
methods whenever possible. Both, the generated reports from the web-ui and from occ config:list
consistently remove sensitive data. You still may want to review the report before sending.
If done manually then it is critical for your own privacy to dilligently
remove all host names, passwords, usernames, salts and other credentials before posting.
You should assume that attackers find such information and will use them against your systems.


**List of activated apps:**

If you have access to your command line run e.g.:
sudo -u www-data php occ app:list
from within your ownCloud installation folder.


**Are you using external storage, if yes which one:** local/smb/sftp/...

Well trying too.....

**Are you using encryption:** yes/no

no

**Are you using an external user-backend, if yes which one:** LDAP/ActiveDirectory/Webdav/...

no

#### LDAP configuration (delete this part if not used)

With access to your command line run e.g.:
sudo -u www-data php occ ldap:show-config
from within your ownCloud installation folder

Without access to your command line download the data/owncloud.db to your local
computer or access your SQL server remotely and run the select query:
SELECT * FROM oc_appconfig WHERE appid = ‘user_ldap’;

Eventually replace sensitive data as the name/IP-address of your LDAP server or groups.


### Client configuration
**Browser:**

**Operating system:**

### Logs
#### Web server error log

Insert your webserver log here


#### ownCloud log (data/owncloud.log)

Insert your ownCloud log here


#### Browser log

Insert your browser log here, this could for example include:

a) The javascript console log
b) The network log
c) …