CpanelInc / backup-transport-dropbox

cPanel Custom Backup Transport for Dropbox
Apache License 2.0
15 stars 7 forks source link

Could not create path directory #27

Open matheusrenne opened 9 months ago

matheusrenne commented 9 months ago

Hello. I have WHM cPanel Access. (CentOS Linux release 7.9.2009) I install WebService::Dropbox sudo cpan WebService::Dropbox

But when I add additional destinations and click on validate, show this Error Message:

Erro: Falha na validação de transporte “Dropbox”: Could not create path directory “backup/”: malformed JSON string, neither tag, array, object, number, string or atom, at character offset 0 (before "Error in call to API...") at /usr/local/bin/backup_transport_dropbox.pl line 322.

erojiraiya commented 9 months ago

@matheusrenne It is likely due to the app permission issue that you can set on Dropbox developer dashboard. If you do not know about the Dropbox API token expiry time which is 4 hours, the access token won't work after 4 hours of your setting update on backup file. Meaning, if you are planning to schedule backup migration, it won't work unless you manually update access token every time you run the backup.

I recently set up Dropbox remote destination without know about the change in access token expiry time and couldn't get around fixing the auto renewal in dropbox as there is no prebuilt solution to it and I do not have resource to update the codes to get a workaround. So I ended up switching to AWS S3 with JetBackup.

matheusrenne commented 9 months ago

It worked out. The problem was with the application permissions