Course backup cron job occurs every night but courses are only backed up every second day.
Moodle cron logs indicate backup task starts and runs (hangs) but no courses are backed up every second day, every second day it works though. No completion message seen on failure days unlike the successful days (see cron messages below).
My cron job is run separately from Moodle scheduled
tasks (disabled that scheduled task in Moodle. using Windows Scheduled Task). I separated it as it runs a very long time for 1000 courses, 12hr or so, and noticed this interfered with another moodle cron job.
No logs in Moodle Backup Reports, not sure why, what setting should I enable for backup logging, will this help?
What other sources of troubleshooting data can I find for this course backup that hangs every second day?
Moodle Cron Log output for days that fail:
Server Time: Wed, 23 May 2018 21:15:01 -0300
Checking automated backup status...OK
Getting admin info
Checking courses
Skipping deleted courses...0 courses
Running required automated backups...
... started 21:15:01. Current memory use 16MB.
Backing up Moodle...
Server Time: Wed, 23 May 2018 21:45:01 -0300
Checking automated backup status...RUNNING
Automated backups are already running. If this script is being run by cron this constitues an error. You will need to increase the time between executions within cron.
Automated cron backups completed correctly
Execution took 0.140625 seconds
Server Time: Wed, 23 May 2018 22:15:01 -0300
Checking automated backup status...RUNNING
Automated backups are already running. If this script is being run by cron this constitues an error. You will need to increase the time between executions within cron.
Automated cron backups completed correctly
Execution took 0.28125 seconds
Cron Logs Successful days output:
Server Time: Thu, 24 May 2018 21:00:24 -0300
Checking automated backup status...Automated backups activity not found in last 90 minutes. Cleaning running status
OK
Getting admin info
Checking courses
Skipping deleted courses...0 courses
Running required automated backups...
... started 21:00:24. Current memory use 16MB.
Backing up Moodle...
…………..
1000 course back up messages
……......
complete - next execution: Thu, 24 May 2018 21:05:00 -0300
Automated backup settings
====================
environment:
moodle 3.1.5/Windows2008/IIS7.5/php5.6/mysql