Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1sA2XX-0078rC-Nt for pgsql-general@arkaria.postgresql.org; Thu, 23 May 2024 07:07:05 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.94.2) (envelope-from ) id 1sA2XW-009AL8-TZ for pgsql-general@arkaria.postgresql.org; Thu, 23 May 2024 07:07:02 +0000 Received: from makus.postgresql.org ([2001:4800:3e1:1::229]) by malur.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1sA2XW-009AKz-IW for pgsql-general@lists.postgresql.org; Thu, 23 May 2024 07:07:02 +0000 Received: from mail.hjp.at ([212.17.106.138] helo=rorschach.hjp.at) by makus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1sA2XM-001a88-RI for pgsql-general@postgresql.org; Thu, 23 May 2024 07:07:01 +0000 Received: by rorschach.hjp.at (Postfix, from userid 1000) id 0CD4A128FA; Thu, 23 May 2024 09:06:49 +0200 (CEST) Date: Thu, 23 May 2024 09:06:49 +0200 From: "Peter J. Holzer" To: pgsql-general@postgresql.org Subject: expected authentication request from server, but received H Message-ID: <20240523070649.7j6r2lidqrmhmr3o@hjp.at> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="mz3vrqfn4xajw2hr" Content-Disposition: inline List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk --mz3vrqfn4xajw2hr Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable One of our users reports getting the error message "expected authentication request from server, but received H" when trying to connect to the database. I have confirmed that they do indeed connect to the database and not some other service and in Wireshark it looks like the TLS handshake succeeds. Server is PostgreSQL 15.7 (Ubuntu 15.7-1.pgdg22.04+1) I haven't been able to find out what client version they are using yet, but I suspect it's quite old. We've been on 15.x for quite a while now and it did work until at least a month ago, so I wouldn't expect an incompatible protocol change, however, I think the upgrade from 15.6 to 15.7 was just last week, so maybe something changed between these minor versions? I'm especially intrigued by "received H". According to https://www.postgresql.org/docs/current/protocol-message-formats.html Byte1('H') could mark a Copy Out response or a Flush command. Both don't make sense in that context. hp --=20 _ | Peter J. Holzer | Story must make more sense than reality. |_|_) | | | | | hjp@hjp.at | -- Charles Stross, "Creative writing __/ | http://www.hjp.at/ | challenge!" --mz3vrqfn4xajw2hr Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQIzBAABCgAdFiEETtJbRjyPwVTYGJ5k8g5IURL+KF0FAmZO6wIACgkQ8g5IURL+ KF0o7Q//dg292hsMhTeMLNsBX9lN8EUc9Skk0wzScrS2yf8NWFDP+8aD/NIqd/+C okq4hYocW4g81vhb2aIuR00u+4jKceNcuX6JO7jB5Ah+acYV65X0LALUU/1VaHYt b2phoCgfHgvQTih10zfIAowh8KB40gwdeAGAKr00/LjhBxATK1EHUPh/dmuKsJ/9 bV2Fl8+lSNj5S0Fw2f1JksdSAWrDJMd5YoGu/je8MRBZgnYA+YcVtGNaHlOIeihn yBi1P6JdzybO8MobkdKyUMT3Zvgnv8DRdcUh8Nl1jLL5zFmmYx4BFLjugKGXEczm K7UPpLbwg5sCAH1/kSKk5vYn3pPPIglJseR3+9hrBeDXF9mBM68iH5+N6h7xpNVP iS4lm6aWUJv0ADCLdypDgH6+nl9wV8DiJq6gPu3K9jxIzg7REQuTAuoSGx2JquqH ZUdlv1/ElFTVY6myQGc/wf3IsY+pxyMQK2y/THms3Ge/rPmJNCJepUfHXVZ3d0mW VspO+i+p/6T3swLyvQd/I00WYPNb2z3n3fnRZgHxuM5CFzkx2T5GDcZT5dUFRf4z c917ewcXdO5H7Ar0Y2RhROtQv+brpiJmnQn1lTdsPSnuNTzRXxsSnUfS0fiC5KHM pNur+afQrZi6vlOXcXVKuyTxruCEwGSYEwLoMOK6a5fVM/w4tno= =sk+n -----END PGP SIGNATURE----- --mz3vrqfn4xajw2hr--