General help

 
 
Picture of Vincent Gullotta
Moodlecron.exe error in event logs - IOHandler value is not valid
 

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: -
Gmads
Re: Moodlecron.exe error in event logs - IOHandler value is not valid
Group Particularly helpful MoodlersGroup Testers

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

 
Average of ratings: -
Picture of Vincent Gullotta
Re: Moodlecron.exe error in event logs - IOHandler value is not valid
 

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

 
Average of ratings: -
Gmads
Re: Moodlecron.exe error in event logs - IOHandler value is not valid
Group Particularly helpful MoodlersGroup Testers

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.

 
Average of ratings: -
Picture of Vincent Gullotta
Re: Moodlecron.exe error in event logs - IOHandler value is not valid
 

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}

 
Average of ratings: -
Gmads
Re: Moodlecron.exe error in event logs - IOHandler value is not valid
Group Particularly helpful MoodlersGroup Testers

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

 
Average of ratings: -