Support

Akeeba Backup for Joomla!

#28139 Manual backup shell failure

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 Thursday, 24 August 2017 17:17 CDT

WI_UMOS
Hello guys,

I am starting the shell script manualy just to check if everything works and seems that it's not executing properly. This is the results I get:

admin@synology:/volume1/sh$ sudo sh backup_umostrowiecpl.sh
Akeeba Backup CLI 5.4.0 (2017-05-18)
Copyright (c) 2006-2017 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.7.3 on PHP 5.6.11 (cli)

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

Current memory usage: 2.43 Mb

Unsetting time limit restrictions.

Site paths determined by this script:
JPATH_BASE : /volume1/www/um.ostrowiec.pl
JPATH_ADMINISTRATOR : /volume1/www/um.ostrowiec.pl/administrator

and for altbackup:
admin@synology:/volume1/sh$ sudo sh altbackup_umostrowiecpl.sh
Akeeba Backup Alternate CRON Helper Script version 5.4.0 (2017-05-18)
Copyright (c) 2006-2017 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.
-------------------------------------------------------------------------------
Unsetting time limit restrictions.

Site paths determined by this script:
JPATH_BASE : /volume1/www/um.ostrowiec.pl
JPATH_ADMINISTRATOR : /volume1/www/um.ostrowiec.pl/administrator



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

The MySQL adapter mysqli is not available

Technical information:

Code: 0
File: /volume1/www/um.ostrowiec.pl/libraries/joomla/database/driver/mysqli.php
Line: 173

Stack Trace:

#0 /volume1/www/um.ostrowiec.pl/libraries/joomla/database/driver/mysqli.php(244): JDatabaseDriverMysqli->connect()
#1 /volume1/www/um.ostrowiec.pl/libraries/joomla/database/driver.php(1851): JDatabaseDriverMysqli->escape('component')
#2 /volume1/www/um.ostrowiec.pl/libraries/joomla/database/driver.php(469): JDatabaseDriver->quote('component', true)
#3 /volume1/www/um.ostrowiec.pl/libraries/fof30/Params/Params.php(54): JDatabaseDriver->__call('q', Array)
#4 /volume1/www/um.ostrowiec.pl/libraries/fof30/Params/Params.php(54): JDatabaseDriverMysqli->q('component')
#5 /volume1/www/um.ostrowiec.pl/libraries/fof30/Params/Params.php(41): FOF30\Params\Params->reload()
#6 /volume1/www/um.ostrowiec.pl/libraries/fof30/Container/Container.php(484): FOF30\Params\Params->__construct(Object(FOF30\Container\Container))
#7 /volume1/www/um.ostrowiec.pl/libraries/fof30/Pimple/Container.php(112): FOF30\Container\Container->FOF30\Container\{closure}(Object(FOF30\Container\Container))
#8 /volume1/www/um.ostrowiec.pl/libraries/fof30/Container/ContainerBase.php(27): FOF30\Pimple\Container->offsetGet('params')
#9 /volume1/www/um.ostrowiec.pl/administrator/components/com_akeeba/BackupPlatform/Joomla3x/Platform.php(732): FOF30\Container\ContainerBase->__get('params')
#10 /volume1/www/um.ostrowiec.pl/administrator/components/com_akeeba/BackupEngine/Platform.php(275): Akeeba\Engine\Platform\Joomla3x->get_platform_configuration_option('siteurl', '')
#11 /volume1/www/um.ostrowiec.pl/cli/akeeba-altbackup.php(140): Akeeba\Engine\Platform->__call('get_platform_co...', Array)
#12 /volume1/www/um.ostrowiec.pl/cli/akeeba-altbackup.php(140): Akeeba\Engine\Platform->get_platform_configuration_option('siteurl', '')
#13 /volume1/www/um.ostrowiec.pl/cli/akeeba-altbackup.php(504): AkeebaBackupCLI->execute()
#14 {main}

The script: "/usr/bin/php /volume1/www/um.ostrowiec.pl/cli/akeeba-backup.php --profile=4"
What am I doing wrong?

Sincerely,
Thomas Kolasa

nicholas
Akeeba Staff
Manager
It already tells you what the problem is:

The MySQL adapter mysqli is not available


Please make sure that PHP 5.6.11 has the mysqli extension installed and activated for the CLI binary. Kindly bear in mind that the php.ini file loaded by PHP for your web site is different to the one loaded by PHP running under CLI. As a result it's possible for the web version to have mysqli enabled whereas the CLI version, that you are using to run the scripts, not.

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!

WI_UMOS
Thank You, You were right, different PHP executed the CLI.

In case somebody would have same problem this was the proper sh:
/usr/local/bin/php56 -c /usr/syno/etc/packages/WebStation/php56/php.ini /volume1/www/um.ostrowiec.pl/cli/akeeba-altbackup.php --profile=4

Sincerely,
Thomas

nicholas
Akeeba Staff
Manager
I'm glad I could point you to the right direction :)

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!

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!