<html xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:x="urn:schemas-microsoft-com:office:excel" xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" xmlns="http://www.w3.org/TR/REC-html40">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=Windows-1252">
<meta name="Generator" content="Microsoft Word 15 (filtered medium)">
<style><!--
/* Font Definitions */
@font-face
        {font-family:"Cambria Math";
        panose-1:2 4 5 3 5 4 6 3 2 4;}
@font-face
        {font-family:Calibri;
        panose-1:2 15 5 2 2 2 4 3 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0cm;
        font-size:11.0pt;
        font-family:"Calibri",sans-serif;}
a:link, span.MsoHyperlink
        {mso-style-priority:99;
        color:blue;
        text-decoration:underline;}
p.MsoListParagraph, li.MsoListParagraph, div.MsoListParagraph
        {mso-style-priority:34;
        margin-top:0cm;
        margin-right:0cm;
        margin-bottom:0cm;
        margin-left:36.0pt;
        font-size:11.0pt;
        font-family:"Calibri",sans-serif;}
span.EmailStyle19
        {mso-style-type:personal-reply;
        font-family:"Calibri",sans-serif;
        color:windowtext;}
.MsoChpDefault
        {mso-style-type:export-only;
        font-size:10.0pt;}
@page WordSection1
        {size:612.0pt 792.0pt;
        margin:72.0pt 72.0pt 72.0pt 72.0pt;}
div.WordSection1
        {page:WordSection1;}
/* List Definitions */
@list l0
        {mso-list-id:19939508;
        mso-list-type:hybrid;
        mso-list-template-ids:-574566018 134807567 134807577 134807579 134807567 134807577 134807579 134807567 134807577 134807579;}
@list l0:level1
        {mso-level-tab-stop:none;
        mso-level-number-position:left;
        text-indent:-18.0pt;}
@list l0:level2
        {mso-level-number-format:alpha-lower;
        mso-level-tab-stop:none;
        mso-level-number-position:left;
        text-indent:-18.0pt;}
@list l0:level3
        {mso-level-number-format:roman-lower;
        mso-level-tab-stop:none;
        mso-level-number-position:right;
        text-indent:-9.0pt;}
@list l0:level4
        {mso-level-tab-stop:none;
        mso-level-number-position:left;
        text-indent:-18.0pt;}
@list l0:level5
        {mso-level-number-format:alpha-lower;
        mso-level-tab-stop:none;
        mso-level-number-position:left;
        text-indent:-18.0pt;}
@list l0:level6
        {mso-level-number-format:roman-lower;
        mso-level-tab-stop:none;
        mso-level-number-position:right;
        text-indent:-9.0pt;}
@list l0:level7
        {mso-level-tab-stop:none;
        mso-level-number-position:left;
        text-indent:-18.0pt;}
@list l0:level8
        {mso-level-number-format:alpha-lower;
        mso-level-tab-stop:none;
        mso-level-number-position:left;
        text-indent:-18.0pt;}
@list l0:level9
        {mso-level-number-format:roman-lower;
        mso-level-tab-stop:none;
        mso-level-number-position:right;
        text-indent:-9.0pt;}
ol
        {margin-bottom:0cm;}
ul
        {margin-bottom:0cm;}
