[SolidMean] ForumBackup Dropbox Upload [Deleted]

Yeah, I suspect that there was a communication problem with DropBox. The next update will allow that error message and response to fail more gracefully with more information.
 
Yeah, I suspect that there was a communication problem with DropBox. The next update will allow that error message and response to fail more gracefully with more information.

I'm getting this error too. Even when trying to run the cron entries manually, it still outputs the same error.

Code:
Server Error
cURL error 77: Problem with the SSL CA cert (path? access rights?) (see http://curl.haxx.se/libcurl/c/libcurl-errors.html)

Kunnu\Dropbox\Http\Clients\DropboxGuzzleHttpClient->send() in SolidMean/ForumBackup/DropBox/vendor/kunalvarma05/dropbox-php-sdk/src/Dropbox/DropboxClient.php at line 155
Kunnu\Dropbox\DropboxClient->sendRequest() in SolidMean/ForumBackup/DropBox/vendor/kunalvarma05/dropbox-php-sdk/src/Dropbox/Dropbox.php at line 250
Kunnu\Dropbox\Dropbox->sendRequest() in SolidMean/ForumBackup/DropBox/vendor/kunalvarma05/dropbox-php-sdk/src/Dropbox/Dropbox.php at line 264
Kunnu\Dropbox\Dropbox->postToAPI() in SolidMean/ForumBackup/DropBox/vendor/kunalvarma05/dropbox-php-sdk/src/Dropbox/Dropbox.php at line 1145
Kunnu\Dropbox\Dropbox->getCurrentAccount() in SolidMean/ForumBackup/DropBox/CronEntry/Backup.php at line 64
SolidMean_ForumBackup_DropBox_CronEntry_Backup->upload() in SolidMean/ForumBackup/CronEntry/Backup.php at line 86
SolidMean_ForumBackup_CronEntry_Backup::saveDatabase() in XenForo/Model/Cron.php at line 356
XenForo_Model_Cron->runEntry() in XenForo/ControllerAdmin/Cron.php at line 213
XenForo_ControllerAdmin_Cron->actionRun() in XenForo/FrontController.php at line 351
XenForo_FrontController->dispatch() in XenForo/FrontController.php at line 134
XenForo_FrontController->run() in /home/nginx/domains/domain.com/public/admin.php at line 13
 
So I ended up going through a couple of the suggestions in that article and still had no luck. I then ran yum reinstall openssl & yum reinstall ca-certificates as suggested on a different article. Once completed, I did service php-fpm restart and ran the cron entry which returned the following error:

Code:
Code backup wasn't created. Run again with debug enabled

SolidMean_ForumBackup_CronEntry_Backup::saveCode() in XenForo/Model/Cron.php at line 356
XenForo_Model_Cron->runEntry() in XenForo/ControllerAdmin/Cron.php at line 213
XenForo_ControllerAdmin_Cron->actionRun() in XenForo/FrontController.php at line 351
XenForo_FrontController->dispatch() in XenForo/FrontController.php at line 134
XenForo_FrontController->run() in /home/nginx/domains/domain.com/public/admin.php at line 13

I forgot to mention, this started after upgrading to PHP 7.0.10. I have just now installed the latest cURL version as well.

Code:
[root@node1 ~]# curl -V
curl 7.50.1 (x86_64-pc-linux-gnu) libcurl/7.19.7 NSS/3.21 Basic ECC zlib/1.2.3 libidn/1.18 libssh2/1.4.2
Protocols: tftp ftp telnet dict ldap ldaps http file https ftps scp sftp 
Features: IDN IPv6 Largefile NTLM SSL libz 
You have new mail in /var/spool/mail/root
 
Last edited:
I haven't tested this on PHP 7.x myself, but I can't think that there'd be any problems with it.

That being said, your current error looks like an issue with the backup itself, rather than the DropBox interface.

Does your debug file give you any error messages when doing the backup?
This is a code (xfroot) backup. Do your database backups work without any issues?
 
It seems that whenever I run the cron entry, the backup(s) are being stored locally to my server rather than to Dropbox as usual. PM'd you the logs from today though.
 
That's normally the case, the backups will run, they are stored locally in whatever directory you have specified, then if you have the DropBox or SFTP extension enabled, it will perform those tasks, then remove the local backup (if you have that checked in the options).

Taking a look now, will get back to you in a few hours.
 
It has normally been doing that ever since I upgraded to PHP 7.0.10 and then ran across the cURL issue. Now, it only wants to backup locally but not run its Dropbox process.

Also, no problem.

--EDIT--

After continuous hours of research with cURL ca-certificates errors when manually running the cron entries for Database Backup and Forum Backup, I ended up downgrading back to 5.6.25 which didn't resolve the issue. So, I continuously searched all over and finally ran across a fix in which allowed me to successfully run the cron entries without error.

Error:
Code:
cURL error 77: error setting certificate verify locations: CAfile: /etc/ssl/certs/cacert.pem CApath: none (see http://curl.haxx.se/libcurl/c/libcurl-errors.html)

Fix:

1. Make sure your cURL libraries are up-to-date and you're on PHP 5.6.25.
2. Make sure you have ca-certificates installed (etc/pki/tls/certs).

First, run:
Code:
cd /etc/ssl/certs

Then, run:
Code:
$ wget http://curl.haxx.se/ca/cacert.pem

Outputs:
Code:
--2016-09-07 05:24:14--  https://curl.haxx.se/ca/cacert.pem
Resolving curl.haxx.se (curl.haxx.se)... 80.67.6.50, 2a00:1a28:1200:9::2
Connecting to curl.haxx.se (curl.haxx.se)|80.67.6.50|:443... connected.
HTTP request sent, awaiting response... 200 OK
Length: 261618 (255K)
Saving to: ‘cacert.pem.1’

cacert.pem.1          100%[=========================>] 255.49K   582KB/s    in 0.4s  

2016-09-07 05:24:15 (582 KB/s) - ‘cacert.pem.1’ saved [261618/261618]

Then browse to etc/pki/tls/certs and delete cacert.pem if the file size is 0. Then, rename cacert.pem.1 to cacert.pem which should have a bigger file size.

Permissions:
Code:
$ /bin/chmod 777 /etc/pki/tls/certs
Code:
 $ /bin/chmod 777 /etc/ssl/certs

Finally, restart your web server (httpd, service php-fpm restart, nprestart, etc).

I tested the cron entry for database backup on 5.6.25 & 7.0.10 which worked. However, I can't seem to get a code backup on either version of PHP without my website timing out.
 
Last edited:
@SneakyDave i am getting this error

Missing argument 1 for SolidMean_ForumBackup_DropBox_CronEntry_Backup::__construct(), called in /home/html/******.com/library/SolidMean/ForumBackup/CronEntry/Backup.php on line 85 and defined
 
Hi just bought this.

Got errors when I'm trying to backup now. ForumBackup worked well before I installed this, maybe you got an idea about whats wrong?

This is what my serverlog is saying:
ErrorException: Fatal Error: syntax error, unexpected '[', expecting ')' - library/SolidMean/ForumBackup/DropBox/vendor/guzzlehttp/promises/src/functions.php:41

Also, it creates 2x local backups now. Help plix. :) Running PHP 5.4 and XenForo 1.5.10.

EDIT:
Wops, double checked and now I see that it's probably a PHP version issue. I will update my php and try again. :)

EDIT 2: Ok, at least I got rid of the fatal error now running PHP 5.5. Now I'm getting this:

Kunnu\Dropbox\Exceptions\DropboxClientException: Error in call to API function "files/upload": path: invalid path: bad path component 2: empty - library/SolidMean/ForumBackup/DropBox/vendor/kunalvarma05/dropbox-php-sdk/src/Dropbox/Http/Clients/DropboxGuzzleHttpClient.php:67

Help please :)
 
Last edited:
Hi just bought this.

Got errors when I'm trying to backup now. ForumBackup worked well before I installed this, maybe you got an idea about whats wrong?

This is what my serverlog is saying:
ErrorException: Fatal Error: syntax error, unexpected '[', expecting ')' - library/SolidMean/ForumBackup/DropBox/vendor/guzzlehttp/promises/src/functions.php:41

Also, it creates 2x local backups now. Help plix. :) Running PHP 5.4 and XenForo 1.5.10.

EDIT:
Wops, double checked and now I see that it's probably a PHP version issue. I will update my php and try again. :)

EDIT 2: Ok, at least I got rid of the fatal error now running PHP 5.5. Now I'm getting this:

Kunnu\Dropbox\Exceptions\DropboxClientException: Error in call to API function "files/upload": path: invalid path: bad path component 2: empty - library/SolidMean/ForumBackup/DropBox/vendor/kunalvarma05/dropbox-php-sdk/src/Dropbox/Http/Clients/DropboxGuzzleHttpClient.php:67

Help please :)
Those errors both sound like your uploads didn't work properly, certainly not PHP version differences. I would try installing the addon again. If that doesn't work, send me a conversation with a screen shot of your DropBox options, and I'll take a look.
 
This is an FYI that the minimum requirement for this addon is PHP 5.5.

If you receive an error about
Code:
Call to undefined function GuzzleHttp\Handler\curl_reset()

that is likely the issue, as that function doesn't appear until PHP 5.5.
 
Those errors both sound like your uploads didn't work properly, certainly not PHP version differences. I would try installing the addon again. If that doesn't work, send me a conversation with a screen shot of your DropBox options, and I'll take a look.
Hi and thank you for your answer,
Reinstallation solved it, now it works great. Thanks!
 
Great addon and works well but i had a couple errors lately relating to DB upload and not standard local backup
Backups always complete locally but a couple days ago file backup failed to DB due to lack of space, this is now resolved but i received a server error with no title and an a daily email referencing anacron job, the email persists although both backup routines complete successfully
Code:
Server Error Log
Error Info
Kunnu\Dropbox\Exceptions\DropboxClientException: - library/SolidMean/ForumBackup/DropBox/vendor/kunalvarma05/dropbox-php-sdk/src/Dropbox/Http/Clients/DropboxGuzzleHttpClient.php:67
Generated By: Unknown Account, Yesterday at 03:27
Stack Trace
#0 /var/www/vhosts/t6forum.com/httpdocs/library/SolidMean/ForumBackup/DropBox/vendor/kunalvarma05/dropbox-php-sdk/src/Dropbox/DropboxClient.php(155): Kunnu\Dropbox\Http\Clients\DropboxGuzzleHttpClient->send('https://content...', 'POST', '_\x16\xB2\xAA\xA5\xA0\xE8&\x93e\x87%\xFA>~...', Array)
#1 /var/www/vhosts/t6forum.com/httpdocs/library/SolidMean/ForumBackup/DropBox/vendor/kunalvarma05/dropbox-php-sdk/src/Dropbox/Dropbox.php(250): Kunnu\Dropbox\DropboxClient->sendRequest(Object(Kunnu\Dropbox\DropboxRequest))
#2 /var/www/vhosts/t6forum.com/httpdocs/library/SolidMean/ForumBackup/DropBox/vendor/kunalvarma05/dropbox-php-sdk/src/Dropbox/Dropbox.php(278): Kunnu\Dropbox\Dropbox->sendRequest('POST', '/files/upload_s...', 'content', Array, NULL)
#3 /var/www/vhosts/t6forum.com/httpdocs/library/SolidMean/ForumBackup/DropBox/vendor/kunalvarma05/dropbox-php-sdk/src/Dropbox/Dropbox.php(939): Kunnu\Dropbox\Dropbox->postToContent('/files/upload_s...', Array)
#4 /var/www/vhosts/t6forum.com/httpdocs/library/SolidMean/ForumBackup/DropBox/vendor/kunalvarma05/dropbox-php-sdk/src/Dropbox/Dropbox.php(999): Kunnu\Dropbox\Dropbox->appendUploadSession(Object(Kunnu\Dropbox\DropboxFile), 'AAAAAAAAAL-sE7t...', 276000000, 4000000)
#5 /var/www/vhosts/t6forum.com/httpdocs/library/SolidMean/ForumBackup/DropBox/vendor/kunalvarma05/dropbox-php-sdk/src/Dropbox/Dropbox.php(784): Kunnu\Dropbox\Dropbox->uploadChunked(Object(Kunnu\Dropbox\DropboxFile), '/forumbackup_20...', NULL, NULL, Array)
#6 /var/www/vhosts/t6forum.com/httpdocs/library/SolidMean/ForumBackup/DropBox/CronEntry/Backup.php(81): Kunnu\Dropbox\Dropbox->upload(Object(Kunnu\Dropbox\DropboxFile), '/forumbackup_20...')
#7 /var/www/vhosts/t6forum.com/httpdocs/library/SolidMean/ForumBackup/CronEntry/Backup.php(177): SolidMean_ForumBackup_DropBox_CronEntry_Backup->upload(Object(SolidMean_ForumBackup_Options), Object(SolidMean_ForumBackup_Helper_Log))
#8 [internal function]: SolidMean_ForumBackup_CronEntry_Backup::saveCode(Array)
#9 /var/www/vhosts/t6forum.com/httpdocs/library/XenForo/Model/Cron.php(357): call_user_func(Array, Array)
#10 /var/www/vhosts/t6forum.com/httpdocs/library/XenForo/Deferred/Cron.php(24): XenForo_Model_Cron->runEntry(Array)
#11 /var/www/vhosts/t6forum.com/httpdocs/library/XenForo/Model/Deferred.php(295): XenForo_Deferred_Cron->execute(Array, Array, 7.9999990463257, '')
#12 /var/www/vhosts/t6forum.com/httpdocs/library/XenForo/Model/Deferred.php(429): XenForo_Model_Deferred->runDeferred(Array, 7.9999990463257, '', false)
#13 /var/www/vhosts/t6forum.com/httpdocs/library/XenForo/Model/Deferred.php(374): XenForo_Model_Deferred->_runInternal(Array, NULL, '', false)
#14 /var/www/vhosts/t6forum.com/httpdocs/deferred.php(23): XenForo_Model_Deferred->run(false)
#15 {main}
Request State
array(3) {
  ["url"] => string(36) "https://www.t6forum.com/deferred.php"
  ["_GET"] => array(0) {
  }
  ["_POST"] => array(3) {
    ["_xfRequestUri"] => string(11) "/downloads/"
    ["_xfNoRedirect"] => string(1) "1"
    ["_xfResponseType"] => string(4) "json"
  }
}

Code:
Email Title = Anacron job 'cron.daily' on www.t6forum.com

Email Content = /etc/cron.daily/drweb-update:

ERROR: Dr.Web Updater: failed to download files !
 
I don't have any idea what your Email about anacron job is about, or Dr. Web Updater, so I can't comment on that.

The error message regarding "DropboxGuzzleHttpClient.php:67" normally is a disconnect with DropBox. I'm engaging the developer of that API author to find a way to make that error more descriptive, but I haven't had much luck yet.

Let me know if this is a consistent error you get, but normally, from what I've seen, it's a temporary connection problem with DropBox.
 
Last edited:
Styles? They are included as part of the database with the rest of your xenforo instance, and the images/JavaScript for them would be included in the code backup.
 
I don't have any idea what your Email about anacron job is about, or Dr. Web Updater, so I can't comment on that.

The error message regarding "DropboxGuzzleHttpClient.php:67" normally is a disconnect with DropBox. I'm engaging the developer of that API author to find a way to make that error more descriptive, but I haven't had much luck yet.

Let me know if this is a consistent error you get, but normally, from what I've seen, it's a temporary connection problem with DropBox.
Just to follow up on the previous message i have left this to run now for a few months and although it does generally work fine i still get consistent error as below, time frames vary but on average i get one every 2 weeks ish but interestingly the backup normally seems to complete but cannot be sure as i often dont see the server error until its already run the following day but on the couple occasions i have caught it within 24 hours the backup had completed as expected.

Is there a reason its referencing a forum thread in the error details, not sure if relevant but i do not put forum into maintenance mode for backups
PHP is 5.6

Code:
Server Error Log
Error Info
Kunnu\Dropbox\Exceptions\DropboxClientException: {"error": "Internal Server Error"} - library/SolidMean/ForumBackup/DropBox/vendor/kunalvarma05/dropbox-php-sdk/src/Dropbox/Http/Clients/DropboxGuzzleHttpClient.php:67
Generated By: Unknown Account, Friday at 03:16
Stack Trace
#0 /var/www/vhosts/t6forum.com/httpdocs/library/SolidMean/ForumBackup/DropBox/vendor/kunalvarma05/dropbox-php-sdk/src/Dropbox/DropboxClient.php(155): Kunnu\Dropbox\Http\Clients\DropboxGuzzleHttpClient->send('https://content...', 'POST', '\x1A\x1D\x96\xEDNS\xC1\x1E\xB4\xCC\x1D\xC4\xD2\xF5\x1C...', Array)
#1 /var/www/vhosts/t6forum.com/httpdocs/library/SolidMean/ForumBackup/DropBox/vendor/kunalvarma05/dropbox-php-sdk/src/Dropbox/Dropbox.php(250): Kunnu\Dropbox\DropboxClient->sendRequest(Object(Kunnu\Dropbox\DropboxRequest))
#2 /var/www/vhosts/t6forum.com/httpdocs/library/SolidMean/ForumBackup/DropBox/vendor/kunalvarma05/dropbox-php-sdk/src/Dropbox/Dropbox.php(278): Kunnu\Dropbox\Dropbox->sendRequest('POST', '/files/upload_s...', 'content', Array, NULL)
#3 /var/www/vhosts/t6forum.com/httpdocs/library/SolidMean/ForumBackup/DropBox/vendor/kunalvarma05/dropbox-php-sdk/src/Dropbox/Dropbox.php(939): Kunnu\Dropbox\Dropbox->postToContent('/files/upload_s...', Array)
#4 /var/www/vhosts/t6forum.com/httpdocs/library/SolidMean/ForumBackup/DropBox/vendor/kunalvarma05/dropbox-php-sdk/src/Dropbox/Dropbox.php(999): Kunnu\Dropbox\Dropbox->appendUploadSession(Object(Kunnu\Dropbox\DropboxFile), 'AAAAAAAAAsKQoY2...', 208000000, 4000000)
#5 /var/www/vhosts/t6forum.com/httpdocs/library/SolidMean/ForumBackup/DropBox/vendor/kunalvarma05/dropbox-php-sdk/src/Dropbox/Dropbox.php(784): Kunnu\Dropbox\Dropbox->uploadChunked(Object(Kunnu\Dropbox\DropboxFile), '/forumbackup_20...', NULL, NULL, Array)
#6 /var/www/vhosts/t6forum.com/httpdocs/library/SolidMean/ForumBackup/DropBox/CronEntry/Backup.php(81): Kunnu\Dropbox\Dropbox->upload(Object(Kunnu\Dropbox\DropboxFile), '/forumbackup_20...')
#7 /var/www/vhosts/t6forum.com/httpdocs/library/SolidMean/ForumBackup/CronEntry/Backup.php(177): SolidMean_ForumBackup_DropBox_CronEntry_Backup->upload(Object(SolidMean_ForumBackup_Options), Object(SolidMean_ForumBackup_Helper_Log))
#8 [internal function]: SolidMean_ForumBackup_CronEntry_Backup::saveCode(Array)
#9 /var/www/vhosts/t6forum.com/httpdocs/library/XenForo/Model/Cron.php(357): call_user_func(Array, Array)
#10 /var/www/vhosts/t6forum.com/httpdocs/library/XenForo/Deferred/Cron.php(24): XenForo_Model_Cron->runEntry(Array)
#11 /var/www/vhosts/t6forum.com/httpdocs/library/XenForo/Model/Deferred.php(295): XenForo_Deferred_Cron->execute(Array, Array, 7.9999990463257, '')
#12 /var/www/vhosts/t6forum.com/httpdocs/library/XenForo/Model/Deferred.php(429): XenForo_Model_Deferred->runDeferred(Array, 7.9999990463257, '', false)
#13 /var/www/vhosts/t6forum.com/httpdocs/library/XenForo/Model/Deferred.php(374): XenForo_Model_Deferred->_runInternal(Array, NULL, '', false)
#14 /var/www/vhosts/t6forum.com/httpdocs/deferred.php(23): XenForo_Model_Deferred->run(false)
#15 {main}
Request State
array(3) {
  ["url"] => string(36) "https://www.t6forum.com/deferred.php"
  ["_GET"] => array(0) {
  }
  ["_POST"] => array(4) {
    ["_xfRequestUri"] => string(25) "/threads/vcds-tweaks.590/"
    ["_xfNoRedirect"] => string(1) "1"
    ["_xfToken"] => string(8) "********"
    ["_xfResponseType"] => string(4) "json"
  }
}
 
Top Bottom