Failed to start VMware Postgres database server after upgrading vSphere Replication appliance
search cancel

Failed to start VMware Postgres database server after upgrading vSphere Replication appliance

book

Article ID: 312764

calendar_today

Updated On:

Products

VMware Live Recovery

Issue/Introduction

Symptoms:


1. After upgrading vSphere Replication appliance, the vSphere Replication Management (VRM) service appears to be stopped in VAMI, and the /opt/vmware/hms/logs/hms-configtool.log file in the appliance contains java.net.ConnectException: Connection refused error messages.

2. Unable to reconfigure the replication after upgrade.

3. When restarting the vSphere replication VM we can see this error while the VM is booting:

Failed to start VMware Postgres database server

1.PNG


Environment

VMware vSphere Replication 8.5.x
VMware vSphere Replication 8.x

Cause


This issue is observed when the embedded DB schema upgrade fails because the vPostgreSQL service was not fully started.

Resolution


1. SSH to the VR appliance

2. Login as admin and su as root 

3. Run the command - chmod 777 /var/log/vmware/vrmsdb/postgresql.log

4. Run this command to upgrade the DB Schema - 

/opt/vmware/hms/bin/hms-configtool -cmd upgrade -configfile /opt/vmware/hms/conf/hms-configuration.xml (Ignore the error)

5. Reboot the appliance 

6. Reconfigure the Appliance.

nnnnnnnnn.jpg

Additional Information


VMware vSphere Replication 8.5 Release Note

The vSphere Replication Management service does not start after the upgrade

After you upgrade vSphere Replication, the vSphere Replication Management (VRM) service appears as stopped in the VAMI, and the /opt/vmware/hms/logs/hms-configtool.log file in the virtual appliance contains java.net.ConnectException: Connection refused error messages.

This problem is observed if the upgrade procedure of the embedded DB schema fails because the vPostgreSQL service was not fully started.

Workaround:

  1. In the virtual appliance console, log in as the root user.
  2. Run the following command: $ /opt/vmware/hms/bin/hms-configtool -cmd upgrade -configfile /opt/vmware/hms/conf/hms-configuration.xml

    The DB schema upgrade starts.

  3. Wait for the DB upgrade procedure to complete.
  4. In the vSphere Replication VAMI, navigate to the Configuration tab, and complete the SSO registration of the appliance.