gpt4 book ai didi

ColdFusion 2018 scheduled tasks not working(ColdFusion 2018计划任务不工作)

转载 作者:bug小助手 更新时间:2023-10-28 13:56:44 26 4
gpt4 key购买 nike



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).

我们最近开始迁移到ColdFusion 2018 Enterprise,但发现计划任务不起作用。虽然如果在同一台服务器上的浏览器中运行相关的CFM文件,但如果我们尝试将其作为计划任务运行,则它不会工作(尽管它会在屏幕上显示它已成功运行)。


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.

然而,据我所知,http请求等应该有额外的行。


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?

有谁有处理这类问题的经验吗?


更多回答

Couple of comments; From what I understand there should be additional lines for the http request it will only log these if you have enabled the logging in the administrator. We have also tried outputting to a file but nothing ever populates the file scheduled tasks will only write output if you are writing output from the template that is being run. If it does not output anything then the logfile will be empty. Add some debugging/output lines to the template and see if you can narrow down the issue.

几条评论;据我所知,http请求应该有额外的行,只有当您在管理员中启用了日志记录时,它才会记录这些行。我们还尝试了输出到文件,但从来没有填充该文件计划任务只会写入输出,如果您是从正在运行的模板写入输出。如果它不输出任何内容,则日志文件将为空。向模板中添加一些调试/输出行,看看是否可以缩小问题的范围。

I have faced an issue before when the saved username and password get populated in the username/password fields in the scheduled task edit page. If we a username/password when it is not needed schedule task will break. Also show that it was run successfully in the logs. So you might want to make sure these fields are empty. image

当保存的用户名和密码填充到计划任务编辑页面的用户名/密码字段中时,我以前遇到过一个问题。如果我们在不需要的时候输入用户名/密码,计划任务将中断。在日志中还显示它已成功运行。因此,您可能希望确保这些字段为空。图像

@Miguel-F, thank you, I have enabled logging in the administrator but I am only getting one extra line: [test] Executing because of user request at Mon Nov 23 09:42:02 AEDT 2020

@Miguel-F,谢谢您,我已经在管理员中启用了登录,但由于用户在Mon Nov 23 09:42:02 AEDT 2020的请求,我只得到了额外的一行:[测试]正在执行

@rrk, I tried removing the username and password but unfortunately it doesn't seem to make any difference.

@rrk,我尝试删除用户名和密码,但不幸的是,这似乎没有任何影响。

@Miguel, have your tried running your task's URL from a browser on the host server? I've experienced similar CF Task Scheduler behavior because of network loopback issues on the host server.

@Miguel,您是否尝试过从主机服务器上的浏览器运行您的任务URL?由于主机服务器上的网络环回问题,我也经历过类似的CF任务调度器行为。

优秀答案推荐

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.

这最终导致了IIS权限问题。我们通过为包含相关CFM文件的目录以及“Jakarta”目录启用匿名身份验证解决了这个问题,我相信ColdFusion将使用该目录来满足某些集成需求。然后,计划任务按预期运行。


更多回答

26 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com