<div dir="ltr"><div dir="ltr"><div dir="ltr">File removed.<div>I can connect via psql from the &quot;temp&quot; server to both temp2 and temp3... Still no effect.</div></div></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">ср, 3 апр. 2019 г. в 18:07, Pierre Timmermans &lt;<a href="mailto:ptim007@yahoo.com">ptim007@yahoo.com</a>&gt;:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div><div class="gmail-m_599262496813897867ydpa3e12c14yahoo-style-wrap" style="font-family:&quot;Helvetica Neue&quot;,Helvetica,Arial,sans-serif;font-size:16px"><div><div>You should remove the file /tmp/pgpool_status before starting pgpool, because node 0 is set to down into it. </div><div><br></div><div>Also it looks like pgpool cannot connect to the database 1, make sure the firewall port is open and that you can connect via psql from the temp1 server to both temp2 and temp3</div><div><br></div><div><br></div><div class="gmail-m_599262496813897867ydpa3e12c14signature">Pierre</div></div>
        <div><br></div><div><br></div>
        
        </div><div id="gmail-m_599262496813897867ydpcc0d6335yahoo_quoted_5256891186" class="gmail-m_599262496813897867ydpcc0d6335yahoo_quoted">
            <div style="font-family:&quot;Helvetica Neue&quot;,Helvetica,Arial,sans-serif;font-size:13px;color:rgb(38,40,42)">
                
                <div>
                    On Wednesday, April 3, 2019, 4:51:57 PM GMT+2, Dmitry Medvedev &lt;<a href="mailto:dm.dm.medvedev@gmail.com" target="_blank">dm.dm.medvedev@gmail.com</a>&gt; wrote:
                </div>
                <div><br></div>
                <div><br></div>
                <div><div id="gmail-m_599262496813897867ydpcc0d6335yiv0953710642"><div><div dir="ltr"><div dir="ltr"><div dir="ltr">I am using pgpool 4.0.4</div><div dir="ltr">3 vitrual machines:</div><div dir="ltr">temp 172.28.30.5 - with pgpool, no PostgreSQL</div><div dir="ltr">temp2 172.28.30.6 - primary PostgreSQL</div><div dir="ltr">temp3 172.28.30.7 - standby PostgreSQL</div><div dir="ltr"><br clear="none"></div><div dir="ltr"><div>Query select pg_is_in_recovery(); returns &quot;f&quot; on temp2 and &quot;t&quot; on temp3.<br clear="none"></div><div><br clear="none"></div><div><div>[root@temp ~]# journalctl --unit pgpool.service</div><div>-- Logs begin at Wed 2019-04-03 16:47:13 MSK, end at Wed 2019-04-03 17:50:42 MSK. --</div><div>Apr 03 16:55:32 temp systemd[1]: Started Pgpool-II.</div><div>Apr 03 16:55:33 temp pgpool[4696]: 2019-04-03 16:55:32: pid 4696: LOG:  reading status file: 0 th backend is set to down status</div><div>Apr 03 16:55:33 temp pgpool[4696]: 2019-04-03 16:55:32: pid 4696: LOG:  Setting up socket for <a shape="rect" href="http://0.0.0.0:9999" rel="nofollow" target="_blank">0.0.0.0:9999</a></div><div>Apr 03 16:55:33 temp pgpool[4696]: 2019-04-03 16:55:32: pid 4696: LOG:  Setting up socket for :::9999</div><div>Apr 03 16:55:33 temp pgpool[4696]: 2019-04-03 16:55:33: pid 4696: LOG:  find_primary_node_repeatedly: waiting for finding a primary node</div><div>Apr 03 16:55:33 temp pgpool[4696]: 2019-04-03 16:55:33: pid 4696: ERROR:  unable to read data from DB node 1</div><div>Apr 03 16:55:33 temp pgpool[4696]: 2019-04-03 16:55:33: pid 4696: DETAIL:  EOF encountered with backend</div><div>Apr 03 16:55:33 temp pgpool[4696]: 2019-04-03 16:55:33: pid 4696: LOG:  find_primary_node: make_persistent_db_connection_noerror failed on</div><div>Apr 03 16:55:34 temp pgpool[4696]: 2019-04-03 16:55:34: pid 4696: ERROR:  unable to read data from DB node 1</div><div>Apr 03 16:55:34 temp pgpool[4696]: 2019-04-03 16:55:34: pid 4696: DETAIL:  EOF encountered with backend</div><div>Apr 03 16:55:34 temp pgpool[4696]: 2019-04-03 16:55:34: pid 4696: LOG:  find_primary_node: make_persistent_db_connection_noerror failed on</div><div>Apr 03 16:55:35 temp pgpool[4696]: 2019-04-03 16:55:35: pid 4696: ERROR:  unable to read data from DB node 1</div><div>Apr 03 16:55:35 temp pgpool[4696]: 2019-04-03 16:55:35: pid 4696: DETAIL:  EOF encountered with backend</div></div><div>...and so on...</div></div></div></div><br clear="none"><div class="gmail-m_599262496813897867ydpcc0d6335yiv0953710642gmail_quote"><div class="gmail-m_599262496813897867ydpcc0d6335yiv0953710642yqt6344168939" id="gmail-m_599262496813897867ydpcc0d6335yiv0953710642yqtfd10998"><div class="gmail-m_599262496813897867ydpcc0d6335yiv0953710642gmail_attr" dir="ltr">ср, 3 апр. 2019 г. в 17:43, Tatsuo Ishii &lt;<a shape="rect" href="mailto:ishii@sraoss.co.jp" rel="nofollow" target="_blank">ishii@sraoss.co.jp</a>&gt;:<br clear="none"></div><blockquote class="gmail-m_599262496813897867ydpcc0d6335yiv0953710642gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">&gt; Hello to everyone. A couple of days I&#39;ve spent trying to understand how<br clear="none">
