Skip to main content
February 5, 2013
Question

File not found error from scheduler

  • February 5, 2013
  • 2 replies
  • 1429 views

Hi,

        We have a scheduler file with .cfa extension  in the cf scheduler  which trigger some mails to certain recipients on execution.

At the bottom option fo the scheduled task, we have checked the option to 'save output to file' and has given the file

path. On direct execution of the given url, the  file is executed successfully and mails are fired.

But while trying to execute the same via scheduler it is not firing the mails. On investigation of the output file,

found the error message 'File not found'.

Is it possible that the file get  executed when directly browsing the url and shows 'file not found' error

while executing via cf scheduler?(CF 8 is used.)

This topic has been closed for replies.

2 replies

Legend
February 5, 2013

What do you mean by "direct execution"? Are you simply double-clicking the file in Windows Explorer or typing in the file name via the command prompt (assuming Windows). Or are you executing the http://... command in your browser? My guess is that your web server is not configured, or is being blocked via a firewall, to execute your .cfa page. (sorry, I'm not familiar what a .cfa is so this entire post may be garbage)

Inspiring
February 5, 2013

If that happened to me, the first thing I would check is that I entered the path correctly.

February 6, 2013

To be more specific,

the url format given in the cf admin scheduler is like this:

"http://www.domainname.com/myfolder/myfile.cfa"

A file path to log the output is also given to publish.

If we copy the above url to a browser and execute, the file gets executed and mails are fired.

If we set the interval or run the scheduler from the administrator,mails are not sent.On examination of log file given in the scheduler section, it is

showing error '/myfolder/myfile.cfa' file not found.

February 6, 2013

Just to add on to the above,

On my initial investigation, I found that  "

A ColdFusion scheduled task is a HTTP request to a CFML file done at a scheduled time".

While I added a cfdump to the .cfa page to view the cfhttp structure of the url given in the cf admin,it displayed' file not found' error even though the file was executed and mails were sent on copy and browsing the url. This is the same error logged in the publish file while the file is executed via coldfusion scheduler.

What are the possibilities that causes cf scheduler  to  prevent having a cfhttp call?