Skip to main content
TripleClamp
Inspiring
August 24, 2022
Answered

Website won’t work after server restarted…CF 2021...but ok after restarting services....

  • August 24, 2022
  • 1 reply
  • 471 views

Just installed CF 2021, new server, migrated cfm code over. Setup external site in IIS. Removed the Default Site. Anytime the server is rebooted, we get a 500 error and a message cannot find component xxx.xxx.cfc. Once we restart the CF service, it all works until the next reboot. I tried both combinations of delayed start on CF and IIS but no change.  Re-reran ws-config (update and also remove/add).  No change.  Anyone seen this strange behavior? 

    This topic has been closed for replies.
    Correct answer TripleClamp

    Extending timeout did not work.  Final solution:

     

    Final solution, remove extends on the sub folder application.cfc and just include it with some manipulation. Old but works:
    Original:
    site\application.cfc
    site\ProxyApp.cfc
    <cfcomponent name="ProxyApp" extends="Application"> </cfcomponent>
    site\admin\application.cfc
    <cfcomponent extends="myApp.ProxyApp">
    ...
    </cfcomponent>
     
    Does not work when server restarted. Why this eventually works after several restarts of CF Server still unknown.
     
    New:
    site\admin\application.cfc
    <!--- Include the root application.cfc. This will include the CFComponent tags and their contents. No <cfcomponent> tag in this file --->
     
    <cfinclude template="../Application.cfc" />
     
    then rest of bennadel changes on renaming the functions, using super and the loop.

    1 reply

    Inspiring
    August 31, 2022
    TripleClamp
    Inspiring
    August 31, 2022

    The services do start when server rebooted, CF and World Wide Web Publishing.  Just installed latest Java Update but no change.  Still have to restart services after server is up.  I'll take a look at the doc. thX

    TripleClamp
    TripleClampAuthorCorrect answer
    Inspiring
    September 2, 2022

    Extending timeout did not work.  Final solution:

     

    Final solution, remove extends on the sub folder application.cfc and just include it with some manipulation. Old but works:
    Original:
    site\application.cfc
    site\ProxyApp.cfc
    <cfcomponent name="ProxyApp" extends="Application"> </cfcomponent>
    site\admin\application.cfc
    <cfcomponent extends="myApp.ProxyApp">
    ...
    </cfcomponent>
     
    Does not work when server restarted. Why this eventually works after several restarts of CF Server still unknown.
     
    New:
    site\admin\application.cfc
    <!--- Include the root application.cfc. This will include the CFComponent tags and their contents. No <cfcomponent> tag in this file --->
     
    <cfinclude template="../Application.cfc" />
     
    then rest of bennadel changes on renaming the functions, using super and the loop.