Koozali.org formerly Contribs.org

moodle and cron

Offline kwak

moodle and cron
« on: March 14, 2012, 04:14:18 AM »
Hi,

I'm having issues with cron for moodle. I noticed that messages are not being sent out from moodle. I run the cron.php manually and it works. I followed the guide on adding the cron job in /etc/crontab, but it seems that the cron is not executing.

Please help.

Edward

Offline mmccarn

  • *
  • 2,440
Re: moodle and cron
« Reply #1 on: March 14, 2012, 12:06:26 PM »
If you tell us what you did, we might be able to help.

- (exactly) how do you run cron.php manually?
- (exactly) what guide did you follow on adding the cron job to /etc/crontab, and what steps did you follow?


Offline cactus

  • *
  • 4,880
    • http://www.snetram.nl
Re: moodle and cron
« Reply #2 on: March 14, 2012, 07:26:18 PM »
Did you already check the /var/log/cron files for clues? Normally errors might be logged there or perhaps in /var/log/messages.
Be careful whose advice you buy, but be patient with those who supply it. Advice is a form of nostalgia, dispensing it is a way of fishing the past from the disposal, wiping it off, painting over the ugly parts and recycling it for more than its worth ~ Baz Luhrmann - Everybody's Free (To Wear Sunscreen)

Offline kwak

Re: moodle and cron
« Reply #3 on: March 15, 2012, 11:31:34 AM »
The steps found in this thread. I create a custom template.

http://forums.contribs.org/index.php?topic=24392.0

I get this error

ERROR: This script no longer supports CLI, please use admin/cli/cron.php instead

I have this line in /etc/e-smith/template-custom/etc/cron.d/moodle
*/5 * * * * php /home/e-smith/files/ibays/Primary/html/admin/                                    cron.php > /dev/null

Edward

Offline Stefano

  • *
  • 10,779
  • Skype account: maghissimo
    • Smeserver italian community
Re: moodle and cron
« Reply #4 on: March 15, 2012, 11:53:48 AM »
The steps found in this thread. I create a custom template.

http://forums.contribs.org/index.php?topic=24392.0

I get this error

ERROR: This script no longer supports CLI, please use admin/cli/cron.php instead

I have this line in /etc/e-smith/template-custom/etc/cron.d/moodle
*/5 * * * * php /home/e-smith/files/ibays/Primary/html/admin/                                    cron.php > /dev/null

Edward


the answer is in the error message.. don't call /admin/cron.php but /admin/cli/cron.php
Consulente di Smeserver.it -  Soluzioni e supporto su Sme server in Italia

Re: moodle and cron
« Reply #5 on: March 16, 2012, 06:17:30 PM »
Moving to Contribs section of the Forums.
- chris
If it does not work out of the box, please fill in a Bug Report @ Bugzilla (http://bugs.contribs.org)  - check: http://wiki.contribs.org/Bugzilla_Help .  Thanks.