Support

Akeeba Backup for Joomla!

#38646 Backup failed when launched with a cron from my host. It works with webcron.

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.2.8
PHP version
8.1.14
Akeeba Backup version
9.5.0

Latest post by guillenphoto on Thursday, 02 March 2023 09:20 CST

guillenphoto

Hi,

I am facing a strange issue with Akeeba Backup launched with a cron.

For a long time I have been using Webcron to backup my website daily. Now, the full backup requires more than 10 minutes to end. I had to adjust 1800 seconds in Webcron to get a response. Before it was 600 seconds; but it is too short. There no value between. It becomes expensive.

So, I decided to try the cron service provided by my host, Infomaniak. I got a failed error. The command is exactly the same. The cron service is included in my subscription.

I do not how to correct the problem I get.

I have attached the file log of the last try.

Please would you tell me what I am doing wrong in the parameters?

Thanks for your help,

 

Sincerely,

A. Guillen

tampe125
Akeeba Staff

Hello,

what's the command that you're using inside your host CRON?

Please note that you should use the CLI script, not the one used inside WebCron since you can work from command line which is way more faster and efficient.

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!

guillenphoto

Hi Davide,

thank you for your prompt response.

Here is the line I am using for the cron: https://www.guillenphoto.com/index.php?option=com_akeebabackup&view=Backup&key=mypersonalkey&profile=2

It works fine with Webcron.

Please would you give more information about the CLI script? I read that page: https://www.akeeba.com/documentation/akeeba-backup-joomla/cli-command-reference.html#cli-backup-take

But I do not understand how to implement it in my website.

Thanks for your help,

A. Guillen

tampe125
Akeeba Staff

Can you please share a screenshot of your host CRON page?

Just to be sure if you can actually use CLI backups or not.

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!

guillenphoto

I attached two screenshots of my two host Cron.

 

I hope it will help.

tampe125
Akeeba Staff

Ok, thank you for the screenshot, this explains everything.

Your host is not providing a proper CLI access, but you can only set an URL that should be visited at specific intervals. This means that you can not use frontend backup, because the script needs to follow the redirections. 

Your only option is to use WebCron, if it's getting too expensive, you can think of using a small Raspberry Pi and use it to trigger the backups automatically.

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!

guillenphoto

Hi Davide,

thank you for your reply.

Finally, you did not reply why I have a problem with the Cron on my host Infomaniak? The same cron works fine with Webcron.

I attached the log file. Do you see something special in it why the Akeeba task is not working?

Thanks for your help

Sincerelery,

A. Guillen

tampe125
Akeeba Staff

The problem with your host is that is not following redirects. Akeeba Backup issues several redirects to step through the backup process until it completes.

Since your host is not following them (something that WebCron does), it won't complete and it will remain in the "pending" state until it finally fails.

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!

guillenphoto

Thank you for the explanations.

I am going to contact my host provider to check what they can do.

Sincerely,

A. Guillen

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!