Summary
How to configure FlexNet Manager Suite with a custom SQL Server port, instead of the default 1434.
Symptoms
When installing FlexNet Manager Suite, you are asked to enter the Database information at the beginning of the install when running the Config.ps1 PowerShell script.
The following error may be received at the step "Configure the system" during the initial install if using a non-default SQL Server port (that is, not port 1434):
establishing a connection to SQL Server. The server was not found or was not accessible. Verify that the instance name
is correct and that SQL Server is configured to allow remote connections. (provider: TCP Provider, error: 0 - No
connection could be made because the target machine actively refused it.)"
At C:\Temp\FlexNet Manager Suite Installer for 2015 R2 SP4\Support\DatabaseHelper.ps1:19 char:2
+ $sqlConn.Open()
+ ~~~~~~~~~~~~~~~
+ CategoryInfo : NotSpecified: (:) [], ParentContainsErrorRecordException
+ FullyQualifiedErrorId : SqlException
Cause
This problem occurs because the Config.ps1 PowerShell script provided with FlexNet Manager Suite 2019 R1 and earlier is unable to handle a non-default port be specified in the SQL Server instance details.
Resolution
The Host, Instance and Port values in the Database configuration screen can be entered in multiple formats based on your environment while using a single quote to escape the comma.
If the database configuration pop-up no longer appears, the wrong settings could have been already saved in the registry and you can use the ForceUpdateConfig argument at the end of the Powershell script command.
Here is an example of the most common scenarios:
- Using the default SQL Server port 1434 with no custom Instances: ServerName
- Using the default SQL Server port 1434 with a custom Instance: ServerName\InstanceName
- Using a custom SQL Server port and default Instance: 'ServerName,PortNumber' (pay attention to the single quotation in this setup)
- Using a custom SQL Server port and a custom Instance: 'ServerName\InstanceName,PortNumber' (pay attention to the single quotation in this setup)
Here is a screenshot of scenario #4:
Workaround
As a workaround if the above was not successful, you can also modify the DatabaseHelper.ps1 PowerShell script directly to hardcode the power number.
Modify "$Server" variable in "DatabaseHelper.ps1" so that the variable contains a correct server name and a port number.
E.g: $connectionString = "Server=ServerHostnameGoesHere,PortNumberGoesHere;Database=$Database;Trusted_Connection=yes;"
In addition when executing the updated scripts due to changing the "DatabaseHelper.ps1" the PowerShell execution policy needs to be modified to bypass the sign checking.
This can be done as follows by changing the execution policy before running the scripts:
Set-ExecutionPolicy -Scope Process -ExecutionPolicy Bypass
Scope limits the execution policy to the single PowerShell process and Bypass does not perform the signature checks.
Additional Information
This defect is being tracked under reference IOJ-1728269 and FNMS-23502.
This problem was fixed in the FlexNet Manager Suite 2019 R2 release.
Related Articles
FlexNet agent (ndtrack) may trigger a security software warning due to PowerShell script execution containing unusual char… 74Number of Views SQL Server edition not recognized if SQL Server WMI provider is inaccessible 114Number of Views Errors may be reported when using SAP-related functions in the web UI due to failed configuration of the FNMSAPPortalKey s… 4Number of Views Scan Microsoft SQL Server PowerShell script overview 8Number of Views Restore FlexNet Manager Suite databases on a new SQL Server instance 61Number of Views
Hi, I am Reva - Ask me anything.
No new updates
Thanks for the feedback!
Your feedback has been saved.Rate this response:
Add Additional feedback ( Optional )
Are you sure you want to cancel
the case creation?
Are you sure you want to cancel the case creation?
Are you sure you want to close this case
| Products | Region | Phone Numbers |
|---|---|---|
| FlexNet Operations FlexNet Embedded FlexNet Publisher FlexNet Connect FlexNet Code Insight InstallAnywhere InstallShield |
North America * |
+1 630-332-2513 (toll) +1 877-279-2853 (toll-free in North America) |
| Europe * |
+44 1925 944367 (toll) +44 800 047 8642 (toll-free in Europe) |
|
| Japan * | +81 3-4540-5335 (select option 2) | |
| Australia * |
+61 3 9895 2177 +61 1800 560 603 (toll-free in Australia) |
|
|
Usage Intelligence (formerly
Revulytics) Compliance Intelligence |
Please use the Case Portal to submit your support ticket or reach out to your Revenera contact. | |
Case id: 00001065
Activity: Status change: 2 hours ago