Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

dropbox - no disk set for backup destination #471

Closed
sherwinmartin opened this issue Jun 26, 2017 · 5 comments
Closed

dropbox - no disk set for backup destination #471

sherwinmartin opened this issue Jun 26, 2017 · 5 comments

Comments

@sherwinmartin
Copy link

hello, i am able to do use local without a problem, but when i use dropbox driver i run into errors.

in terminal i get

Copying zip failed because: There is no disk set for the backup destination.

when i review the email, here's the error it gives me

Important: An error occurred while backing up Short Term Training Database

Exception message: There is no disk set for the backup destination

Exception trace: #0 /Users/sherwin/apps/laravel/sttdb/vendor/spatie/laravel-backup/src/BackupDestination/BackupDestination.php(78): Spatie\Backup\Exceptions\InvalidBackupDestination::diskNotSet() #1

when i run backup:clean i get a

invalid driver [dropbox] is not supported

i've checked your blog, i've destroyed the app api and recreated a new one. i googled issues relating to this and tried different things from those posts. not sure what else i'm missing. please help.

i have tried config:clear.

filesystem.php contains the following

'dropbox' => [
    'driver' => 'dropbox',
    'authorizationToken' => env('DROPBOX_TOKEN'),
],

also copied the DropboxFilesystemProvider.php file from https://murze.be/2017/04/dropbox-will-turn-off-v1-of-their-api-soon-its-time-to-update-your-php-application/

i'm using laravel 5.4.27, mysql 5.7.16

thanks.

@dib258
Copy link

dib258 commented Jun 27, 2017

Same here :(

I get : Copying zip failed because: There is no disk set for the backup destination.

I followed the instructions in the Laravel Documentation and the blog post ww1n78 showed.

Is there something more to know ?

Thanks in advance for your answer !

@dib258
Copy link

dib258 commented Jun 27, 2017

@w1n78 Found out what was the problem for me. I'm sure it's the same for you.

Just add App\Providers\DropBoxServiceProvider::class,

at the end of the providers in the config/app.php

:)

@freekmurze
Copy link
Member

@w1n78 could you check if @dib258 's solution works for you? If it does, close this issue.

@sherwinmartin
Copy link
Author

@freekmurze @dib258

okay i got! so it was a combo of different things. mainly related to file/class names. i was looking at different posts that used different names. one had DropboxServiceProvider the other used DropboxFilesystemServiceProvider. next the config key value on one article used authorizationToken while the other used accessToken.

after lining those up, it worked. thank you both for the help.

@subdesign
Copy link

@dib258 Same here.. but if I add the service provider, on my live server I get a strange not-so-related error: Class cache does not exist

On local dev, if I add the provider line to app.php, the db backed up nicely, and added to dropbox. It not directly related to cache, because caching works well with redis (the driver set)

my issue on that: spatie/flysystem-dropbox#32

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants