<html><head></head><body>Customer's network engineers are also investigating this for a possible firewall rule problem.<br><br><div class="gmail_quote">On 18 September 2020 11:31:41 EEST, Anssi Kanninen &lt;anssi@iki.fi&gt; wrote:<blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">
<pre class="k9mail">Thank you!<br><br>Here is some more info. I made some comparison of the TCP traffic when <br>connected to Pgpool or straight to PostgreSQL.<br><br>See attachments:<br><br>* cmd-pgpool.txt<br>The command and response when connected to Pgpool.<br><br>* tcpdump-pgpool.txt<br>A dump of TCP traffic to/from PgPool port when executed the command <br>above.<br><br>* cmd-postgres.txt<br>The command and response when connected straight to PostgreSQL.<br><br>* tcpdump-postgres.txt<br>A dump of TCP traffic to/from PostgreSQL port when executed the command <br>above.<br><br>Strangely, it seems that the database name and user name never reached <br>Pgpool.<br><br>Hope this helps,<br>   - Anssi<br><br>On Fri, 18 Sep 2020, Bo Peng wrote:<br><br><blockquote class="gmail_quote" style="margin: 0pt 0pt 1ex 0.8ex; border-left: 1px solid #729fcf; padding-left: 1ex;"> Hi,<br><br> Thank you for reporting this issue.<br> I am going to look into this one.<br><br> On Fri, 18 Sep 2020 02:47:24 +0300<br> Anssi Kanninen &lt;anssi@iki.fi&gt; wrote:<br><br><blockquote class="gmail_quote" style="margin: 0pt 0pt 1ex 0.8ex; border-left: 1px solid #ad7fa8; padding-left: 1ex;"> Software versions are the same on both systems:<br> PostgreSQL 12.2<br> Pgpool 4.1.3<br><br> On 18 September 2020 02:31:11 EEST, Anssi Kanninen &lt;anssi@iki.fi&gt; wrote:<br><blockquote class="gmail_quote" style="margin: 0pt 0pt 1ex 0.8ex; border-left: 1px solid #8ae234; padding-left: 1ex;"> Hello,<br><br> My Pgpool doesn't work on RHEL 8.2.<br><br> Eveythins runs smoothly on my Centos 8.1.1911 virtual machines but when<br> I<br> transfer the same Pgpool/PostgreSQL configuration to customer's RHEL<br> 8.2,<br> I can not connect to Pgpool via TCP/IP.<br><br> Here is a clip of my log on Centos when I successfully fail to<br> authenticate (x.x.x.x is a wrong interface, so this error is expected).<br> So, "user" and "database" are show in the log.<br><br> Sep 16 16:04:35 centos8i1 pgpool[6616]: [33-1] pid 6616: ERROR:  failed<br> to authenticate<br> Sep 16 16:04:35 centos8i1 pgpool[6616]: [33-2] pid 6616: DETAIL:  no<br> pg_hba.conf entry for host "x.x.x.x", user "pgpool", database<br> "postgres", SSL off<br><br> Here is log of successful connection. Protocol Major is 3 and Minor is<br> 0.<br><br> Sep 18 02:07:28 centos8i1 pgpool[27853]: [26-1] pid 27853: DEBUG:<br> reading startup packet<br> Sep 18 02:07:28 centos8i1 pgpool[27853]: [26-2] pid 27853: DETAIL:<br> application_name: psql<br> Sep 18 02:07:28 centos8i1 pgpool[27853]: [27-1] pid 27853: DEBUG:<br> reading startup packet<br> Sep 18 02:07:28 centos8i1 pgpool[27853]: [27-2] pid 27853: DETAIL:<br> Protocol Major: 3 Minor: 0 database: postgres user: pgpool<br> Sep 18 02:07:28 centos8i1 pgpool[27853]: [28-1] pid 27853: DEBUG:<br> creating new connection to backend<br> Sep 18 02:07:28 centos8i1 pgpool[27853]: [28-2] pid 27853: DETAIL:<br> connecting 0 backend<br> Sep 18 02:07:28 centos8i1 pgpool[27853]: [29-1] pid 27853: DEBUG:<br> creating new connection to backend<br> Sep 18 02:07:28 centos8i1 pgpool[27853]: [29-2] pid 27853: DETAIL:<br> connecting 1 backend<br> Sep 18 02:07:28 centos8i1 pgpool[27853]: [30-1] pid 27853: DEBUG:<br> creating new connection to backend<br> Sep 18 02:07:28 centos8i1 pgpool[27853]: [30-2] pid 27853: DETAIL:<br> connecting 2 backend<br> Sep 18 02:07:28 centos8i1 pgpool[27853]: [31-1] pid 27853: DEBUG:<br> authentication backend<br> Sep 18 02:07:28 centos8i1 pgpool[27853]: [31-2] pid 27853: DETAIL:<br> auth kind:10<br> Sep 18 02:07:28 centos8i1 pgpool[27853]: [32-1] pid 27853: DEBUG:<br> authentication backend 0<br> Sep 18 02:07:28 centos8i1 pgpool[27853]: [32-2] pid 27853: DETAIL:<br> trying SCRAM authentication<br> Sep 18 02:07:28 centos8i1 pgpool[27853]: [33-1] pid 27853: DEBUG:<br> SCRAM authentication successful for backend 0<br><br> So, the above works.<br><br> But then I transfer the same configuration to the customer's RHEL 8.2,<br> the<br> same connection attempt shows this:<br><br> Sep 18 01:48:31 haketikuqadb01 pgpool[348681]: [262-1] pid 348681:<br> DEBUG:  I am 348681 accept fd 8<br> Sep 18 01:48:31 haketikuqadb01 pgpool[348681]: [263-1] pid 348681:<br> DEBUG:  reading startup packet<br> Sep 18 01:48:31 haketikuqadb01 pgpool[348681]: [263-2] pid 348681:<br> DETAIL:  Protocol Major: 1234 Minor: 5680 database:  user:<br> Sep 18 01:48:31 haketikuqadb01 pgpool[348681]: [264-1] pid 348681:<br> FATAL:  client authentication failed<br> Sep 18 01:48:31 haketikuqadb01 pgpool[348681]: [264-2] pid 348681:<br> DETAIL:  no pool_hba.conf entry for host "x.x.x.x", user "", database<br> "", SSL off<br> Sep 18 01:48:31 haketikuqadb01 pgpool[348681]: [264-3] pid 348681:<br> HINT:  see pgpool log for details<br> Sep 18 01:48:31 haketikuqadb01 pgpool[348612]: [46-1] pid 348612:<br> DEBUG:  reaper handler<br> Sep 18 01:48:31 haketikuqadb01 pgpool[348612]: [47-1] pid 348612: LOG:<br> child process with pid: 348681 exits with status 512<br><br> Protocol Major and Minor numbers look strange and why the database name<br><br> and user name are empty? Did it fail to read the incoming packet for<br> some<br> reason? The connection was local but thru TCP/IP network interface.<br> Linux<br> firewall was used but same ports were open on both clusters. SELinux is<br> in<br> use.<br><br> Psql client responds like this:<br><br> psql: error: could not connect to server: server closed the connection<br> unexpectedly<br>         This propably means the server terminated abnormally<br>         before or while processing the request.<br><br><br> Here is my pool_hba.conf:<br><br> local   all         all                               trust<br> host    all         all         127.0.0.1/32          trust<br> host    all         all         ::1/128               trust<br> host    all         pgpool      samenet               scram-sha-256<br> host    all         postgres    samenet               scram-sha-256<br><br> My pool_passwd looks like this:<br><br> postgres:AESmyencryptedpassword==<br> pgpool:AESmyencryptedpassword==<br><br> The psql command was as follows and the password was correct:<br><br> $ psql -h x.x.x.x postgres pgpool -w<br><br> So, something is different on our RHEL but what?<br><br> Best regards,<br>   Anssi<hr> pgpool-general mailing list<br> pgpool-general@pgpool.net<br> <a href="http://www.pgpool.net/mailman/listinfo/pgpool-general">http://www.pgpool.net/mailman/listinfo/pgpool-general</a><br></blockquote></blockquote><br><br> -- <br> Bo Peng &lt;pengbo@sraoss.co.jp&gt;<br> SRA OSS, Inc. Japan<br><br></blockquote></pre></blockquote></div></body></html>