Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.

aoemaster's avatar

Trying to setup cloud storage on fresh install

Hello. ( french here, so excuse my english )

I am trying to setup cloud storage. I am using OVH object storage (openstack swift). It should work with the rackspace driver.

First thing I have done is to require league/flysystem-rackspace ~1.0 Then I filled rackspace config array in filesystems.php I put default file system to rackspace too. ('default' => 'rackspace',)

Then my first "test" in a basic controller : Storage::put('file.txt', 'Contents');

This works great but this is using local file system !

So I tried Storage::disk('rackspace')->put('file.txt', 'Contents');

The result is : ClientErrorResponseException in BadResponseException.php line 43: Client error response [status code] 401 [reason phrase] Unauthorized [url] https://identity.api.rackspacecloud.com/v2.0/tokens

What is strange is that I am not using this url for endpoint. My endopoint is https://auth.cloud.ovh.net/v2.0/.

It seems it is using some default settings rather that mine. at Service->generateToken('{"auth":{"RAX-KSKEY:apiKeyCredentials":{"username":"your-username","apiKey":"your-key"}}}') in OpenStack.php line 391

0 likes
0 replies

Please or to participate in this conversation.