Support

Akeeba Backup for Joomla!

#25236 Cron job backup to Dropbox fails after upgrading to Akeeba 5.0.4

Posted in ‘Akeeba Backup for Joomla! 4 & 5’
This is a public ticket

Everybody will be able to see its contents. Do not include usernames, passwords or any other sensitive information.

Environment Information

Joomla! version
n/a
PHP version
n/a
Akeeba Backup version
n/a

Latest post by on Saturday, 25 June 2016 17:20 CDT

sparksarts
EXTREMELY IMPORTANT: Please attach a ZIP file containing your Akeeba Backup log file in order for us to help you with any backup or restoration issue. If the file is over 2Mb, please upload it on your server and post a link to it.

Description of my issue:

Since updating Akeeba Backup Pro from version 4.6.1 to 5.0.3 on 18 May 2016 my cron job for scheduled backups to Dropbox v2 API have failed. I noticed this last week. Before the update my cron jobs worked flawlessly. Nothing else has changed. I updated to Akeeba Backup Pro 5.0.4 on 23 May 2016 but the problem continues.

My cron command is identical to what is shown in Akeeba's Schedule Automatic Backups section:
/home/userid/public_html/cli/akeeba-backup.php

The path to PHP is correct for Siteground. It was working before, and it's still working on 15+ other websites on my Siteground cloud server.

The cron email reports the failure --

Akeeba Backup CLI 5.0.4 (2016-05-23)
Copyright (c) 2006-2016 Akeeba Ltd / Nicholas K. Dionysopoulos
-------------------------------------------------------------------------------
Akeeba Backup is Free Software, distributed under the terms of the GNU General
Public License version 3 or, at your option, any later version.
This program comes with ABSOLUTELY NO WARRANTY as per sections 15 & 16 of the
license. See http://www.gnu.org/licenses/gpl-3.0.html for details.
-------------------------------------------------------------------------------

You are using Joomla! 3.4.8 on PHP 5.6.21 (cli)

Starting a new backup with the following parameters:
Profile ID  1
Description "Command-line backup"

Current memory usage: 1.57 Mb

Unsetting time limit restrictions.

Site paths determined by this script:
JPATH_BASE : /home/userid/public_html
JPATH_ADMINISTRATOR : /home/userid/public_html/administrator



********** ERROR! **********

Could not connect to MySQL

Technical information:

Code: 2
File: /home/userid/public_html/administrator/components/com_akeeba/BackupEngine/Driver/Mysqli.php
Line: 288

Stack Trace:

#0 /home/userid/public_html/administrator/components/com_akeeba/BackupEngine/Driver/Base.php(1049): Akeeba\Engine\Driver\Mysqli->query()
#1 /home/userid/public_html/administrator/components/com_akeeba/BackupEngine/Driver/Base.php(742): Akeeba\Engine\Driver\Base->execute()
#2 /home/userid/public_html/administrator/components/com_akeeba/BackupPlatform/Joomla3x/Driver/Joomla.php(126): Akeeba\Engine\Driver\Base->loadAssocList()
#3 /home/userid/public_html/administrator/components/com_akeeba/BackupEngine/Platform/Base.php(583): Akeeba\Engine\Driver\Joomla->__call('loadAssocList', Array)
#4 /home/userid/public_html/administrator/components/com_akeeba/BackupEngine/Platform/Base.php(583): Akeeba\Engine\Driver\Joomla->loadAssocList()
#5 /home/userid/public_html/administrator/components/com_akeeba/BackupEngine/Platform.php(272): Akeeba\Engine\Platform\Base->get_running_backups(NULL)
#6 /home/userid/public_html/administrator/components/com_akeeba/BackupEngine/Factory.php(436): Akeeba\Engine\Platform->__call('get_running_bac...', Array)
#7 /home/userid/public_html/administrator/components/com_akeeba/BackupEngine/Factory.php(436): Akeeba\Engine\Platform->get_running_backups(NULL)
#8 /home/userid/public_html/administrator/components/com_akeeba/Model/Backup.php(122): Akeeba\Engine\Factory::resetState(Array)
#9 /home/userid/public_html/cli/akeeba-backup.php(236): Akeeba\Backup\Admin\Model\Backup->startBackup(Array)
#10 /home/userid/public_html/cli/akeeba-backup.php(324): AkeebaBackupCLI->execute()
#11 {main}


