PDA

View Full Version : [Fixed] Scheduler Issue in Beta-5.7.6?


neoxed
02-19-2004, 07:35 PM
I'm not entirely sure what caused this strange occurence...but here goes.

ioFTPD seems to have launched ioA 100s of times from the scheduler. One of my test sites running ioFTPD 5.7.6 and ioA 1.0.10 seems to have gone berserk. Aside of that, ioFTPD seems to launched itself numerous times, possibly something to do with the crashgaurd? Nothing in c:\ioFTPD.crash.log either.

ioFTPD.ini:
[Scheduler]
###
# Scheduler
#
# Event = <Minute(s)> <Hour(s)> <Day(s)> <Weekday(s)> Command
#
Reset = 0 0 * * &Reset
Service_Update = 0,10,20,30,40,50 * * * &Service_Update
ioA-NewDate = 1 0 * * EXEC ..\scripts\ioA\ioA.exe newdate
ioA-SearchLog = 0 0 * * EXEC ..\scripts\ioA\ioA.exe searchlogcreate
ioA-Weekly = 1 0 * 1 EXEC ..\scripts\ioA\ioA.exe weeklyset

Error.log:
02-19-2004 17:03:22 Scheduler event 'ioA-NewDate' returned error.
02-19-2004 17:03:23 Scheduler event 'ioA-NewDate' returned error.
02-19-2004 17:03:25 Scheduler event 'ioA-NewDate' returned error.
...

I don't have much time to do any testing, busy with exams for the next few days. If anyone else encounters something like this, reply here. Whether it's ioA or ioFTPD related, I'm unsure.

When I have some free time, I'll try and find a way to replicate it and determine the source of error. :)

Blackthunder
02-19-2004, 07:42 PM
ioA-NewDate = 1 0 <-means to start it every minute!
or? :>

neoxed
02-19-2004, 07:48 PM
Originally posted by Blackthunder
ioA-NewDate = 1 0 <-means to start it every minute!
or? :>

No...definitly not. It means to start at 1 minute after midnight everyday on UTC time.

It executes ioA several times per second, not minute.

Never had this happen in 5.6.3, wondering if the newer version introduced this bug.

Harm
02-19-2004, 08:58 PM
Indeed, someone in #ioftpd has the same problem.

([LiQUiD]) 02-20-2004 00:00:32 DAYSTATS: "Launch daystats"
([LiQUiD]) 02-20-2004 00:00:42 DAYSTATS: "Launch daystats"
([LiQUiD]) 02-20-2004 00:00:44 DAYSTATS: "Launch daystats"

Using
Day_Stats = 0 23 * * EXEC ..\scripts\ioBanana.exe daystats

I haven't tried it yet, but it looks like the scheduler checks if there are scheduled events several times per minute and then calls the script even if it has already been called a few seconds before.

Mouton
02-19-2004, 09:57 PM
4.7.6r here:

ioFTPD.ini:
Day_Stats = 59 23 * * EXEC ..\scripts\ioBanana.exe daystats

ioFTPD.log:
02-19-2004 18:59:44 DAYSTATS: "Launch daystats"

I thought the crashguard might have caused this, but i killed the io process a couple of times, letting the crashguard process restart it each time, and with same results. Only one scheduled event was trigerred.

Only way i can see this hapenning is if you have multiple io processes running... like more than the normal 2. using ioB site restart or other site restart scripts might cause that... or any script that plays with ioFTP.exe processes...

neoxed
02-19-2004, 10:36 PM
Nope, ioFTPD was only running once. Nor do I use any restart scripts or any script that fiddles with processes for that matter.

ioFTPD.log
02-19-2004 17:01:21 NEWDATE: "0Day" "/0Day/0219" "0Day" "D:\Site\0Day\0219"
02-19-2004 17:01:21 NEWDATE: "0Day" "/0Day/0219" "0Day" "D:\Site\0Day\0219"
02-19-2004 17:01:21 NEWDATE: "0Day" "/0Day/0219" "0Day" "D:\Site\0Day\0219"
02-19-2004 17:01:21 NEWDATE: "0Day" "/0Day/0219" "0Day" "D:\Site\0Day\0219"
02-19-2004 17:01:21 NEWDATE: "0Day" "/0Day/0219" "0Day" "D:\Site\0Day\0219"
02-19-2004 17:01:21 NEWDATE: "0Day" "/0Day/0219" "0Day" "D:\Site\0Day\0219"
02-19-2004 17:01:21 NEWDATE: "0Day" "/0Day/0219" "0Day" "D:\Site\0Day\0219"
... and many more entries

darkone
02-19-2004, 11:59 PM
Returned with error usually means that program does not return with exitcode 0. I think, I could alter this & make it throw 'returned with error' in cases where script times out. However, I have no idea why it would execute the script more than once tho..

Scheduler has not been touched since beta5.4 or so. It could have something to do with php breaking up things.. unfortunately I do not have time to investigate it atm.

darkone
02-20-2004, 12:16 AM
And scheduler does function the way harm said; it's much more complicated. Checking each event once per minute, would be very inefficient.

darkone
02-20-2004, 12:20 AM
.. there seems to be minor bug when rehashing, it might add event more than once. But uhh.. have you rehashed hundreds of times? :p