--></style>
</head>
<body lang="EN-IN" link="blue" vlink="purple" style="word-wrap:break-word">
<div class="WordSection1">
<p class="MsoNormal"><span style="mso-fareast-language:EN-US">Hello Jon,<o:p></o:p></span></p>
<p class="MsoNormal"><span style="mso-fareast-language:EN-US"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="mso-fareast-language:EN-US">Thanks for the answer, it worked well !<o:p></o:p></span></p>
<p class="MsoNormal"><span style="mso-fareast-language:EN-US"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="mso-fareast-language:EN-US">I have another blocker now,  we configure 3 nodes and sync works well but if one node goes down then sync not works.<o:p></o:p></span></p>
<p class="MsoNormal"><span style="mso-fareast-language:EN-US"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="mso-fareast-language:EN-US">We are using bucardo 5.6.0 and I found the issue
<o:p></o:p></span></p>
<p class="MsoNormal"><span style="mso-fareast-language:EN-US">Sync stops when one servers fails
<a href="https://bucardo.org/pipermail/bucardo-general/2015-October/002671.html">
https://bucardo.org/pipermail/bucardo-general/2015-October/002671.html</a> similar issue
<o:p></o:p></span></p>
<p class="MsoNormal"><span style="mso-fareast-language:EN-US"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="mso-fareast-language:EN-US">Example: <o:p></o:p></span></p>
<p class="MsoNormal"><span style="mso-fareast-language:EN-US"><o:p> </o:p></span></p>
<ol style="margin-top:0cm" start="1" type="1">
<li class="MsoListParagraph" style="margin-left:0cm;mso-list:l0 level1 lfo1"><span style="mso-fareast-language:EN-US">Node A, B, C  on group<o:p></o:p></span></li><li class="MsoListParagraph" style="margin-left:0cm;mso-list:l0 level1 lfo1"><span style="mso-fareast-language:EN-US">Node B goes down<o:p></o:p></span></li><li class="MsoListParagraph" style="color:red;margin-left:0cm;mso-list:l0 level1 lfo1">
<span style="mso-fareast-language:EN-US">Data created on A and C remains in the respective db but not sync to each other.<o:p></o:p></span></li><li class="MsoListParagraph" style="margin-left:0cm;mso-list:l0 level1 lfo1"><span style="mso-fareast-language:EN-US">Once B turns on – all syncs up<o:p></o:p></span></li><li class="MsoListParagraph" style="color:red;margin-left:0cm;mso-list:l0 level1 lfo1">
<span style="mso-fareast-language:EN-US">But new data on B is not syncs up to A & C<o:p></o:p></span></li><li class="MsoListParagraph" style="color:#70AD47;margin-left:0cm;mso-list:l0 level1 lfo1">
<span style="mso-fareast-language:EN-US">But A & C syncs up<o:p></o:p></span></li></ol>
<p class="MsoNormal"><b><span style="mso-fareast-language:EN-US"><o:p> </o:p></span></b></p>
<p class="MsoNormal"><b><span style="mso-fareast-language:EN-US">Regards,<o:p></o:p></span></b></p>
<p class="MsoNormal"><b><span style="mso-fareast-language:EN-US">Kotresh<o:p></o:p></span></b></p>
<p class="MsoNormal"><span style="mso-fareast-language:EN-US"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="mso-fareast-language:EN-US"><o:p> </o:p></span></p>
<div style="border:none;border-top:solid #B5C4DF 1.0pt;padding:3.0pt 0cm 0cm 0cm">
<p class="MsoNormal" style="margin-bottom:12.0pt"><b><span style="font-size:12.0pt;color:black">From:
</span></b><span style="font-size:12.0pt;color:black">Jon Jensen <jon@endpointdev.com><br>
<b>Date: </b>Friday, 15 July 2022 at 3:31 AM<br>
<b>To: </b>Kotresh Kumar Toolahalli <kotresh.kumar@digitalshark.in><br>
<b>Cc: </b>bucardo-general@bucardo.org <bucardo-general@bucardo.org><br>
<b>Subject: </b>Re: [Bucardo-general] Password auth issue + Bucardo and postgres<o:p></o:p></span></p>
</div>
<div>
<p class="MsoNormal">On Thu, 14 Jul 2022, Kotresh Kumar Toolahalli wrote:<br>
<br>
> Am getting below error, couldn’t able to solve. Please assist<br>
<br>
Kotresh,<br>
<br>
It looks to me like your pg_hba.conf is requiring a password for <br>
connections from 127.0.0.1, because this line:<br>
<br>
host all all 127.0.0.1/32 scram-sha-256<br>
<br>
Comes before this one:<br>
<br>
host all bucardo 0.0.0.0/0 trust<br>
<br>
If you want the "bucardo" user to connect with no password as that <br>
indicates, you should move that bucardo line before the "host" + "all" <br>
line, which takes priority the way you have it now.<br>
<br>
Jon<br>
<br>
<br>
> Ubuntu version: 20.04<br>
> Postgres 14<br>
> And latest bucardo<br>
><br>
> I have update the hba_conf<br>
> # Database administrative login by Unix domain socket<br>
> local   all             postgres                                trust<br>
> local   all         all                                     ident map=app<br>
><br>
><br>
> # TYPE  DATABASE        USER            ADDRESS                 METHOD<br>
><br>
> # "local" is for Unix domain socket connections only<br>
> local   all             all                                     trust<br>
> # IPv4 local connections:<br>
> host    all             all             127.0.0.1/32            scram-sha-256<br>
> host    all             all             0.0.0.0/0                md5<br>
> # IPv6 local connections:<br>
> host    all             all             ::1/128                 scram-sha-256<br>
> host    all             all             0.0.0.0/0                md5<br>
> host    all             bucardo         0.0.0.0/0               trust<br>
> # Allow replication connections from localhost, by a user with the<br>
> # replication privilege.<br>
> local   replication     all                                     trust<br>
> host    replication     all             127.0.0.1/32            scram-sha-256<br>
> host    replication     all             ::1/128                 scram-sha-256<br>
><br>
><br>
> and /etc/postgresql/14/main/pg_ident.conf'<br>
><br>
> # Put your actual configuration here<br>
> # ----------------------------------<br>
><br>
> # MAPNAME       SYSTEM-USERNAME         PG-USERNAME<br>
> app             root                    postgres<br>
> app             root                    bucardo<br>
> app             {username}              bucardo<br>
><br>
><br>
> ubuntu@ip-172-31-32-191:~$ sudo bucardo show all<br>
><br>
> DBI connect('dbname=bucardo;host=localhost;port=5432','bucardo',...) failed: connection to server at "localhost" (127.0.0.1), port 5432 failed: FATAL:  password authentication failed for user "bucardo"<br>
><br>
> connection to server at "localhost" (127.0.0.1), port 5432 failed: FATAL:  password authentication failed for user "bucardo" at /usr/bin/bucardo line 310.<br>
><br>
> Regards,<br>
> Kotresh<br>
<br>
-- <br>
Jon Jensen<br>
End Point Corporation<br>
<a href="https://www.endpointdev.com/">https://www.endpointdev.com/</a><o:p></o:p></p>
</div>
</div>
</body>
</html>