/opt/vmware/var/log/vcd/configure-vcd.log:NOTICE: destination directory "/var/vmware/vpostgres/current/pgdata" providedINFO: connecting to source nodeDETAIL: connection string is: user=repmgr host=##.##.##.## gssencmode=disableERROR: connection to database failedDETAIL:connection to server at "##.##.##.##", port #### failed: Connection refused Is the server running on that host and accepting TCP/IP connections?
Error creating clone of primary node to this standy server using repmgryyyy-mm-dd hh:mm:ss | setup-repmgr-standby.sh | [ERROR] Error creating clone of primary node to this standy server using repmgryyyy-mm-dd hh:mm:ss | setupvcd.sh | [ERROR] Failed to configure repmgr on this standby. Check /opt/vmware/var/log/vcd/configure-vcd.log for additional information. Aborting.yyyy-mm-dd hh:mm:ss | configure-vcd.sh | [ERROR] setupvcd script failed to execute.yyyy-mm-dd hh:mm:ss | cleanup-vcd.sh | Starting cleanup script.yyyy-mm-dd hh:mm:ss | cleanup-vcd.sh | The following error code was provided as argument to script: 15yyyy-mm-dd hh:mm:ss | cleanup-vcd.sh | Attempting cleanup on standby appliance.yyyy-mm-dd hh:mm:ss | cleanup-vcd.sh | Executing configure_vcd_base_cleanup.yyyy-mm-dd hh:mm:ss | cleanup-vcd.sh | Executing repmgr_standby_cleanup.yyyy-mm-dd hh:mm:ss | cleanup-vcd.sh | standby unregister not required, based upon error code provided.yyyy-mm-dd hh:mm:ss | cleanup-vcd.sh | Resetting remaining repmgr and vpostgres configuration back to initial state.yyyy-mm-dd hh:mm:ss | cleanup-vcd.sh | Unmounting NFS share and cleaning up /etc/fstab.yyyy-mm-dd hh:mm:ss | cleanup-vcd.sh | Executing clear_ovfenv_params
VMware Cloud Director 10.6.1.2
The issue was caused because the VCD DB URL was pointing to the previous eth1 I.P address(previous primary VCD DB) and hence when you try to configure standby cell it throws an error saying database is not accepting connections.
To resolve the issue copy the correct response.properties from primary cell to the transfer folder. So follow the below steps to copy the correct response.properties to transfer folder:
/opt/vmware/vcloud-director/data/transfer and make a backup of the response.properties. Use the below command:cp /opt/vmware/vcloud-director/data/transfer/responses.properties /opt/vmware/vcloud-director/data/transfer/responses.properties.bak/opt/vmware/vcloud-director/etc and copy the correct response.properties file to the transfer location using the below command:cp responses.properties /opt/vmware/vcloud-director/data/transfer/responses.properties