<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: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=us-ascii"><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;
        mso-fareast-language:EN-US;}
a:link, span.MsoHyperlink
        {mso-style-priority:99;
        color:#0563C1;
        text-decoration:underline;}
span.EstiloDeEmail17
        {mso-style-type:personal-compose;
        font-family:"Calibri",sans-serif;
        color:windowtext;}
.MsoChpDefault
        {mso-style-type:export-only;
        font-family:"Calibri",sans-serif;
        mso-fareast-language:EN-US;}
@page WordSection1
        {size:612.0pt 792.0pt;
        margin:70.85pt 3.0cm 70.85pt 3.0cm;}
div.WordSection1
        {page:WordSection1;}
--></style><!--[if gte mso 9]><xml>
<o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext="edit">
<o:idmap v:ext="edit" data="1" />
</o:shapelayout></xml><![endif]--></head><body lang=PT-BR link="#0563C1" vlink="#954F72" style='word-wrap:break-word'><div class=WordSection1><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal><span style='mso-fareast-language:PT-BR'>Dears,<o:p></o:p></span></p><p class=MsoNormal><span style='mso-fareast-language:PT-BR'><o:p> </o:p></span></p><p class=MsoNormal><span lang=EN-US style='mso-fareast-language:PT-BR'>I am configring FReeswitch HA with Keepalived approach just like this <a href="https://freeswitch.org/confluence/display/FREESWITCH/HA+keepalived">https://freeswitch.org/confluence/display/FREESWITCH/HA+keepalived</a><o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US style='mso-fareast-language:PT-BR'>Freeswitch database is shared with Postgresql-BDR replication.<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US style='mso-fareast-language:PT-BR'><o:p> </o:p></span></p><p class=MsoNormal><span lang=EN-US style='mso-fareast-language:PT-BR'>When executing fsctl crash on node 1, node 2 tries to recover call from its recovery table, but it somehow tries to insert it again causing following conclict.<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US style='mso-fareast-language:PT-BR'>How to avoid this behaviour?<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US style='mso-fareast-language:PT-BR'><o:p> </o:p></span></p><p class=MsoNormal><b><span lang=EN-US style='mso-fareast-language:PT-BR'>>ERROR:  duplicate key value violates unique constraint "recovery_pkey"</span></b><span lang=EN-US style='mso-fareast-language:PT-BR'><o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US style='mso-fareast-language:PT-BR'>< 2021-01-31 12:48:09.394 -03 >DETAIL:  Key (uuid)=(<b>66727254-af9d-47ef-ad9f-6f6bbb794eb6</b>) already exists.<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US style='mso-fareast-language:PT-BR'>< 2021-01-31 12:48:09.394 -03 >STATEMENT:  insert into <b><span style='color:black;background:#FFFAA5'>recovery</span></b> (runtime_uuid, technology, profile_name, hostname, uuid, metadata) values ('<b><span style='color:black;background:#FFFAA5'>4a864869-fe7f-4470-9992-20b91d09040f'</span></b>,'sofia','internal','freeswitch-bndes','66727254-af9d-47ef-ad9f-6f6bbb794eb6','<cdr core-uuid="4a864869-fe7f-4470-9992-20b91d09040f" switchname="freeswitch-bndes"><o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US style='mso-fareast-language:PT-BR'><o:p> </o:p></span></p><p class=MsoNormal><span lang=EN-US style='mso-fareast-language:PT-BR'>Regards<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US style='mso-fareast-language:PT-BR'><o:p> </o:p></span></p><p class=MsoNormal><span lang=EN-US style='mso-fareast-language:PT-BR'> <o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US><o:p> </o:p></span></p></div></body></html>