Report this

What is the reason for this report?

Problem with Digital Ocean and spaces cannot be accessed

Posted on October 16, 2024
enr9

By enr9

Hello,

I’ve a problem using Digital Ocean and spaces on Laravel 10. I filled my .env like this:


 DO_SPACES_KEY=*************

DO_SPACES_SECRET=********************

DO_SPACES_ENDPOINT=fra1.digitaloceanspaces.com

DO_SPACES_REGION=FRA1

DO_SPACES_BUCKET=****************

All the keys are working because my colleagues are using the same as me, and we even tried to generate new one.

My config/filesystems.php :

 'spaces' => [

            'driver' => 's3',

            'key' => env('DO_SPACES_KEY'),

            'secret' => env('DO_SPACES_SECRET'),

            'endpoint' => env('DO_SPACES_ENDPOINT'),

            'region' => env('DO_SPACES_REGION'),

            'bucket' => env('DO_SPACES_BUCKET'),

        ],

I got this error:

Disk named spaces cannot be accessed

Do you have an idea how can I fix it please ?

The developer cloud

Scale up as you grow — whether you're running one virtual machine or ten thousand.

Start building today

From GPU-powered inference and Kubernetes to managed databases and storage, get everything you need to build, scale, and deploy intelligent applications.