Coldfusion Scheduled Tasks Problem

Hello--
I am experiencing a strange problem. In a product that my office has created, we make use of Scheduled Tasks in Coldfusion. All of our clients are working just fine with the exception of one. There are several Tasks that all should behave the same way. The task starts, it writes to a log file that it is starting, it processes what it needs to process, it writes to the log file that it is done.
Here is the problem we are having:
Scheduled task is scheduled to run at 3:00am daily. Task will run the first time through without any problems, and sometimes will run a second time without any problems. But, normally, the second time the task starts, the log file we have generated is not updated at all. The timestamp stays the same, so no action has been done to the file. Further, the Task doesn't do any of the process it should. In addition, the JRun process hangs, taking up 99%-100% of CPU and stays that way until the server is restarted. The Coldfusion scheduler.log says that the task has executed. Nothing else is recorded in any of the other Coldfusion logs.
This is a problem that has been reoccurring consistently for the past month with all scheduled tasks. I have spent hours on the phone with the client to debug the issue. All of the Coldfusion settings match between their environment and ours. The server setup is similar to our own server. Server is a VM with 2x3.3GHz processors and 2GB of RAM.
Does anyone have any ideas, suggestions, or help? At this point, I'm at a complete and total loss and any help would be much appreciated...

Well that's all good news, in a way.
OK, so in the test environment stop CF, blitz all the CF and JRun logs, start it, run the script via a browser, run it again.  Inspect logs.
I can't believe nothing goes into the logs.
And do you have a <cflog> entry as the very first line of code in the script file?  And that log entry never gets made?
If the <cflog> entry never shows up, put an Application.cfm file in the same dir as the script, with a single <cflog> entry in it.  Does that <cflog> entry get made?
Adam

