[SolidMean] ForumBackup Dropbox Upload [Deleted]

but i do not put forum into maintenance mode for backups

That shouldn't matter on uploading to DropBox. I have a newer version that I've been testing that has a more recent version of the DropBox client library, and also hopefully gives a more useful error message when the connection to DropBox fails. I'll release it in a moment or two, if you want to try that out.

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

I suspect that the cron fired off the backup when the thread was viewed, and cron noticed that it had some deferred tasks to run.
 
@Pauly try this newer version, and when the problem happens again, send me a conversation with the error message. Also, turn on the add-on's debug log option, and send me the contents of the last 100 lines or so of that debug file. It'll be in the same directory as your backups.

The error you're seeing looks like some kind of timeout condition being triggered
 
hiya @SneakyDave

since last update seem to have issues with uploading. Process fails, and get the following message from debug :

2017-05-12 05:21:40 | INFO | DROPBOX - Attempting to upload file: forumbackup_12-05-2017-044202.code.tar.gz to DropBox Dir: /
2017-05-12 06:04:26 | INFO | DROPBOX - Error during upload:

any suggestions?? :)

Cheers
Paul
 
Is there anything after "Error during upload:"?

The latest version actually adds that more descriptive error message to the server log and debug log.

That error usually indicates a timeout condition with your server, or a perhaps with Dropbox. it looks like the transfer ran for 45 minutes before erroring out.
 
Hi @SneakyDave,

Just saw that many of the php files in the library/SolidMean/ForumBackup/DropBox/vendor/ directory on my forum have 755 permission instead of 644 (which I believe is the standard for files?). I'm trying to tighten security on my server. I hope there won't be issues changing php files to 644? The directories have 755 which I think is the standard. Just concerned about the 755 php files.
 
@SneakyDave
Upgradet from php 7.1 to 7.2
Dropbox upload get a server error

