Support

Akeeba Backup for Joomla!

#41015 Akkeba stopped sending backups to remote SFTP via cURL

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.6
PHP version
8.1.29
Akeeba Backup version
9.9.5

Latest post by tampe125 on Tuesday, 20 August 2024 10:37 CDT

[email protected]

Hello,

during updating our cpanel the linux system was upgraded fom CentOS 7 (End of Life) to AlmaLinux 8.

Before this upgrade all joomla backups (via cron) were uploaded to Remote SFTP (SSH) server using cURL since years without any problem.

Now all joomla sites make the updates as usual, but didn't sent them to the remote.

No modifications on the remote server were done.

"Test SFTP connection" results with error:

Could not connect to the remote SFTP server. The error message was:
cURL Error 51 connecting to remote SFTP server.

After "backup now" akeeba says:

Failed to process file /home/noeldebob/public_html/administrator/components/com_akeebabackup/backup/site-le-noel-de-bob.com-20240820-161022cest-2Mt-db9vbqPhr5aJ.jpa
Error received from the post-processing engine:
Could not create SFTP directory /home
Post-processing interrupted -- no more files will be transferred

the log reads:
...
DEBUG |20240820 14:11:07|====== Starting Step number 29 ======
DEBUG |20240820 14:11:07|Kettenrad :: Ticking the domain object
DEBUG |20240820 14:11:07|Akeeba\Engine\Core\Domain\Finalization::_run() Resuming finalization object Akeeba\Engine\Core\Domain\Finalizer\PostProcessing
DEBUG |20240820 14:11:07|Loading post-processing engine object (sftpcurl)
INFO |20240820 14:11:07|Beginning post processing file <root>administrator/components/com_akeebabackup/backup/site-le-noel-de-bob.com-20240820-161022cest-2Mt-db9vbqPhr5aJ.jpa
DEBUG |20240820 14:11:07|Akeeba\Engine\Postproc\Sftpcurl:: Connecting to remote SFTP
WARNING |20240820 14:11:08|Failed to process file <root>administrator/components/com_akeebabackup/backup/site-le-noel-de-bob.com-20240820-161022cest-2Mt-db9vbqPhr5aJ.jpa
WARNING |20240820 14:11:08|Error received from the post-processing engine:
WARNING |20240820 14:11:08|Could not create SFTP directory /home
DEBUG |20240820 14:11:08|[RuntimeException] <root>administrator/components/com_akeebabackup/vendor/akeeba/engine/engine/Postproc/Sftp.php(157) – #0 ‹Could not create SFTP directory /home›
DEBUG |20240820 14:11:08|#0 <root>administrator/components/com_akeebabackup/vendor/akeeba/engine/engine/Postproc/Sftp.php(120): Akeeba\Engine\Postproc\Sftp->makeDirectory('/home/backups74...', Object(Akeeba\Engine\Util\Transfer\SftpCurl))
DEBUG |20240820 14:11:08|#1 <root>administrator/components/com_akeebabackup/vendor/akeeba/engine/engine/Postproc/Sftpcurl.php(43): Akeeba\Engine\Postproc\Sftp->sftp_chdir('/home/backups74...', Object(Akeeba\Engine\Util\Transfer\SftpCurl))
DEBUG |20240820 14:11:08|#2 <root>administrator/components/com_akeebabackup/vendor/akeeba/engine/engine/Postproc/Base.php(241): Akeeba\Engine\Postproc\Sftpcurl->makeConnector()
DEBUG |20240820 14:11:08|#3 <root>administrator/components/com_akeebabackup/vendor/akeeba/engine/engine/Postproc/Ftp.php(43): Akeeba\Engine\Postproc\Base->getConnector()
DEBUG |20240820 14:11:08|#4 <root>administrator/components/com_akeebabackup/vendor/akeeba/engine/engine/Core/Domain/Finalizer/PostProcessing.php(123): Akeeba\Engine\Postproc\Ftp->processPart('/home/noeldebob...')
DEBUG |20240820 14:11:08|#5 <root>administrator/components/com_akeebabackup/vendor/akeeba/engine/engine/Core/Domain/Finalization.php(261): Akeeba\Engine\Core\Domain\Finalizer\PostProcessing->__invoke()
DEBUG |20240820 14:11:08|#6 <root>administrator/components/com_akeebabackup/vendor/akeeba/engine/engine/Base/Part.php(237): Akeeba\Engine\Core\Domain\Finalization->_run()
DEBUG |20240820 14:11:08|#7 <root>administrator/components/com_akeebabackup/vendor/akeeba/engine/engine/Core/Kettenrad.php(590): Akeeba\Engine\Base\Part->tick()
DEBUG |20240820 14:11:08|#8 <root>administrator/components/com_akeebabackup/vendor/akeeba/engine/engine/Base/Part.php(237): Akeeba\Engine\Core\Kettenrad->_run()
DEBUG |20240820 14:11:08|#9 <root>administrator/components/com_akeebabackup/vendor/akeeba/engine/engine/Core/Kettenrad.php(278): Akeeba\Engine\Base\Part->tick(0)
DEBUG |20240820 14:11:08|#10 <root>administrator/components/com_akeebabackup/src/Model/BackupModel.php(565): Akeeba\Engine\Core\Kettenrad->tick()
DEBUG |20240820 14:11:08|#11 <root>administrator/components/com_akeebabackup/src/Model/BackupModel.php(293): Akeeba\Component\AkeebaBackup\Administrator\Model\BackupModel->stepBackup()
DEBUG |20240820 14:11:08|#12 <root>administrator/components/com_akeebabackup/src/Controller/BackupController.php(110): Akeeba\Component\AkeebaBackup\Administrator\Model\BackupModel->runBackup()
DEBUG |20240820 14:11:08|#13 <root>administrator/components/com_akeebabackup/src/Mixin/ControllerEventsTrait.php(65): Akeeba\Component\AkeebaBackup\Administrator\Controller\BackupController->ajax()
DEBUG |20240820 14:11:08|#14 <root>libraries/src/Dispatcher/ComponentDispatcher.php(143): Akeeba\Component\AkeebaBackup\Administrator\Controller\BackupController->execute('ajax')
DEBUG |20240820 14:11:08|#15 <root>administrator/components/com_akeebabackup/src/Dispatcher/Dispatcher.php(80): Joomla\CMS\Dispatcher\ComponentDispatcher->dispatch()
DEBUG |20240820 14:11:08|#16 <root>libraries/src/Component/ComponentHelper.php(361): Akeeba\Component\AkeebaBackup\Administrator\Dispatcher\Dispatcher->dispatch()
DEBUG |20240820 14:11:08|#17 <root>libraries/src/Application/AdministratorApplication.php(143): Joomla\CMS\Component\ComponentHelper::renderComponent('com_akeebabacku...')
DEBUG |20240820 14:11:08|#18 <root>libraries/src/Application/AdministratorApplication.php(186): Joomla\CMS\Application\AdministratorApplication->dispatch()
DEBUG |20240820 14:11:08|#19 <root>libraries/src/Application/CMSApplication.php(293): Joomla\CMS\Application\AdministratorApplication->doExecute()
DEBUG |20240820 14:11:08|#20 <root>administrator/includes/app.php(61): Joomla\CMS\Application\CMSApplication->execute()
DEBUG |20240820 14:11:08|#21 <root>administrator/index.php(32): require_once('/home/noeldebob...')
DEBUG |20240820 14:11:08|#22 {main}
DEBUG |20240820 14:11:08|Not removing the non-processed file <root>administrator/components/com_akeebabackup/backup/site-le-noel-de-bob.com-20240820-161022cest-2Mt-db9vbqPhr5aJ.jpa
WARNING |20240820 14:11:08|Post-processing interrupted -- no more files will be transferred

Any idea ?

Best regards

tampe125
Akeeba Staff

Hello,

if it was working and now it's not working anymore, it means that the changes that have been done affected your server ecosystem.

Are you sure the credentials are correct? The error reports "Could not create directory /home". This means that the directory is not found on the remote server, but that's impossible since it's one of the core folder of the server, like /usr or /var

Can you please double check your settings? If you use the exact same username and password, can you connect to the directory you listed using FileZilla?

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!

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!