Backing up to dropbox is no longer working. It works if the backups are on the same server.

http://prntscr.com/7obr9

Comments

jdanthinne’s picture

I confirm this. Was working fine until a few weeks, but not anymore…

droplet’s picture

update the lib and work on D6
https://github.com/jakajancar/DropboxUploader

jdanthinne’s picture

Working fine with this new version.

wundo’s picture

Status: Active » Fixed

Marking as fixed

wundo’s picture

Category: bug » support

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.

westis’s picture

Priority: Major » Normal
Status: Closed (fixed) » Active

I get the same error using the latest library. I'm on D7

tuandungb’s picture

I get the same error in D7,too.The error appears about 2 weeks ago.Everything run OK before

arso4949’s picture

Same problem, d6. It was working fine before.

I updated the DropboxUploader.php, still not working

NikLP’s picture

Okay, so it looks like this module is basically going to need a rewrite. AFAICT, the DB API changed and the way the class we're using works is very hacky, and this has been blocked it seems.

https://github.com/jakajancar/DropboxUploader/issues/3

roxflame’s picture

Priority: Normal » Critical

Increasing priority to critical as the module can not function at all in it's current form given the API changes on Dropbox's end.

roxflame’s picture

Category: support » bug

Changing category to bug report, as this is not just a request for support, but prevents the module backing-up at all.

roxtaz’s picture

Confirmed: module not working at all on drupal 6 and drupal 7.
Maybe we can do something with Dropbox API ?

D4Ko’s picture

I find quick fix:
https://github.com/jakajancar/DropboxUploader/issues/3

change in DropboxUploader.php:

protected function login() {
    $data = $this->request('https://www.dropbox.com/login');
    $data = $this->request('https://www.dropbox.com/login', true, array('login_email'=>$this->email, 'login_password'=>$this->password));
    if (stripos($data, 'location: /home') === false)
        throw new Exception('Login unsuccessful.');
    $this->loggedIn = true;
}

to:

protected function login() {
    $data = $this->request('https://www.dropbox.com/login');
    $matches = array();
    $res = preg_match('#(.*)name=\"t\" value=\"(.*)\"(.*)#', $data, $matches);
    $data = $this->request('https://www.dropbox.com/login', true, array('login_email' => $this->email, 'login_password' => $this->password, 't' => $matches[2]));
    if(stripos($data, 'location: /home') === false)
        throw new Exception('Login unsuccessful.');
    $this->loggedIn = true;
}

I tested the D7 and it works.

roxtaz’s picture

Tested on 5 different Drupal 7 sites ... not working for me ... sorry.

Danny Englander’s picture

I have not been able to get this to work for several weeks now. Expanding upon NikLP in #10 above, in that Github issue, the developer of the script himself says:

I'm closing this as WONTFIX.
There are APIs available now, and you really should start using them.

... I agree, this module probably needs a complete rewrite.

This makes sense as Dropbox has optional two step verification now so even if you could hack together the script to work, I don't think it would work if one has two step verification activated so probably the api route is the way to go.

There's a third party PHP API that Dropbox api site links to:
https://github.com/BenTheDesigner/Dropbox

In the meantime, I needed a quick solution so have started to use Nodesquirrel which also works in concert with Backup and Migrate just as this module did and it simply "works" for offsite backups. They have a free trial and the developers are extremely helpful and friendly both in the issue queue and from their website.

roxflame’s picture

I have found another way of getting the files backed up to dropbox which works for our situation. It is a bit of a roundabout way of doing things, but some of you may find our solution useful.

You will need your own linux server with FTP, or at least root access and FTP.

1: Install dropbox on the server following instructions here: https://www.dropbox.com/install?os=lnx

2: Then set up your backup migrate using FTP destination instead of dropbox destination.

3: Either point the destination above to a folder within the dropbox folder on the server, or create a symbolic link from your destination to a folder within the dropbox.

4: Hope for the best!

maczkojanos’s picture

Hello,

im checked this: https://github.com/jakajancar/DropboxUploader
It works.

maczkojanos

ultimike’s picture

Efforts to fix this module in a sustainable manner are taking place in this issue: http://drupal.org/node/1943262

-mike

wundo’s picture

Status: Active » Fixed

Marking as fixed, as the latest dev seems to be working

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.