<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=Windows-1252">
</head>
<body>
<div style="color: rgb(33, 33, 33); background-color: rgb(255, 255, 255);" dir="auto">
Any update?</div>
<div style="color: rgb(33, 33, 33); background-color: rgb(255, 255, 255);" dir="auto">
<br>
</div>
<div id="ms-outlook-mobile-signature" dir="auto">
<div><br>
</div>
Get <a href="https://aka.ms/AAb9ysg">Outlook for Android</a></div>
<hr style="display:inline-block;width:98%" tabindex="-1">
<div id="divRplyFwdMsg" dir="ltr"><font face="Calibri, sans-serif" style="font-size:11pt" color="#000000"><b>From:</b> Kotresh Kumar Toolahalli <kotresh.kumar@digitalshark.in><br>
<b>Sent:</b> Wednesday, August 3, 2022 4:41:52 PM<br>
<b>To:</b> Jon Jensen <jon@endpointdev.com><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</font>
<div> </div>
</div>
<style>
<!--
@font-face
        {font-family:"Cambria Math"}
@font-face
        {font-family:Calibri}
p.x_MsoNormal, li.x_MsoNormal, div.x_MsoNormal
        {margin:0cm;
        font-size:11.0pt;
        font-family:"Calibri",sans-serif}
a:link, span.x_MsoHyperlink
        {color:blue;
        text-decoration:underline}
p.x_MsoListParagraph, li.x_MsoListParagraph, div.x_MsoListParagraph
        {margin-top:0cm;
        margin-right:0cm;
        margin-bottom:0cm;
        margin-left:36.0pt;
        font-size:11.0pt;
        font-family:"Calibri",sans-serif}
span.x_EmailStyle19
        {font-family:"Calibri",sans-serif;
        color:windowtext}
.x_MsoChpDefault
        {font-size:10.0pt}
@page WordSection1
        {margin:72.0pt 72.0pt 72.0pt 72.0pt}
div.x_WordSection1
        {}
ol
        {margin-bottom:0cm}
ul
        {margin-bottom:0cm}
-->
</style>
<div lang="EN-IN" link="blue" vlink="purple" style="word-wrap:break-word">
<div class="x_WordSection1">
<p class="x_MsoNormal"><span style="">Hello Jon,</span></p>
<p class="x_MsoNormal"><span style=""> </span></p>
<p class="x_MsoNormal"><span style="">Thanks for the answer, it worked well !</span></p>
<p class="x_MsoNormal"><span style=""> </span></p>
<p class="x_MsoNormal"><span style="">I have another blocker now,  we configure 3 nodes and sync works well but if one node goes down then sync not works.</span></p>
<p class="x_MsoNormal"><span style=""> </span></p>
<p class="x_MsoNormal"><span style="">We are using bucardo 5.6.0 and I found the issue
</span></p>
<p class="x_MsoNormal"><span style="">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
</span></p>
<p class="x_MsoNormal"><span style=""> </span></p>
<p class="x_MsoNormal"><span style="">Example: </span></p>
<p class="x_MsoNormal"><span style=""> </span></p>
<ol start="1" type="1" style="margin-top:0cm">
<li class="x_MsoListParagraph" style="margin-left:0cm"><span style="">Node A, B, C  on group</span></li><li class="x_MsoListParagraph" style="margin-left:0cm"><span style="">Node B goes down</span></li><li class="x_MsoListParagraph" style="color:red; margin-left:0cm"><span style="">Data created on A and C remains in the respective db but not sync to each other.</span></li><li class="x_MsoListParagraph" style="margin-left:0cm"><span style="">Once B turns on – all syncs up</span></li><li class="x_MsoListParagraph" style="color:red; margin-left:0cm"><span style="">But new data on B is not syncs up to A & C</span></li><li class="x_MsoListParagraph" style="color:#70AD47; margin-left:0cm"><span style="">But A & C syncs up</span></li></ol>
<p class="x_MsoNormal"><b><span style=""> </span></b></p>
<p class="x_MsoNormal"><b><span style="">Regards,</span></b></p>
<p class="x_MsoNormal"><b><span style="">Kotresh</span></b></p>
<p class="x_MsoNormal"><span style=""> </span></p>
<p class="x_MsoNormal"><span style=""> </span></p>
<div style="border:none; border-top:solid #B5C4DF 1.0pt; padding:3.0pt 0cm 0cm 0cm">
<p class="x_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</span></p>
</div>
<div>
<p class="x_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></p>
</div>
</div>
</div>
</body>
</html>