Thanks but leaving the first pgpool instance running for hours before starting the second still doesn&#39;t help. Strange that it is fine the other way around. I&#39;ll keep my eye out for the fix. <div><br></div><div>Thanks, </div>
<div><br></div><div>Will<br><br><div class="gmail_quote">On 6 November 2012 00:20, Yugo Nagata <span dir="ltr">&lt;<a href="mailto:nagata@sraoss.co.jp" target="_blank">nagata@sraoss.co.jp</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Wait a few seconds after the first pgpool has started.<br>
Then, you would be able to start the second successfully.<br>
<br>
I recognize this problem and am trying to resolve it.<br>
<div><div class="h5"><br>
On Mon, 5 Nov 2012 07:07:25 -0800<br>
Lonni J Friedman &lt;<a href="mailto:netllama@gmail.com">netllama@gmail.com</a>&gt; wrote:<br>
<br>
&gt; I&#39;ve seen this happen often a well.  I&#39;m guessing that there&#39;s a race<br>
&gt; condition somewhere.<br>
&gt;<br>
&gt; On Mon, Nov 5, 2012 at 7:00 AM, Will Ferguson &lt;<a href="mailto:will.ferguson@vyre.com">will.ferguson@vyre.com</a>&gt; wrote:<br>
&gt; &gt; Hello<br>
&gt; &gt;<br>
&gt; &gt; I have two pgpool servers: will-pgpool1 &amp; will-pgpool2 with watchdog enabled<br>
&gt; &gt;<br>
&gt; &gt; I can start will-pgpool2 first which takes the virtual IP, and then start<br>
&gt; &gt; will-pgpool1 and all works fine.<br>
&gt; &gt;<br>
&gt; &gt; But if I start will-pgpool1 first which takes the virtual IP, and then start<br>
&gt; &gt; will-pgpool2 the pgpool2 server doesn&#39;t start.<br>
&gt; &gt;<br>
&gt; &gt; Both pgpool.conf files are the same except wd_hostname and<br>
&gt; &gt; other_pgpool_hostname0<br>
&gt; &gt;<br>
&gt; &gt; Both instances are started as root with -d -n<br>
&gt; &gt;<br>
&gt; &gt; Below is the log debug output.<br>
&gt; &gt;<br>
&gt; &gt; Thanks,<br>
&gt; &gt;<br>
&gt; &gt; Will<br>
&gt; &gt;<br>
&gt; &gt; 2012-11-05 14:58:40 DEBUG: pid 2145: key: listen_addresses<br>
&gt; &gt; 2012-11-05 14:58:40 DEBUG: pid 2145: value: &#39;*&#39; kind: 4<br>
&gt; &gt; 2012-11-05 14:58:40 DEBUG: pid 2145: key: port<br>
&gt; &gt; 2012-11-05 14:58:40 DEBUG: pid 2145: value: 9999 kind: 2<br>
&gt; &gt; 2012-11-05 14:58:40 DEBUG: pid 2145: key: socket_dir<br>
&gt; &gt; 2012-11-05 14:58:40 DEBUG: pid 2145: value: &#39;/tmp&#39; kind: 4<br>
&gt; &gt; 2012-11-05 14:58:40 DEBUG: pid 2145: key: pcp_port<br>
&gt; &gt; 2012-11-05 14:58:40 DEBUG: pid 2145: value: 9898 kind: 2<br>
&gt; &gt; 2012-11-05 14:58:40 DEBUG: pid 2145: key: pcp_socket_dir<br>
&gt; &gt; 2012-11-05 14:58:40 DEBUG: pid 2145: value: &#39;/tmp&#39; kind: 4<br>
&gt; &gt; 2012-11-05 14:58:40 DEBUG: pid 2145: key: backend_hostname0<br>
&gt; &gt; 2012-11-05 14:58:40 DEBUG: pid 2145: value: &#39;will-db1&#39; kind: 4<br>
&gt; &gt; 2012-11-05 14:58:40 DEBUG: pid 2145: key: backend_port0<br>
&gt; &gt; 2012-11-05 14:58:40 DEBUG: pid 2145: value: 5432 kind: 2<br>
&gt; &gt; 2012-11-05 14:58:40 DEBUG: pid 2145: pool_config: port slot number 0<br>
&gt; &gt; 2012-11-05 14:58:40 DEBUG: pid 2145: key: backend_weight0<br>
&gt; &gt; 2012-11-05 14:58:40 DEBUG: pid 2145: value: 1 kind: 2<br>
&gt; &gt; 2012-11-05 14:58:40 DEBUG: pid 2145: pool_config: weight slot number 0<br>
&gt; &gt; weight: 1.000000<br>
&gt; &gt; 2012-11-05 14:58:40 DEBUG: pid 2145: key: backend_data_directory0<br>
&gt; &gt; 2012-11-05 14:58:40 DEBUG: pid 2145: value: &#39;/data/postgres&#39; kind: 4<br>
&gt; &gt; 2012-11-05 14:58:40 DEBUG: pid 2145: key: backend_flag0<br>
&gt; &gt; 2012-11-05 14:58:40 DEBUG: pid 2145: value: &#39;ALLOW_TO_FAILOVER&#39; kind: 4<br>
&gt; &gt; 2012-11-05 14:58:40 DEBUG: pid 2145: extract_string_tokens: token:<br>
&gt; &gt; ALLOW_TO_FAILOVER<br>
&gt; &gt; 2012-11-05 14:58:40 DEBUG: pid 2145: pool_config: allow_to_failover on<br>
&gt; &gt; 2012-11-05 14:58:40 DEBUG: pid 2145: pool_config: slot number 0 flag: 0000<br>
&gt; &gt; 2012-11-05 14:58:40 DEBUG: pid 2145: key: backend_hostname1<br>
&gt; &gt; 2012-11-05 14:58:40 DEBUG: pid 2145: value: &#39;will-db2&#39; kind: 4<br>
&gt; &gt; 2012-11-05 14:58:40 DEBUG: pid 2145: key: backend_port1<br>
&gt; &gt; 2012-11-05 14:58:40 DEBUG: pid 2145: value: 5432 kind: 2<br>
&gt; &gt; 2012-11-05 14:58:40 DEBUG: pid 2145: pool_config: port slot number 1<br>
&gt; &gt; 2012-11-05 14:58:40 DEBUG: pid 2145: key: backend_weight1<br>
&gt; &gt; 2012-11-05 14:58:40 DEBUG: pid 2145: value: 1 kind: 2<br>
&gt; &gt; 2012-11-05 14:58:40 DEBUG: pid 2145: pool_config: weight slot number 1<br>
&gt; &gt; weight: 1.000000<br>
&gt; &gt; 2012-11-05 14:58:40 DEBUG: pid 2145: key: backend_data_directory1<br>
&gt; &gt; 2012-11-05 14:58:40 DEBUG: pid 2145: value: &#39;/data/postgres&#39; kind: 4<br>
&gt; &gt; 2012-11-05 14:58:40 DEBUG: pid 2145: key: backend_flag1<br>
&gt; &gt; 2012-11-05 14:58:40 DEBUG: pid 2145: value: &#39;ALLOW_TO_FAILOVER&#39; kind: 4<br>
&gt; &gt; 2012-11-05 14:58:40 DEBUG: pid 2145: extract_string_tokens: token:<br>
&gt; &gt; ALLOW_TO_FAILOVER<br>
&gt; &gt; 2012-11-05 14:58:40 DEBUG: pid 2145: pool_config: allow_to_failover on<br>
&gt; &gt; 2012-11-05 14:58:40 DEBUG: pid 2145: pool_config: slot number 1 flag: 0000<br>
&gt; &gt; 2012-11-05 14:58:40 DEBUG: pid 2145: key: backend_hostname2<br>
&gt; &gt; 2012-11-05 14:58:40 DEBUG: pid 2145: value: &#39;will-db3&#39; kind: 4<br>
&gt; &gt; 2012-11-05 14:58:40 DEBUG: pid 2145: key: backend_port2<br>
&gt; &gt; 2012-11-05 14:58:40 DEBUG: pid 2145: value: 5432 kind: 2<br>
&gt; &gt; 2012-11-05 14:58:40 DEBUG: pid 2145: pool_config: port slot number 2<br>
&gt; &gt; 2012-11-05 14:58:40 DEBUG: pid 2145: key: backend_weight2<br>
&gt; &gt; 2012-11-05 14:58:40 DEBUG: pid 2145: value: 1 kind: 2<br>
&gt; &gt; 2012-11-05 14:58:40 DEBUG: pid 2145: pool_config: weight slot number 2<br>
&gt; &gt; weight: 1.000000<br>
&gt; &gt; 2012-11-05 14:58:40 DEBUG: pid 2145: key: backend_data_directory2<br>
&gt; &gt; 2012-11-05 14:58:40 DEBUG: pid 2145: value: &#39;/data/postgres&#39; kind: 4<br>
&gt; &gt; 2012-11-05 14:58:40 DEBUG: pid 2145: key: backend_flag2<br>
&gt; &gt; 2012-11-05 14:58:40 DEBUG: pid 2145: value: &#39;ALLOW_TO_FAILOVER&#39; kind: 4<br>
&gt; &gt; 2012-11-05 14:58:40 DEBUG: pid 2145: extract_string_tokens: token:<br>
&gt; &gt; ALLOW_TO_FAILOVER<br>
&gt; &gt; 2012-11-05 14:58:40 DEBUG: pid 2145: pool_config: allow_to_failover on<br>
&gt; &gt; 2012-11-05 14:58:40 DEBUG: pid 2145: pool_config: slot number 2 flag: 0000<br>
&gt; &gt; 2012-11-05 14:58:40 DEBUG: pid 2145: key: enable_pool_hba<br>
&gt; &gt; 2012-11-05 14:58:40 DEBUG: pid 2145: value: on kind: 1<br>
&gt; &gt; 2012-11-05 14:58:40 DEBUG: pid 2145: key: authentication_timeout<br>
&gt; &gt; 2012-11-05 14:58:40 DEBUG: pid 2145: value: 60 kind: 2<br>
&gt; &gt; 2012-11-05 14:58:40 DEBUG: pid 2145: key: ssl<br>
&gt; &gt; 2012-11-05 14:58:40 DEBUG: pid 2145: value: off kind: 1<br>
&gt; &gt; 2012-11-05 14:58:40 DEBUG: pid 2145: key: num_init_children<br>
&gt; &gt; 2012-11-05 14:58:40 DEBUG: pid 2145: value: 32 kind: 2<br>
&gt; &gt; 2012-11-05 14:58:40 DEBUG: pid 2145: key: max_pool<br>
&gt; &gt; 2012-11-05 14:58:40 DEBUG: pid 2145: value: 4 kind: 2<br>
&gt; &gt; 2012-11-05 14:58:40 DEBUG: pid 2145: key: child_life_time<br>
&gt; &gt; 2012-11-05 14:58:40 DEBUG: pid 2145: value: 300 kind: 2<br>
&gt; &gt; 2012-11-05 14:58:40 DEBUG: pid 2145: key: child_max_connections<br>
&gt; &gt; 2012-11-05 14:58:40 DEBUG: pid 2145: value: 0 kind: 2<br>
&gt; &gt; 2012-11-05 14:58:40 DEBUG: pid 2145: key: connection_life_time<br>
&gt; &gt; 2012-11-05 14:58:40 DEBUG: pid 2145: value: 0 kind: 2<br>
&gt; &gt; 2012-11-05 14:58:40 DEBUG: pid 2145: key: client_idle_limit<br>
&gt; &gt; 2012-11-05 14:58:40 DEBUG: pid 2145: value: 0 kind: 2<br>
&gt; &gt; 2012-11-05 14:58:40 DEBUG: pid 2145: key: log_destination<br>
&gt; &gt; 2012-11-05 14:58:40 DEBUG: pid 2145: value: &#39;stderr&#39; kind: 4<br>
&gt; &gt; 2012-11-05 14:58:40 DEBUG: pid 2145: key: print_timestamp<br>
&gt; &gt; 2012-11-05 14:58:40 DEBUG: pid 2145: value: on kind: 1<br>
&gt; &gt; 2012-11-05 14:58:40 DEBUG: pid 2145: key: log_connections<br>
&gt; &gt; 2012-11-05 14:58:40 DEBUG: pid 2145: value: off kind: 1<br>
&gt; &gt; 2012-11-05 14:58:40 DEBUG: pid 2145: key: log_hostname<br>
&gt; &gt; 2012-11-05 14:58:40 DEBUG: pid 2145: value: on kind: 1<br>
&gt; &gt; 2012-11-05 14:58:40 DEBUG: pid 2145: key: log_statement<br>
&gt; &gt; 2012-11-05 14:58:40 DEBUG: pid 2145: value: off kind: 1<br>
&gt; &gt; 2012-11-05 14:58:40 DEBUG: pid 2145: key: log_per_node_statement<br>
&gt; &gt; 2012-11-05 14:58:40 DEBUG: pid 2145: value: off kind: 1<br>
&gt; &gt; 2012-11-05 14:58:40 DEBUG: pid 2145: key: w<br>
&gt; &gt; 2012-11-05 14:58:40 DEBUG: pid 2145: value:<br>
&gt; &gt;  kind: 7<br>
&gt; &gt; 2012-11-05 14:58:40 DEBUG: pid 2145: key: log_standby_delay<br>
&gt; &gt; 2012-11-05 14:58:40 DEBUG: pid 2145: value: &#39;always&#39; kind: 4<br>
&gt; &gt; 2012-11-05 14:58:40 DEBUG: pid 2145: key: syslog_facility<br>
&gt; &gt; 2012-11-05 14:58:40 DEBUG: pid 2145: value: &#39;LOCAL0&#39; kind: 4<br>
&gt; &gt; 2012-11-05 14:58:40 DEBUG: pid 2145: key: syslog_ident<br>
&gt; &gt; 2012-11-05 14:58:40 DEBUG: pid 2145: value: &#39;pgpool&#39; kind: 4<br>
&gt; &gt; 2012-11-05 14:58:40 DEBUG: pid 2145: key: debug_level<br>
&gt; &gt; 2012-11-05 14:58:40 DEBUG: pid 2145: value: 0 kind: 2<br>
&gt; &gt; 2012-11-05 14:58:40 DEBUG: pid 2145: loading &quot;/usr/local/etc/pool_hba.conf&quot;<br>
&gt; &gt; for client authentication configuration file<br>
&gt; &gt; 2012-11-05 14:58:40 LOG:   pid 2145: wd_chk_sticky: ifup[/sbin/ifconfig]<br>
&gt; &gt; doesn&#39;t have sticky bit<br>
&gt; &gt; 2012-11-05 14:58:40 LOG:   pid 2145: wd_create_send_socket: connect()<br>
&gt; &gt; reports failure (Connection refused). You can safely ignore this while<br>
&gt; &gt; starting up.<br>
&gt; &gt; 2012-11-05 14:58:42 ERROR: pid 2145: wd_init: delegate_IP already exists<br>
&gt; &gt; 2012-11-05 14:58:42 ERROR: pid 2145: watchdog: wd_init failed<br>
&gt; &gt; 2012-11-05 14:58:42 ERROR: pid 2145: wd_main error<br>
&gt; &gt; 2012-11-05 14:58:42 ERROR: pid 2145: unlink(/tmp/.s.PGSQL.9898) failed: No<br>
&gt; &gt; such file or directory<br>
&gt; &gt; 2012-11-05 14:58:42 DEBUG: pid 2145: shmem_exit(1)<br>
</div></div>&gt; _______________________________________________<br>
&gt; pgpool-general mailing list<br>
&gt; <a href="mailto:pgpool-general@pgpool.net">pgpool-general@pgpool.net</a><br>
&gt; <a href="http://www.pgpool.net/mailman/listinfo/pgpool-general" target="_blank">http://www.pgpool.net/mailman/listinfo/pgpool-general</a><br>
<span class="HOEnZb"><font color="#888888"><br>
<br>
--<br>
Yugo Nagata &lt;<a href="mailto:nagata@sraoss.co.jp">nagata@sraoss.co.jp</a>&gt;<br>
</font></span></blockquote></div><br><br clear="all"><div><br></div>-- <br><span><div>Technical Operations Manager</div><div><p style="margin-top:0px;margin-right:0px;margin-bottom:0px;margin-left:0px"><span style="font-family:Arial,sans-serif">VYRE LTD</span><u></u><u></u></p>
<p style="margin-top:0px;margin-right:0px;margin-bottom:0px;margin-left:0px"><span style="font-family:Arial,sans-serif">Zetland House</span><u></u><u></u></p><p style="margin-top:0px;margin-right:0px;margin-bottom:0px;margin-left:0px">
<span style="font-family:Arial,sans-serif">Ground Floor</span><u></u><u></u></p><p style="margin-top:0px;margin-right:0px;margin-bottom:0px;margin-left:0px"><span style="font-family:Arial,sans-serif">5-25 Scrutton Street</span><u></u><u></u></p>
<p style="margin-top:0px;margin-right:0px;margin-bottom:0px;margin-left:0px"><span style="font-family:Arial,sans-serif">London</span><u></u><u></u></p><p style="margin-top:0px;margin-right:0px;margin-bottom:0px;margin-left:0px">
<span style="font-family:Arial,sans-serif">EC2A 4HJ</span></p><p style="margin-top:0px;margin-right:0px;margin-bottom:0px;margin-left:0px"><span style="font-family:Arial,sans-serif">0207 749 1800</span></p><p style="margin-top:0px;margin-right:0px;margin-bottom:0px;margin-left:0px">
<span style="font-family:Arial,sans-serif">07825 536 416</span></p></div></span><br>
</div>