Similar Messages

  • Call Multiple Files From Single ColdFusion Scheduled Task

    Our host only allows us to have 5 scheduled tasks per account but we need to run cfml applications to import data for multiple sites (at least 15 processes).  What I'd like to do is combine all the 'sample requests' for all sites into ONE scheduled task that will run them one after another thus cutting back on the number of scheduled tasks needed.
    We're using ColdFusion to connect to a MySQL DB to gather all sample requests. First the app retrieves all the unflagged records from a remote db then begins looping through all the returned records. On the each loop, the app 'scrubs' the data by properly formatting phone numbers, fixing address abbreviations, etc. Next the app saves the scrubbed data to a local MS SQL table then starts the loop over on the next row. Lastly the app sends out an email saying it has completed successfully.
    What I'm trying to do is Create a New Parent App that will run as a scheduled task to do the following:
    - New Parent App Runs as Scheduled Task and calls/includes first of X sample request app files
    - New Parent App runs first sample request app as described above (which can take up to a minute to process)
    - Parent app waits until after first sample request app completes, then Parent App goes on to second sample request app, etc.
    - After all sample requests are complete New App sends completion email with date and time
    The problem I'm having is getting the scheduled task to wait for apppage1.cfm to finish before loading apppage2.cfm and so on. Can you give me a simple codeset that accomplishes this?
    I've attached a sample of the include page the needs to complete before moving on!

    Our approach is a bit more comprehensive.
    First, we (meaning my co-workers) wrote a custom tag that does something like this:
    <cftry>
    <cfinclude the template>
    <cfcatch>
    log any errors
    Then our actual scheduled job go like this:
    set a really long timeout (and none of the actual jobs can have their own timeout)
    set some variables
    use the custom tag for each job we want to run
    send mail if any errors occurred.

  • Scheduled Tasks problem after midnight

    I am running CFMX 7.0.2 and am experiencing an issue where
    scheduled tasks run correctly until roughly midnight. After
    midnight they cease to run. In the logs I can see that the task is
    being incorrectly rescheduled for a later time. Instead of being
    rescheduled for 1 minute and 1 second later, it will be rescheduled
    for much longer - typically about 24 hours later. Any ideas what I
    can do to narrow down the cause of this problem?

    I've since discovered that this problem does not occur when
    the task is scheduled to run at 12 AM. Otherwise, after the task
    runs post-midnight, it reschedules itself for its next daily run at
    whatever time it was scheduled for.
    Is it possible to have a scheduled task that will kick off at
    10PM and then run every 1 minute and 1 second later until it is
    stopped, even if that means continuing through the next day?

  • Scheduled Tasks - HTTP 500

    I have an application that has been running fine since 2007. I fire 7 scheduled tasks every morning that send emails with status updates. I upgraded to CF9 earlier this year without incident and everything has been fine. All of the sudden, the tasks are not firing as of 11/4. I can run the cfm file from the browser, but the logs show an HTTP 500 error. Nothing has changed on the server or the files. I have verified the file rights and they are as they have always been. when I try to manually run the tasks from the admin, it gives me 7 reasons why it might have failed. I did some searching and could not find any real answers. Anyone else have this issue?

    Hi, What update level is CF9? eg CFadmin
    Server Settings > Settings Summary
    System Information 
    Server Details 
    Version  9,0,1,274733   
    Update Level  /D:/ColdFusion9/lib/updates/chf9010001.jar   
    I ask since this other thread noted scheduled tasks problems for them since applying CHF2 or update level chf9010002.jar -
    http://forums.adobe.com/thread/920598
    HTH, Carl.

  • Scheduled Tasks wont run

    I had recently upgarded to CF8 from CF7.
    After the upgrade non of my Scheduled Tasks are running.
    Even when i trigger the tasks manually from CFAdmin I get the response "This scheduled task was completed successfully."
    But nothing really runs. My application is using Integrated Windows Authentication and the schedulled tasks were running fine with CF7.
    Now when i switch off the Windows authentication, the scheduled tasks are working fine.
    Could you please tell me why my Scheduled Tasks are not running when i turn on Windows authenticaton, where as it was working perfectly with CF7.

    ColdFusion schedule tasks CAN NOT run under windows integrated authentication.  ColdFusion is not a windows product, it does not pass the NTML headers with requests.  You have to turn off windows integrated authentication for any resource you would like to run as a schedule task.  Helpfully, you can set that permssion to individual files and|or folders so you do not need to turn it off for the entire site.
    I don't know why this would change after an upgrade, unless you built a new CF8 server with a newly built IIS as well.

  • Coldfusion 11 Update 4 scheduled task error

    My scheduled tasks stopped and on going into Administrator I got:
    The system has attempted to use an undefined value, which usually indicates a programming error, either in your code or some system code.
      Null Pointers are another name for undefined values. 
      The error occurred in scheduletasks.cfm: line 190
    -1 : Unable to display error's location in a CFML template.
    I found some posts referring to earlier versions of CF and the neo-cron.xml file. This file was blank. I replaced with the file from my development server as per the posts.
    Can anyone advise why this problem occurred (and has occurred to others)? - I cannot afford to have scheduled tasks anything less than bullet-proof
    Regards
    Richard

    Could you please update the bug with your findings. This will definitely help everyone.
    Regards,
    Anit Kumar
    Re: ColdFusion 11 update 5 

  • ColdFusion 11 Scheduled Task & IIS 7.5

    I have a scheduled task registered in ColdFusion 11 Admin console. ColdFusion 11 is hosted over IIS 7.5. The schedule task is to run 1 perticular file from sub application of the main app. After upgrading application from ColdFusion 9 to ColdFusion 11, scheduled task stopped working.
    Note that, on IIS, main App has "Anonymous Authentication - Disabled" and "Windows Authentication - Enabled" ...
    While for sub app (which is being called by scheduled task) has "Anonymous Authentication - Enabled" and "Windows Authentication - Disabled".
    Moreover, when I try to run the scheduled task manually, it shows "Authentication falure" error in log file as
    HTTP Error 401.2 - Unauthorized You are not authorized to view this page due to invalid authentication headers.
    Any help would be greatly appriciated.
    Thank you.

    I've been fighting the identical problem since upgrading from CF8 on Windows Server 2008R2 with SSL enabled.  The main CF application's folder is set for Windows Authentication  This is happening on two different test servers- one running CF10 and the other running CF11, both of which had been running CF8 tasks with no problems.  IIS settings for the subfolder with the scheduled task have only Anonymous authentication enabled (which is set to use the Application Pool identity that the Application Pool's identity is set to).  I've set the file system permissions to allow Everybody, as well as IUSR, on the .CFM in question, and have tried using both HTTP and HTTPS forms of the URL in the scheduled task settings.
    I can use the same HTTP/HTTPS URL in a browser directly (without authenticating to the server's application first) and the .CFM runs flawlessly.  The CF http.log file shows Status Code=401, and saving the scheduled task output shows "IIS 7.0 Detailed Error - 401.2 - Unauthorized".  What has changed in CF10 and CF11 if the underlying IIS server settings that worked before haven't changed? 
    Thanks,
    Myron

  • Problem creating OIM 11g Custom Schedule task

    hi,
    i am creating custom schedule task in oim . while importing scheduletask metadata xml getting follwoing error.
    Problem invoking WLST - Traceback (innermost last):
    File "/app/Oracle/Middleware/Oracle_IDM1/server/bin/weblogicImportMetadata.py", line 21, in ?
    File "/app/Oracle/Middleware/oracle_common/common/wlst/mdsWLSTCommands.py", line 268, in importMetadata
    File "/app/Oracle/Middleware/oracle_common/common/wlst/mdsWLSTCommands.py", line 727, in executeAppRuntimeMBeanOperation
    File "/app/Oracle/Middleware/oracle_common/common/wlst/mdsWLSTCommands.py", line 697, in getMDSAppRuntimeMBean
    UserWarning: MDS-91002: MDS Application runtime MBean for "OIMMetadata" is not available. "importMetadata" operation failure.
    can any one help me.
    Thanks in Advance.

    Do the following:
    From the oracle home (oracle_idm1) run the command <ORACLE_OIM_HOME>\common\bin\wlst.cmd
    Run the connect() command and connect with the weblogic user to the to the oim managed server (port 14000)
    Use the following command change your from location to the directory where your files are at. The location should be one folder up from the base "db" directory : importMetadata(application='oim', server='oim_server1', fromLocation='e:/files', applicationVersion='*')
    -Kevin

  • Problem while running AD org lookup recon scheduled task

    Hi,
    I'm getting errors thrown when trying to run the AD org lookup recon scheduled task.
    using OIM 9.1.0.1 with the latest AD connector on JBoss.
    the error log -
    2009-10-21 16:00:01,399 DEBUG http://OIMCP.ADCS com.thortech.xl.integration.ActiveDirectory.tcADUtilLDAPController : connectToAvailableAD:: FINISHED
    2009-10-21 16:00:01,399 DEBUG http://OIMCP.ADCS com.thortech.xl.integration.ActiveDirectory.tcADUtilLDAPController : disconnect:: STARTED
    2009-10-21 16:00:01,414 DEBUG http://OIMCP.ADCS com.thortech.xl.integration.ActiveDirectory.tcADUtilLDAPController : disconnect:: FINISHED
    2009-10-21 16:00:01,430 ERROR STDERR Exception in thread "DefaultQuartzScheduler_Worker-7"
    2009-10-21 16:00:01,461 ERROR STDERR java.lang.NoClassDefFoundError: com/sun/jndi/ldap/ctl/PagedResultsControl
    2009-10-21 16:00:01,461 ERROR STDERR at com.thortech.xl.integration.ActiveDirectory.tcADUtilLDAPController.searchResultPageEnum(Unknown Source)
    2009-10-21 16:00:01,461 ERROR STDERR at com.thortech.xl.schedule.tasks.ADLookupReconTask.performReconciliation(Unknown Source)
    Can any one please help me ?
    Thanks

    Hi,
    Have placed ldapbp.jar in the Third Party Folde of OIM_Home Directory ?
    if not just add it and also add in the class path and the try.
    regards

  • Problem running AD Organization Lookup Recon scheduled task

    Hey all,
    I'm getting errors thrown in JBoss when trying to run the AD org lookup recon scheduled task.
    Running OIM 9.1.0.1 with the latest AD connector.
    here is the error JBoss is throwing...
    2009-10-21 16:00:01,399 DEBUG [OIMCP.ADCS] com.thortech.xl.integration.ActiveDirectory.tcADUtilLDAPController : connectToAvailableAD:: FINISHED
    2009-10-21 16:00:01,399 DEBUG [OIMCP.ADCS] com.thortech.xl.integration.ActiveDirectory.tcADUtilLDAPController : disconnect:: STARTED
    2009-10-21 16:00:01,414 DEBUG [OIMCP.ADCS] com.thortech.xl.integration.ActiveDirectory.tcADUtilLDAPController : disconnect:: FINISHED
    2009-10-21 16:00:01,430 ERROR [STDERR] Exception in thread "DefaultQuartzScheduler_Worker-7"
    2009-10-21 16:00:01,461 ERROR [STDERR] java.lang.NoClassDefFoundError: com/sun/jndi/ldap/ctl/PagedResultsControl
    2009-10-21 16:00:01,461 ERROR [STDERR]      at com.thortech.xl.integration.ActiveDirectory.tcADUtilLDAPController.searchResultPageEnum(Unknown Source)
    2009-10-21 16:00:01,461 ERROR [STDERR]      at com.thortech.xl.schedule.tasks.ADLookupReconTask.performReconciliation(Unknown Source)
    2009-10-21 16:00:01,461 ERROR [STDERR]      at com.thortech.xl.schedule.tasks.ADLookupReconTask.execute(Unknown Source)
    2009-10-21 16:00:01,461 ERROR [STDERR]      at com.thortech.xl.scheduler.tasks.SchedulerBaseTask.run(Unknown Source)
    2009-10-21 16:00:01,477 ERROR [STDERR]      at com.thortech.xl.scheduler.core.quartz.QuartzWrapper$TaskExecutionAction.run(Unknown Source)
    2009-10-21 16:00:01,477 ERROR [STDERR]      at Thor.API.Security.LoginHandler.jbossLoginSession.runAs(Unknown Source)
    2009-10-21 16:00:01,477 ERROR [STDERR]      at com.thortech.xl.scheduler.core.quartz.QuartzWrapper.execute(Unknown Source)
    2009-10-21 16:00:01,477 ERROR [STDERR]      at org.quartz.core.JobRunShell.run(JobRunShell.java:203)
    2009-10-21 16:00:01,493 ERROR [STDERR]      at org.quartz.simpl.SimpleThreadPool$WorkerThread.run(SimpleThreadPool.java:520)
    2009-10-21 16:00:01,493 ERROR [STDERR] Caused by: java.lang.ClassNotFoundException: ADP ClassLoader failed to load: com.sun.jndi.ldap.ctl.PagedResultsControl
    2009-10-21 16:00:01,493 ERROR [STDERR]      at com.thortech.xl.dataobj.tcADPClassLoader.findClass(Unknown Source)
    2009-10-21 16:00:01,493 ERROR [STDERR]      at java.lang.ClassLoader.loadClass(ClassLoader.java:307)
    2009-10-21 16:00:01,508 ERROR [STDERR]      at java.lang.ClassLoader.loadClass(ClassLoader.java:252)
    2009-10-21 16:00:01,508 ERROR [STDERR]      at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:320)
    2009-10-21 16:00:01,508 ERROR [STDERR]      ... 9 more
    I believe I have my AD connector configured properly.
    My domain is dc=test-oim,dc=local
    Any help would be greatly appreciated.
    Thanks in Advance.
    -Bryan

    You might have to add ldapbp.jar in the class path. either place it in jdk lib or oim ext lib directory.
    Hope this helps,
    Saggu

  • Problem updating Schedule Task Jar

    Hi,
    I have created a schedule task, uploaded the jar in server/scheduleTask folder.
    I was able to run the job without any issues. But after I updated the code, I recreated the the jar and replaced the existing jar.
    But I am not able to see my updated code.
    I have tried, using upload jar utility also.
    It only gets updated after I restart the server. Please provide any suggestions
    Thanks

    Did you follow the sequence mentioned by Bikash ?
    Did you remove old jar from Schedule Task folder ?
    Is it clustered environment ? If yes, verify at both the nodes.

  • Scheduled Tasks Stop Working Suddenly

    We have ColdFusion 10 installed on Windows Server 2008 with IIS 7.5.
    We are running one additional instance of Coldfusion seperate from the cfusion instance but on the same physical server. Our scheduled tasks, on this instance, had been running without any problems for quite some time now. Suddenly about 3 weeks ago after a server reboot our tasks stopped running. We have tried everything including writing the output to a log file. The only thing that gets written to this log file is "Connection Failed".
    Driling down into some of the other CF logs we are seeing that the job is getting triggered and then the job starts but it never gets completed.
    Nov 6, 2013 16:01:00 PM Information [DefaultQuartzScheduler_Worker-6] - Task DEFAULT.sampleTask triggered.
    Nov 6, 2013 16:01:00 PM Information [DefaultQuartzScheduler_Worker-6] - Starting HTTP request {URL='https://ru.ryerson.ca:443/ryecast/myTask.cfm', method='get'}
    The weird thing is that if we create the same task in the instance manager (cfusion) on the same server pointing to the same .cfm file it works fine. So we know the script does work - just not in the ColdFusion Instance we need to work in.
    Here is the successful log entry from cfusion logs.
    Nov 6, 2013 16:01:00 PM Information [DefaultQuartzScheduler_Worker-6] - Task DEFAULT.sampleTask triggered.
    Nov 6, 2013 16:01:00 PM Information [DefaultQuartzScheduler_Worker-6] - Starting HTTP request {URL='https://ru.ryerson.ca:443/ryecast/myTask.cfm', method='get'}
    Nov 6, 2013 16:01:00 PM Information [DefaultQuartzScheduler_Worker-6] - HTTP request completed  {Status Code=200 ,Time taken=124 ms}
    Has anyone else experience this kind of behaviour and if so is there a fix? I suspect some kind of corruption with the QuartzScheduler.

    Hi Marko,
    Did you ever find a solution to your problem?
    I'm having the same problem, but am running CF on redhat linux.
    I too think it's something with quartz getting itself tied in knots.
    In my http.log I can see the same as you, the task is triggered but it never completes. The strange thing I have found is that sometimes just resaving a task is enough to start it again.
    Here's the thread I started http://forums.adobe.com/message/5811970#5811970
    Cheers
    Simon

  • Scheduled Tasks -- Different Server posssible?

    I have the basic of a basic go daddy account and can't access
    the administrator page on my coldfusion. is there ANYWAY at all to
    use a scheduled task?

    Yeah I was thinking about those 2 things.
    The thing is, is that its a game I am making and people get
    $100 dollars every hour. It updates the time on their screen from
    the server saying i.e. "you get paid in 38 minutes" My local
    machine time differs from my coldfusion servers time and I want it
    to be consistant, if the user is going to get paid, they better get
    paid THAT SECOND.
    I was just wondering what other way I could do it, because my
    work around is just basically saying
    "everytime a user logs in, activate the call to the money
    machine and see if its pay time."
    the problem with that is if nobody logs in, the people that
    are already logged in want to be paid.
    Coldfusion = backend
    Flex = Frontend

  • CFHTTP and Scheduled Tasks not working after CF8 Upgrade

    I have recently upgraded to ColdFusion 8. My scheduled tasks
    in the ColdFusion Administrator do not work anymore. I ran them
    manually without the ColdFusion Administrator from the server and a
    local machine via Internet Explorer 7 and they work. I tried to run
    the same scheduled task with the same URL via CFHTTP in a CFM page
    and this does not work. The logs are not giving me any error
    messages. Has anyone run into this? Is this a bug with CF8 or even
    an IIS issue? ColdFusion is on a Windows 2003 SP2 server.
    Thanks,
    Mike

    <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
    <HTML dir=ltr><HEAD><TITLE>The page cannot be displayed</TITLE>
    <STYLE id=L_defaultr_1>A:link {
    FONT: 8pt/11pt verdana; COLOR: #ff0000
    A:visited {
    FONT: 8pt/11pt verdana; COLOR: #4e4e4e
    </STYLE>
    <META content=NOINDEX name=ROBOTS>
    <META http-equiv=Content-Type content="text-html; charset=UTF-8">
    <META content="MSHTML 5.50.4522.1800" name=GENERATOR></HEAD>
    <BODY bgColor=#ffffff>
    <TABLE cellSpacing=5 cellPadding=3 width=410>
      <TBODY>
      <TR>
        <TD vAlign=center align=left width=360>
          <H1 id=L_defaultr_2 style="FONT: 13pt/15pt verdana; COLOR: #000000"><ID id=L_defaultr_3><!--Problem-->The page cannot be displayed
    </ID></H1></TD></TR>
      <TR>
        <TD width=400 colSpan=2><FONT id=L_defaultr_4
          style="FONT: 8pt/11pt verdana; COLOR: #000000"><ID id=L_defaultr_5><B>Explanation: </B>There is a problem with the page you are trying to reach and it cannot be displayed.</ID></FONT></TD></TR>
      <TR>
        <TD width=400 colSpan=2><FONT id=L_defaultr_6
          style="FONT: 8pt/11pt verdana; COLOR: #000000">
          <HR color=#c0c0c0 noShade>
          <P id=L_defaultr_7><B>Try the following:</B></P>
          <UL>
            <LI id=L_defaultr_8><B>Refresh page:</B> Search for the page again by clicking the Refresh button. The timeout may have occurred due to Internet congestion.
    <LI id=L_defaultr_9><B>Check spelling:</B> Check that you typed the Web page address correctly. The address may have been mistyped.
    <LI id=L_defaultr_10><B>Access from a link:</B> If there is a link to the page you are looking for, try accessing the page from that link.
          </UL>
          <HR color=#c0c0c0 noShade>
          <P id=L_defaultr_11>Technical Information (for support personnel)</P>
          <UL>
            <LI id=L_defaultr_12>Error Code: 400 Bad Request. The data is invalid. (13)
            </UL></FONT></TD></TR></TBODY></TABLE></BODY></HTML>

  • CFMX 8 - Scheduled tasks timing out

    Hi,
    I just migrate from CFMX 6.1 tyo CFMX 8 and I have a problem
    with a scheduled task already existing. It's not that big of a task
    and but page is always timing out. I tried to re-create it but it
    still happens. I tried to put a RequestTimeOut in the link like
    this (
    http://www.myCFMpage.com//myTask.cfm?RequestTimeOut=50000)
    but it doesn't work either.
    Why does this happen ?? I thought that scheduled tasks never
    timed out ??
    Here's the message in my scheduler.log file :
    The request has exceeded the allowable time limit Tag: cfhttp
    Error while executing task The request has exceeded the
    allowable time limit Tag: cfhttp
    Thanks for your help
    Gilles

    cfgilles wrote:
    > RequestTimeOut in the link like this
    > (
    http://www.myCFMpage.com//myTask.cfm?RequestTimeOut=50000)
    but it doesn't work
    > either.
    This feature has been deprecated. You use the CF
    Administrator or the
    <cfsetting...> tag to adjust how long a template is
    allowed to run.
    >
    > Why does this happen ?? I thought that scheduled tasks
    never timed out ??
    Of course they time out. All a schedule task does is make a
    request
    with ColdFusion's internal browser at a scheduled time. Once
    this
    request is made, it is process as any other request and will
    time-out at
    the defined time as any other request would.
    It sounds like your <cfhttp...> request is not getting
    returned in the
    allowed time.

Maybe you are looking for

  • Cannot share library... "must deauthorize other computer".  I don't have another computer to deauthorize?

    I recently replaced my Dell desktop, wherre I had originally downloaded my itunes.  Purchased a Mac book and authorized to share music... no problem.  Just downloaded itunes onto new dell (which holds the main itunes library) and attempted to 'share'

  • Tax Condition not geeting updated

    Hi Friends, I have a problem of tax condition not appearing in the contracts. My condition is based on the combination (IN VK11) of Country/Customer/Material/Pricegroup. All my masters are maintained, my problem is the field price group in the header

  • Disappearing iptc fields - script to lift and stamp metadata

    Hi there, I don't know if this is a general thing or not with Aperture 2.1, but in my library (all referenced images on 3 external disks) lots of not really recent photos get their thumbnails and previews updated anytime I browse the library. Althoug

  • Photoshop Elements 9 - Editor is busy

    This command could not be completed because the editor was busy.  Please finish the current operation and try again.  Edit Photo or Fix Full Photo Edit through the Organizer brings up this message.  I can how ever close the organizer window and do a

  • Macbook Pro 2011 clamshell mode broken by latest software update?

    After installing the latest MacBook Pro software update and EFI update through Software Update in the evening May 4, I am unable to enter clamshell mode any more. It used to work before. After waking up in the clamshell mode, the machine promptly goe