Hello. I have Moodle 2.6 with cca 50 courses. Every day at 02:00 Moodle makes automatic backups. Everything is OK, but after cca 20th course Moodle make pause for cca 2 hours and then continues. I check server logs for errors, but there are no signs of any problem. Any idea, why is Moodle taking coffee break?
Strange behavior with automatic backups (Moodle takes coffee break in middle of work?)
Re: Strange behavior with automatic backups (Moodle takes coffee break in middle of work?)
Hi,
I suppose that if you could log cron execution reports, you would have the answer in it. Automatic backups take a long time, and if your script execution time is not defined so long, your cron hangs.
Then, latest cron executions wait some time (1h30 if i remember well) before starting automated backups again...
You can find information about that in file backup/util/helper/backup_cron_helper.class.php in the get_automated_backup_state function.
Séverin
Re: Strange behavior with automatic backups (Moodle takes coffee break in middle of work?)
Hello Séverin, thank you for reply. By script execution time you mean max_execution_time in php.ini?
In cron's log I see this: "Checking automated backup status...RUNNING. Automated backup are already running. Execution delayed." But in process list I don't see cron. Really strange.
Re: Strange behavior with automatic backups (Moodle takes coffee break in middle of work?)
Re: Strange behavior with automatic backups (Moodle takes coffee break in middle of work?)
Running cron.php script from CLI took ~20 minutes and everything was OK. The same script run by cron module ended after 10 minutes and then waited cca 2 hours for continue. Strange.
Re: Strange behavior with automatic backups (Moodle takes coffee break in middle of work?)
Did you ever fix this?