Code:
Server Error Log
Error Info
ErrorException: count(): Parameter must be an array or an object that implements Countable - library/SolidMean/ForumBackup/DropBox/vendor/guzzlehttp/guzzle/src/Handler/CurlFactory.php:67
Generated By: Unknown Account, Today at 05:15
Stack Trace
#0 [internal function]: XenForo_Application::handlePhpError(2, 'count(): Parame...', '/home/nginx/dom...', 67, Array)
#1 /home/nginx/domains/pijanitvor.com/public/library/SolidMean/ForumBackup/DropBox/vendor/guzzlehttp/guzzle/src/Handler/CurlFactory.php(67): count(NULL)
#2 /home/nginx/domains/pijanitvor.com/public/library/SolidMean/ForumBackup/DropBox/vendor/guzzlehttp/guzzle/src/Handler/CurlFactory.php(107): GuzzleHttp\Handler\CurlFactory->release(Object(GuzzleHttp\Handler\EasyHandle))
#3 /home/nginx/domains/pijanitvor.com/public/library/SolidMean/ForumBackup/DropBox/vendor/guzzlehttp/guzzle/src/Handler/CurlHandler.php(43): GuzzleHttp\Handler\CurlFactory::finish(Object(GuzzleHttp\Handler\CurlHandler), Object(GuzzleHttp\Handler\EasyHandle), Object(GuzzleHttp\Handler\CurlFactory))
#4 /home/nginx/domains/pijanitvor.com/public/library/SolidMean/ForumBackup/DropBox/vendor/guzzlehttp/guzzle/src/Handler/Proxy.php(28): GuzzleHttp\Handler\CurlHandler->__invoke(Object(GuzzleHttp\Psr7\Request), Array)
#5 /home/nginx/domains/pijanitvor.com/public/library/SolidMean/ForumBackup/DropBox/vendor/guzzlehttp/guzzle/src/Handler/Proxy.php(51): GuzzleHttp\Handler\Proxy::GuzzleHttp\Handler\{closure}(Object(GuzzleHttp\Psr7\Request), Array)
#6 /home/nginx/domains/pijanitvor.com/public/library/SolidMean/ForumBackup/DropBox/vendor/guzzlehttp/guzzle/src/PrepareBodyMiddleware.php(42): GuzzleHttp\Handler\Proxy::GuzzleHttp\Handler\{closure}(Object(GuzzleHttp\Psr7\Request), Array)
#7 /home/nginx/domains/pijanitvor.com/public/library/SolidMean/ForumBackup/DropBox/vendor/guzzlehttp/guzzle/src/Middleware.php(30): GuzzleHttp\PrepareBodyMiddleware->__invoke(Object(GuzzleHttp\Psr7\Request), Array)
#8 /home/nginx/domains/pijanitvor.com/public/library/SolidMean/ForumBackup/DropBox/vendor/guzzlehttp/guzzle/src/RedirectMiddleware.php(68): GuzzleHttp\Middleware::GuzzleHttp\{closure}(Object(GuzzleHttp\Psr7\Request), Array)
#9 /home/nginx/domains/pijanitvor.com/public/library/SolidMean/ForumBackup/DropBox/vendor/guzzlehttp/guzzle/src/Middleware.php(59): GuzzleHttp\RedirectMiddleware->__invoke(Object(GuzzleHttp\Psr7\Request), Array)
#10 /home/nginx/domains/pijanitvor.com/public/library/SolidMean/ForumBackup/DropBox/vendor/guzzlehttp/guzzle/src/HandlerStack.php(67): GuzzleHttp\Middleware::GuzzleHttp\{closure}(Object(GuzzleHttp\Psr7\Request), Array)
#11 /home/nginx/domains/pijanitvor.com/public/library/SolidMean/ForumBackup/DropBox/vendor/guzzlehttp/guzzle/src/Client.php(275): GuzzleHttp\HandlerStack->__invoke(Object(GuzzleHttp\Psr7\Request), Array)
#12 /home/nginx/domains/pijanitvor.com/public/library/SolidMean/ForumBackup/DropBox/vendor/guzzlehttp/guzzle/src/Client.php(97): GuzzleHttp\Client->transfer(Object(GuzzleHttp\Psr7\Request), Array)
#13 /home/nginx/domains/pijanitvor.com/public/library/SolidMean/ForumBackup/DropBox/vendor/guzzlehttp/guzzle/src/Client.php(104): GuzzleHttp\Client->sendAsync(Object(GuzzleHttp\Psr7\Request), Array)
#14 /home/nginx/domains/pijanitvor.com/public/library/SolidMean/ForumBackup/DropBox/vendor/kunalvarma05/dropbox-php-sdk/src/Dropbox/Http/Clients/DropboxGuzzleHttpClient.php(56): GuzzleHttp\Client->send(Object(GuzzleHttp\Psr7\Request), Array)
#15 /home/nginx/domains/pijanitvor.com/public/library/SolidMean/ForumBackup/DropBox/vendor/kunalvarma05/dropbox-php-sdk/src/Dropbox/DropboxClient.php(155): Kunnu\Dropbox\Http\Clients\DropboxGuzzleHttpClient->send('https://api.dro...', 'POST', NULL, Array)
#16 /home/nginx/domains/pijanitvor.com/public/library/SolidMean/ForumBackup/DropBox/vendor/kunalvarma05/dropbox-php-sdk/src/Dropbox/Dropbox.php(250): Kunnu\Dropbox\DropboxClient->sendRequest(Object(Kunnu\Dropbox\DropboxRequest))
#17 /home/nginx/domains/pijanitvor.com/public/library/SolidMean/ForumBackup/DropBox/vendor/kunalvarma05/dropbox-php-sdk/src/Dropbox/Dropbox.php(264): Kunnu\Dropbox\Dropbox->sendRequest('POST', '/users/get_curr...', 'api', Array, 'fnoW5P9VaM8AAAA...')
#18 /home/nginx/domains/pijanitvor.com/public/library/SolidMean/ForumBackup/DropBox/vendor/kunalvarma05/dropbox-php-sdk/src/Dropbox/Dropbox.php(1145): Kunnu\Dropbox\Dropbox->postToAPI('/users/get_curr...', Array)
#19 /home/nginx/domains/pijanitvor.com/public/library/SolidMean/ForumBackup/DropBox/CronEntry/Backup.php(64): Kunnu\Dropbox\Dropbox->getCurrentAccount()
#20 /home/nginx/domains/pijanitvor.com/public/library/SolidMean/ForumBackup/CronEntry/Backup.php(86): SolidMean_ForumBackup_DropBox_CronEntry_Backup->upload(Object(SolidMean_ForumBackup_Options), Object(SolidMean_ForumBackup_Helper_Log))
#21 /home/nginx/domains/pijanitvor.com/public/library/XenForo/Model/Cron.php(356): SolidMean_ForumBackup_CronEntry_Backup::saveDatabase(Array)
#22 /home/nginx/domains/pijanitvor.com/public/library/XenForo/Deferred/Cron.php(24): XenForo_Model_Cron->runEntry(Array)
#23 /home/nginx/domains/pijanitvor.com/public/library/XenForo/Model/Deferred.php(295): XenForo_Deferred_Cron->execute(Array, Array, 7.9999990463257, '')
#24 /home/nginx/domains/pijanitvor.com/public/library/XenForo/Model/Deferred.php(429): XenForo_Model_Deferred->runDeferred(Array, 7.9999990463257, '', false)
#25 /home/nginx/domains/pijanitvor.com/public/library/XenForo/Model/Deferred.php(374): XenForo_Model_Deferred->_runInternal(Array, 8, '', false)
#26 /home/nginx/domains/pijanitvor.com/public/deferred.php(23): XenForo_Model_Deferred->run(false)
#27 {main}
Request State
array(3) {
  ["url"] => string(39) "https://www.pijanitvor.com/deferred.php"
  ["_GET"] => array(0) {
  }
  ["_POST"] => array(3) {
    ["_xfRequestUri"] => string(33) "/threads/nametnici-u-zemlji.6728/"
    ["_xfNoRedirect"] => string(1) "1"
    ["_xfResponseType"] => string(4) "json"
  }
}
 
just wondering if this will be updated for xf2, and also, does this backup data found by symbolic links? i have my data and internal_data folders linked to a separate block storage on my VPN.
 
I don't have plans to update the ForumBackup add-on to xf2 because of time constraints. I'd like to eventually get it rewritten, but I don't have an ETA if even when ikd start.

As far as symbolici links, I don't think they are supported/followed. Let me do some tests with those to confirm whether or not they do.
 
I don't have plans to update the ForumBackup add-on to xf2 because of time constraints. I'd like to eventually get it rewritten, but I don't have an ETA if even when ikd start.

As far as symbolici links, I don't think they are supported/followed. Let me do some tests with those to confirm whether or not they do.

The reason I ask is that my code backups are turning out at 1.6gb when they should be about 14gb, so I'm thinking it's not following those symbolic links.
 
Top Bottom