Search code examples
coldfusionscheduled-taskscoldfusion-2018

ColdFusion 2018 scheduled tasks not working


We have recently began migrating to ColdFusion 2018 Enterprise, but have found that the scheduled tasks do not work. Although the relevant cfm file works if run in the browser on the same server, if we try and run it as a scheduled tasks then it does not work (although it will say it has run successfully on the screen).

The log file just contains a single line for each run:

Information","DefaultQuartzScheduler_Worker-5","11/20/20","12:48:18","","Task default.takename triggered."

From what I understand there should be additional lines for the http request etc, however.

We have tried various usernames and passwords, including admin accounts to make sure it is not a permissions issue but nothing seems to make any difference.

We have also tried outputting to a file but nothing ever populates the file, although it does update the file's modified date with the date/time the tasks ran (or create a new file if necessary).

Does anyone have any experience with this type of problem?


Solution

  • This ended up being an IIS permissions issue. We resolved it by enabling anonymous authentication for both the directory that the relevant cfm files are contained in, as well as the "jakarta" directory that I believe ColdFusion uses for some integration requirements. Scheduled tasks then ran as expected.