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 1n98xU-0007YE-EZ for pgsql-general@arkaria.postgresql.org; Sun, 16 Jan 2022 17:04:48 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1n98xS-0005XW-OJ for pgsql-general@arkaria.postgresql.org; Sun, 16 Jan 2022 17:04:46 +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 1n98xS-0005XN-DR for pgsql-general@lists.postgresql.org; Sun, 16 Jan 2022 17:04:46 +0000 Received: from sss.pgh.pa.us ([66.207.139.130]) by makus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1n98xM-0006ME-1Z for pgsql-general@lists.postgresql.org; Sun, 16 Jan 2022 17:04:45 +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 20GH4bTc3706227; Sun, 16 Jan 2022 12:04:37 -0500 From: Tom Lane To: R Batchen cc: pgsql-general@lists.postgresql.org Subject: Re: How to debug incomplete message on postgres 12.3 docker In-reply-to: References: Comments: In-reply-to R Batchen message dated "Sun, 16 Jan 2022 17:13:11 +0200" MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <3706225.1642352677.1@sss.pgh.pa.us> Date: Sun, 16 Jan 2022 12:04:37 -0500 Message-ID: <3706226.1642352677@sss.pgh.pa.us> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk R Batchen 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