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 1mZdyl-0004dy-77 for pgsql-general@arkaria.postgresql.org; Sun, 10 Oct 2021 18:55:23 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1mZdyj-0003be-QG for pgsql-general@arkaria.postgresql.org; Sun, 10 Oct 2021 18:55:21 +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 1mZdyj-0003bW-Ej for pgsql-general@lists.postgresql.org; Sun, 10 Oct 2021 18:55:21 +0000 Received: from mail-ot1-x334.google.com ([2607:f8b0:4864:20::334]) by magus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.92) (envelope-from ) id 1mZdye-0007nm-2L for pgsql-general@lists.postgresql.org; Sun, 10 Oct 2021 18:55:20 +0000 Received: by mail-ot1-x334.google.com with SMTP id u20-20020a9d7214000000b0054e170300adso18759152otj.13 for ; Sun, 10 Oct 2021 11:55:15 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=subject:to:references:from:message-id:date:user-agent:mime-version :in-reply-to:content-language; bh=2R6a48k4h3gFDtFF5Ye1M1okhOqIzEpLD2fCV9BdpiM=; b=pLu9zSrBDPUtmCnCq4uLVw9CnbrdFFZGVVX/YFmHUI1igxxZQD6+2QxisyxIrNft3R dzTX5G8SKHyEH1IaTHDNkzlCXYicAyeT2pJIY8HvFDY052RAf+w9WObA7JA4Pyu2gVtL Nx4uBh7B7/pGIqJufEHk0RteAeLbZRuWE5Px6bRBRebb86ZuJxl0/5FBGMLF0/Kvgsh2 oEQoXbwIkq3ewxhbTHpZE+/ptQEQhSYteku9izCSBTKTg2eAHkU2HbTSiiAHv+stp8S+ zD6XKhkWSl+nKndmP10c5FnVCANcgCoNMHBuqaYZjTeM4rY1m2L26mOGGTqqdjxQ5Pbg H7kA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:subject:to:references:from:message-id:date :user-agent:mime-version:in-reply-to:content-language; bh=2R6a48k4h3gFDtFF5Ye1M1okhOqIzEpLD2fCV9BdpiM=; b=k9Hc0GqRQIZLckD/4JbDb3UNzh/JhGXTJo+Wi49UxRaxinoORRdyeN/o2DlbiLuhnL bp7/D2MdYjWQiq1k97U33wJzJndppqtWijIdXNy50cQvQznpU3QNzTZwLflf9qun+6Kj LCbHdTOCoSw6SjH/dp5F3hq2bbC6DCMKW+hmJLRHcM6NuYrADSQSw/u2wbe1QGRsa08z keZDFilI5XyHFRqnXeSShiFWEmUVLHImP4aQVOrR2ZXxHwf6IU0rIYT4t12tYa/W6vVe anbkSFbrRLVZsg0e9IpBZU8Za1iB6LdTDsh0vNF9IwWFRRo4OUvXbRrt9qap9dPRvM9E /YPQ== X-Gm-Message-State: AOAM5325+50b9V2iMiEV188zDuz2+omeSO3yVsoVQ1wcaejFtJAFXMjd fqpgSCTW1NiD9djmuSnfjecmaA1qJvA= X-Google-Smtp-Source: ABdhPJy3VyYVvjvPk7mbOJ80QipmYmnpZjqEtARVAbs20UKEO/G4TiPRodFoZ7ZdAagGnt5LVZNQNw== X-Received: by 2002:a9d:7011:: with SMTP id k17mr18243155otj.316.1633892114014; Sun, 10 Oct 2021 11:55:14 -0700 (PDT) Received: from [192.168.88.10] (ip68-11-68-85.no.no.cox.net. [68.11.68.85]) by smtp.googlemail.com with ESMTPSA id x6sm950238otp.49.2021.10.10.11.55.13 for (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Sun, 10 Oct 2021 11:55:13 -0700 (PDT) Subject: Re: Error: server closed the connection unexpectedly To: pgsql-general@lists.postgresql.org References: <4bcbf4b4-747b-5cee-8de4-229852fa8d1b@gmail.com> <122c4f4b-17c5-d0e5-f8a7-c541cfb910d6@aklaver.com> From: Ron Message-ID: <320d769e-70bb-b78a-d31b-24ff200ae339@gmail.com> Date: Sun, 10 Oct 2021 13:55:12 -0500 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Thunderbird/78.13.0 MIME-Version: 1.0 In-Reply-To: <122c4f4b-17c5-d0e5-f8a7-c541cfb910d6@aklaver.com> Content-Type: multipart/alternative; boundary="------------871DB7950DC94684F86DFD24" Content-Language: en-US List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk This is a multi-part message in MIME format. --------------871DB7950DC94684F86DFD24 Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 8bit On 10/10/21 11:27 AM, Adrian Klaver wrote: > On 10/9/21 23:18, Ron wrote: >> On 10/9/21 3:26 PM, 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? >> Adrian, >> >> I've been getting the same error for two months from psql 12.5 on an EC2 >> Linux host, trying to connect to an RDS Postgresql 12.7 instance, after >> months of working properly. >> >> [a467197@uisawsprdlinrds ~]$ psql postgres >> psql: error: server closed the connection unexpectedly >>      This probably means the server terminated abnormally >>      before or while processing the request. > > Unfortunately this message is from the wrong end of the transaction. You > and the OP need to look on the server end for the cause. I would start > with the Postgres server log and the OS system logs. I think Anil mentioned that there's *nothing* in the Postgresql server log, even (in my case) with log_min_messages cranked to debug5. And, of course, we can't see the RDS system logs. -- Angular momentum makes the world go 'round. --------------871DB7950DC94684F86DFD24 Content-Type: text/html; charset=utf-8 Content-Transfer-Encoding: 8bit On 10/10/21 11:27 AM, Adrian Klaver wrote:
On 10/9/21 23:18, Ron wrote:
On 10/9/21 3:26 PM, 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?
Adrian,

I've been getting the same error for two months from psql 12.5 on an EC2 Linux host, trying to connect to an RDS Postgresql 12.7 instance, after months of working properly.

[a467197@uisawsprdlinrds ~]$ psql postgres
psql: error: server closed the connection unexpectedly
     This probably means the server terminated abnormally
     before or while processing the request.

Unfortunately this message is from the wrong end of the transaction. You and the OP need to look on the server end for the cause. I would start with the Postgres server log and the OS system logs.

I think Anil mentioned that there's nothing in the Postgresql server log, even (in my case) with log_min_messages cranked to debug5.
And, of course, we can't see the RDS system logs.

--
Angular momentum makes the world go 'round.
--------------871DB7950DC94684F86DFD24--