Copy link to clipboard
Copied
Hi,
I have Coldfusion installed on linuxOS (as a code) on AWS instance. Trying to upgrade Coldfusion from 2018 to 2021 with the same working setting/code.
After upgrade, Schedule tasks is not working. When tried to manually run a task with output file, it doesnt run at all, and no logs are captured on scheduled tasks.
Scheduler package has been reinstalled, still not working.
In http logs, could see entries - which means it is not permission issue.
And the URL used in the task is HTTP - so not key issues.
Any idea on this issue ?
Copy link to clipboard
Copied
While it's understandable that you feel the problem is with the scheduled task mechanism, you should at least try the url in a cfhttp running on the same cf instance. Then dump the resulting cfhttp variable. What does it show? And how long does it take?
There can be various reasons why a call out of cf could vary between a cf2018 and a cf2021 instance, even from the same server. There could be jvm differences, beyond the differences in cf itself.
In fact, what jvm do you see cf running on in each cf version? It's on the cf admin settings summary page, for example. And what cf2021 update are you on (same page)?
(Yet another sanity check would be to setup a new task going to a url that you know works from the browser on the server.)
Copy link to clipboard
Copied
Hi Charles, I am delighted to see your response. Thank you!
I havent tried the first step, however below is the jvm versions and the update version used.
cf2021
Server Product ColdFusion 2021
Version 2021,0,03,329779
Update Level /opt/coldfusion/cfusion/lib/updates/chf20210003.jar Java Version 11.0.11
cf2018
Server Product ColdFusion
Version 2018,0,13,329786
Update Level /opt/coldfusion/cfusion/lib/updates/hf201800-0022340.jar Java Version 11.0.11
And i access the same url in the cf server, i am able to access it. It is just that the task doesnt run at all, if the url is not working i would see the same errors in the logs, isnt it. In my case, the url is working when access from the server, and i dont see any logs for error.
I would check on your first step and update the status.
Copy link to clipboard
Copied
Thanks for the update, Vino. And first, please call me Charlie. 🙂 Only my sister and a nephew still call me Charles. Long story.
So besides my first suggestion of testing a cfhttp call to the task url (very important), note also my last one of testing a task calling something else, like simply google.com. Let us know how those go.
Copy link to clipboard
Copied
As there is nothing in the logs, it implies the tasks are not running. It just might be that the tasks are not yet fully registered on CF2021.
To verify, open the CF2021 Administrator and go to the page Server Settings > Scheduled Tasks. Are the tasks registered there? If so, do they have the settings you expect? Verify that each setting is valid.
Do some simple tests. For example, what happens when you click on the button to run a task? Also, the edit button enables you to edit a task where necessary.
Copy link to clipboard
Copied
The scheduled task are definetly present. I see them in the console. I had also created some test tasks, and tried it running, it never runs.
Copy link to clipboard
Copied
Weird that ColdFusion fails to show any errors.
You could try:
<!--- testScheduler.cfm --->
<cfschedule
action="update"
task="testTask"
operation="HTTPRequest"
startDate="#now()#"
startTime="7:00 AM"
url="http://localhost:8500/testTask.cfm"
interval="60" />
<!--- testTask.cfm --->
<cfscript>
testString="The time is now: " & dateFormat(now(),"full") & " " & timeFormat(now(), "HH:nn:ss");
writedump(var=testString, format="html", output="#server.coldfusion.rootdir#/logs/scheduledTaskTestResult.html");
</cfscript>
As a result the file scheduledTaskTestResult.html should be created in the /cfusion/logs directory. Verify.
Copy link to clipboard
Copied
Hi
Could you please share me the link where i can download the jvm 11.0.15, i could see only 11.0.14 from the adobe downloads. Infact, i upgraded the jvm to 11.0.14 and tried with the steps in created scheduler and tasks. When accessed the url, no logs files got generated. I only see the below logs updated during the same time when accessed the testTask.cfm
Update.log
"Error","ajp-nio-127.0.0.1-8020-exec-3","05/10/22","18:56:10","CFADMIN","Not able to connect to Update Site: Connection Failure: Status code unavailable"
Application.log
"Information","ajp-nio-127.0.0.1-8020-exec-3","05/10/22","18:56:10","CFADMIN","Connection Failure: Status code unavailable"
httpd.log
"Information","ajp-nio-127.0.0.1-8020-exec-6","05/10/22","18:56:10","","Starting HTTP request {URL='https://www.adobe.com/go/coldfusion-updates', method='get'}"
In the meanwhile, please share me the jvm download for version 11.0,15, i would try with that version as well....
And one more thing which i see when comparing with working cf version (2018) and non working cf version (2021) in java and jvm section. Below is the class path updated in 2021 version, could you please review and update if anything missing here
{application.home}/lib/updates,{application.home}/lib/,{application.home}/gateway/lib/,{application.home}/wwwroot/WEB-INF/cfform/jars,{application.home}/bin/cf-osgicli.jar
Copy link to clipboard
Copied
I see this log as well in exception.log (removed project specific details)
Copy link to clipboard
Copied
I see this log as well in exception.log (removed project specific details)
"Error","ajp-nio-127.0.0.1-8020-exec-4","05/10/22","18:53:07","","File not found: /wwwroot/testScheduler.cfm The specific sequence of files included or processed is: /opt/coldfusion/cfusion/wwwroot/wwwroot/testScheduler.cfm'' "coldfusion.runtime.TemplateNotFoundException: File not found: /wwwroot/testScheduler.cfmat coldfusion.filter.PathFilter.invoke(PathFilter.java:165)at coldfusion.filter.IpFilter.invoke(IpFilter.java:45)at coldfusion.filter.LicenseFilter.invoke(LicenseFilter.java:30)
By @VinoD22934182q2do
The directory /wwwroot/ occurs twice. I expected it to occur just once.
Copy link to clipboard
Copied
Could you please share me the link where i can download the jvm 11.0.15, i could see only 11.0.14 from the adobe downloads.
By @VinoD22934182q2do
Adobe was probably working on the downloads page. Here it is: https://helpx.adobe.com/coldfusion/kb/coldfusion-downloads.html
Copy link to clipboard
Copied
And one more thing which i see when comparing with working cf version (2018) and non working cf version (2021) in java and jvm section. Below is the class path updated in 2021 version, could you please review and update if anything missing here
{application.home}/lib/updates,{application.home}/lib/,{application.home}/gateway/lib/,{application.home}/wwwroot/WEB-INF/cfform/jars,{application.home}/bin/cf-osgicli.jar
By @VinoD22934182q2do
I can confirm that that is the value of the flag -Dcoldfusion.classPath on my CF2021 installation
Copy link to clipboard
Copied
@VinoD22934182q2do , any update on this? Are your scheduled tasks now running?