No pg_hba.conf entry for host 'xxx.xxx.xxx.xxx', user '<database user>', database '<database name>', no encryption."
/storage/log/vcops/log/adapters/PostgreSQLAdapter/PostgreSQLAdapter_xxxx.log
you see messages similar to:2025-02-12T06:48:40,147+0000 FATAL [Collector worker thread 23] (4751) com.bluemedora.exuno.DataProvider.fatal - Caught an ExUno exception while collecting: Collection failed when determining database list. Failed to initialize pool: FATAL: no pg_hba.conf entry for host "xxx.xxx.xxx.xxx", user "<database user>", database "<database name>", no encryption
com.bluemedora.exuno.common.ExUnoException: Collection failed when determining database list. Failed to initialize pool: FATAL: no pg_hba.conf entry for host "xxx.xxx.xxx.xxx", user "<database user>", database "<database name>", no encryption
VMware Aria Operations 8.x
This issue occurred because the destination PostgreSQL database is rejecting connections from the Aria Operations adapter for PostgreSQL
The pg_hba.conf file for the target PostgreSQL instance needs to be configured to permit access for the credentials, host, and database specified in the Aria Operations Integration configuration for that endpoint.
Note: Please consult postgreSQL database administrator before making below changes to the pg_hba.conf file.
pg_hba.conf
file is usually located in the PostgreSQL data directory, which is often /var/lib/pgsql/data/
pg_hba.conf
file. # TYPE DATABASE USER ADDRESS METHOD
host <Database name> <username> <Aria Ops node IP> md5
host
: The connection type (use host
for TCP/IP connections).database
: The name of the database or all
to allow access to all databases.user
: The PostgreSQL user specified in the adapter configuration.address
: The IP address of the Aria Ops node. Use 0.0.0.0/0
to allow all IPs (not recommended for production). You should ideally specify the actual IP or range.method
: The authentication method (e.g., md5
for password-based authentication). # TYPE DATABASE USER ADDRESS METHOD
host postgres postgres ariaops.example.com md5
systemctl restart postgresql
For more information on configuring pg_hba.conf
file