Yes Sushant, I added the Apps IP ranges in pg_hba and restarted the PG services. Port is 5432 and also postgresql.auto.conf is having same port. Contents of postmaster.pid $ cat postmaster.pid 26802 /var/lib/postgresql/12/main 1603903729 5432 /var/run/postgresql * 5432001 229378 ready From: Sushant Pawar <sushantxp@xxxxxxxxx>
Hi, You might have already checked but I would suggest checking that the IP address in pg_hba.conf file is the same client IP for which you have received the error. For eg. when the error is Connection
to 192.168.42.123:5432 refused. I would add 192.168.42.123 in pg_hba file. This can be your application gateway which may differ from the actual application server IP. Please check if Postgres is accepting a connection on port 5432. It may happen that postgresql.auto.conf may have a different port specified in it. You can cross verify entries in the postmaster.pid file for listen_address and port number
on which Postgres instance is accepting the connection. Regards Sushant On Thu, Oct 29, 2020 at 1:48 PM <soumik.bhattacharjee@xxxxxxx> wrote:
|