Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
nextcloud does not use s3 external storrage #5516
Steps to reproduce
The page should load
Internal Server Error on the login page
Nextcloud version: (see Nextcloud admin page)
Updated from an older Nextcloud/ownCloud or fresh install:
Where did you install Nextcloud from:
Unable to login
List of activated apps:
App listExternal storrage + ldap ``` If you have access to your command line run e.g.: sudo -u www-data php occ app:list from within your Nextcloud installation folder ```
<?php $CONFIG = array ( 'apps_paths' => array ( 0 => array ( 'path' => '/var/www/html/apps', 'url' => '/apps', 'writable' => false, ), 1 => array ( 'path' => '/var/www/html/custom_apps', 'url' => '/custom_apps', 'writable' => true, ), ), 'instanceid' => 'xxx', 'passwordsalt' => 'xxx', 'secret' => 'xxx+xxx', 'trusted_domains' => array ( 0 => 'nextcloud.xxx.net', ), 'datadirectory' => '/var/www/html/data', 'overwrite.cli.url' => 'https://nextcloud.xxx.net', 'dbtype' => 'mysql', 'version' => '184.108.40.206', 'dbname' => 'nextcloud', 'dbhost' => 'nextcloud_db:3306', 'dbport' => '', 'dbtableprefix' => 'oc_', 'dbuser' => 'nextcloud', 'dbpassword' => 'xxx', 'installed' => true, 'ldapIgnoreNamingRules' => false, 'ldapProviderFactory' => '\\OCA\\User_LDAP\\LDAPProviderFactory', 'mail_smtpmode' => 'smtp', 'mail_smtpauthtype' => 'LOGIN', 'mail_from_address' => 'cloud', 'mail_domain' => 'xxx.net', 'mail_smtpauth' => 1, 'mail_smtphost' => 'mail', 'mail_smtpport' => '25', 'mail_smtpname' => 'nextcloud', 'mail_smtppassword' => 'xxx', 'objectstore' => array( 'class' => 'OC\\Files\\ObjectStore\\S3', 'arguments' => array( 'bucket' => 'smi', 'autocreate' => true, 'key' => 'xxx', 'secret' => 'xxx', 'use_ssl' => true, 'region' => 'eu-central-1', // required for some non amazon s3 implementations 'use_path_style'=>false ), ), );
Are you using external storage, if yes which one: S3
Are you using encryption: no
Are you using an external user-backend, if yes which one: LDAP
Nextcloud log (data/nextcloud.log)
Found the "solution" this week.
This might be more clearly documented thats why I leave this ticket open. Hope @tompinzler this info is helpful.
Hm, I'm trying to activate Swift storage on a brand new installation without existing files. At this point there is only one existing user which was generated during installation and that user has never logged in.
I have the same problem trying to set up S3 on Nextcloud 12, I get an error 500. The logs reveal:
Searching for the "You must provide the Content-Length HTTP header" error reveals a bug in the AWS SDK due to an old version of Guzzle:
So I guess unless the files_external app is updated to a new AWS SDK version, it won't work :(