Copy link to clipboard
Copied
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!
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.
Copy link to clipboard
Copied
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.
Copy link to clipboard
Copied
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!
Copy link to clipboard
Copied
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.
Copy link to clipboard
Copied
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.