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 1lZsAU-0008Em-MS for pgsql-general@arkaria.postgresql.org; Fri, 23 Apr 2021 09:32:10 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1lZsAT-0002oH-LU for pgsql-general@arkaria.postgresql.org; Fri, 23 Apr 2021 09:32:09 +0000 Received: from makus.postgresql.org ([2001:4800:3e1:1::229]) by malur.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1lZsAT-0002oA-ES for pgsql-general@lists.postgresql.org; Fri, 23 Apr 2021 09:32:09 +0000 Received: from ms-10.1blu.de ([178.254.4.101]) by makus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1lZsAP-0005LS-Gg for pgsql-general@lists.postgresql.org; Fri, 23 Apr 2021 09:32:08 +0000 Received: from [188.174.51.196] (helo=c720-r368166.unixarea.de) by ms-10.1blu.de with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lZsAN-0003Lx-HF; Fri, 23 Apr 2021 11:32:03 +0200 Received: from c720-r368166.fritz.box (localhost [127.0.0.1]) by c720-r368166.unixarea.de (8.16.1/8.14.9) with ESMTPS id 13N9W2YD002088 (version=TLSv1.3 cipher=TLS_AES_256_GCM_SHA384 bits=256 verify=NO); Fri, 23 Apr 2021 11:32:02 +0200 (CEST) (envelope-from guru@unixarea.de) Received: (from guru@localhost) by c720-r368166.fritz.box (8.16.1/8.14.9/Submit) id 13N9W2D9002087; Fri, 23 Apr 2021 11:32:02 +0200 (CEST) (envelope-from guru@unixarea.de) X-Authentication-Warning: c720-r368166.fritz.box: guru set sender to guru@unixarea.de using -f Date: Fri, 23 Apr 2021 11:32:02 +0200 From: Matthias Apitz To: Laurenz Albe Cc: pgsql-general@lists.postgresql.org Subject: Re: client waits for end of update operation and server proc is idle Message-ID: Reply-To: Matthias Apitz References: <0551daad25ee518071e002ca17c4b6dac08a236c.camel@cybertec.at> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable In-Reply-To: <0551daad25ee518071e002ca17c4b6dac08a236c.camel@cybertec.at> X-Operating-System: FreeBSD 13.0-CURRENT r368166 (amd64) X-message-flag: Mails containing HTML will not be read! Please send only plain text. X-Con-Id: 51246 X-Con-U: 0-guru X-Originating-IP: 188.174.51.196 List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk El d=C3=ADa viernes, abril 23, 2021 a las 10:48:24a. m. +0200, Laurenz Albe= escribi=C3=B3: > > The serverlog has around this time (sorry for German): > >=20 > > 2021-04-23 05:55:23.591 CEST [2317] LOG: unvollst=C3=A4ndige Message v= om Client > > 2021-04-23 05:55:23.593 CEST [2317] FEHLER: Speicher aufgebraucht > > 2021-04-23 05:55:23.593 CEST [2317] DETAIL: Kann Zeichenkettenpuffer m= it 0 Bytes nicht um 1380986158 Bytes vergr=C3=B6=C3=9Fern. > > 2021-04-23 05:55:23.593 CEST [2317] LOG: konnte Daten nicht an den Cli= ent senden: Daten=C3=BCbergabe unterbrochen (broken pipe) > > 2021-04-23 05:55:23.593 CEST [2317] FATAL: Verbindung zum Client wurde= verloren > > 2021-04-23 05:57:20.339 CEST [27190] LOG: unerwartetes EOF auf Client-= Verbindung mit einer offenen Transaktion > > 2021-04-23 05:59:17.419 CEST [26827] LOG: unerwartetes EOF auf Client-= Verbindung mit einer offenen Transaktion > >=20 > > What else could be checked for this? Any hints about this issue? >=20 > It seems pretty clear that both the client and the server are waiting for= each other. Yes, they are both alive as processes. Both are running on the same Linux server, i.e. no real network between. And any loss of data would have caused perhaps the end of one (and then the other) process. I will try to gather a TCPDUMP for this. >=20 > The server is of the opinion that it has completed the query, while the c= lient is > still waiting for the response. >=20 > I would look for the problem in the network between both. The error mess= ages > (unexpected EOF on client connection, broken pipe) seem to point in the s= ame direction. The other 'unerwartetes EOF auf Client' (unexpected EOF client) are logged by other PostgreSQL server processes, not invloved here, and caused by killing other clients with 'kill -9'. matthias --=20 Matthias Apitz, =E2=9C=89 guru@unixarea.de, http://www.unixarea.de/ +49-176= -38902045 Public GnuPG key: http://www.unixarea.de/key.pub =C2=A1Con Cuba no te metas! =C2=AB=C2=BB Don't mess with Cuba! =C2=AB=C2= =BB Leg Dich nicht mit Kuba an! http://www.cubadebate.cu/noticias/2020/12/25/en-video-con-cuba-no-te-metas/