<html>
  <head>
    <meta content="text/html; charset=ISO-8859-1"
      http-equiv="Content-Type">
  </head>
  <body bgcolor="#FFFFFF" text="#000000">
    <div class="moz-cite-prefix"><br>
    </div>
    <blockquote
      cite="mid:20150909.081314.1163634209898454082.t-ishii@sraoss.co.jp"
      type="cite">
      <blockquote type="cite">
        <pre wrap="">Thomas

Le 08/09/2015 17:34, Pablo Sanchez a &eacute;crit :
</pre>
        <blockquote type="cite">
          <pre wrap="">[ Comments below, in-line ]

On 09/08/2015 11:27 AM, Thomas SIMON wrote:
</pre>
          <blockquote type="cite">
            <pre wrap="">
</pre>
            <blockquote type="cite">
              <pre wrap="">On 09/08/2015 11:11 AM, Thomas SIMON wrote:
</pre>
            </blockquote>
            <pre wrap="">
Hi Pablo
</pre>
          </blockquote>
          <pre wrap="">
Hey Thomas

</pre>
          <blockquote type="cite">
            <pre wrap="">I have following lines :

local   all             postgres trust
local   all             all trust
host    all         all             127.0.0.1/32 trust
</pre>
          </blockquote>
          <pre wrap="">
Assuming your PGPool set up is not on the same server as the DB
server, the above entries are fine.

</pre>
          <blockquote type="cite">
            <pre wrap="">host    all         all 172.20.0.101/32         trust
</pre>
          </blockquote>
          <pre wrap="">
The above isn't pgpool's IP eh?  172.20.0.101?
</pre>
        </blockquote>
        <pre wrap="">No, this is the IP of my second pgpool instance in my private
network. (I usea a virtual IP , and healthcheck between the two
instances)
</pre>
        <blockquote type="cite">
          <pre wrap="">
</pre>
          <blockquote type="cite">
            <pre wrap="">I have this parameters enabled, and pool_hba.conf is loaded, because
if
I try to come from another IP, I have an negative answer from it
ERROR: no pool_hba.conf entry for host "1.2.3.4", user "toto",
database
"db1", SSL on
</pre>
          </blockquote>
          <pre wrap="">
Have you confirmed the -a setting?
</pre>
        </blockquote>
        <pre wrap="">I use debian packaged version of pgpool2, so I launch it via init.d
script, but I can confirm you /etc/pgpool2/pool_hba.conf is loaded (by
default)
I run pgpool by specifying file with -a, I have the same issue.
</pre>
      </blockquote>
      <pre wrap="">
To enable the md5 auth on pgpool-II, md5 auth must be enabled on
PostgreSQL side as well. It is possible that PostgreSQL thinks that
incoming IP address (that is the IP address on which pgpool-II is
running) does not require md5 auth. I think you can make sure the
incoming IP for PostgreSQL is correct by enabling log_connections
parameter of PostgreSQL.</pre>
    </blockquote>
    Hi Tatsuo,<br>
    If I enable md5 auth in both postgresql (master &amp; slave), it
    doesn't work, and I have following message (independently if I use
    trust or md5 method on pgpool) : <br>
    <br>
    pg_hba.conf :<br>
    # IPv4 local connections:<br>
    host&nbsp;&nbsp;&nbsp; all&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; all&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 127.0.0.1/32&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; md5<br>
    <br>
    <br>
    <br>
    <i>pool_read_message_length: message length (8) in slot 1 does not
      match with slot 0(12)</i><i><br>
    </i><i>2015-09-09T10:07:16.285644+02:00 pg1 pgpool[1007]: Failed to
      read the authentication packet length. This is likely caused by
      the inconsistency of auth method among DB nodes. In this case you
      can check the previous error messages (hint: length field) from
      pool_read_message_length and recheck the pg_hba.conf settings.</i><i><br>
    </i><br>
    <br>
    <blockquote
      cite="mid:20150909.081314.1163634209898454082.t-ishii@sraoss.co.jp"
      type="cite">
      <pre wrap="">

Best regards,
--
Tatsuo Ishii
SRA OSS, Inc. Japan
English: <a class="moz-txt-link-freetext" href="http://www.sraoss.co.jp/index_en.php">http://www.sraoss.co.jp/index_en.php</a>
Japanese:<a class="moz-txt-link-freetext" href="http://www.sraoss.co.jp">http://www.sraoss.co.jp</a>
</pre>
    </blockquote>
    <br>
  </body>
</html>