2021 Lockdown Installer nukes SQL Server Data Sources - Solved but root cause unknown. Any thoughts?
- November 30, 2023
- 3 replies
- 2014 views
Morning folks,
So in my wonderful time these last few days building CF2021 servers on windows server 2022 Standard I have encountered an intersting issue that is consistently happening with each build.
I have built 4 servers and my process is as folows (brief version)
1) Build, patch, onboard and join the new server to our domain
2) Install IIS with requisite Application Server components
3) Install CF 2021 using the GUI installer. The one I have comes with update 5 I believe , despite downloading a new from the adobe licensing site (maybe I'm missing soemthing but anyway)
4) Confirm CF Installed and service is running.
5) Update the JVM to open jdk 11-21 - ive had no issues running this. Restart CF of course
5) Download update 12 from package manager and install it by running \ColdFusion2021\jre\bin\java -Djdk.util.zip.disableZip64ExtraFieldValidation=true -jar C:\ColdFusion2021\cfusion\hf-updates\hotfix-012-330257.jar rather than the Download and Install Option as I find this is more reliable.
6) Comfrim I am on update 12 after a service restart and deploy a car archive from the current prod server which contains data sources and other good stuff.
7) Validate my data sources. They work fine.
😎 Setup my 2 IIS sites
9) run wsconfig.exe as an admin using default settings.
10) Check my sites work as expected and connect to my 2 sql server data sources. work flawlessly.
11) Validate the data sources in CF admin once again for good measure. Works.
12) run the CF 2021 auto lockdown installer with pretty much default settings. Installer completes with no errors.
13) Check my sites. No joy. Validate my data sources in CF Admin. No joy. Immediate eror message that the connection timed out. Add a new datasource suing the same details. no luck.
14) using Net Connect , I test the connection to the sql datasource. Works fine. Connect via powersell using Invoke-SQLCmd from the CF server. Works fine.
15 ) Check logs - only entries are minimal , cant connect, connection timed out.
16) check lockdown installer logs, no errors to speak of no fatals no severes, nada.
17 ) Ok check that SQL Server package is installed. It is
18 ) run cfpm.bat uninstall sqlserver, let it finsih then run cfpm.bat install sqlserver. restart coldfusion.
19) check data sources. All is well again. 🙂
I am assuming the auto lockdown corrupts the package maybe? Anybody experienced this? Is my process out of order maybe?
Hope you are all having a nice thursday.
Thanks
Patrick
