Cron for Windows - errors?

Cron for Windows - errors?

by Gabriel Westman -
Number of replies: 3

Hi,

See that there are a few people that are having problems with the Cron for Windows - we have a Moodle install on Win2k. Am using the installer file provided for download from here, the URL (starting with http://localhost/) is correct and cron.php executed without errors when triggered manually from a web browser. In the application event log, the following error can be found:

The description for Event ID ( 0 ) in Source ( Moodlecron.exe ) cannot be found. The local computer may not have the necessary registry information or message DLL files to display messages from a remote computer. The following information is part of the event: HTTP/1.1 401 Access Denied.

Any help appreciated.

Best regards,

Gabriel Westman

Average of ratings: -
In reply to Gabriel Westman

Re: Cron for Windows - errors?

by Klaus Schramm -
You got two problems here:

1. The "Event ID..." is triggered by Windows for all message logging of unregistered programs, services, dlls etc. (MoodleCron does not register when installing). The logging parameter of MoodleCron does not turn off all log messaging. To avoid logging messages altogether see:
http://moodle.org/mod/forum/discuss.php?d=18031&parent=90124

2. The "HTTP/1.1 401 Access Denied" means your Cron for Windows does not have the privileges to run cron.php. Best try to call cron.php in your browser (http://...yourservername.../moodle/admin/cron.php). If you get access denied there, you have to check the ACL of you files / directories. Running under IIS, they have to be adjusted in order to allow IUSR_... read and write access (for backup).

Good luck, Klaus
In reply to Klaus Schramm

Re: Cron for Windows - errors?

by Gabriel Westman -

1) Why on earth make an installer if it does not register the components correctly? Copying files isn't all that hard to do manually, after all.

2) As I wrote in my first message, the script executes correctly when run manually from a web browser.

So, I still haven't gotten it all pinned down. Will perform av server reinstall because of other reasons anyway, so maybe I'll get gid of something there....

Thanks.

/gabriel

In reply to Gabriel Westman

Re: Cron for Windows - errors?

by Klaus Schramm -
To register a service for event logging ist not as trivial as copying files.  You will not get rid of the messages w/o changing the exe.  I compiled a new version (cf. link above for code and exe).
Good luck, Klaus