Psychologically unstable Cron driving me crazy!

Psychologically unstable Cron driving me crazy!

Alberto LaCava -
回帖数:7

Dear Moodlers:

I run two Moodle installations as administrator for nearly two years now, and in the recent months I have been having problems with the crons. I am using Version 1.4.3 of Moodle in both installations. The main manifestation is that the crons of the forum and other modules don't seem to do their job at the right time. Also, in one of the installations, if I run the "hand cron" at /.../admin/cron.php , the e-mails are not being delivered to the users, even that the users e-mails are OK and the server mail is working perfectly. Here is one example for one of the systems running www.wisdomtraditions.org/eclass/admin/php.cron:

Success

Processing post 876ERROR: SMTP Error: The following recipients failed: josepablo@arnet.com.ar Error: mod/forum/cron.php: Could not send out mail for id 876 to user 10 (josepablo@arnet.com.ar) .. not trying again. ERROR: SMTP Error: The following recipients failed: enokianmagick@yahoo.com.mx Error: mod/forum/cron.php: Could not send out mail for id 876 to user 19 (enokianmagick@yahoo.com.mx) .. not trying again. .... mailed to 1 users. Procesando 877ERROR: SMTP Error: The following recipients failed: scot_robinson@mail.com Error: mod/forum/cron.php: Could not send out mail for id 877 to user 43 (scot_robinson@mail.com) .. not trying again. ERROR: SMTP Error: The following recipients failed: dnagel0171@charter.net Error: mod/forum/cron.php: Could not send out mail for id 877 to user 152 (dnagel0171@charter.net) .. not trying again. ERROR: SMTP Error: The following recipients failed: david@thinkology.org Error: mod/forum/cron.php: Could not send out mail for id 877 to user 128 (david@thinkology.org) .. not trying again. ERROR: SMTP Error: The following recipients failed: sarezrael@yahoo.ca Error: mod/forum/cron.php: Could not send out mail for id 877 to user 45 (sarezrael@yahoo.ca) .. not trying again. ERROR: SMTP Error: The following recipients failed: nzeshi@hotmail.com Error: mod/forum/cron.php: Could not send out mail for id 877 to user 54 (nzeshi@hotmail.com) .. not trying again. ERROR: SMTP Error: The following recipients failed: bizon586@yahoo.com Error: mod/forum/cron.php: Could not send out mail for id 877 to user 51 (bizon586@yahoo.com) .. not trying again. ERROR: SMTP Error: The following recipients failed: petostic2000@yahoo.com Error: mod/forum/cron.php: Could not send out mail for id 877 to user 115 (petostic2000@yahoo.com) .. not trying again. ERROR: SMTP Error: The following recipients failed: suti@pair.com Error: mod/forum/cron.php: Could not send out mail for id 877 to user 151 (suti@pair.com) .. not trying again. ERROR: SMTP Error: The following recipients failed: durmail77@yahoo.com Error: mod/forum/cron.php: Could not send out mail for id 877 to user 144 (durmail77@yahoo.com) .. not trying again. ERROR: SMTP Error: The following recipients failed: majic418@hotmail.com Error: mod/forum/cron.php: Could not send out mail for id 877 to user 110 (majic418@hotmail.com) .. not trying again. ERROR: SMTP Error: The following recipients failed: OmerVryonis@netscape.net Error: mod/forum/cron.php: Could not send out mail for id 877 to user 145 (OmerVryonis@netscape.net) .. not trying again. ERROR: SMTP Error: The following recipients failed: djgreiner93@sbcglobal.net Error: mod/forum/cron.php: Could not send out mail for id 877 to user 149 (djgreiner93@sbcglobal.net) .. not trying again. ERROR: SMTP Error: The following recipients failed: luciec48@sympatico.ca Error: mod/forum/cron.php: Could not send out mail for id 877 to user 146 (luciec48@sympatico.ca) .. not trying again. ERROR: SMTP Error: The following recipients failed: fraterw@yahoo.com Error: mod/forum/cron.php: Could not send out mail for id 877 to user 48 (fraterw@yahoo.com) .. not trying again. ERROR: SMTP Error: The following recipients failed: saintgermain2@hotmail.com Error: mod/forum/cron.php: Could not send out mail for id 877 to user 136 (saintgermain2@hotmail.com) .. not trying again. .... mailed to 2 users. Processing post 878ERROR: SMTP Error: The following recipients failed: scot_robinson@mail.com Error: mod/forum/cron.php: Could not send out mail for id 878 to user 43 (scot_robinson@mail.com) .. not trying again. ERROR: SMTP Error: The following recipients failed: dnagel0171@charter.net Error: mod/forum/cron.php: Could not send out mail for id 878 to user 152 (dnagel0171@charter.net) .. not trying again. ERROR: SMTP Error: The following recipients failed: david@thinkology.org Error: mod/forum/cron.php: Could not send out mail for id 878 to user 128 (david@thinkology.org) .. not trying again. ERROR: SMTP Error: The following recipients failed: sarezrael@yahoo.ca Error: mod/forum/cron.php: Could not send out mail for id 878 to user 45 (sarezrael@yahoo.ca) .. not trying again. ERROR: SMTP Error: The following recipients failed: nzeshi@hotmail.com Error: mod/forum/cron.php: Could not send out mail for id 878 to user 54 (nzeshi@hotmail.com) .. not trying again. ERROR: SMTP Error: The following recipients failed: bizon586@yahoo.com Error: mod/forum/cron.php: Could not send out mail for id 878 to user 51 (bizon586@yahoo.com) .. not trying again. ERROR: SMTP Error: The following recipients failed: petostic2000@yahoo.com Error: mod/forum/cron.php: Could not send out mail for id 878 to user 115 (petostic2000@yahoo.com) .. not trying again. ERROR: SMTP Error: The following recipients failed: suti@pair.com Error: mod/forum/cron.php: Could not send out mail for id 878 to user 151 (suti@pair.com) .. not trying again. ERROR: SMTP Error: The following recipients failed: durmail77@yahoo.com Error: mod/forum/cron.php: Could not send out mail for id 878 to user 144 (durmail77@yahoo.com) .. not trying again. ERROR: SMTP Error: The following recipients failed: majic418@hotmail.com Error: mod/forum/cron.php: Could not send out mail for id 878 to user 110 (majic418@hotmail.com) .. not trying again. ERROR: SMTP Error: The following recipients failed: OmerVryonis@netscape.net Error: mod/forum/cron.php: Could not send out mail for id 878 to user 145 (OmerVryonis@netscape.net) .. not trying again. ERROR: SMTP Error: The following recipients failed: djgreiner93@sbcglobal.net Error: mod/forum/cron.php: Could not send out mail for id 878 to user 149 (djgreiner93@sbcglobal.net) .. not trying again. ERROR: SMTP Error: The following recipients failed: luciec48@sympatico.ca Error: mod/forum/cron.php: Could not send out mail for id 878 to user 146 (luciec48@sympatico.ca) .. not trying again. ERROR: SMTP Error: The following recipients failed: fraterw@yahoo.com Error: mod/forum/cron.php: Could not send out mail for id 878 to user 48 (fraterw@yahoo.com) .. not trying again. ERROR: SMTP Error: The following recipients failed: saintgermain2@hotmail.com Error: mod/forum/cron.php: Could not send out mail for id 878 to user 136 (saintgermain2@hotmail.com) .. not trying again. .... mailed to 2 users. Sending forum digests: Thursday, 10 February 2005, 10:12 AM done. Processing module function journal_cron ...done. Processing module function workshop_cron ...done. Finished activity modules Running clean-up tasks... Running backups if required... Checking backup status...OK Getting admin info Deleting old data Checking courses Skipping deleted courses 0 courses Wisdom Traditions e-Learning Portal Next execution: Friday, 11 February 2005, 02:00 AM Fra 101 Next execution: Friday, 11 February 2005, 02:00 AM Associate Degree Part 1 (101) Next execution: Friday, 11 February 2005, 02:00 AM Old Testament 101 Next execution: Friday, 11 February 2005, 02:00 AM Martinismo 101: Grado Asociado Primera Parte Next execution: Friday, 11 February 2005, 02:00 AM TSG Probacionista Templario 1 Next execution: Friday, 11 February 2005, 02:00 AM FRA 102 Next execution: Friday, 11 February 2005, 02:00 AM SSR Reiki 407 Next execution: Friday, 11 February 2005, 02:00 AM Usui Reiki Nivel 1 Next execution: Friday, 11 February 2005, 02:00 AM Maestro Reiki Next execution: Friday, 11 February 2005, 02:00 AM Associate Degree Part 2 Next execution: Friday, 11 February 2005, 02:00 AM Usui Reiki 2 Next execution: Friday, 11 February 2005, 02:00 AM Associate Degree Part 3 Next execution: Friday, 11 February 2005, 02:00 AM FRA 103 Next execution: Friday, 11 February 2005, 02:00 AM Training course for Instructors Next execution: Friday, 11 February 2005, 02:00 AM Curso de la plataforma electronica para estudiantes Next execution: Friday, 11 February 2005, 02:00 AM Martinismo 102 - Grado Asociado Segunda Parte Next execution: Friday, 11 February 2005, 02:00 AM Associate Degree Part 4 Next execution: Friday, 11 February 2005, 02:00 AM Curso de la plataforma electronica para profesores Next execution: Friday, 11 February 2005, 02:00 AM Usui Reiki Level 1 Next execution: Friday, 11 February 2005, 02:00 AM Mystic Degree Part 1 Next execution: Friday, 11 February 2005, 02:00 AM Mystic Degree Part 2 Next execution: Friday, 11 February 2005, 02:00 AM Mystic Degree Part 3 Next execution: Friday, 11 February 2005, 02:00 AM Mystic Degree Part 4 Next execution: Friday, 11 February 2005, 02:00 AM International Order of Chivalric Companions - Introduction Next execution: Friday, 11 February 2005, 02:00 AM International Order of Chivalric Companions - First Level: Page Next execution: Friday, 11 February 2005, 02:00 AM Atrayendo Amor a su Vida Next execution: Friday, 11 February 2005, 02:00 AM Usui Reiki Level 2 Next execution: Friday, 11 February 2005, 02:00 AM Usui Reiki Level 3 Next execution: Friday, 11 February 2005, 02:00 AM International Order of Chivalric Companions - Second Level: Companions Next execution: Friday, 11 February 2005, 02:00 AM Curso de Utilidad Next execution: Friday, 11 February 2005, 02:00 AM TSG Probacionista Templario 2 Next execution: Friday, 11 February 2005, 02:00 AM TSG Probacionista Templario 3 Next execution: Friday, 11 February 2005, 02:00 AM TSG Probacionista Templario 4 Next execution: Friday, 11 February 2005, 02:00 AM FRA 104 Next execution: Friday, 11 February 2005, 02:00 AM Martinez de Pasqually's Tradition Next execution: Friday, 11 February 2005, 02:00 AM International Order of Chivalric Companions - Third Level 1: Knights 1 Next execution: Friday, 11 February 2005, 02:00 AM La Ultima Curacion - Confrontando la Muerte o Transicion Next execution: Friday, 11 February 2005, 02:00 AM Backup tasks finished. Cron script completed correctly Execution took 4.733566 seconds

                        
回复Alberto LaCava

