Ok, the line now reads:
host replication postgres 127.0.0.1/32 trust
And I performed a "service postgresql-9.3 reload", and it still failed with the same error. Then, I tried again using a "-h 127.0.0.1" option for the pg_basebackup. That complained "pg_basebackup: could not connect to server: connection refused." So, I did a "netstat -an | grep 5432" and I see that postgresql is not listening on that port for 127.0.0.1.
On 10/29/2014 9:58 AM, Shreeyansh dba wrote:
I suspect there is a small modification is required in pg_hba.conf file ::
Remove the '#' and modify the line like :: '
host replication postgres 127.0.0.1/32 trust'
I hope this will help you to resolve the issue
Thanks and Regards
Ajinkya Bangale