# Swift Object Storage as primary

**URL:** <https://help.nextcloud.com/t/swift-object-storage-as-primary/8574>\
**Category:** ℹ️ Support\
**Created:** [February 7, 2017, 10:22am UTC](https://help.nextcloud.com/t/swift-object-storage-as-primary/8574 "2017-02-07T10:22:28Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![Jimmy\_BERTRAND](https://help.nextcloud.com/user_avatar/help.nextcloud.com/jimmy_bertrand/32/20052_2.png) [@Jimmy\_BERTRAND](https://help.nextcloud.com/u/Jimmy_BERTRAND)\
**Post date:** [February 7, 2017, 10:22am UTC](https://help.nextcloud.com/t/swift-object-storage-as-primary/8574/1 "2017-02-07T10:22:28Z")

</div>

Hello,

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](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 127.0.0.1 port 8888: Connection refused [url] 127.0.0.1:8888/v1/AUTH\_fccf033541744223a9e9xdfdb2c81/NEXTCLOUD2’

‘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](http://pastebin.com/PGR1tXFe)  
Thanks.

---

<div class="post-metadata">

**Author:** ![Jimmy\_BERTRAND](https://help.nextcloud.com/user_avatar/help.nextcloud.com/jimmy_bertrand/32/20052_2.png) [@Jimmy\_BERTRAND](https://help.nextcloud.com/u/Jimmy_BERTRAND)\
**Post date:** [February 7, 2017, 11:05am UTC](https://help.nextcloud.com/t/swift-object-storage-as-primary/8574/2 "2017-02-07T11:05:56Z")

</div>

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](http://auth.cloud.ovh.net) port 80: Connection refused [url] [http://auth.cloud.ovh.net/v2.0/tokens](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 127.0.0.1:8888. Any advice?

---

<div class="post-metadata">

**Author:** ![MariusBluem](https://help.nextcloud.com/letter_avatar/mariusbluem/32/6_22734026db12803ebb3e059622ac3534.png) [@MariusBluem](https://help.nextcloud.com/u/MariusBluem)\
**Post date:** [February 7, 2017, 1:55pm UTC](https://help.nextcloud.com/t/swift-object-storage-as-primary/8574/3 "2017-02-07T13:55:39Z")

</div>

@icewind …maybe you can help out? 🤔

---

<div class="post-metadata">

**Author:** ![gpailler](https://help.nextcloud.com/letter_avatar/gpailler/32/6_22734026db12803ebb3e059622ac3534.png) [@gpailler](https://help.nextcloud.com/u/gpailler)\
**Post date:** [May 1, 2017, 2:06pm UTC](https://help.nextcloud.com/t/swift-object-storage-as-primary/8574/4 "2017-05-01T14:06:22Z")

</div>

@Jimmy_BERTRAND

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:

```auto
'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',
    ),
),

```

---

<div class="post-metadata">

**Author:** ![wwe](https://help.nextcloud.com/user_avatar/help.nextcloud.com/wwe/32/72963_2.png) [@wwe](https://help.nextcloud.com/u/wwe)\
**Post date:** [December 2, 2024, 1:28pm UTC](https://help.nextcloud.com/t/swift-object-storage-as-primary/8574/5 "2024-12-02T13:28:12Z")

</div>



---

<div class="post-metadata">

**Author:** ![wwe](https://help.nextcloud.com/user_avatar/help.nextcloud.com/wwe/32/72963_2.png) [@wwe](https://help.nextcloud.com/u/wwe)\
**Post date:** [December 4, 2024, 1:04pm UTC](https://help.nextcloud.com/t/swift-object-storage-as-primary/8574/6 "2024-12-04T13:04:49Z")

</div>