Mail server not working (was Re: Psychologically unstable Cron driving me crazy!)

Martin Dougiamas -
Core developers的头像 Documentation writers的头像 Moodle HQ的头像 Particularly helpful Moodlers的头像 Plugin developers的头像 Testers的头像
This is not Moodle - the errors are in that output:

Your SMTP server (outgoing mail server) is returning an error ... if it used to work then perhaps someone has changed the mail configuration ... adding spam checkers is a common reason.

Contact the admin of that mail server. You may have to change the SMTP settings in Moodle to use a different server (try leaving them blank).

回复Martin Dougiamas

Re: Mail server not working (was Re: Psychologically unstable Cron driving me crazy!)

Alberto LaCava -

Martin:

Thanks a lot! Setting the fields to blank stopped the problem with the mailing. I still have problems with the function crons of the different modules not processing the job in a timely manner. They do it only when I activate the "hand cron" under the /admin/ folder. And I cannot figure out what can be wrong with them.

Regards,

Alberto

回复Alberto LaCava

Re: Mail server not working (was Re: Psychologically unstable Cron driving me crazy!)

Martin Dougiamas -
Core developers的头像 Documentation writers的头像 Moodle HQ的头像 Particularly helpful Moodlers的头像 Plugin developers的头像 Testers的头像
Have you set up an automatic process to call that cron script regularly?

   http://moodle.org/doc/?frame=install.html&sub=cron
