dropbox access token expire, backup solution not possible

tinodesigns

Well-Known Member
Jan 24, 2019
54
7
8
Germany
cPanel Access Level
Root Administrator
Hi there,

I setup dropbox destination for my backups according to this blog post: Custom Backup Transport: Dropbox | cPanel Blog

The setup works fine for, well, for a while. The issue here is that, since some time last year, all dropbox access token automatically expire after a few hours or days.

That however stops WHM then to upload the backups to dropbox.

Is there a solution for this?

This is the error I'm getting:
Error: Validation for transport “Dropbox” failed: Could not upload test file: 2023-03-07T13:11:03 [WebService::Dropbox] [ERROR] https://content.dropboxapi.com/2/files/upload {"mode":"overwrite","path":"/validate.tmp-23433-1678216261.txt"} -> [401] {"error_summary": "expired_access_token/.", "error": {".tag": "expired_access_token"}} at /usr/local/share/perl5/WebService/Dropbox.pm line 184.

And this is what dropox says about it:
 
Last edited by a moderator:

cPRex

Jurassic Moderator
Staff member
Oct 19, 2014
17,470
2,843
363
cPanel Access Level
Root Administrator
Hey there! This is expected behavior with the new Dropbox system since they have moved to "refresh tokens." There are some additional details on how JetBackup handled that here:


Dropbox has some development guides for this here as well:


however, I don't have a way to get the normal cPanel backups working with this new system on my end.
 

tinodesigns

Well-Known Member
Jan 24, 2019
54
7
8
Germany
cPanel Access Level
Root Administrator
Hi,

so I was looking into this. We are not using JetBackup. You also said that you don't have a way to get normal cPanel bakcups working with this?

We are using the regular WHM Backup Configuration. Does that mean we won't be able to get the backups stored on dropbox anymore? Unless we buy a JetBackup plan?

We were trying to use the regular custom destination from WHM Backup Configuration.

Thanks,
Tino
 

tinodesigns

Well-Known Member
Jan 24, 2019
54
7
8
Germany
cPanel Access Level
Root Administrator
Also do you know if there might be a way to connect to dropbox using sFTP or FTP? That might be a solution.

What about the other custom destinations like Google Drive, Amazon S3, Blackblaze etc... are those acutally working fine?
Which one is easiset to use?

Thank you,
Tino
 

cPRex

Jurassic Moderator
Staff member
Oct 19, 2014
17,470
2,843
363
cPanel Access Level
Root Administrator
Yes, this issue only affects the Dropbox method, since they have changed the security settings on their end. All other methods are working normally.

Because of this security setting, I am not aware of a way to connect to Dropbox using another method.