Best practice forum (Archived)

Este foro de discusión ha sido eliminado.

 
Esta publicación en el foro ha sido eliminada.
Tuesday, 2 de April de 2013, 12:41
El contenido de esta publicación del foro se ha eliminado y ya no se puede acceder a él.
? ?
Re: CRON Error - Already being executed. Quitting.
de ? ? - Tuesday, 2 de April de 2013, 15:09
 

Hi Martinique,

very occasionally cron will crash in the middle of a run. This can result in a file cron.pid being left behind in the moodledata directory - cron checks to see if this file exists and if it does exist it assumes an instance of cron is already running.

admin/cron_watcher.php exists to keep an eye on this and to remove the cron.pid file if it is old so that cron can run again.

From the INSTALL.txt:

7. Set up a root cron task to call the file admin/cron_watcher.php every five minutes.
   The cron watcher script needs to be called *directly*, not by fetching the page through the web server (e.g. using wget or similar)  as it needs sufficient permissions to be able to kill the cron process if it has crashed. This would normally  be done using a command like this on the crontab:


   php /path/to/site/admin/cron_watcher.php > /path/to/logs/watcher.log 2>&1

If cron is repeatedly crashing though then something more serious is going on and you should get someone to examine the various Totara, web server, and system logs to try and find the error.

Hope this helps.

Esta publicación en el foro ha sido eliminada.
Tuesday, 2 de April de 2013, 19:12
El contenido de esta publicación del foro se ha eliminado y ya no se puede acceder a él.
Esta publicación en el foro ha sido eliminada.
Tuesday, 2 de April de 2013, 19:56
El contenido de esta publicación del foro se ha eliminado y ya no se puede acceder a él.