Symptoms
- When a vRealize Appliance has been configured as a dedicated standalone PostgreSQL database server you receive an error when attempting to upgrade the appliance to vRealize 6.2
- The vRealize Automation services run on another vRealize Appliance that connects to the standalone PostgreSQL database server
Cause
This issue occurs because the upgrade runs a post-install script that requires the vRealize Appliance to be connected to a PostgreSQL database.
By default, when configuring a vRealize Appliance as a standalone PostgreSQL database you do not configure the appliance to connect to the local database. Additionally, configuring this connection on a standalone PostgreSQL database causes a configuration setting to change that prevents external connections such as those from the vRealize Appliances running the Automation services.
Resolution
Perform a backup of configuration files and snapshots of the vRealize Appliances prior to performing these steps.
- Open a web browser and log in to the standalone PostgreSQL database server appliance https://FQDN:5480
- Navigate to vCAC Settings -> Database
- Enter the following:
- Host: 127.0.0.1
- Port: 5432
- Database: DatabaseName
- User: UserName
- Password: Password
- Click Save Settings
- Open a console or SSH session to the standalone PostgreSQL database server appliance
- Run the following commands:
- sed -i -re 's/^(listen_addresses=.)(localhost)(.*)/\1*\3/' /var/vmware/vpostgres/current/pgdata/postgresql.conf
- service vpostgres restart
- Attempt the Appliance upgrade again using the steps in the Upgrading to vRealize Automation 6.2 or later documentation