Installing stand-alone IDM 14.5 Provisioning Server errors out with below errors reported in install log:
Install, com.ca.etrust.install.admin.ConfigureAdminServer, dbg, Waiting for im_ps to start up... 601
Install, com.ca.etrust.install.admin.ConfigureAdminServer, dbg, Checking if Server is Contactable
Install, com.ca.etrust.install.admin.ConfigureAdminServer, dbg, Creating InitialDirContext for Environment 'env'
Install, com.ca.etrust.install.admin.ConfigureAdminServer, dbg, Naming Exception in CreateContext: javax.naming.CommunicationException: localhost:20389 [Root exception is java.net.ConnectException: Connection refused]
Install, com.ca.etrust.install.admin.ConfigureAdminServer, dbg, Server: localhost:20389 SSL: false
Install, com.ca.etrust.install.admin.ConfigureAdminServer, dbg, DN: cn=etaserver,dc=eta Password: XXXXX
Install, com.ca.etrust.install.admin.ConfigureAdminServer, dbg, Exception in isServerContactable(). Reason: javax.naming.NamingException: javax.naming.CommunicationException: localhost:20389 [Root exception is java.net.ConnectException: Connection refused]
Install, java.lang.String, msg1, WARNING: Timeout occured attempting to contact server..
...
...
AT THIS POINT THE IMPD FAILS TO START DURING THE INSTALL PROCESS after 600 seconds and it switches to port 20390
...
...
Install, com.ca.etrust.install.admin.ConfigureAdminCommon, dbg, Using TLS protocol...
Install, com.ca.etrust.install.admin.ConfigureAdminCommon, dbg, Creating InitialDirContext for Environment 'env'
Install, com.ca.etrust.install.admin.ConfigureAdminCommon, dbg, Naming Exception in CreateContext: javax.naming.CommunicationException: <hostname>:20390 [Root exception is java.net.ConnectException: Connection refused]
Install, com.ca.etrust.install.admin.ConfigureAdminCommon, dbg, Server: <hostname>:20390 SSL: false
Install, com.ca.etrust.install.admin.ConfigureAdminCommon, dbg, DN: cn=etaserver,dc=eta Password: XXXXX
Install, com.ca.etrust.install.admin.ConfigureAdminCommon, dbg, Cannot bind via SSL, switching to non-SSL mode now.
Install, com.ca.etrust.install.admin.ConfigureAdminCommon, dbg, Creating InitialDirContext for Environment 'env'
Install, com.ca.etrust.install.admin.ConfigureAdminCommon, dbg, Naming Exception in CreateContext: javax.naming.CommunicationException: <hostname>:20390 [Root exception is java.net.ConnectException: Connection refused]
Install, com.ca.etrust.install.admin.ConfigureAdminCommon, dbg, Server: <hostname>:20390 SSL: false
Install, com.ca.etrust.install.admin.ConfigureAdminCommon, dbg, DN: cn=etaserver,dc=eta Password: XXXXX
Install, com.ca.etrust.install.admin.ConfigureAdminCommon, err, Error importing LDIF file '/products/identityminder/XXX/CA/IdentityManager/ProvisioningServer/data/useradd_etaadmin.tmp'. Reason: javax.naming.NamingException: javax.naming.NamingException: javax.naming.CommunicationException: <hostname>:20390 [Root exception is java.net.ConnectException: Connection refused]
Install, com.ca.etrust.install.InstallUtils, msg1, ---- BEGIN LOG FILES ----
...
...
...
Install, com.ca.etrust.install.InstallUtils, msg1, /products/identityminder/XXX/CA/IdentityManager/ProvisioningServer/logs/im_ps.log: [] reading config file /products/identityminder/XXX/CA/IdentityManager/ProvisioningServer/data/tls/server/fips.conf
Install, com.ca.etrust.install.InstallUtils, msg1, /products/identityminder/XXX/CA/IdentityManager/ProvisioningServer/logs/im_ps.log: TLS: Supported TLS protocols: TLSv1_2
Install, com.ca.etrust.install.InstallUtils, msg1, /products/identityminder/XXX/CA/IdentityManager/ProvisioningServer/logs/im_ps.log: [] *** Calling lutil_detach(fork level 0)
Install, com.ca.etrust.install.InstallUtils, msg1, /products/identityminder/XXX/CA/IdentityManager/ProvisioningServer/logs/im_ps.log: [] ***********************************
Install, com.ca.etrust.install.InstallUtils, msg1, /products/identityminder/XXX/CA/IdentityManager/ProvisioningServer/logs/im_ps.log: [] ***********************************
Install, com.ca.etrust.install.InstallUtils, msg1, /products/identityminder/XXX/CA/IdentityManager/ProvisioningServer/logs/im_ps.log: [] *** ***
Install, com.ca.etrust.install.InstallUtils, msg1, /products/identityminder/XXX/CA/IdentityManager/ProvisioningServer/logs/im_ps.log: [] *** The slapd daemon is forking ***
Install, com.ca.etrust.install.InstallUtils, msg1, /products/identityminder/XXX/CA/IdentityManager/ProvisioningServer/logs/im_ps.log: [] *** ***
Install, com.ca.etrust.install.InstallUtils, msg1, /products/identityminder/XXX/CA/IdentityManager/ProvisioningServer/logs/im_ps.log: [] ***********************************
Install, com.ca.etrust.install.InstallUtils, msg1, /products/identityminder/XXX/CA/IdentityManager/ProvisioningServer/logs/im_ps.log: [] ***********************************
Install, com.ca.etrust.install.InstallUtils, msg1, /products/identityminder/XXX/CA/IdentityManager/ProvisioningServer/logs/im_ps.log: [] starting daemon...
Install, com.ca.etrust.install.InstallUtils, msg1, /products/identityminder/XXX/CA/IdentityManager/ProvisioningServer/logs/im_ps.log: [] connections_init: allocation of 4096 connection array entries successful
Install, com.ca.etrust.install.InstallUtils, msg1, /products/identityminder/XXX/CA/IdentityManager/ProvisioningServer/logs/im_ps.log: [] daemon: listen(ldap://<hostname>:20389, 5) failed errno=98 (Address already in use)
Install, com.ca.etrust.install.InstallUtils, msg1, /products/identityminder/XXX/CA/IdentityManager/ProvisioningServer/logs/im_ps.log: [] slapd stopped.
...
...
...
THE ERROR AND ROLLBACK STARTS
...
...
Install, com.ca.etrust.install.admin.ConfigureAdminServer, err, An error occurred and product installation failed. Look at the log file /tmp/imps_server_install.log for details.
Install, com.ca.etrust.install.admin.ConfigureAdminServer, err, ProductException: (error code = 200; message="Java error"; exception = [ProductException: (error code = 200; message="Java error"; exception = [javax.naming.NamingException: javax.naming.NamingException: javax.naming.CommunicationException: <hostname>:20390 [Root exception is java.net.ConnectException: Connection refused]])])
STACK_TRACE: 14
ProductException: (error code = 200; message="Java error"; exception = [ProductException: (error code = 200; message="Java error"; exception = [javax.naming.NamingException: javax.naming.NamingException: javax.naming.CommunicationException: <hostname>:20390 [Root exception is java.net.ConnectException: Connection refused]])])
at com.ca.etrust.install.admin.ConfigureAdminServer.ServerConfigWizard(ConfigureAdminServer.java:1040)
at com.ca.etrust.install.admin.ConfigureAdminServer.install(ConfigureAdminServer.java:206)
at com.installshield.product.service.product.PureJavaProductServiceImpl.installProductAction(PureJavaProductServiceImpl.java:1916)
at com.ibm.wizard.platform.linux.LinuxProductServiceImpl.installProductAction(LinuxProductServiceImpl.java:552)
at com.installshield.product.service.product.PureJavaProductServiceImpl$InstallProduct.getResultForProductAction(PureJavaProductServiceImpl.java:5195)
at com.installshield.product.service.product.InstallableObjectVisitor.visitComponent(InstallableObjectVisitor.java:369)
at com.installshield.product.service.product.InstallableObjectVisitor.visitInstallableComponents(InstallableObjectVisitor.java:333)
at com.installshield.product.service.product.InstallableObjectVisitor.visitProductBeans(InstallableObjectVisitor.java:133)
at com.installshield.product.service.product.PureJavaProductServiceImpl$InstallProduct.install(PureJavaProductServiceImpl.java:4563)
at com.installshield.product.service.product.PureJavaProductServiceImpl$Installer.execute(PureJavaProductServiceImpl.java:3758)
at com.installshield.wizard.service.AsynchronousOperation.run(AsynchronousOperation.java:41)
at java.lang.Thread.run(Thread.java:745)
Install, com.ibm.wizard.platform.linux.LinuxProductServiceImpl, msg1, uninstalling Configure Admin Server (configureServer)
Install, com.ca.etrust.install.admin.ConfigureAdminServer, msg1, ConfigureAdminServer:uninstall() - start
They key messages here is "daemon: listen(ldap://<hostname>:20389, 5) failed errno=98 (Address already in use)"
The above means the fact that the /etc/hosts file on this Linux host is inconsistent. Most probably there are duplicate records in the /etc/hosts file. Correct the /etc/hosts file by eliminating the duplicates and attempt to install again.