From: Tom Lane <tgl@sss.pgh.pa.us>
To: R Batchen <batchenr@gmail.com>
Cc: pgsql-general@lists.postgresql.org
Subject: Re: How to debug incomplete message on postgres 12.3 docker
Date: Sun, 16 Jan 2022 12:04:37 -0500
Message-ID: <3706226.1642352677@sss.pgh.pa.us> (raw)
In-Reply-To: <CAFSunMyo+woeyJ3VgnY-mzR86TnzuDDBdncinYiH0-KPf3CRFA@mail.gmail.com>
References: <CAFSunMyo+woeyJ3VgnY-mzR86TnzuDDBdncinYiH0-KPf3CRFA@mail.gmail.com>
R Batchen <batchenr@gmail.com> writes:
> I hope i reached the right mailing list, i have psql 12.3 container that is
> the db of apache guacamole container is connected to,
> the apache guacamole stopped working and i started to get this message on
> the postgres:
> LOG: incomplete message from client
> How can I debug it?
This message indicates that the server collected a message header
(length word) from the communication channel, but then detected EOF
while trying to read that number of bytes. The two most plausible
explanations for that are (1) some external force closed the network
connection or (2) the client sent a invalid (far too large) length
word. But to believe (2) you'd also have to believe that the client
gave up and closed the connection before sending the number of bytes
the server thought it had promised. That could happen if the client
thought the command had timed out, but I'd expect it to log something
about a timeout if it had.
In short, I think something at the kernel or container level is
closing the connection under you. You need to be looking into those
system-level logs, as neither the postgres nor client logs would
have any evidence of the primary cause.
regards, tom lane
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: tgl@sss.pgh.pa.us, batchenr@gmail.com
Subject: Re: How to debug incomplete message on postgres 12.3 docker
In-Reply-To: <3706226.1642352677@sss.pgh.pa.us>
References: <CAFSunMyo+woeyJ3VgnY-mzR86TnzuDDBdncinYiH0-KPf3CRFA@mail.gmail.com> <3706226.1642352677@sss.pgh.pa.us>
* 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