Support

Akeeba Backup for Joomla!

#41935 cron job auto backup cannot work.

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
4.4.13
PHP version
PHP 8.2.28
Akeeba Backup version
10.0.3

Latest post by nicholas on Friday, 23 May 2025 00:30 CDT

rico

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 10MiB, please upload it on your server and post a link to it.

Dear Sir,

i am use joomla 4 to create a website in Siteground hosting. i use Akeeba Backup Pro  auto backup to my client sftp in cron job, but is not work. In log file show :

WARNING |20250522 11:05:22|Failed to process file /home/customer/www/ricot6.sg-host.com/public_html/administrator/components/com_akeebabackup/backup/site-ricot6.sg-host.com-20250522-190501hkt-tC9RRLd1ccSi0Xiv.jpa
WARNING |20250522 11:05:22|Error received from the post-processing engine:
WARNING |20250522 11:05:22|Your web server does not have the SSH2 PHP module, therefore can not connect to SFTP servers.WARNING |20250522 11:05:22|Post-processing interrupted -- no more files will be transferred

I find Siteground support, they check that the SSH2 module is loading : https://ricot6.sg-host.com/systeminfo.php 

And i use the self-test connect to sftp and manually backup is work.


Please help, thanks a lot.

Rico

 

nicholas
Akeeba Staff
Manager

Please remember that there is nothing magic or weird about how this message is printed. We are doing this straightforward check:

if (!function_exists('ssh2_connect'))

That is to say, if PHP itself reports that the ssh2_connect function, provided by the SSH2 PHP extension, is not present we throw an error, as without this function we cannot connect to an SSH / SFTP server. Which is to say, when you see this error message the only explanation is that the PHP environment you are running the backup under does not, in fact, have the SSH2 PHP extension enabled, or its functions are explicitly disabled in PHP's configuration (through disable_functions).

What you don't seem to realize, however, is that which PHP version is used and which configuration is used depends greatly on how you are trying to run the backup and/or that your server has many PHP version with at least two different configuration sets for each version installed on it.

So, let's start by checking how are you running the backup.

If you were running it from the front-end of your site (legacy front-end backup, remote JSON API) it would indeed be a weird problem because PHP would have the SSH2 extension installed and enabled, but at the same time reporting its functions as not present on the site. This does not hold any water. I know of other sites on SiteGround using SFTP to store their backups in, so that's not the case. This means that your systeminfo.php file is quite useless in troubleshooting since you're not running the backup from the frontend of the site to begin with.

If you are running it from the back-end of your site do note that it might be using a different PHP version with a different configuration. That's why Joomla has System, Information, System Information, PHP Information where you can see the phpinfo() page of the PHP version used in the backend of your site. If you're using a different PHP version than 8.2.28 in the backend of your site please ask SiteGround to tell you how you can change that; since they're using a custom hosting control panel I don't have readily available instructions to give you or link you to.

If you are running it from CLI please note that the PHP CLI configuration can and usually is different to the configuration of the same PHP version using in the web (either as an Apache module, as a FastCGI script, or through the PHP FastCGI Process Manager a.k.a. PHP-FPM). Moreover, when you have a CRON job which version of PHP you are using depends on which PHP binary you are using in the command line; you need to ask SiteGround to provide the correct path to PHP 8.2 – and remember to update it next year when you move to PHP 8.3; this is a boring but necessary part of maintaining a site. It is, therefore, possible to have an entirely different PHP version and/or an entirely different PHP configuration than what you see on the web, thus trying to run the backup under a PHP version and/or configuration which does not have the PHP SSH2 extension enabled.

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!

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!