Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1mFfG8-0002Ql-Qa for pgsql-general@arkaria.postgresql.org; Mon, 16 Aug 2021 16:14:44 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1mFfG7-00036c-Gs for pgsql-general@arkaria.postgresql.org; Mon, 16 Aug 2021 16:14:43 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1mFfG7-00036T-7X for pgsql-general@lists.postgresql.org; Mon, 16 Aug 2021 16:14:43 +0000 Received: from sss.pgh.pa.us ([66.207.139.130]) by magus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1mFfG5-0001AX-5l for pgsql-general@lists.postgresql.org; Mon, 16 Aug 2021 16:14:42 +0000 Received: from sss1.sss.pgh.pa.us (localhost [127.0.0.1]) by sss.pgh.pa.us (8.15.2/8.15.2) with ESMTP id 17GGEbPI895638; Mon, 16 Aug 2021 12:14:37 -0400 From: Tom Lane To: Andy Hall cc: pgsql-general@lists.postgresql.org Subject: Re: postgres disconnects on master after setting up replication In-reply-to: References: Comments: In-reply-to Andy Hall message dated "Mon, 16 Aug 2021 16:32:30 +0100" MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <895636.1629130477.1@sss.pgh.pa.us> Date: Mon, 16 Aug 2021 12:14:37 -0400 Message-ID: <895637.1629130477@sss.pgh.pa.us> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk Andy Hall writes: > we have an odd issue where a java app using JDBC which has been > working fine has suddenly started disconnecting after we setup > replication from the database it was connecting to ( which is now the > primary in a replicating pair ) with errors such as the following... > CLIENT SIDE: DBNAME/logs/20210815-200601.20966.log:SessionManagerImpl > WARN 20210816-00:01:00.252 - A session lost connection with the > database. Disabling all sessions > SERVER SIDE: 2021-08-16 01:48:27 BST FATAL: unsupported frontend > protocol 1234.5680: server supports 1.0 to 3.0 Hmm. That "protocol version" is a GSS request: #define NEGOTIATE_GSS_CODE PG_PROTOCOL(1234,5680) So 1. You are using a server version that predates our GSS support. 2. On the other hand, the client knows GSS and is trying to use it. The client should fall back to a non-GSS connection upon receiving this error response. But ... 3. Something --- it's not very clear what --- is seeing the error and going into an unwarranted panic. I'd try to figure out what's issuing the "Disabling all sessions" message and then filing a complaint with the authors of that. regards, tom lane