Support

Akeeba Backup for Joomla!

#17995 CRON-JOB via CLI does not work on certain sites (Warning in Logfile)

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 Saturday, 21 December 2013 18:00 CST

daszeichen
Mandatory information about my setup:

Have I read the related troubleshooter articles above before posting (which pages?)? Yes
Have I searched the tickets before posting? Yes
Have I read the documentation before posting (which pages?)? Yes
Joomla! version: 2.5.14
PHP version: 5.3.27
MySQL version: 5.1.7 cll
Host: novatrend
Akeeba Backup version: 3.8.2

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

Description of my issue:

I have several Websites running Akeebabackup without problems, but some can not backup via CRON-Job, but a manual backup via backend is never a problem. In the logs of those that fail to backup using the CRON remote backup I have PHP Warnings popping up. Maybe this is an issue? Please see the attached log-file.

Thanks a lot for any help
Bernhard

dlb
The actual problem is this:
ERROR   |131030 00:00:15|The process was aborted on user's request

Did you by any chance visit the Akeeba Control Panel while your CRON backup was running?

Dale


Dale L. Brackin
Support Specialist


us.gifEnglish: native


Please keep in mind my timezone and cultural differences when reading my replies. Thank you!


????
My time zone is EST (UTC -5) (click here to see my current time in Philadelphia, PA)

daszeichen
No... It runs in the middle of the night (at 1 o'clock). I am the only one who as super admin super admin privileges, and I was asleep :-)

dlb
OK, do you get an email from the CRON job that shows the steps that it is going through? If so, please post that information.

Dale


Dale L. Brackin
Support Specialist


us.gifEnglish: native


Please keep in mind my timezone and cultural differences when reading my replies. Thank you!


????
My time zone is EST (UTC -5) (click here to see my current time in Philadelphia, PA)

daszeichen
Yes... this is the mail:

Akeeba Backup CLI 3.8.2 (2013-09-30)
Copyright (C) 2010-2013 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 PHP 5.3.27 (cli)

Starting a new backup with


Then it suddently stops...

dlb
Thanks. I'll ask Nicholas to take a look.

Dale


Dale L. Brackin
Support Specialist


us.gifEnglish: native


Please keep in mind my timezone and cultural differences when reading my replies. Thank you!


????
My time zone is EST (UTC -5) (click here to see my current time in Philadelphia, PA)

nicholas
Akeeba Staff
Manager
It looks like your host is sending a SIGTERM (termination signal) to the CRON job after 15 seconds. That's too low to run a backup. Can you please check that with your host? We can't work around server restrictions :(

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!

daszeichen
Ok, I'll check that with my host. Thanks a lot for the quick response

daszeichen
Hi Nicholas
I have asked my provider, and he told me, that there is the following offending line in the cron-job-logs:

Time:         Fri Nov  1 02:00:23 2013 +0100
Account:      fairness
Resource:     Virtual Memory Size
Exceeded:     105 > 100 (MB)
Executable:   /usr/sbin/crond
Command Line: crond
PID:          943025 (Parent PID:608701)
Killed:       Yes 


So it seems as if akkeba consumes too much memory on the PHP process. How can I reduce the memory usage of the backup process?

Thanks a lot
Bernhard

dlb
Bernhard,

This is a question that Nicholas needs to look at. He is currently at the Joomla! World Conference in Boston. I expect him back early next week. I am sorry that I can't be of more help to you.


Dale L. Brackin
Support Specialist


us.gifEnglish: native


Please keep in mind my timezone and cultural differences when reading my replies. Thank you!


????
My time zone is EST (UTC -5) (click here to see my current time in Philadelphia, PA)

nicholas
Akeeba Staff
Manager
You will not be able to do much about it. One way to lower memory consumption is decreasing the time per step. Go to your Akeeba Backup configuration page and set:
Minimum execution time 0
Maximum execution time 5
Runtime bias 50
For the backup profile you are using for CRON backups.

Keep in mind that a few things increase memory usage:
Backing up folders with several hundreds of files (over 800, as a ballpark estimate) and dozens of subdirectories.
Sending backups to yourself by email

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!

daszeichen
Hi Nicholas

I did some testing, and gradually changed the parameters... with no success... Now I have the following parameters:

Minimum execution time: 0
Maximum execution time: 1
Runtime bias: 10

Now I get a long E-Mail with lots of 'tick-entries'. The last ones are:

Last Tick   : 2013-11-14 02:00:19 GMT+0100 (CET)
Domain      : Packing
Step        : /home/fairness/public_html/plugins/system/sef
Substep     : 
Memory used : 10.38 Mb
Warnings    : no warnings issued (good)

Last Tick   : 2013-11-14 02:00:20 GMT+0100 (CET)
Domain      : Packing
Step        : /home/fairness/public_html/plugins/authentication
Substep     : 
Memory used : 10.38 Mb
Warnings    : no warnings issued (good)

Last Tick   : 2013-11-14 02:00:20 GMT+0100 (CET)
Domain      : Packing
Step        : /home/fairness/public_html/plugins/authentication/joomla
Substep     : 
Memory used : 10.38 Mb
Warnings    : no warnings issued (good)

Last Tick   : 2013-11-14


And then it stops... I have no clue, and don't know how to deal with this.. Is this a server thing? My hosting provider told me, that they will kill every script, that consumes more than 100MB, but the indicated memory usage for each tick is not more than 11MB...

Shall I switch to you CRON-service?

regards
Bernhard

nicholas
Akeeba Staff
Manager
I think that your server is actually killing off the CRON jobs at a preset interval, most likely somewhere around the 3 minute mark. It has nothing to do with memory. Considering that your host is not very likely to help you with that I don't think you can solve it while staying with your current host :(

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!

daszeichen
Okay, I was able to finally solve the issue:
I am now starting the cron-job from our internal fileserver. This runs successfully and very smoothly, however, there is a new issue:

All the backups are now remotely stored in my box.net account! I have initially set this up for testing purposes, but now I can not reset this behaviour, as I have no option "BOX.NET" to select in the "Data Processing Engine" select-box. How can I turn off, the remote backup to my box.net account?

nicholas
Akeeba Staff
Manager
The box.net integration is removed from this version (the release notes explain why). You will have to edit your configuration, set the data processing engine to None and click on Save & Close.

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!