<div dir="ltr">Dears<div><br></div><div>I&#39;m facing an issue when configuring PGPool to require MD5 Authentication, as well as communicate with MD5 authentication to backend postgres databases.</div><div><br></div><div>I currently face the following error in pgpool logs</div><div><br></div><div><div>LOG:  find_primary_node: checking backend no 0</div><div>ERROR:  failed to authenticate</div><div>DETAIL:  invalid authentication message response type, Expecting &#39;R&#39; and received &#39;E&#39;</div></div><div><br></div><div><b>PG Pool hba configuration:</b></div><div><br></div><div><div>host    all         all         <a href="http://127.0.0.1/32" target="_blank">127.0.0.1/32</a>          md5</div><div>host    all         all         ::1/128               md5</div><div>local   all         all                               md5</div><div>#local<span style="white-space:pre-wrap">        </span>all        all             <a href="http://0.0.0.0/0" target="_blank">0.0.0.0/0</a>        md5</div><div>host    all        all             <a href="http://0.0.0.0/0" target="_blank">0.0.0.0/0</a>        md5</div><div><br></div><div><b>Used the following command for pool_passwd confgiuration</b></div><div><br></div><div><div>pg_md5 --md5auth --username=myusername mypassword</div></div><div><br></div><div> i found that according to the matrix in this link, i have to configure MD5 authentication in postgres</div><div><a href="https://pgpool.net/mediawiki/index.php/FAQ#I_created_pool_hba.conf_and_pool_passwd_to_enable_md5_authentication_through_pgpool-II_but_it_does_not_work._Why.3F" target="_blank">https://pgpool.net/mediawiki/index.php/FAQ#I_created_pool_hba.conf_and_pool_passwd_to_enable_md5_authentication_through_pgpool-II_but_it_does_not_work._Why.3F</a>  <br></div><div><br></div><div><div><b>I use the following configuration too for pg hba</b></div><div><br></div><div><div># TYPE  DATABASE        USER            ADDRESS                 METHOD</div><div><br></div><div># &quot;local&quot; is for Unix domain socket connections only</div><div>local   all             all                                     md5</div><div># IPv4 local connections:</div><div>host    all             all             <a href="http://0.0.0.0/0" target="_blank">0.0.0.0/0</a>               md5</div><div>host    all             all             <a href="http://127.0.0.1/32" target="_blank">127.0.0.1/32</a>            md5</div><div># IPv6 local connections:</div><div>host    all             all             ::1/128                 md5</div><div># Allow replication connections from localhost, by a user with the</div><div># replication privilege.</div><div>host    replication     all             <a href="http://0.0.0.0/0" target="_blank">0.0.0.0/0</a>               trust</div></div></div><div><br></div><div><b>and after this i faced the error above.</b></div><div><b><br></b></div><div><b>What could be the reason for this?</b></div><div><b><br></b></div><div><b>Knowing that i&#39;m using</b></div><div><b><br></b></div><div><b>PG Pool </b><span style="font-family:Arial;font-size:10pt;text-align:center">3.5.17</span></div><div><b>Postgres 9.3</b></div><div><br></div><div>I used the following links as my references:</div><div><br></div><div><a href="https://www.pgpool.net/docs/latest/en/html/auth-methods.html" target="_blank">https://www.pgpool.net/docs/latest/en/html/auth-methods.html</a>   </div><div><a href="https://www.pgpool.net/docs/latest/en/html/runtime-config-connection.html#GUC-POOL-PASSWD" target="_blank">https://www.pgpool.net/docs/latest/en/html/runtime-config-connection.html#GUC-POOL-PASSWD</a></div></div><div><br></div>-- <br><div dir="ltr" class="gmail_signature" data-smartmail="gmail_signature"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr">Shereef Sakr<br></div></div></div></div></div></div>