Moodlecron.exe error in event logs - IOHandler value is not valid

Moodlecron.exe error in event logs - IOHandler value is not valid

by Vincent Gullotta -
Number of replies: 5

Hello,

I'm seeing tons of these errors in the Application event logs.

IOHandler value is not valid

Has anyone run across this before?

Thanks in advance,

Vinny

Average of ratings: -
In reply to Vincent Gullotta

Re: Moodlecron.exe error in event logs - IOHandler value is not valid

by Guillermo Madero -

Hi Vincent,

It seems that it has to do with SSL settings (http vs https).

http://docs.moodle.org/25/en/Apache#SSL

http://docs.moodle.org/25/en/HTTP_security

In reply to Guillermo Madero

Re: Moodlecron.exe error in event logs - IOHandler value is not valid

by Vincent Gullotta -

Any idea how to fix it? We can only use HTTPS.

In reply to Vincent Gullotta

Re: Moodlecron.exe error in event logs - IOHandler value is not valid

by Guillermo Madero -

So, how are you running your cron job? If you could share some info about your environment... OS, server, versions, etc, that would be great.

In reply to Guillermo Madero

Re: Moodlecron.exe error in event logs - IOHandler value is not valid

by Vincent Gullotta -

ok, so we have 2 load balanced (Round Robin via Cisco ACE with sticky so users don't bounce back and forth and lose session information) Windows 2012 Moodle Front Ends with a clustered MS SQL backend. Using DFS to replicate moodledata and a few other folders so they are identical at all times. Moodle is Version 2.4.

 

I installed the MoodleCron service like it says, told it yes I'd like it to report to the App log, page visit every 60 minutes, and the full url like https://moodlesite/admin/cron.php?password={passwordhere}

In reply to Vincent Gullotta

Re: Moodlecron.exe error in event logs - IOHandler value is not valid

by Guillermo Madero -

Hi Vincent,

I would then say that you are using IIS. I don't know anything about working on a WISP environment, but I know that the Moodle Cron program (MCp) cannot be used if the IIS directory security is enabled. Anyway, regardless of the IIS configuration, I would definitely discard the MCp and leave it only for the simplest of cases (are there any?).

I would then recommend you to create a scheduled task for php.exe:

http://docs.moodle.org/24/en/Cron_with_Windows_OS

Please note that in this case not only you will need to use a file system path (instead of an URL) to access the cron.php script, but you will also have to call the script located under the cli directory (not the one under admin):

c:\moodle\admin\cli\cron.php