Re: no pg_hba.conf entry for replication connection from host

From: Volkan Unsal <spocksplanet(at)gmail(dot)com>
To: Adrian Klaver <adrian(dot)klaver(at)aklaver(dot)com>
Cc: Melvin Davidson <melvin6925(at)gmail(dot)com>, pgsql-general(at)postgresql(dot)org
Subject: Re: no pg_hba.conf entry for replication connection from host
Date: 2015-04-09 22:01:38
Message-ID: CAMcqKm=PmH6X1odeX3k_7jV4ajX961ru-qXa+OcSJ=xfimRL6A@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

Good point. But that didn't work either. Back to reading the source code
for me...

On Thu, Apr 9, 2015 at 5:53 PM, Adrian Klaver <adrian(dot)klaver(at)aklaver(dot)com>
wrote:

> On 04/09/2015 02:38 PM, Volkan Unsal wrote:
>
>> If you on the outside looking in would that not depend on firewall
>> rules also?
>>
>>
>> Hm, I guess. But I'm not behind a firewall and neither is the server.
>>
>>
>> On the standby what does netstat -lt show?
>>
>>
>> This is what I see on the standby
>>
>> Active Internet connections (only servers)
>> Proto Recv-Q Send-Q Local Address Foreign Address State
>> tcp 0 0 *:ssh *:* LISTEN
>> tcp6 0 0 [::]:ssh [::]:* LISTEN
>> tcp6 0 0 [::]:postgresql [::]:* LISTEN
>>
>>
> So it is using IPv6. If you are looking for the port using IPv4 then you
> will probably not see it.
>
> Might try in your primary pg_hba.conf changing to:
>
> host replication ${REP_USER} all md5
> host replication ${REP_USER} 0.0.0.0/0 md5
> host ${DB_NAME} ${DB_USER} 0.0.0.0/0 md5
>
>
>
>> What do the FATAL errors say?
>>
>>
>>
>> I forgot their contents now, but I think they showed up for trying to
>> connect via psql, and not as part of replication process.
>>
>>
>>
>>
>>
>> --
>> *Volkan Unsal*
>> /web and mobile development/
>> volkanunsal.com <http://bit.ly/1h1ebjy>
>>
>
>
> --
> Adrian Klaver
> adrian(dot)klaver(at)aklaver(dot)com
>

--
*Volkan Unsal*
*web and mobile development*
volkanunsal.com <http://bit.ly/1h1ebjy>

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Adrian Klaver 2015-04-09 22:13:00 Re: no pg_hba.conf entry for replication connection from host
Previous Message Adrian Klaver 2015-04-09 21:53:33 Re: no pg_hba.conf entry for replication connection from host