<br><div class="gmail_quote">Thanks for your quick reply Tatsuo,<br><br>Before to get your reply i tried to understand where the main process stops adding some print in the line right above every exit call in the main.c class.<br>
I found out that it never stops calling the exit command in  an explicit way.<br>
<br>After your reply I tracked it&#39;s behaviour using truss.<br>Truss output is in the attched file.<br><br><br>Commenting the dup2 file in the demonize function, I&#39;d been able to get which error happens just before the process &quot;death&quot;.<br>

<br>This is the error:<br><br>pool_flush_it: write failed to backend (0). reason: Socket is not connected offset: 0 wlen: 41<br><br>it happens after the first health_check call. <br><br>it seems that the socket is not connected to the local backend (backend 0 is on the same host where pgpool is running) but stragely the replication on the backend 0 it work normally so I think that it&#39;s connected. <br>

<br>The real trouble is that pgppol will never check for failover or failback loosing the main process.<br><br>The pgsql version of every backend is 8.3. I attach the pgpool config file too.<br><br> <br>Thanks again for your help<br>

<br><br>--<br><br>Daniele Di vito<div class="HOEnZb"><div class="h5"><br><br><div class="gmail_quote">2013/2/21 Tatsuo Ishii <span dir="ltr">&lt;<a href="mailto:ishii@postgresql.org" target="_blank">ishii@postgresql.org</a>&gt;</span><br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div><div>&gt; HI everybody, I&#39;ve compiled pgpool 3.2.2 on AIX 5.2.<br>
&gt;<br>
&gt; I configured the pool for using replication mode. The configuration is<br>
&gt; working really fine on some linux virtual machine, but when I try to use<br>
&gt; pgpool with the same configuration on AIX I have a big trouble.<br>
&gt;<br>
&gt; Starting with &quot;pgpool -d&quot; the server seems to be starting normally. it<br>
&gt; create pcp process and it create the pool connections waiting for<br>
&gt; connection requests.<br>
&gt;<br>
&gt; When I lunch a &quot;ps -fu postgres | grep pgpool&quot;  i get this output:<br>
&gt;<br>
&gt;<br>
&gt;<br>
&gt; postgres  62164      1   0 10:05:48      -  0:00 pgpool: wait for<br>
&gt; connection request<br>
&gt; postgres  75470      1   0 10:05:48      -  0:00 pgpool: PCP: wait for<br>
&gt; connection request<br>
&gt; postgres  84072      1   0 10:05:48      -  0:00 pgpool: wait for<br>
&gt; connection request<br>
&gt; postgres  96828      1   0 10:05:48      -  0:00 pgpool: wait for<br>
&gt; connection request<br>
&gt; postgres 100026      1   0 10:05:48      -  0:00 pgpool: wait for<br>
&gt; connection request<br>
&gt; postgres 106670      1   0 10:05:47      -  0:00 pgpool: wait for<br>
&gt; connection request<br>
&gt; postgres 109864      1   0 10:05:48      -  0:00 pgpool: worker process<br>
&gt; postgres 116412      1   0 10:05:48      -  0:00 pgpool: wait for<br>
&gt; connection request<br>
&gt;<br>
&gt; but, as you can see looking at the output listed above,no pgpool daemon is<br>
&gt; running and every subprocess created by it now have as ppid 1.<br>
&gt;<br>
&gt; if I look into the pgpool.pid i get a pid that is not running on the AIX<br>
&gt; machine.<br>
&gt; Obviously if i try to stop pgpool it says that  the process is not running<br>
&gt; so i have to kill every process and to remove every temporary file manually.<br>
&gt;<br>
&gt; If i run it without a daemon using  &quot;pgppool -n&quot;<br>
&gt;<br>
&gt; the pgpool -n process is listed for some minutes in the  &quot;ps -fu postgres |<br>
&gt; grep pgpool&quot; and every subprocess have the right ppid.<br>
&gt; Some minutes later i get the same output I listed for the &quot;pgpool -d&quot;<br>
&gt; command start.<br>
&gt;<br>
&gt; Any idea on how to solve this trouble?<br>
&gt;<br>
&gt; I&#39;ve already tried to find some error while in debug mode, but no error<br>
&gt; listed.<br>
<br>
</div></div>Does AIX have something like &quot;strace&quot; or &quot;truss&quot;? If so, taking a<br>
system call trace by using it, may provide valuable information.  You<br>
take system call trace until pgpool-II parent process disappears.<br>
--<br>
Tatsuo Ishii<br>
SRA OSS, Inc. Japan<br>
English: <a href="http://www.sraoss.co.jp/index_en.php" target="_blank">http://www.sraoss.co.jp/index_en.php</a><br>
Japanese: <a href="http://www.sraoss.co.jp" target="_blank">http://www.sraoss.co.jp</a><br>
</blockquote></div><br>
</div></div></div><br>