Reading previous support tickets with similar issues of cron failing to connect to MySQL, I tried the following adjustments without success:

1. Switch cron command to akeeba-altbackup.php - failed same as akeeba-backup.php
2. Try wget command. Cron email says /bin/bash: -c: line 0: unexpected EOF while looking for matching `"'
/bin/bash: -c: line 1: syntax error: unexpected end of file
3. Try curl command. Cron email same as wget.
4. Change database user password. The original had punctuation, new password just upper and lowercase letters and numbers. This returned the same error as first reported above.

I have not move the configuration.php file from it's default location in public_html root. The database connection credentials are correct in the configuration.php file. The website loads and displays correctly, and manual backups from the backend and Watchful work. Only the cron job fails to connect to MySQL.

I have attached the log zip for command line backups, but it is empty. The cron job fails before it can begin a backup on the server.

The affected website is https://www.ostriches.org/

Thank you
Richard

sparksarts
By the way... forgot to mention, I have no additional databases in the backup profile. Only the main Joomla website database.

nicholas
Akeeba Staff
Manager
1. Have you moved the configuration.php file outside of your site's root?
2. Go to System, Global Configuration and click on the Server tab. Look at the right hand column, next to Database Type. What does it read? Is it MySQLi (with the trailing i), "MySQL (PDO)" (with the PDO specifier) or just MySQL (without the trailing i and without PDO)?

Nicholas K. Dionysopoulos

Lead Developer and Director

๐Ÿ‡ฌ๐Ÿ‡ทGreek: native ๐Ÿ‡ฌ๐Ÿ‡งEnglish: excellent ๐Ÿ‡ซ๐Ÿ‡ทFrench: basic โ€ข ๐Ÿ• My time zone is Europe / Athens
Please keep in mind my timezone and cultural differences when reading my replies. Thank you!

sparksarts
1. I have not moved the configuration.php file from it's default location in public_html root.
2. Global Configuration > Server Tab > Database Settings: Database type is MySQLi

tampe125
Akeeba Staff
Hello Richard,

we just discovered an issue with CLI backups when your Joomla version is lower than 3.5.
A new version will be released very soon.

Davide Tampellini

Developer and Support Staff

๐Ÿ‡ฎ๐Ÿ‡นItalian: native ๐Ÿ‡ฌ๐Ÿ‡งEnglish: good โ€ข ๐Ÿ• My time zone is Europe / Rome (UTC +1)
Please keep in mind my timezone and cultural differences when reading my replies. Thank you!

sparksarts
Thank you. I look forward to it. I've had some delay in updating a few of my Joomla website to 3.5.x pending extension compatibility upgrades.

Richard

tampe125
Akeeba Staff
You're welcome!

Davide Tampellini

Developer and Support Staff

๐Ÿ‡ฎ๐Ÿ‡นItalian: native ๐Ÿ‡ฌ๐Ÿ‡งEnglish: good โ€ข ๐Ÿ• My time zone is Europe / Rome (UTC +1)
Please keep in mind my timezone and cultural differences when reading my replies. Thank you!

System Task
system
This ticket has been automatically closed. All tickets which have been inactive for a long time are automatically closed. If you believe that this ticket was closed in error, please contact us.

Support Information

Working hours: We are open Monday to Friday, 9am to 7pm Cyprus timezone (EET / EEST). Support is provided by the same developers writing the software, all of which live in Europe. You can still file tickets outside of our working hours, but we cannot respond to them until we're back at the office.

Support policy: We would like to kindly inform you that when using our support you have already agreed to the Support Policy which is part of our Terms of Service. Thank you for your understanding and for helping us help you!