回复Martin Dougiamas

Re: Mail server not working (was Re: Psychologically unstable Cron driving me crazy!)

Matt Molloy -

Hi all,

I have set up the automatic process to call the cron regularly, but it only happens when I type the instruction into the address bar. I have checked that the cron service is running, which it is. I have uninstalled/reinstalled the cron service several times, in case I was making an error, but all seems in order.

I have put my mail servers into the relevant boxes in administration, and was wondering how the cron could function if I left them blank.

Regards to all,

Matt

回复Martin Dougiamas

Re: Mail server not working (was Re: Psychologically unstable Cron driving me crazy!)

Alberto LaCava -

Martin:

I have, but it does not seem to work properly anymore. It worked OK for a year and a half and something has changed.

When I ask that the result of the cron be e-mailed to me, the e-mail simply reads:

 

"-----Original Message-----

From: Cron Daemon [

Sent: Monday, February 14, 2005 9:45 AM

To: albertolacava@rcn.com

Subject: Cron <mobius@elite> wget -q -O /dev/null

 

/bin/sh: line 1: /usr/bin/wget: Permission denied "

There is something that has changed somewhere and I cannot pinpoint where. I have asked the technical support of the Web Hosting service I use, for help.

Regards,

Alberto

<u><font color="#0000ff" size="2">mailto:root@elite.excelservers.com</font></u>] http://mobiusnet.com/admin/cron.php 
回复Alberto LaCava

Re: Mail server not working (was Re: Psychologically unstable Cron driving me crazy!)

Bill Burgos -
Hello Alberto,

It seems that the web hosting service has turned off permissions for you to use wget. This has been happening recently.

There was a discussion here about the same problem:

http://moodle.org/mod/forum/discuss.php?d=16193#78340

and here:

http://moodle.org/mod/forum/discuss.php?d=16404

Perhaps the best option is to ask the web hosting service to run the cron script for you.

Hope it helps.
回复Alberto LaCava

Re: Psychologically unstable Cron driving me crazy!

W Page -
Hi Alberto!

Suggest you try out an online cron service, if:
  • You do not have access to SSH, and
  • Your web service does not allow you to directly control "cronjobs" for your scripts.

You can check out this free service at:
Cronjob.de
http://cronjob.de/

I believe the site is in German, but , you can translate it using AltaVista's translation service here. I checked it out a while back and it seemed to work OK. It will perform automatic cronjobs.

Also suggest you change webhosts when it is convienient to to one that allows SSH access and something like CPanel.

HTH

WP1