Support

Akeeba Backup for Joomla!

#34167 Error 255 with command line backup over cronjob

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 retoturnverein on Saturday, 12 December 2020 08:03 CST

retoturnverein

Hi

I use crontab for years, but now I get a RC=255 back from my backup command:

.../public_html/cli/akeeba-backup.php --profile=1 --quiet

I didn't found a reason for it, where should I start to look at?

Kind regards,

Reto

tampe125
Akeeba Staff

Hello,

looking at the error code it means that a fatal error occurred.

Is Akeeba Backup able to run or at least start the backup process? If so, please attach the backup log; otherwise you should check your server PHP logs, there should be the reason for the error.

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!

retoturnverein

Hi

I'm able to manually backup the site without an error.

Tried to attach the file akeeba.zip before, do it again.

retoturnverein

another try with the attachment...

tampe125
Akeeba Staff

mhm... the attachment didn't upload.

Instead of using the flag --quiet , can you please the flag --debug and check the output?

When you have a log file, please upload it on a cloud service storage and paste here the link, so I can download it

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!

retoturnverein

with the debug parameter I got tis error:

Fatal error: Allowed memory size of 33554432 bytes exhausted (tried to allocate 5292064 bytes) in /home/fotooase/public_html/administrator/components/com_akeeba/BackupEngine/Archiver/BaseArchiver.php on line 38

what parameter and where should I amend?

tampe125
Akeeba Staff

Ah! That explains everything!

Your available memory is simple too low: 32Mb are good enough for a small site, but if you have a rather large site you should at least double it.

You should ask your host to increase your available memory for your CLI PHP , then the error should go away.

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!

retoturnverein

Hi, the solution to the problem is very simple. Just hat to add memory_limit=128M or in more detail:

/usr/bin/php -d memory_limit=128M /home/$mysourcedomain/public_html/cli/akeeba-backup.php --profile=1 --quiet

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!