ERROR: setup detected an error reading db.properties file required to continue installation (issue: TCP/IP Dynamic Port used)
Courtesy McAfee KB: KB53935
Environment
The following error reported when installing ePolicy Orchestrator 4.0 Patch 2:
1: Loading the following DLL for Use: [C:\DOCUME~1\ADMINI~1\LOCALS~1\Temp\{35976AC6-D42C-4E19-BFA5-8F77131DB81E}\ CommonSetup.DLL]
1: Setting the current directory to [C:\DOCUME~1\ADMINI~1\LOCALS~1\Temp\{35976AC6-D42C-4E19-BFA5-8F77131DB81E}].
1: VerifyOurDatabase function returned code [2].
Failed to connect to SQL Server [WIN2003E] with error code [0x80004005]
Description for error code is [[DBNETLIB][ConnectionOpen (Connect()).]SQL Server does not exist or access denied.]
Failed in connectToSQLServer with error code [183].
-
Access the Database Configuration page. If you are using the default settings, launch Internet Explorer and go to https://locahost:8443/core/config.
See KB51465 for more details on accessing the ePO database configuration page:
-
Note the Database server port value: ####
-
Launch Windows Explorer.
-
Navigate to the following location (default specified)
..\Program Files\McAfee\ePolicy Orchestrator\Server\conf\orion\ contains\db.properties
-
Right-click on db.properties and select Edit.
-
Make a note of port number specified in db.port=####
- Click File, Exit.
-
Click Start, Run, type cmd, then click OK.
-
Type telnet <SQL_ServerName> <PortNumber>, then press ENTER.
Example:
telnet SQLServer 1489The following error will be reported which confirms the dynamic port is the cause:
Connecting to <server_name>... Could not open a connection to host on port #### : Connect failed
-
Close the command window.
Method 1 - SQL Server Configuration Manager
-
Click Start, Programs, Microsoft SQL Server 2005, Configuration Tools, SQL Server Configuration Manager.
-
Click the IP Address tab.
-
Scroll down and locate the section IPALL.
-
Make a note of the TCP dynamic Ports value ####
-
Close the TCP/IP Properties window.
-
Click Start, Run, type: sqlservermanager.msc then click OK.
-
In the left pane under SQL Server Configuration Manager, expand SQL Server 2005 Network Configuration.
-
In the right pane right-click TCP/IP and select Properties.
-
Click the IP Address tab.
-
Scroll down and locate the section IPALL.
-
Make a note of the TCP dynamic Ports value ####
-
Close the TCP/IP Properties window.
-
Click Start, Run, type regedit, then click OK.
-
Navigate to the following key:
[HKLM\Software\Microsoft\Microsoft SQL Server\ePOSERVER\MSSQLServer\SuperSocketNetLib\TCP\]NOTE: This path shown above is only the default path within the default instance of the ePO 4.0 installation. This does not cover installations with different instances or local instance installations.
-
Make a note of the TcpPort key value: ####
-
Click Registry, Exit.
Method 1 - SQL Server Network Utility
-
Click Start, Programs, Microsoft SQL Server, Server Network Utility.
-
On the General tab, in the right pane select TCP/IP then click Properties.
-
Make a note of the Default Port value ####.
-
Click Start, Run, type: svrnetcn, then click OK.
-
On the General tab, in the right pane select TCP/IP then click Properties.
-
Make a note of the Default Port value ####.
-
CMD, Type telnet <SQL_Server_Name> ####
Where:
-
#### is the port number
-
<SQL_Server_Name> is the server hosting the SQL Server
The following will be displayed if the correct port is used:
You see a blank screen with a blinking cursor verifying that this is the correct port
-
-
Close the telnet session
-
Access the Database Configuration page. If you are using the default settings, launch Internet Explorer and go to https://locahost:8443/core/config.
See KB51465 for more details on accessing the ePO database configuration page:
-
Change the value of the Database server port value to the one obtained in the previous step (Identify what the current SQL TCP dynamic port setting:)
-
Click Apply.
-
Click test Connection.
-
Close the Configure Database Settings page.
-
Launch Windows Explorer.
-
Navigate to the following location (default specified)
..\Program Files\McAfee\ePolicy Orchestrator\Server\conf\orion\ contains\db.properties
-
Right-click on db.properties and select Edit.
-
Change the value of db.port= to value obtained in Step 1 via the SQL interface.
-
Click File, Save.
-
Click File, Exit.
-
Click Start, Run, type: services.msc then click OK.
-
Right-click on each of the Services below and select Stop:
McAfee ePolicy Orchestrator 4.0.0 Server
McAfee ePolicy Orchestrator 4.0.0 Event Parser
McAfee ePolicy Orchestrator 4.0.0 Application Server -
Right-click on each of the Services below and select Start:
McAfee ePolicy Orchestrator 4.0.0 Application Server
McAfee ePolicy Orchestrator 4.0.0 Event Parser
McAfee ePolicy Orchestrator 4.0.0 Server
-
Close the Services window.