&gt; pgpool-II works.<br clear="none">
&gt; <br clear="none">
&gt; After some cruel experiments I&#39;ve broken my pgpool cluster (1 primary and 1<br clear="none">
&gt; standby nodes) :-)<br clear="none">
&gt; <br clear="none">
&gt; I&#39;ve re-configured it and launched pgpool again. And now all nodes have<br clear="none">
&gt; &quot;standby&quot; role no matter what i do. Is there any way of reset pgpool? Nodes<br clear="none">
&gt; without pgpool operating correctly: one is primary, other is standby.<br clear="none">
<br clear="none">
It is likely that Pgpool-II failed to detect the primary. Which<br clear="none">
version of Pgpool-II are you using? Can you share Pgpool-II debug log<br clear="none">
right after starting up it? It detects the primary upon starting up.<br clear="none">
<br clear="none">
Best regards,<br clear="none">
--<br clear="none">
Tatsuo Ishii<br clear="none">
SRA OSS, Inc. Japan<br clear="none">
English: <a shape="rect" href="http://www.sraoss.co.jp/index_en.php" rel="nofollow" target="_blank">http://www.sraoss.co.jp/index_en.php</a><br clear="none">
Japanese:<a shape="rect" href="http://www.sraoss.co.jp" rel="nofollow" target="_blank">http://www.sraoss.co.jp</a><br clear="none">
</blockquote></div></div></div></div><div class="gmail-m_599262496813897867ydpcc0d6335yqt6344168939" id="gmail-m_599262496813897867ydpcc0d6335yqtfd18939">_______________________________________________<br clear="none">pgpool-general mailing list<br clear="none"><a shape="rect" href="mailto:pgpool-general@pgpool.net" rel="nofollow" target="_blank">pgpool-general@pgpool.net</a><br clear="none"><a shape="rect" href="http://www.pgpool.net/mailman/listinfo/pgpool-general" rel="nofollow" target="_blank">http://www.pgpool.net/mailman/listinfo/pgpool-general</a><br clear="none"></div></div>
            </div>
        </div></div></blockquote></div>