Swift Object Storage as primary


i’m trying to use a swift Object Storage as a primary container for files, using the tutorial (https://docs.nextcloud.com/server/11/admin_manual/configuration_files/primary_storage.html) i edited the config.php with all the required info. I actually get an ‘internal server error’ on file upload and logs says : ‘Guzzle\Http\Exception\CurlException: [curl] 7: Failed to connect to port 8888: Connection refused [url]’

‘NEXTCLOUD2’ is the bucketname i did put in config.php, but it seems Nextcloud don’t use the url i specified in the config file.

All the info used on the config.php files are tested and work when adding a External storage via the admin interface.

Config file: http://pastebin.com/PGR1tXFe

Some news:

If call the ovh api whitout ssl (http://…) i have the following error message:
‘Guzzle\Http\Exception\CurlException: [curl] 7: Failed to connect to auth.cloud.ovh.net port 80: Connection refused [url] http://auth.cloud.ovh.net/v2.0/tokens

So it seems that nextcloud when i swap to https stop trying to call the auth url but instead use Any advice?

@icewind …maybe you can help out? :thinking:


I faced the same issue with OVH and fixed it by removing the line 'urlType'=> 'internal' in config.php (this setting is related to RackSpace provider)

My config.php looks like:

'objectstore' => array(
    'class' => 'OC\\Files\\ObjectStore\\Swift',
    'arguments' => array(
        'username' => 'OS_USERNAME',
        'password' => 'OS_PASSWORD',
        'bucket' => 'CONTAINER_NAME',
        'autocreate' => false,
        'region' => 'GRA3',
        'url' => 'https://auth.cloud.ovh.net/v2.0',
        'tenantName' => 'OS_TENANT_NAME',
        'serviceName' => 'swift',
1 Like