pg.ddx.io  pgsql-general@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Matthias Apitz <guru@unixarea.de>
To: Laurenz Albe <laurenz.albe@cybertec.at>
Cc: pgsql-general@lists.postgresql.org
Subject: Re: client waits for end of update operation and server proc is idle
Date: Fri, 23 Apr 2021 11:32:02 +0200
Message-ID: <YIKUEg8Eo0DchREa@c720-r368166.fritz.box> (raw)
In-Reply-To: <0551daad25ee518071e002ca17c4b6dac08a236c.camel@cybertec.at>
References: <YIKCCXcEozx9iiBU@c720-r368166.fritz.box>
	<0551daad25ee518071e002ca17c4b6dac08a236c.camel@cybertec.at>

El día viernes, abril 23, 2021 a las 10:48:24a. m. +0200, Laurenz Albe escribió:

> > The serverlog has around this time (sorry for German):
> > 
> > 2021-04-23 05:55:23.591 CEST [2317] LOG:  unvollständige Message vom 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 mit 0 Bytes nicht um 1380986158 Bytes vergrößern.
> > 2021-04-23 05:55:23.593 CEST [2317] LOG:  konnte Daten nicht an den Client senden: Datenübergabe 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
> > 
> > What else could be checked for this? Any hints about this issue?
> 
> 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.

> 
> The server is of the opinion that it has completed the query, while the client is
> still waiting for the response.
> 
> I would look for the problem in the network between both.  The error messages
> (unexpected EOF on client connection, broken pipe) seem to point in the same 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
-- 
Matthias Apitz, ✉ guru@unixarea.de, http://www.unixarea.de/ +49-176-38902045
Public GnuPG key: http://www.unixarea.de/key.pub
¡Con Cuba no te metas!  «»  Don't mess with Cuba!  «»  Leg Dich nicht mit Kuba an!
http://www.cubadebate.cu/noticias/2020/12/25/en-video-con-cuba-no-te-metas/





view thread (14+ messages)  latest in thread

Message-ID: <YIKUEg8Eo0DchREa@c720-r368166.fritz.box>
Permalink:  ../YIKUEg8Eo0DchREa@c720-r368166.fritz.box/
Also on:    postgresql.org/message-id/YIKUEg8Eo0DchREa@c720-r368166.fritz.box

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-general@postgresql.org
  Cc: guru@unixarea.de, laurenz.albe@cybertec.at
  Subject: Re: client waits for end of update operation and server proc is idle
  In-Reply-To: <YIKUEg8Eo0DchREa@c720-r368166.fritz.box>
  References: <YIKCCXcEozx9iiBU@c720-r368166.fritz.box> <0551daad25ee518071e002ca17c4b6dac08a236c.camel@cybertec.at> <YIKUEg8Eo0DchREa@c720-r368166.fritz.box>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox