Skip to main content
Inspiring
September 1, 2025
Answered

ColdFusion 2023 scheduled tasks all fail with 'Connection failure'

  • September 1, 2025
  • 1 reply
  • 1035 views

These tasks have been running nightly without trouble. Then we installed a new SSL cert on IIS 10, and now they all fail. I can run each task from my browser, but if I try to run one from the task scheduler, now it fails. Restarting CF after the new cert does not fix it. ColdFusion serves the many pages on our site just fine (SSL is required), it just won't run any scheduled task now.

    Correct answer carl type3

    For our ColdFusion, as reported in CFAdmin from the 'i' icon, under JVM Details, the 'Java Home' is: C:\ColdFusion2023\jre  . We use a tech firm who has quite a bit of experience in ColdFusion to handle difficult things, like setting up this server last fall, and troubleshooting this problem. There was a problem with the password on the keystore in cacerts at first, but they did some stuff there yesterday, and today at about 10:41 AM server time one of the techs was able to list cacerts, then saw an error, then updated it and felt that it was good. He spoke with me about it. Even though some cfhttp calls that were broken now work, the ones for the scheduled tasks still do not work. This is true for every task, and these tasks have not been changed. I see that the cacerts file in C:\ColdFusion2023\jre\lib\security shows updated at that time. So I think he got the right file. Whether everything is just right, I don't know.

    Re: updating, I tried that, using the updater in CFAdmin a few nights ago. I updated to update 15. It broke everything. It broke ColdFusion and even CFAdmin now gave a 500 error, even though while doing the update, it indicated that it successfully stopped CF and then restarted it, and reported success, as if everything is perfect. One of these techs had to manually roll back that failed update, which put us back to where we were, on update 5, the one originally installed. He then tried updating one version at a time, and only the first one worked. Beyond that, CF broke, even though CFAdmin did not break again. So he reverted back to update 5. The update process is not very good.


    Hello,

     

    JDK 17.0.16 has the new Sectigo root CA names. Refer:
    https://bugs.openjdk.org/browse/JDK-8359170

     

    Follow posted suggestion to install JDK 17.0.16 and use that with CF instead of the one in CF\jre then your schedule task problem will solve.

     

    Regards, Carl.

     

    1 reply

    Charlie Arehart
    Community Expert
    Community Expert
    September 2, 2025

    I think you'll find first that it's not about scheduled tasks, but that there will be a perhaps simple solution (different what some may propose). 

     

    1) First, in terms of identifying perhaps the actual problem, create a simple test cfm page that does a cfhttp to the same https url as the task. It will likely fail also, which shows that it's not about scheduled tasks, per se. 

     

    Then you can cfdump the cfhttp variable to see what error it reports. Tell us that. 

     

    2) My suspicion is that the new cert is of a sort that Cf has trouble using for https. More specifically, it's likely not cf itself but the jvm cf runs on.

     

    So tell us what cf version and update you're running, and what jvm version that cf is using. You can find both in the cf admin "settings summary" page.

     

    Some will jump to suggesting you import the cert into the jvm that Cf uses.

     

    3) My experience is that instead all that's needed may be to update that jvm that Cf is using.

     

    And I don't mean go from one major jvm version to another, but one point release of that current jvm to a more recent one.

     

    I discuss all this more in a blog post here:

    https://coldfusion.adobe.com/2019/06/error-calling-cf-via-https-solved-updating-jvm/

     

    Let us know if this helps, or if it does not, first for getting a cfhttp test to work, then for your scheduled tasks. 

    /Charlie (troubleshooter, carehart. org)
    DNomerAuthor
    Inspiring
    September 2, 2025

    You are quite the resource for these thorny CF internal issues, Charlie. Some into:

    CF version: 2023.0.05.330608

    Tomcat version: 9.0.78.0

    Windows 10.0 on server

    JVM Java version: 17.0.6  

    JVM version: 17.0.6+9-LTS-190  by Oracle

    I have never done a jvm update before, but I can follow cookbook directions.

    DNomerAuthor
    Inspiring
    September 2, 2025

    Somehow this forum lost my last post. Here is the test results as you requested.