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 1mZcb8-0001l6-PD for pgsql-general@arkaria.postgresql.org; Sun, 10 Oct 2021 17:26:54 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1mZcb7-0000Se-Ny for pgsql-general@arkaria.postgresql.org; Sun, 10 Oct 2021 17:26:53 +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 1mZcb7-0000SW-Eo for pgsql-general@lists.postgresql.org; Sun, 10 Oct 2021 17:26:53 +0000 Received: from out4-smtp.messagingengine.com ([66.111.4.28]) by magus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1mZcb4-0007Bf-PJ for pgsql-general@postgresql.org; Sun, 10 Oct 2021 17:26:53 +0000 Received: from compute3.internal (compute3.nyi.internal [10.202.2.43]) by mailout.nyi.internal (Postfix) with ESMTP id 787275C00EC; Sun, 10 Oct 2021 13:26:48 -0400 (EDT) Received: from mailfrontend1 ([10.202.2.162]) by compute3.internal (MEProxy); Sun, 10 Oct 2021 13:26:48 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=aklaver.com; h= message-id:date:mime-version:subject:to:references:cc:from :in-reply-to:content-type:content-transfer-encoding; s=fm1; bh=B N2LECyEFUKebSlr/7tW/uMzkRKx6mHeMyTzwDFBctI=; b=mCEOUBpOohk9w1Ow9 BwSJ1HdoVx9HdSAmvRdiCYA0sX+ONOjOMDyhNeJU+2+LXK6z0/fIjJTbwVD23Qzx yj/hYesJ7QddY1IXlfVRNyZ8fdfYdQ8H9iibtYIaHhnCmkhXv9YL/Tj9K8xtMLWq bPy9y4eI54mYkDTCLqJC9o8G6XdPxI77WOYnD4aYglqqYE1oAHLQBxeB4Y7+MsYC m43w5og2sPkNNM5C1Jmqhgzvsa4HGBUcThJqNtn7o49RgQFaPypLgLlGOBdh/6Ai Y8kyFlkwNuqMj0gyIZ0NLPAQIRIE1FprrvbFObX5PzzDisIkUw63MipiF6S+H0PF zjv+Q== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:content-transfer-encoding:content-type :date:from:in-reply-to:message-id:mime-version:references :subject:to:x-me-proxy:x-me-proxy:x-me-sender:x-me-sender :x-sasl-enc; s=fm1; bh=BN2LECyEFUKebSlr/7tW/uMzkRKx6mHeMyTzwDFBc tI=; b=Fw8Xny5SM3VOjWowjfTK3OtK2C6AnNRs7acbIOUdju72sKykj2kZSEfYf Gbh3i0gwJyKbCpAfs2+mhNyRZTFTcGMK+DaTH+HrDlsPkaFn8TO2S1zzyEM2fPks JBjL0GZLhwqjAJVMDYOMeAXvAWLcFERBwcHU6Bb9xpBaEsxB7Bx9AZ9wVuqJmOss xF/zQFWZUOzmRMWDEhT0INZRoU5rzcCflMQL5U2zqN00ffd2gnymk44TUU6sckq7 Y/YKD7fMvp0jdluu+AjzWWQZK+nwq8XfeIqNQFv0JR60p64CiWekR7BYmexEOAiS pA7QYDTpAl9sBjdhk2zFiZb8MlfOg== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvtddrvddtgedgudduvdcutefuodetggdotefrod ftvfcurfhrohhfihhlvgemucfhrghsthforghilhdpqfgfvfdpuffrtefokffrpgfnqfgh necuuegrihhlohhuthemuceftddtnecunecujfgurhepkfffgggfuffvfhfhjggtgfesth ekredttdefjeenucfhrhhomheptegurhhirghnucfmlhgrvhgvrhcuoegrughrihgrnhdr khhlrghvvghrsegrkhhlrghvvghrrdgtohhmqeenucggtffrrghtthgvrhhnpedugfeule egveffhfegleejhefhtedtgeeileeggfehfefffeevgeejtdeutefftdenucevlhhushht vghrufhiiigvpedtnecurfgrrhgrmhepmhgrihhlfhhrohhmpegrughrihgrnhdrkhhlrg hvvghrsegrkhhlrghvvghrrdgtohhm X-ME-Proxy: Received: by mail.messagingengine.com (Postfix) with ESMTPA; Sun, 10 Oct 2021 13:26:47 -0400 (EDT) Message-ID: Date: Sun, 10 Oct 2021 10:26:47 -0700 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101 Thunderbird/91.2.0 Subject: Re: Error: server closed the connection unexpectedly Content-Language: en-US To: Anil References: Cc: pgsql-general From: Adrian Klaver In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk On 10/10/21 10:19, Anil wrote: Please reply to list also. Ccing list. For future reference do not include images for textual information. Copy and paste the errors as text. Response in line. > Thanks for the response. > > 1. I am facing with both (pgAdmin and in python). pgAdmin is throwing > this window. > image.png > 2. Python is throwing below error very often, so I had to create a > pool object again, which is slowing down my application 45 times. > *OperationalError: server closed the connection unexpectedly > * > *This probably means the server terminated abnormally > before or while processing the request.* > > 3. I don't see anything in log (from pgAdmin). > image.png > > I tried to use the connection pool but it was still the same. Could > you help? Per my response to Ron, the answer to this is going to be found on the server side not the client side. You need to look at the Postgres server  log as well as the OS system log. > > Thanks, > Anil > > > On Sun, Oct 10, 2021 at 1:56 AM Adrian Klaver > wrote: > > On 10/9/21 9:01 AM, Anil wrote: > > Hi Team, > > > > I am using Postgres (AWS instance, version: PostgreSQL 12.7 on > > x86_64-pc-linux-gnu, compiled by gcc (GCC) 4.8.3 20140911 (Red Hat > > 4.8.3-9), 64-bit) with python for programming and pgAdmin for > querying. > > However facing below error very often but did not see any aborted > > information in log (in server activity, pdAdmin > dashboard). Tried to get > > support from open community but no luck so writing to you, could > you > > help me? > > What does the actual Postgres log show? > > When does the error occur, with the Python program, the pgAdmin query > or both? > > > > > *OperationalError: server closed the connection unexpectedly > > * > > *This probably means the server terminated abnormally > > before or while processing the request.* > > > > Thanks, > > Anil > > > -- > Adrian Klaver > adrian.klaver@aklaver.com > -- Adrian Klaver adrian.klaver@aklaver.com