Go Back   FlashFXP Forums > > > >

Bug Reports If you discover any bugs that we are not aware of, please post it here so it may be corrected.

Reply
 
Thread Tools Rate Thread Display Modes
Old 02-19-2004, 07:35 PM   #1
neoxed
Too much time...
FlashFXP Beta Tester
ioFTPD Scripter
 
Join Date: May 2003
Posts: 1,326
Default Scheduler Issue in Beta-5.7.6?

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:
Code:
[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:
Code:
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.
neoxed is offline   Reply With Quote
Old 02-19-2004, 07:42 PM   #2
Blackthunder
Junior Member
ioFTPD Foundation User
 
Join Date: Sep 2003
Posts: 21
Default

ioA-NewDate = 1 0 <-means to start it every minute!
or? :>
Blackthunder is offline   Reply With Quote
Old 02-19-2004, 07:48 PM   #3
neoxed
Too much time...
FlashFXP Beta Tester
ioFTPD Scripter
 
Join Date: May 2003
Posts: 1,326
Default

Quote:
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.
neoxed is offline   Reply With Quote
Old 02-19-2004, 08:58 PM   #4
Harm
Too much time...
Ultimate Scripter
 
Join Date: Jul 2003
Posts: 1,430
Default

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.
Harm is offline   Reply With Quote
Old 02-19-2004, 09:57 PM   #5
Mouton
Posse Member
Ultimate Scripter
ioFTPD Administrator
 
Join Date: Dec 2002
Posts: 1,956
Default

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...
Mouton is offline   Reply With Quote
Old 02-19-2004, 10:36 PM   #6
neoxed
Too much time...
FlashFXP Beta Tester
ioFTPD Scripter
 
Join Date: May 2003
Posts: 1,326
Default

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
Quote:
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
neoxed is offline   Reply With Quote
Old 02-19-2004, 11:59 PM   #7
darkone
Disabled
FlashFXP Registered User
ioFTPD Administrator
 
darkone's Avatar
 
Join Date: Dec 2001
Posts: 2,230
Default

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 is offline   Reply With Quote
Old 02-20-2004, 12:16 AM   #8
darkone
Disabled
FlashFXP Registered User
ioFTPD Administrator
 
darkone's Avatar
 
Join Date: Dec 2001
Posts: 2,230
Default

And scheduler does function the way harm said; it's much more complicated. Checking each event once per minute, would be very inefficient.
darkone is offline   Reply With Quote
Old 02-20-2004, 12:20 AM   #9
darkone
Disabled
FlashFXP Registered User
ioFTPD Administrator
 
darkone's Avatar
 
Join Date: Dec 2001
Posts: 2,230
Default

.. there seems to be minor bug when rehashing, it might add event more than once. But uhh.. have you rehashed hundreds of times?
darkone is offline   Reply With Quote
Reply

Tags
error, event, ioa-newdate, ioftpd, scheduler

Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -5. The time now is 04:00 PM.

Parts of this site powered by vBulletin Mods & Addons from DragonByte Technologies Ltd. (Details)