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

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.

  • 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

  • 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 

  • 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

  • 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>

  • Error in Scheduled Task in CF 10 Standard Edi.

    Hi Team,
    Currently we are facing an issue in Scheduled Tasks options in ColdFusion 10 while we attempting to schedule some tasks. We are using the same facility successfully in ColdFusion 7 Standard edition up to now and the Schedule Tasks works perfectly in that version.
    Also the same Scheduled task option we have tested successfully in CF 10 Trial version (Developer Edition) before we purchased the license. Once we updated with the Standard License all schedules were deleted from the list which we scheduled in Trial Version and when we have tried several options  to create new tasks, we continued to get the following message
    An error occurred scheduling the task.
    Advance Scheduling support is not available in this edition of ColdFusion server.
    Also as we have checked under Server Updates in CF 10, there is no available updates are listing. Kindly let us know is there any workaround on this issue.
    Best Regard's
    Madu

    Hi Priyank.
    We are on Update 9 and still I am getting the same error as shown in Madu's post. I cannot even update the schedule through the CFSchedule tag.
    This is our server information:
    Server Product
    ColdFusion
    Version
    ColdFusion 10,282462
    Edition
    Standard  
    Operating System
    Windows Server 2008 R2  
    OS Version
    6.1  
    Adobe Driver Version
    4.1 (Build 0001)
    What solution do you suggest?
    Thanks!

  • CF9 and Scheduled Tasks

    We recently migrated our web site to a new server running CF9 (64-bit, Windows 2003) and I had several scheduled tasks that run on a night basis. So I set up the tasks in the CF Administrator but when try and run them via the administrator I get an error and the in the Scheduler Log I get a "400 Bad Request". Now the URLs defined in the scheduler is a page on our site under our domain (e.g. http://www.lake-link.com/scheduledTasks/daily.cfm ect) (This is not a working URL but just an example for this). If I run the link in a web browser it works fine, but it continues to get a 400 bad request when run in the CF Administrator. Now when I change the URL in the CF Administrator to localhost (http://localhost/scheduledTasks/daily.cfm) it works fine but I do not want to do this as there will be other domains on this server and each of them will have their own scheduled tasks and local host can only be defined for a single site. Is this an IIS setting or security setting? Why would the URL be getting a 400 Bad Request from within CF and not when I run it via a browser? Any help is appreciated!!!

    Hi
    When you say you run the link in a browser, is this the browser on the server?  Does it work when you run the job from the browser on the server?
    Also, Is the target address password protected in any way?
    Cheers

  • CF10 ServerManager Not Reading Scheduled Tasks

    Hello,
    Is anyone else seeing this on startup / login to ColdFusion ServerManager?
    CONFIRM!
    "Failed to read the scheduled tasks from myServerName.
    Continue to read charting settings from myServerName?"
    I'm running Coldfusion Standard 10.0.5.283319 on a remote Win 2008R2 64 bit webserver.
    ServerManager version is v1 but this seems different than the one that came with CF9 where it worked just fine.
    Thanks,
    Jack Ring

    carl type3,
    Thanks for the reply. My error is shown immediately after I enter the master password. After that I can pull up the screen you are showing here. - Just not sure that I should try entering a scheduled task in or not bc - I might loose them. I have Standard version - and as far as I can tell none of the server settings can be backed up.

  • Scheduled Tasks Run Twice After Upgrade To MX7

    I've recently upgraded to CFMX7 and now my scheduled tasks
    are running twice. I've recreated all of the tasks, rebooted the
    server, and made sure that I'm on V 7.0.2 but nothing seems to
    help. Is there a solution for this out there?

    I've got a couple ideas. I haven't seen this before but this
    should be some stuff to try. There's a file in the ColdFusion lib
    directory called neo-cron.xml ... this contains an entry for each
    scheduled task.
    I'd be very careful about making any changes to this file
    directly but take a look at it. Are your scheduled tasks
    duplicated? If so you can either remove the duplicates manually if
    you're feeling brave, or try deleting the scheduled tasks in the cf
    admin and then recreate them. Perhaps that would get rid of the
    duplicates. If you don't see dupliactes in this file then somehow
    ColdFusion's process that runs the scheduled tasks is probably
    running once for the old install and once for the new one.
    Sorry I don't have any more definitive info but hope this
    helps point you in the right direction.
    -Matt MacDougall

  • Scheduled tasks not executing

    I can't get any scheduled tasks to execute on their own. When I run the file from my browser it works fine. I've put a viable username and password (Set by the System Admin.)
    The CF/Server specs are Windows 2003, IIS 6, CFMX version 7 7,0,1,116466
    This server is behind a firewall and is updated continually with all the IIS security patches etc.
    Has anyone had this problem or could offer any suggestions.
    Thanks in advance.

    I fogot to mention that the scheduler log reads:
    Apr 19, 2009 
    11:30 PM 
    Information 

    [Scheduled task name] Rescheduling for :Mon Apr 20 23:30:00 EDT 2009 Now: Sun Apr 19 23:30:00 EDT 2009
    Apr 19, 2009 
    6:50 PM 
    Information 

    [Scheduled task name] Activating2 on Sun Apr 19 18:50:46 EDT 2009 To run on Sun Apr 19 23:30:00 EDT 2009

  • 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

  • Scheduled Tasks CF 8.01

    I have ran into an issue where a scheduled task in CF Admin
    will say the task completed successfully but if I login to that
    specific address it will error out on that same .cfm page. My
    concern is that in the past when my developers have asked me to
    schedule a task my way of making sure it works was to see that
    "Task completed successfully message" Please help!!!

    ClaytonCf8 wrote:
    > I have ran into an issue where a scheduled task in CF
    Admin will say the task
    > completed successfully but if I login to that specific
    address it will error
    > out on that same .cfm page. My concern is that in the
    past when my developers
    > have asked me to schedule a task my way of making sure
    it works was to see that
    > "Task completed successfully message" Please help!!!
    >
    Unfortunately that 'Task completed successfully message' does
    not mean
    much about any actual work. All a scheduled task is after all
    is a
    scheduled HTTP request to some URL. All that successful
    message means
    is that the URL was requested from a web server and
    ColdFusion received
    a response, any response with an HTTP status code of 200,
    from the web
    server.
    A ColdFusion error message is a valid http response with a
    status code
    of 200 as far as a web server is concerned. To know if the
    request
    template actually did what it was supposed to do one needs to
    look out
    the output. That is where the Publish 'Save output to a file'
    and
    'file' controls come in. You can save the output generated by
    the
    request URL to a location for review after the fact to see if
    any error
    message was received. Having the scheduled task generate log
    data
    either on it's own or into one of the ColdFusion logs is
    useful as well.

  • Can scheduled tasks be set up using a Java Object?

    I need to run a script that will create a scheduled task in
    the Coldfusion Administrator CF8. I have used a Java Object to
    register a custom tag and I am wondering if you can do the same
    thing with a scheduled task.

    No special java class/object is needed actually. ColdFusion
    offers a built-in tag for this, <cfschedule>.
    Read more here:
    http://livedocs.adobe.com/coldfusion/8/Tags_r-s_11.html

Maybe you are looking for

  • Stackoverflow error when creating a new project

    Hi, When I tried to create a new project, I got a java.lang.StackOverflowError. I did try to increase the heap size in odiparams.bat but didn't work: set ODI_INIT_HEAP=64m set ODI_MAX_HEAP=512m I also tried both jre 1.4.2 and jdk1.5.0_06. Both got sa

  • Graphical-mapping

    Hi,    plz tell me about graphical-mapping. with warm regards. vikash

  • Double click event to be captured for multiple fields in the same screen

    Hi all, I am doing one module pool development in which the requirement for one screen is like when I click on a particular field (BP number), it should go to a particular transaction and when I click on Loan number on the same screen, it should goto

  • Nokia 603 cannot turn on , problem with ON button

    Hi, I'd appreciate if anyone could help me My nokia603 ON button works fine when the phone is already on, meaning i can press it to switch the phone off, but when the phone is off, and try to turn it on again by pressing the on button, it doesnt resp

  • How to add an existing content database to new Site collection

    Hi All, Can anyone help to figure out how can I add existing content database to a new site collection in SharePoint 2013 foundation. We have more than 40 site collections under one web application, and only one site collection is returning 404 error