Exit
  • Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
  • 한국 커뮤니티
0

Coldfusion 9 scheduled task not running

New Here ,
Mar 23, 2010 Mar 23, 2010

I have a scheduled task that will run manually  - clicking the run the task icon next to the scheduled task name in the CF administrator and in a browser.  However, if I schedule it to run in the evening or even in a few minutes it does not run.    I do not get any error messages in the logs.  I have renamed the CF administrator folder.

I would like to know where to start looking to start debugging this.

As always, thanks for your help!

6.9K
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines

correct answers 1 Correct answer

Valorous Hero , Mar 24, 2010 Mar 24, 2010

Don't forget to inspect the schedule task logs for useful data about what tasks ran when.

If you don't have these logs, turn them on in the Administrator.

Translate
Valorous Hero ,
Mar 24, 2010 Mar 24, 2010

Use the 'save output to a file' feature of the schedule task set up.

Look at that file after ColdFusion tries to run the task.

96.3563% of the time that I hear the lament, "I can run the schedule task in the browser, but ColdFusion doesn't" it is a URL that is configured to use Windows Integrated Security.

When you run the task, your creditionals are passed to the web server and it allows that url to be requested.  When ColdFusion runs the task, no creditionals are passed and the web server denies the request to url.  In this situation, when you look at the saved output file, you will see the output from the web server that access was denied.  But that is not an error to ColdFusion.  All ColdFusion knows about a schedule task is that it is making an http request and expecting and http response.  That error message from the web server is a valid http response, ColdFusion has no idea that it is not the response that you want.  ColdFusion is not a Windows product, it can not participate in a Windows Integrated Security exchange.

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
New Here ,
Mar 24, 2010 Mar 24, 2010

Thanks alot!  I really appreciate the help you have given me on the forum!

But you know my questions are never that simple...

It did run last night for the first time and the only difference is that we forgot to rename the administrator folder back to it's "special" name.  I'll check on it tomorrow now that we have renamed it and see what happens.

And I will have the admin guy check on what you suggested.

Thanks!

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Valorous Hero ,
Mar 24, 2010 Mar 24, 2010

Don't forget to inspect the schedule task logs for useful data about what tasks ran when.

If you don't have these logs, turn them on in the Administrator.

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
New Here ,
Mar 25, 2010 Mar 25, 2010
LATEST

Thank you!

It ran again last night.  Must have triggered something when we were trying out different things...

I just set it up to log the scheduled tasks.  I'm sure that will help tremendously in debugging in the future.

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Resources