Skip to main content
Inspiring
February 20, 2009
Question

Scheduled tasks in CF8

  • February 20, 2009
  • 2 replies
  • 2877 views
I am trying to run some scheduled tasks on CF8, but keep getting the following error:

There was an error running your scheduled task. Reasons for which scheduled tasks might fail include:

The scheduled task is paused
The URL is a redirection URL.
The URL is protected by IIS NT Challenge/Response or Apache .htaccess password. The Username and Password text fields for editing a scheduled task are intended to support Basic Authentication only.
The Domain Name lookup failed. Try using the IP address of the domain whenever possible.
The URL is an SSL site, but the SSL port was specified incorrectly.
The Web site is not responding.
The directory specified for published results does not exist.

Running the task by visiting the URL works fine.
I have set IIS to 'Enable anonymous access' for the directory containing the files to by run by the scheduled task.

Anyone have any ideas?

Thanks,
Paul
    This topic has been closed for replies.

    2 replies

    Inspiring
    February 23, 2009
    Outside5.com wrote:
    > Running the task by visiting the URL works fine.
    > I have set IIS to 'Enable anonymous access' for the directory containing the
    > files to by run by the scheduled task.
    >


    But have you *disabled* any other security settings? If any other
    security option is selected as well as 'anonymous access' then that will
    over ride anonymous access and would easily block scheduled tasks.
    Inspiring
    February 20, 2009
    Outside5.com wrote:
    > Anyone have any ideas?

    Any hints in the CF or IIS logs ?

    --
    Mack
    Inspiring
    February 20, 2009
    Cheers Mack.

    There is nothing under todays date in the application, eventgateway or server log files in coldfusion, and nothing for today in Event Viewer in windows.

    Anywhere else I should be looking?
    Inspiring
    February 20, 2009
    Looking into the scheduler log (was not activated initially) I can see the following happening each time my task is due to run:

    [myTaskName] Executing at Fri Feb 20 12:56:44 GMT 2009

    [myTaskName] Rescheduling for :Fri Feb 20 12:57:45 GMT 2009 Now: Fri Feb 20 12:57:04 GMT 2009

    Connection Failure: Status code unavailable

    Error while executing task Connection Failure: Status code unavailable