Lucee Scheduled Tasks stops running under Windows 2012 Server

575 views
Skip to first unread message

Mike Stephens

unread,
May 16, 2016, 4:31:58 PM5/16/16
to Lucee
I have a Lucee task setup in Lucee Web Admin that is scheduled to run every 10 minutes. The task calls a local .cfm that looks for a file, if file exists then send an email. It runs fine when "executed" by hand from Lucee Web Admin. However, it will not run as scheduled. It runs as an admin user. We are on Lucee 4.5.2.018. We arrived at this version by upgrading from 4.5.1.000 to 4.5.1.022 to 4.5.2.018 by updating from the Lucee Server Admin.
Please help.
Mike

Julian Halliwell

unread,
May 17, 2016, 4:38:58 AM5/17/16
to lu...@googlegroups.com
Are there any error messages in the scheduler.log?

David Eurenius

unread,
May 21, 2016, 11:17:30 AM5/21/16
to Lucee
Are your site running under https?

First check the scheduler.log as per Julians adwise for errors.

If you have execution errors try to run the scheduled task on http and port 8888, bypassing the external webserver and execute the scheduled task directly on tomcat.
This saves you a lot trouble with non-executed schedule tasks.

Example

Mike Stephens

unread,
May 24, 2016, 10:32:09 AM5/24/16
to Lucee
No errors in the scheduler.log file.
Message has been deleted

Mike Stephens

unread,
May 24, 2016, 10:39:22 AM5/24/16
to Lucee
Not running under https. Have no indications that the scheduled task has stopped. Have set the task to write to an htm file in the root of C:\ everytime it runs. This file should always have a timestamp that is within 10 minutes of when you look its current timestamp. When the task stops this file is no longer updated. The issue of course is the face that it just stopped on its own. Am able to do an update to the task and then execute it from the Lucee admin and the task start running again.

Mike Stephens

unread,
Jun 3, 2016, 11:01:24 AM6/3/16
to Lucee
Update on what I've discovered so far. The task schedule is to run every 10 minutes. With the start date of 4/12/2016 and start time of 06:00:00 the task will run till 23:50:00 and stop. It will then resume running at 06:00:00 the next day. I moved the 06:00:00 start time to 04:00:00 and the task followed, it ran till 23:50:00 and the next day started back up at 04:00:00.
This task in on 11 virtual servers. 10 of them are fine, they run around the clock as expected. But this one behaved completely differently. All tasks were created by had in Lucee admin console. All setup exactly the same. All C:\lucee\tomcat\webapps\ROOT\WEB-INF\lucee\scheduler\scheduler.xml file are exactly the same.
Any idea's out there?

Nando Breiter

unread,
Jun 4, 2016, 5:43:03 PM6/4/16
to lu...@googlegroups.com
Set the start time to 00:00 ? 

I could imagine there's a bug somewhere in the code that interprets the intention of the scheduled task entry form.



Aria Media Sagl
+41 (0)76 303 4477 cell
skype: ariamedia

--
Win a ticket to dev.objective from Lucee via Twitter, see http://bit.ly/1UbTMWj for details, good luck and see you there...
---
You received this message because you are subscribed to the Google Groups "Lucee" group.
To unsubscribe from this group and stop receiving emails from it, send an email to lucee+un...@googlegroups.com.
To post to this group, send email to lu...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/lucee/d1ceff2b-953a-4594-ba86-22682e03e216%40googlegroups.com.

For more options, visit https://groups.google.com/d/optout.

Mike Stephens

unread,
Jun 6, 2016, 9:15:17 AM6/6/16
to Lucee
Set the start time to 00:00:00 and the task will now run around the clock. However, this doesn't explain why the other 10 virtual machines are able to run around the clock every 10 minutes with a start time of 06:00:00. I'll take this as a win but still concerned that there is some sort of program bug in the Lucee task scheduler that needs to be fixed.
Reply all
Reply to author
Forward
0 new messages