When attempting to install Greenplum Command Center (GPCC) on a server recently upgraded to RHEL 8, the ./gpccinstall script fails with the following error:
Failed to connect to database postgres on 127.0.0.1:5432 as gpadmin: dial tcp 127.0.0.1:5432: connect: connection refused
This occurs even if the Greenplum Database (GPDB) software has been successfully installed and segment recovery (gprecoverseg) has completed without issue.
Greenplum Command Center 6.13.1
The error indicates that the GPCC installer cannot establish a network connection to the Greenplum coordinator (master) database on the local loopback address. Common causes include:
pg_hba.conf file is not configured to allow the gpadmin user to connect via the 127.0.0.1 interface.5432, or the installer is not picking up the PGPORT environment variable.Ensure the database is active and the coordinator is running.
If the status is not "Active," start the database:
Confirm the database is listening on port 5432 and the local IP:
You should see a listener on 127.0.0.1:5432 or 0.0.0.0:5432.
The installer must connect to the postgres database. Ensure the pg_hba.conf file (located in the $MASTER_DATA_DIRECTORY) contains an entry for local connections.
Add or verify the following line exists:
If you modify the file, reload the configuration:
Confirm that the gpadmin user has the correct environment sourced for the RHEL 8 installation:
Before running the installer again, verify you can connect manually via psql:
If this connection fails with "connection refused," troubleshoot the database startup logs in pg_log.
Once manual connectivity is confirmed, execute the installer: