pg.ddx.io pgsql-general@postgresql.org mailing list archive
help / color / mirror / Atom feedError: server closed the connection unexpectedely
22+ messages / 11 participants
[nested] [flat]
* Error: server closed the connection unexpectedely
@ 2004-05-26 14:17 Janez Kostanjšek <janez.kostanjsek@ensico.si>
2004-05-27 03:31 ` Re: Error: server closed the connection unexpectedely mike g <mike@thegodshalls.com>
0 siblings, 1 reply; 22+ messages in thread
From: Janez Kostanjšek @ 2004-05-26 14:17 UTC (permalink / raw)
To: pgsql-general
Hello everyone,
this is my first post to postgres mailing list.
System that I use:
I am using Postgres under last CygWin published on public mirrors at the moment.
OS system runing is Windows 2000 professional, 1024 or 256 or 512 MB of RAM and 40Gb of disk.
Postmaster shows version 7.4.1
Problem:
When trying to create database using script file (containing only create DB, USERS, TABLES, INDEXES inside tables) using psql or pgadminIII after awhile (5 seconds or so) I get next error:
server closed the connection unexpectedly
This probably means the server terminated abnormally
before or while processing the request.
in log file I get this:
LOG: server process (PID 1080) was terminated by signal 11
LOG: terminating any other active server processes
LOG: all server processes terminated; reinitializing
LOG: database system was interrupted at 2004-05-26 15:55:48 CEDT
LOG: checkpoint record is at 0/9DE7C8
LOG: redo record is at 0/9DE7C8; undo record is at 0/0; shutdown TRUE
LOG: next transaction ID: 534; next OID: 17142
LOG: database system was not properly shut down; automatic recovery in progress
LOG: redo starts at 0/9DE808
LOG: startup process (PID 1396) was terminated by signal 11
LOG: aborting startup due to startup process failure
This error happens sooner if I use pgadminIII and later if I use psql. I have instaled ipc-daemon2. I tried also with cygserver configuring enough memory, nothing happened.
I suspect error is somehow connected with size of one transaction. If transaction is small everything is OK. if transaction is large, this error happens.
I get the same error when doing vacuum analyze or when inserting larger amount of staff into database inside one transaction.
I tried to set next parameters from min to max in postgresql.conf but nothing helps (I get the same error).
shared_buffers = 10000
sort_mem = 2048
vacuum_mem = 8192
fsync = true
wal_buffers = 32
effective_cash_size = 5000
default_statistics_target = 50
tcpip_socket = true
max_connections = 32
other parameters are as default (I tried also with all parameters as default but problem remains the same).
I also tested memory (RAM), tests came out OK.
One interesting thing more:
On Linux RH8.0, Postgres 7.4.2 everything works fine. Also tried with the same postgresql.conf file on Linux,postgres 7.4.2. works ok, on Windows under CygWin, last postgres 7.4.1 have this error.
if somebody have a clue, what is going on here, please help.
Janez Kostanjsek
software engineer
^ permalink raw reply [nested|flat] 22+ messages in thread
* Re: Error: server closed the connection unexpectedely
2004-05-26 14:17 Error: server closed the connection unexpectedely Janez Kostanjšek <janez.kostanjsek@ensico.si>
@ 2004-05-27 03:31 ` mike g <mike@thegodshalls.com>
0 siblings, 0 replies; 22+ messages in thread
From: mike g @ 2004-05-27 03:31 UTC (permalink / raw)
To: Janez Kostanjšek <janez.kostanjsek@ensico.si>; +Cc: pgsql-general
I believe this is a known problem with the cygwin version of 7.4.1.
7.4.2 should be available soon now that cygwin 1.5.10 has been
released. I believe their was a post in the pgsql-cygwin mailing list
from Jason Tishler with the reasons for waiting for 1.5.10.
Hopefully Jason can release 7.4.2 soon.
On Wed, 2004-05-26 at 09:17, Janez Kostanjšek wrote:
> Hello everyone,
>
> this is my first post to postgres mailing list.
>
> System that I use:
> I am using Postgres under last CygWin published on public mirrors at
> the moment.
> OS system runing is Windows 2000 professional, 1024 or 256 or 512 MB
> of RAM and 40Gb of disk.
> Postmaster shows version 7.4.1
>
> Problem:
> When trying to create database using script file (containing only
> create DB, USERS, TABLES, INDEXES inside tables) using psql or
> pgadminIII after awhile (5 seconds or so) I get next error:
>
> server closed the connection unexpectedly
> This probably means the server terminated abnormally
> before or while processing the request.
>
> in log file I get this:
>
> LOG: server process (PID 1080) was terminated by signal 11
> LOG: terminating any other active server processes
> LOG: all server processes terminated; reinitializing
> LOG: database system was interrupted at 2004-05-26 15:55:48 CEDT
> LOG: checkpoint record is at 0/9DE7C8
> LOG: redo record is at 0/9DE7C8; undo record is at 0/0; shutdown TRUE
> LOG: next transaction ID: 534; next OID: 17142
> LOG: database system was not properly shut down; automatic recovery
> in progress
> LOG: redo starts at 0/9DE808
> LOG: startup process (PID 1396) was terminated by signal 11
> LOG: aborting startup due to startup process failure
>
> This error happens sooner if I use pgadminIII and later if I use psql.
> I have instaled ipc-daemon2. I tried also with cygserver configuring
> enough memory, nothing happened.
> I suspect error is somehow connected with size of one transaction. If
> transaction is small everything is OK. if transaction is large, this
> error happens.
>
> I get the same error when doing vacuum analyze or when inserting
> larger amount of staff into database inside one transaction.
>
> I tried to set next parameters from min to max in postgresql.conf but
> nothing helps (I get the same error).
> shared_buffers = 10000
> sort_mem = 2048
> vacuum_mem = 8192
> fsync = true
> wal_buffers = 32
> effective_cash_size = 5000
> default_statistics_target = 50
> tcpip_socket = true
> max_connections = 32
> other parameters are as default (I tried also with all parameters as
> default but problem remains the same).
>
> I also tested memory (RAM), tests came out OK.
>
>
> One interesting thing more:
> On Linux RH8.0, Postgres 7.4.2 everything works fine. Also tried with
> the same postgresql.conf file on Linux,postgres 7.4.2. works ok, on
> Windows under CygWin, last postgres 7.4.1 have this error.
>
>
>
>
> if somebody have a clue, what is going on here, please help.
>
> Janez Kostanjsek
> software engineer
>
>
>
^ permalink raw reply [nested|flat] 22+ messages in thread
* ERROR: SERVER CLOSED THE CONNECTION UNEXPECTEDLY
@ 2013-04-03 10:20 jpui <p.ribas@hotmail.com>
2013-04-05 13:40 ` Re: ERROR: SERVER CLOSED THE CONNECTION UNEXPECTEDLY JotaComm <jota.comm@gmail.com>
0 siblings, 1 reply; 22+ messages in thread
From: jpui @ 2013-04-03 10:20 UTC (permalink / raw)
To: pgsql-general
When i connect to the server on PostgreSQL i get this error:
Server closed the connection unexpectedly.
This probably means the server termitate abnormally before or
while processing the request
postgresql-2012-03-30_000000.log
<http://postgresql.1045698.n5.nabble.com/file/n5750563/postgresql-2012-03-30_000000.log;
thank you
--
View this message in context: http://postgresql.1045698.n5.nabble.com/ERROR-SERVER-CLOSED-THE-CONNECTION-UNEXPECTEDLY-tp5750563.ht...
Sent from the PostgreSQL - general mailing list archive at Nabble.com.
--
Sent via pgsql-general mailing list (pgsql-general@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-general
^ permalink raw reply [nested|flat] 22+ messages in thread
* Re: ERROR: SERVER CLOSED THE CONNECTION UNEXPECTEDLY
2013-04-03 10:20 ERROR: SERVER CLOSED THE CONNECTION UNEXPECTEDLY jpui <p.ribas@hotmail.com>
@ 2013-04-05 13:40 ` JotaComm <jota.comm@gmail.com>
2013-04-05 13:58 ` Re: ERROR: SERVER CLOSED THE CONNECTION UNEXPECTEDLY jpui <p.ribas@hotmail.com>
0 siblings, 1 reply; 22+ messages in thread
From: JotaComm @ 2013-04-05 13:40 UTC (permalink / raw)
To: jpui <p.ribas@hotmail.com>; +Cc: pgsql-general
Hello,
What's the version?
Regards
2013/4/3 jpui <p.ribas@hotmail.com>
> When i connect to the server on PostgreSQL i get this error:
>
> Server closed the connection unexpectedly.
> This probably means the server termitate abnormally before or
> while processing the request
>
>
> postgresql-2012-03-30_000000.log
> <
> http://postgresql.1045698.n5.nabble.com/file/n5750563/postgresql-2012-03-30_000000.log
> >
>
> thank you
>
>
>
> --
> View this message in context:
> http://postgresql.1045698.n5.nabble.com/ERROR-SERVER-CLOSED-THE-CONNECTION-UNEXPECTEDLY-tp5750563.ht...
> Sent from the PostgreSQL - general mailing list archive at Nabble.com.
>
>
> --
> Sent via pgsql-general mailing list (pgsql-general@postgresql.org)
> To make changes to your subscription:
> http://www.postgresql.org/mailpref/pgsql-general
>
--
JotaComm
http://jotacomm.wordpress.com
^ permalink raw reply [nested|flat] 22+ messages in thread
* Re: ERROR: SERVER CLOSED THE CONNECTION UNEXPECTEDLY
2013-04-03 10:20 ERROR: SERVER CLOSED THE CONNECTION UNEXPECTEDLY jpui <p.ribas@hotmail.com>
2013-04-05 13:40 ` Re: ERROR: SERVER CLOSED THE CONNECTION UNEXPECTEDLY JotaComm <jota.comm@gmail.com>
@ 2013-04-05 13:58 ` jpui <p.ribas@hotmail.com>
2013-04-06 00:25 ` Re: ERROR: SERVER CLOSED THE CONNECTION UNEXPECTEDLY John R Pierce <pierce@hogranch.com>
0 siblings, 1 reply; 22+ messages in thread
From: jpui @ 2013-04-05 13:58 UTC (permalink / raw)
To: pgsql-general
Postgres 8.3
The OS is windows server 2007 i think.
Thank you for your help
--
View this message in context: http://postgresql.1045698.n5.nabble.com/ERROR-SERVER-CLOSED-THE-CONNECTION-UNEXPECTEDLY-tp5750563p57...
Sent from the PostgreSQL - general mailing list archive at Nabble.com.
--
Sent via pgsql-general mailing list (pgsql-general@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-general
^ permalink raw reply [nested|flat] 22+ messages in thread
* Re: ERROR: SERVER CLOSED THE CONNECTION UNEXPECTEDLY
2013-04-03 10:20 ERROR: SERVER CLOSED THE CONNECTION UNEXPECTEDLY jpui <p.ribas@hotmail.com>
2013-04-05 13:40 ` Re: ERROR: SERVER CLOSED THE CONNECTION UNEXPECTEDLY JotaComm <jota.comm@gmail.com>
2013-04-05 13:58 ` Re: ERROR: SERVER CLOSED THE CONNECTION UNEXPECTEDLY jpui <p.ribas@hotmail.com>
@ 2013-04-06 00:25 ` John R Pierce <pierce@hogranch.com>
0 siblings, 0 replies; 22+ messages in thread
From: John R Pierce @ 2013-04-06 00:25 UTC (permalink / raw)
To: pgsql-general
On 4/5/2013 6:58 AM, jpui wrote:
> Postgres 8.3
8.3 is past end of life, and is now considered a dead version.
afaik, Windows Server went from 2003 to 2008, I've never heard of a 2007.
--
john r pierce 37N 122W
somewhere on the middle of the left coast
--
Sent via pgsql-general mailing list (pgsql-general@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-general
^ permalink raw reply [nested|flat] 22+ messages in thread
* Error: server closed the connection unexpectedly
@ 2021-10-09 16:01 Anil <anilkumar15.mf@gmail.com>
2021-10-09 20:26 ` Re: Error: server closed the connection unexpectedly Adrian Klaver <adrian.klaver@aklaver.com>
0 siblings, 1 reply; 22+ messages in thread
From: Anil @ 2021-10-09 16:01 UTC (permalink / raw)
To: pgsql-general@lists.postgresql.org
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?
*OperationalError: server closed the connection unexpectedly*
* This probably means the server terminated abnormally before or while
processing the request.*
Thanks,
Anil
^ permalink raw reply [nested|flat] 22+ messages in thread
* Re: Error: server closed the connection unexpectedly
2021-10-09 16:01 Error: server closed the connection unexpectedly Anil <anilkumar15.mf@gmail.com>
@ 2021-10-09 20:26 ` Adrian Klaver <adrian.klaver@aklaver.com>
2021-10-10 06:18 ` Re: Error: server closed the connection unexpectedly Ron <ronljohnsonjr@gmail.com>
2021-10-10 17:26 ` Re: Error: server closed the connection unexpectedly Adrian Klaver <adrian.klaver@aklaver.com>
0 siblings, 2 replies; 22+ messages in thread
From: Adrian Klaver @ 2021-10-09 20:26 UTC (permalink / raw)
To: Anil <anilkumar15.mf@gmail.com>; pgsql-general@lists.postgresql.org
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
^ permalink raw reply [nested|flat] 22+ messages in thread
* Re: Error: server closed the connection unexpectedly
2021-10-09 16:01 Error: server closed the connection unexpectedly Anil <anilkumar15.mf@gmail.com>
2021-10-09 20:26 ` Re: Error: server closed the connection unexpectedly Adrian Klaver <adrian.klaver@aklaver.com>
@ 2021-10-10 06:18 ` Ron <ronljohnsonjr@gmail.com>
2021-10-10 16:27 ` Re: Error: server closed the connection unexpectedly Adrian Klaver <adrian.klaver@aklaver.com>
1 sibling, 1 reply; 22+ messages in thread
From: Ron @ 2021-10-10 06:18 UTC (permalink / raw)
To: pgsql-general@lists.postgresql.org
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.
--
Angular momentum makes the world go 'round.
^ permalink raw reply [nested|flat] 22+ messages in thread
* Re: Error: server closed the connection unexpectedly
2021-10-09 16:01 Error: server closed the connection unexpectedly Anil <anilkumar15.mf@gmail.com>
2021-10-09 20:26 ` Re: Error: server closed the connection unexpectedly Adrian Klaver <adrian.klaver@aklaver.com>
2021-10-10 06:18 ` Re: Error: server closed the connection unexpectedly Ron <ronljohnsonjr@gmail.com>
@ 2021-10-10 16:27 ` Adrian Klaver <adrian.klaver@aklaver.com>
2021-10-10 18:55 ` Re: Error: server closed the connection unexpectedly Ron <ronljohnsonjr@gmail.com>
0 siblings, 1 reply; 22+ messages in thread
From: Adrian Klaver @ 2021-10-10 16:27 UTC (permalink / raw)
To: Ron <ronljohnsonjr@gmail.com>; pgsql-general@lists.postgresql.org
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.
>
> --
> Angular momentum makes the world go 'round.
--
Adrian Klaver
adrian.klaver@aklaver.com
^ permalink raw reply [nested|flat] 22+ messages in thread
* Re: Error: server closed the connection unexpectedly
2021-10-09 16:01 Error: server closed the connection unexpectedly Anil <anilkumar15.mf@gmail.com>
2021-10-09 20:26 ` Re: Error: server closed the connection unexpectedly Adrian Klaver <adrian.klaver@aklaver.com>
2021-10-10 06:18 ` Re: Error: server closed the connection unexpectedly Ron <ronljohnsonjr@gmail.com>
2021-10-10 16:27 ` Re: Error: server closed the connection unexpectedly Adrian Klaver <adrian.klaver@aklaver.com>
@ 2021-10-10 18:55 ` Ron <ronljohnsonjr@gmail.com>
2021-10-10 19:20 ` Re: Error: server closed the connection unexpectedly Tom Lane <tgl@sss.pgh.pa.us>
0 siblings, 1 reply; 22+ messages in thread
From: Ron @ 2021-10-10 18:55 UTC (permalink / raw)
To: pgsql-general@lists.postgresql.org
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.
^ permalink raw reply [nested|flat] 22+ messages in thread
* Re: Error: server closed the connection unexpectedly
2021-10-09 16:01 Error: server closed the connection unexpectedly Anil <anilkumar15.mf@gmail.com>
2021-10-09 20:26 ` Re: Error: server closed the connection unexpectedly Adrian Klaver <adrian.klaver@aklaver.com>
2021-10-10 06:18 ` Re: Error: server closed the connection unexpectedly Ron <ronljohnsonjr@gmail.com>
2021-10-10 16:27 ` Re: Error: server closed the connection unexpectedly Adrian Klaver <adrian.klaver@aklaver.com>
2021-10-10 18:55 ` Re: Error: server closed the connection unexpectedly Ron <ronljohnsonjr@gmail.com>
@ 2021-10-10 19:20 ` Tom Lane <tgl@sss.pgh.pa.us>
2021-10-10 19:30 ` Re: Error: server closed the connection unexpectedly Ron <ronljohnsonjr@gmail.com>
0 siblings, 1 reply; 22+ messages in thread
From: Tom Lane @ 2021-10-10 19:20 UTC (permalink / raw)
To: Ron <ronljohnsonjr@gmail.com>; +Cc: pgsql-general@lists.postgresql.org
Ron <ronljohnsonjr@gmail.com> writes:
> I think Anil mentioned that there's *nothing* in the Postgresql server log,
> even (in my case) with log_min_messages cranked to debug5.
I'm skeptical that you're looking in the right place, then.
What do you get from
show log_destination;
show log_directory;
regards, tom lane
^ permalink raw reply [nested|flat] 22+ messages in thread
* Re: Error: server closed the connection unexpectedly
2021-10-09 16:01 Error: server closed the connection unexpectedly Anil <anilkumar15.mf@gmail.com>
2021-10-09 20:26 ` Re: Error: server closed the connection unexpectedly Adrian Klaver <adrian.klaver@aklaver.com>
2021-10-10 06:18 ` Re: Error: server closed the connection unexpectedly Ron <ronljohnsonjr@gmail.com>
2021-10-10 16:27 ` Re: Error: server closed the connection unexpectedly Adrian Klaver <adrian.klaver@aklaver.com>
2021-10-10 18:55 ` Re: Error: server closed the connection unexpectedly Ron <ronljohnsonjr@gmail.com>
2021-10-10 19:20 ` Re: Error: server closed the connection unexpectedly Tom Lane <tgl@sss.pgh.pa.us>
@ 2021-10-10 19:30 ` Ron <ronljohnsonjr@gmail.com>
2021-10-10 20:00 ` Re: Error: server closed the connection unexpectedly Tom Lane <tgl@sss.pgh.pa.us>
2021-10-10 20:12 ` Re: Error: server closed the connection unexpectedly Adrian Klaver <adrian.klaver@aklaver.com>
0 siblings, 2 replies; 22+ messages in thread
From: Ron @ 2021-10-10 19:30 UTC (permalink / raw)
To: pgsql-general@lists.postgresql.org
On 10/10/21 2:20 PM, Tom Lane wrote:
> Ron <ronljohnsonjr@gmail.com> writes:
>> I think Anil mentioned that there's *nothing* in the Postgresql server log,
>> even (in my case) with log_min_messages cranked to debug5.
> I'm skeptical that you're looking in the right place, then.
> What do you get from
>
> show log_destination;
> show log_directory;
This is AWS RDS Postgresql. The db server log is accessed via a web
interface, and is /the/ postgresql log just like you see in vanilla Postgresql.
I've attached it. My attempt to connect happened some time between between
04:10:30 and 04:17:30.
>
> regards, tom lane
--
Angular momentum makes the world go 'round.
Attachments:
postgresql.2021-10-03-04.log (text/x-log, 5.8K) download
2021-10-03 04:01:06 UTC::@:[1721]:LOG: checkpoint starting: time
2021-10-03 04:01:30 UTC::@:[1721]:LOG: checkpoint complete: wrote 235 buffers (0.0%); 0 WAL file(s) added, 0 removed, 1 recycled; write=23.706 s, sync=0.004 s, total=23.733 s; sync files=73, longest=0.004 s, average=0.001 s; distance=66469 kB, estimate=68389 kB
2021-10-03 04:06:06 UTC::@:[1721]:LOG: checkpoint starting: time
2021-10-03 04:10:21 UTC::@:[1714]:LOG: received SIGHUP, reloading configuration files
2021-10-03 04:10:21 UTC::@:[1714]:LOG: skipping missing configuration file "/rdsdbdata/config/recovery.conf"
2021-10-03 04:10:21 UTC::@:[1714]:LOG: parameter "log_min_error_statement" changed to "debug5"
2021-10-03 04:10:21 UTC::@:[1719]:LOG: skipping missing configuration file "/rdsdbdata/config/recovery.conf"
2021-10-03 04:10:21 UTC::@:[1723]:LOG: skipping missing configuration file "/rdsdbdata/config/recovery.conf"
2021-10-03 04:10:21 UTC::@:[1727]:LOG: skipping missing configuration file "/rdsdbdata/config/recovery.conf"
2021-10-03 04:10:21 UTC::@:[1722]:LOG: skipping missing configuration file "/rdsdbdata/config/recovery.conf"
2021-10-03 04:10:21 UTC::@:[1726]:LOG: skipping missing configuration file "/rdsdbdata/config/recovery.conf"
2021-10-03 04:10:21 UTC::@:[1724]:LOG: skipping missing configuration file "/rdsdbdata/config/recovery.conf"
2021-10-03 04:10:21 UTC::@:[1725]:LOG: skipping missing configuration file "/rdsdbdata/config/recovery.conf"
2021-10-03 04:10:21 UTC::@:[1721]:LOG: skipping missing configuration file "/rdsdbdata/config/recovery.conf"
2021-10-03 04:10:36 UTC::@:[1721]:LOG: checkpoint complete: wrote 6166 buffers (0.1%); 0 WAL file(s) added, 0 removed, 2 recycled; write=269.121 s, sync=0.008 s, total=269.152 s; sync files=172, longest=0.008 s, average=0.001 s; distance=64636 kB, estimate=68014 kB
2021-10-03 04:16:06 UTC::@:[1721]:LOG: checkpoint starting: time
2021-10-03 04:16:12 UTC::@:[1721]:LOG: checkpoint complete: wrote 56 buffers (0.0%); 0 WAL file(s) added, 0 removed, 1 recycled; write=5.788 s, sync=0.007 s, total=5.816 s; sync files=39, longest=0.004 s, average=0.001 s; distance=130865 kB, estimate=130865 kB
2021-10-03 04:17:40 UTC::@:[1714]:LOG: received SIGHUP, reloading configuration files
2021-10-03 04:17:40 UTC::@:[1714]:LOG: skipping missing configuration file "/rdsdbdata/config/recovery.conf"
2021-10-03 04:17:40 UTC::@:[1714]:LOG: parameter "log_min_error_statement" changed to "info"
2021-10-03 04:17:40 UTC::@:[1719]:LOG: skipping missing configuration file "/rdsdbdata/config/recovery.conf"
2021-10-03 04:17:40 UTC::@:[1724]:LOG: skipping missing configuration file "/rdsdbdata/config/recovery.conf"
2021-10-03 04:17:40 UTC::@:[1723]:LOG: skipping missing configuration file "/rdsdbdata/config/recovery.conf"
2021-10-03 04:17:40 UTC::@:[1722]:LOG: skipping missing configuration file "/rdsdbdata/config/recovery.conf"
2021-10-03 04:17:40 UTC::@:[1726]:LOG: skipping missing configuration file "/rdsdbdata/config/recovery.conf"
2021-10-03 04:17:40 UTC::@:[1725]:LOG: skipping missing configuration file "/rdsdbdata/config/recovery.conf"
2021-10-03 04:17:40 UTC::@:[1721]:LOG: skipping missing configuration file "/rdsdbdata/config/recovery.conf"
2021-10-03 04:17:40 UTC::@:[1727]:LOG: skipping missing configuration file "/rdsdbdata/config/recovery.conf"
2021-10-03 04:21:06 UTC::@:[1721]:LOG: checkpoint starting: time
2021-10-03 04:21:07 UTC::@:[1721]:LOG: checkpoint complete: wrote 8 buffers (0.0%); 0 WAL file(s) added, 0 removed, 1 recycled; write=0.958 s, sync=0.006 s, total=0.986 s; sync files=5, longest=0.006 s, average=0.002 s; distance=65543 kB, estimate=124333 kB
2021-10-03 04:26:06 UTC::@:[1721]:LOG: checkpoint starting: time
2021-10-03 04:26:28 UTC::@:[1721]:LOG: checkpoint complete: wrote 215 buffers (0.0%); 0 WAL file(s) added, 0 removed, 1 recycled; write=21.796 s, sync=0.006 s, total=21.823 s; sync files=117, longest=0.006 s, average=0.001 s; distance=65729 kB, estimate=118473 kB
2021-10-03 04:31:06 UTC::@:[1721]:LOG: checkpoint starting: time
2021-10-03 04:31:29 UTC::@:[1721]:LOG: checkpoint complete: wrote 230 buffers (0.0%); 0 WAL file(s) added, 0 removed, 1 recycled; write=23.305 s, sync=0.013 s, total=23.339 s; sync files=89, longest=0.013 s, average=0.001 s; distance=65945 kB, estimate=113220 kB
2021-10-03 04:36:06 UTC::@:[1721]:LOG: checkpoint starting: time
2021-10-03 04:36:26 UTC::@:[1721]:LOG: checkpoint complete: wrote 199 buffers (0.0%); 0 WAL file(s) added, 0 removed, 1 recycled; write=20.187 s, sync=0.006 s, total=20.214 s; sync files=84, longest=0.003 s, average=0.001 s; distance=65478 kB, estimate=108446 kB
2021-10-03 04:41:06 UTC::@:[1721]:LOG: checkpoint starting: time
2021-10-03 04:41:21 UTC::@:[1721]:LOG: checkpoint complete: wrote 144 buffers (0.0%); 0 WAL file(s) added, 0 removed, 1 recycled; write=14.647 s, sync=0.005 s, total=14.672 s; sync files=77, longest=0.005 s, average=0.001 s; distance=65133 kB, estimate=104114 kB
2021-10-03 04:46:06 UTC::@:[1721]:LOG: checkpoint starting: time
2021-10-03 04:46:33 UTC::@:[1721]:LOG: checkpoint complete: wrote 261 buffers (0.0%); 0 WAL file(s) added, 0 removed, 1 recycled; write=26.426 s, sync=0.004 s, total=26.457 s; sync files=140, longest=0.004 s, average=0.001 s; distance=65678 kB, estimate=100271 kB
2021-10-03 04:51:06 UTC::@:[1721]:LOG: checkpoint starting: time
2021-10-03 04:51:21 UTC::@:[1721]:LOG: checkpoint complete: wrote 150 buffers (0.0%); 0 WAL file(s) added, 0 removed, 1 recycled; write=15.252 s, sync=0.007 s, total=15.279 s; sync files=69, longest=0.006 s, average=0.001 s; distance=65318 kB, estimate=96775 kB
2021-10-03 04:56:06 UTC::@:[1721]:LOG: checkpoint starting: time
2021-10-03 04:56:24 UTC::@:[1721]:LOG: checkpoint complete: wrote 177 buffers (0.0%); 0 WAL file(s) added, 0 removed, 1 recycled; write=17.972 s, sync=0.006 s, total=17.999 s; sync files=72, longest=0.006 s, average=0.001 s; distance=66034 kB, estimate=93701 kB
^ permalink raw reply [nested|flat] 22+ messages in thread
* Re: Error: server closed the connection unexpectedly
2021-10-09 16:01 Error: server closed the connection unexpectedly Anil <anilkumar15.mf@gmail.com>
2021-10-09 20:26 ` Re: Error: server closed the connection unexpectedly Adrian Klaver <adrian.klaver@aklaver.com>
2021-10-10 06:18 ` Re: Error: server closed the connection unexpectedly Ron <ronljohnsonjr@gmail.com>
2021-10-10 16:27 ` Re: Error: server closed the connection unexpectedly Adrian Klaver <adrian.klaver@aklaver.com>
2021-10-10 18:55 ` Re: Error: server closed the connection unexpectedly Ron <ronljohnsonjr@gmail.com>
2021-10-10 19:20 ` Re: Error: server closed the connection unexpectedly Tom Lane <tgl@sss.pgh.pa.us>
2021-10-10 19:30 ` Re: Error: server closed the connection unexpectedly Ron <ronljohnsonjr@gmail.com>
@ 2021-10-10 20:00 ` Tom Lane <tgl@sss.pgh.pa.us>
2021-10-10 20:06 ` Re: Error: server closed the connection unexpectedly Ron <ronljohnsonjr@gmail.com>
1 sibling, 1 reply; 22+ messages in thread
From: Tom Lane @ 2021-10-10 20:00 UTC (permalink / raw)
To: Ron <ronljohnsonjr@gmail.com>; +Cc: pgsql-general@lists.postgresql.org
Ron <ronljohnsonjr@gmail.com> writes:
> This is AWS RDS Postgresql. The db server log is accessed via a web
> interface, and is /the/ postgresql log just like you see in vanilla Postgresql.
> I've attached it. My attempt to connect happened some time between between
> 04:10:30 and 04:17:30.
Hm. Not much there. You might try turning on log_connections to be
sure, but what this looks like is that the connection request never
got to the server. Maybe you've got some middleware involved, like
pgpool or some other connection pooler?
regards, tom lane
^ permalink raw reply [nested|flat] 22+ messages in thread
* Re: Error: server closed the connection unexpectedly
2021-10-09 16:01 Error: server closed the connection unexpectedly Anil <anilkumar15.mf@gmail.com>
2021-10-09 20:26 ` Re: Error: server closed the connection unexpectedly Adrian Klaver <adrian.klaver@aklaver.com>
2021-10-10 06:18 ` Re: Error: server closed the connection unexpectedly Ron <ronljohnsonjr@gmail.com>
2021-10-10 16:27 ` Re: Error: server closed the connection unexpectedly Adrian Klaver <adrian.klaver@aklaver.com>
2021-10-10 18:55 ` Re: Error: server closed the connection unexpectedly Ron <ronljohnsonjr@gmail.com>
2021-10-10 19:20 ` Re: Error: server closed the connection unexpectedly Tom Lane <tgl@sss.pgh.pa.us>
2021-10-10 19:30 ` Re: Error: server closed the connection unexpectedly Ron <ronljohnsonjr@gmail.com>
2021-10-10 20:00 ` Re: Error: server closed the connection unexpectedly Tom Lane <tgl@sss.pgh.pa.us>
@ 2021-10-10 20:06 ` Ron <ronljohnsonjr@gmail.com>
2021-10-10 20:17 ` Re: Error: server closed the connection unexpectedly Adrian Klaver <adrian.klaver@aklaver.com>
0 siblings, 1 reply; 22+ messages in thread
From: Ron @ 2021-10-10 20:06 UTC (permalink / raw)
To: pgsql-general@lists.postgresql.org
On 10/10/21 3:00 PM, Tom Lane wrote:
> Ron <ronljohnsonjr@gmail.com> writes:
>> This is AWS RDS Postgresql. The db server log is accessed via a web
>> interface, and is /the/ postgresql log just like you see in vanilla Postgresql.
>> I've attached it. My attempt to connect happened some time between between
>> 04:10:30 and 04:17:30.
> Hm. Not much there. You might try turning on log_connections to be
> sure,
I'll do that.
> but what this looks like is that the connection request never
> got to the server. Maybe you've got some middleware involved, like
> pgpool or some other connection pooler?
If so, it must be something hidden by AWS, because I never installed it.
The crazy thing is that coworkers with accounts on the same VM can connect
to the instance just fine. (Yes, we use the exact same command to connect,
as a test.)
--
Angular momentum makes the world go 'round.
^ permalink raw reply [nested|flat] 22+ messages in thread
* Re: Error: server closed the connection unexpectedly
2021-10-09 16:01 Error: server closed the connection unexpectedly Anil <anilkumar15.mf@gmail.com>
2021-10-09 20:26 ` Re: Error: server closed the connection unexpectedly Adrian Klaver <adrian.klaver@aklaver.com>
2021-10-10 06:18 ` Re: Error: server closed the connection unexpectedly Ron <ronljohnsonjr@gmail.com>
2021-10-10 16:27 ` Re: Error: server closed the connection unexpectedly Adrian Klaver <adrian.klaver@aklaver.com>
2021-10-10 18:55 ` Re: Error: server closed the connection unexpectedly Ron <ronljohnsonjr@gmail.com>
2021-10-10 19:20 ` Re: Error: server closed the connection unexpectedly Tom Lane <tgl@sss.pgh.pa.us>
2021-10-10 19:30 ` Re: Error: server closed the connection unexpectedly Ron <ronljohnsonjr@gmail.com>
2021-10-10 20:00 ` Re: Error: server closed the connection unexpectedly Tom Lane <tgl@sss.pgh.pa.us>
2021-10-10 20:06 ` Re: Error: server closed the connection unexpectedly Ron <ronljohnsonjr@gmail.com>
@ 2021-10-10 20:17 ` Adrian Klaver <adrian.klaver@aklaver.com>
0 siblings, 0 replies; 22+ messages in thread
From: Adrian Klaver @ 2021-10-10 20:17 UTC (permalink / raw)
To: Ron <ronljohnsonjr@gmail.com>; pgsql-general@lists.postgresql.org
On 10/10/21 13:06, Ron wrote:
> On 10/10/21 3:00 PM, Tom Lane wrote:
>> Ron <ronljohnsonjr@gmail.com> writes:
>>> This is AWS RDS Postgresql. The db server log is accessed via a web
>>> interface, and is /the/ postgresql log just like you see in vanilla
>>> Postgresql.
>>> I've attached it. My attempt to connect happened some time between
>>> between
>>> 04:10:30 and 04:17:30.
>> Hm. Not much there. You might try turning on log_connections to be
>> sure,
>
> I'll do that.
>
>> but what this looks like is that the connection request never
>> got to the server. Maybe you've got some middleware involved, like
>> pgpool or some other connection pooler?
>
> If so, it must be something hidden by AWS, because I never installed it.
>
> The crazy thing is that coworkers with accounts on the same VM can
> connect to the instance just fine. (Yes, we use the exact same command
> to connect, as a test.)
Are the AWS security groups set up correctly.
See here:
https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/CHAP_Troubleshooting.html#CHAP_Troubleshootin...
>
--
Adrian Klaver
adrian.klaver@aklaver.com
^ permalink raw reply [nested|flat] 22+ messages in thread
* Re: Error: server closed the connection unexpectedly
2021-10-09 16:01 Error: server closed the connection unexpectedly Anil <anilkumar15.mf@gmail.com>
2021-10-09 20:26 ` Re: Error: server closed the connection unexpectedly Adrian Klaver <adrian.klaver@aklaver.com>
2021-10-10 06:18 ` Re: Error: server closed the connection unexpectedly Ron <ronljohnsonjr@gmail.com>
2021-10-10 16:27 ` Re: Error: server closed the connection unexpectedly Adrian Klaver <adrian.klaver@aklaver.com>
2021-10-10 18:55 ` Re: Error: server closed the connection unexpectedly Ron <ronljohnsonjr@gmail.com>
2021-10-10 19:20 ` Re: Error: server closed the connection unexpectedly Tom Lane <tgl@sss.pgh.pa.us>
2021-10-10 19:30 ` Re: Error: server closed the connection unexpectedly Ron <ronljohnsonjr@gmail.com>
@ 2021-10-10 20:12 ` Adrian Klaver <adrian.klaver@aklaver.com>
2021-10-10 21:26 ` Re: Error: server closed the connection unexpectedly Ron <ronljohnsonjr@gmail.com>
1 sibling, 1 reply; 22+ messages in thread
From: Adrian Klaver @ 2021-10-10 20:12 UTC (permalink / raw)
To: Ron <ronljohnsonjr@gmail.com>; pgsql-general@lists.postgresql.org
On 10/10/21 12:30, Ron wrote:
> On 10/10/21 2:20 PM, Tom Lane wrote:
>> Ron<ronljohnsonjr@gmail.com> writes:
>>> I think Anil mentioned that there's *nothing* in the Postgresql server log,
>>> even (in my case) with log_min_messages cranked to debug5.
>> I'm skeptical that you're looking in the right place, then.
>> What do you get from
>>
>> show log_destination;
>> show log_directory;
>
> This is AWS RDS Postgresql. The db server log is accessed via a web
> interface, and is /the/ postgresql log just like you see in vanilla
> Postgresql.
>
> I've attached it. My attempt to connect happened some time between
> between 04:10:30 and 04:17:30.
Is that you sending the SIGHUP's?
>
>> regards, tom lane
>
> --
> Angular momentum makes the world go 'round.
--
Adrian Klaver
adrian.klaver@aklaver.com
^ permalink raw reply [nested|flat] 22+ messages in thread
* Re: Error: server closed the connection unexpectedly
2021-10-09 16:01 Error: server closed the connection unexpectedly Anil <anilkumar15.mf@gmail.com>
2021-10-09 20:26 ` Re: Error: server closed the connection unexpectedly Adrian Klaver <adrian.klaver@aklaver.com>
2021-10-10 06:18 ` Re: Error: server closed the connection unexpectedly Ron <ronljohnsonjr@gmail.com>
2021-10-10 16:27 ` Re: Error: server closed the connection unexpectedly Adrian Klaver <adrian.klaver@aklaver.com>
2021-10-10 18:55 ` Re: Error: server closed the connection unexpectedly Ron <ronljohnsonjr@gmail.com>
2021-10-10 19:20 ` Re: Error: server closed the connection unexpectedly Tom Lane <tgl@sss.pgh.pa.us>
2021-10-10 19:30 ` Re: Error: server closed the connection unexpectedly Ron <ronljohnsonjr@gmail.com>
2021-10-10 20:12 ` Re: Error: server closed the connection unexpectedly Adrian Klaver <adrian.klaver@aklaver.com>
@ 2021-10-10 21:26 ` Ron <ronljohnsonjr@gmail.com>
0 siblings, 0 replies; 22+ messages in thread
From: Ron @ 2021-10-10 21:26 UTC (permalink / raw)
To: Adrian Klaver <adrian.klaver@aklaver.com>; pgsql-general@lists.postgresql.org
On 10/10/21 3:12 PM, Adrian Klaver wrote:
> On 10/10/21 12:30, Ron wrote:
>> On 10/10/21 2:20 PM, Tom Lane wrote:
>>> Ron<ronljohnsonjr@gmail.com> writes:
>>>> I think Anil mentioned that there's *nothing* in the Postgresql server
>>>> log,
>>>> even (in my case) with log_min_messages cranked to debug5.
>>> I'm skeptical that you're looking in the right place, then.
>>> What do you get from
>>>
>>> show log_destination;
>>> show log_directory;
>>
>> This is AWS RDS Postgresql. The db server log is accessed via a web
>> interface, and is /the/ postgresql log just like you see in vanilla
>> Postgresql.
>>
>> I've attached it. My attempt to connect happened some time between
>> between 04:10:30 and 04:17:30.
>
> Is that you sending the SIGHUP's?
Kinda. It's the AWS version of "pg_ctl reload" after modifying dynamic
entries in the parameter group (aka postgresql.conf).
--
Angular momentum makes the world go 'round.
^ permalink raw reply [nested|flat] 22+ messages in thread
* Re: Error: server closed the connection unexpectedly
2021-10-09 16:01 Error: server closed the connection unexpectedly Anil <anilkumar15.mf@gmail.com>
2021-10-09 20:26 ` Re: Error: server closed the connection unexpectedly Adrian Klaver <adrian.klaver@aklaver.com>
@ 2021-10-10 17:26 ` Adrian Klaver <adrian.klaver@aklaver.com>
2021-10-10 18:42 ` Re: Error: server closed the connection unexpectedly Anil <anilkumar15.mf@gmail.com>
1 sibling, 1 reply; 22+ messages in thread
From: Adrian Klaver @ 2021-10-10 17:26 UTC (permalink / raw)
To: Anil <anilkumar15.mf@gmail.com>; +Cc: pgsql-general
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
> <adrian.klaver@aklaver.com> 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
^ permalink raw reply [nested|flat] 22+ messages in thread
* Re: Error: server closed the connection unexpectedly
2021-10-09 16:01 Error: server closed the connection unexpectedly Anil <anilkumar15.mf@gmail.com>
2021-10-09 20:26 ` Re: Error: server closed the connection unexpectedly Adrian Klaver <adrian.klaver@aklaver.com>
2021-10-10 17:26 ` Re: Error: server closed the connection unexpectedly Adrian Klaver <adrian.klaver@aklaver.com>
@ 2021-10-10 18:42 ` Anil <anilkumar15.mf@gmail.com>
2021-10-11 08:08 ` Re: Error: server closed the connection unexpectedly Laurenz Albe <laurenz.albe@cybertec.at>
0 siblings, 1 reply; 22+ messages in thread
From: Anil @ 2021-10-10 18:42 UTC (permalink / raw)
To: Adrian Klaver <adrian.klaver@aklaver.com>; +Cc: pgsql-general
Hi Adrian/Ron,
Please find the server log, if you can find something (due to some reasons
not being able to get OS system log, will be shared soon).
Thanks,
Anil
On Sun, Oct 10, 2021 at 10:56 PM Adrian Klaver <adrian.klaver@aklaver.com>
wrote:
> 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
> > <adrian.klaver@aklaver.com> 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
>
>
Attachments:
Postgres_log.txt (text/plain, 21.6K) download
2021-10-10 14:03:04 UTC::@:[7159]:LOG: checkpoint starting: time
2021-10-10 14:03:04 UTC::@:[7159]:LOG: checkpoint complete: wrote 1 buffers (0.0%); 0 WAL file(s) added, 0 removed, 1 recycled; write=0.102 s, sync=0.003 s, total=0.116 s; sync files=1, longest=0.003 s, average=0.003 s; distance=65536 kB, estimate=65542 kB
2021-10-10 14:08:04 UTC::@:[7159]:LOG: checkpoint starting: time
2021-10-10 14:08:05 UTC::@:[7159]:LOG: checkpoint complete: wrote 1 buffers (0.0%); 0 WAL file(s) added, 0 removed, 1 recycled; write=0.102 s, sync=0.002 s, total=0.118 s; sync files=1, longest=0.002 s, average=0.002 s; distance=65535 kB, estimate=65541 kB
2021-10-10 14:12:50 UTC:185.220.205.213(35246):[unknown]@[unknown]:[25190]:LOG: invalid length of startup packet
2021-10-10 14:13:04 UTC::@:[7159]:LOG: checkpoint starting: time
2021-10-10 14:13:04 UTC::@:[7159]:LOG: checkpoint complete: wrote 1 buffers (0.0%); 0 WAL file(s) added, 0 removed, 1 recycled; write=0.102 s, sync=0.003 s, total=0.116 s; sync files=1, longest=0.003 s, average=0.003 s; distance=65536 kB, estimate=65541 kB
2021-10-10 14:16:40 UTC:45.146.164.110(42488):pgadmin@postgres:[28502]:FATAL: password authentication failed for user "pgadmin"
2021-10-10 14:16:40 UTC:45.146.164.110(42488):pgadmin@postgres:[28502]:DETAIL: Role "pgadmin" does not exist.
Connection matched pg_hba.conf line 13: "host all all all md5"
2021-10-10 14:18:04 UTC::@:[7159]:LOG: checkpoint starting: time
2021-10-10 14:18:04 UTC::@:[7159]:LOG: checkpoint complete: wrote 1 buffers (0.0%); 0 WAL file(s) added, 0 removed, 1 recycled; write=0.102 s, sync=0.004 s, total=0.117 s; sync files=1, longest=0.004 s, average=0.004 s; distance=65536 kB, estimate=65540 kB
2021-10-10 14:23:04 UTC::@:[7159]:LOG: checkpoint starting: time
2021-10-10 14:23:05 UTC::@:[7159]:LOG: checkpoint complete: wrote 1 buffers (0.0%); 0 WAL file(s) added, 0 removed, 1 recycled; write=0.102 s, sync=0.004 s, total=0.137 s; sync files=1, longest=0.004 s, average=0.004 s; distance=65536 kB, estimate=65540 kB
2021-10-10 14:28:04 UTC::@:[7159]:LOG: checkpoint starting: time
2021-10-10 14:28:04 UTC::@:[7159]:LOG: checkpoint complete: wrote 6 buffers (0.0%); 0 WAL file(s) added, 0 removed, 1 recycled; write=0.607 s, sync=0.003 s, total=0.619 s; sync files=6, longest=0.003 s, average=0.001 s; distance=65560 kB, estimate=65560 kB
2021-10-10 14:33:04 UTC::@:[7159]:LOG: checkpoint starting: time
2021-10-10 14:33:04 UTC::@:[7159]:LOG: checkpoint complete: wrote 1 buffers (0.0%); 0 WAL file(s) added, 0 removed, 1 recycled; write=0.102 s, sync=0.003 s, total=0.113 s; sync files=1, longest=0.003 s, average=0.003 s; distance=65511 kB, estimate=65555 kB
2021-10-10 14:35:22 UTC:45.146.164.110(52386):pgadmin@postgres:[12099]:FATAL: password authentication failed for user "pgadmin"
2021-10-10 14:35:22 UTC:45.146.164.110(52386):pgadmin@postgres:[12099]:DETAIL: Role "pgadmin" does not exist.
Connection matched pg_hba.conf line 13: "host all all all md5"
2021-10-10 14:38:04 UTC::@:[7159]:LOG: checkpoint starting: time
2021-10-10 14:38:04 UTC::@:[7159]:LOG: checkpoint complete: wrote 1 buffers (0.0%); 0 WAL file(s) added, 0 removed, 1 recycled; write=0.102 s, sync=0.002 s, total=0.113 s; sync files=1, longest=0.002 s, average=0.002 s; distance=65536 kB, estimate=65553 kB
2021-10-10 14:40:02 UTC:49.37.162.238(51364):optiwinsdev@optiwins-dev-2:[2351]:LOG: could not receive data from client: Connection reset by peer
2021-10-10 14:43:04 UTC::@:[7159]:LOG: checkpoint starting: time
2021-10-10 14:43:04 UTC::@:[7159]:LOG: checkpoint complete: wrote 1 buffers (0.0%); 0 WAL file(s) added, 0 removed, 1 recycled; write=0.102 s, sync=0.002 s, total=0.113 s; sync files=1, longest=0.002 s, average=0.002 s; distance=65536 kB, estimate=65551 kB
2021-10-10 14:45:43 UTC:49.37.162.238(62174):optiwinsdev@optiwins-dev-2:[3606]:LOG: could not receive data from client: Connection reset by peer
2021-10-10 14:45:43 UTC:49.37.162.238(62174):optiwinsdev@optiwins-dev-2:[3606]:LOG: unexpected EOF on client connection with an open transaction
2021-10-10 14:48:04 UTC::@:[7159]:LOG: checkpoint starting: time
2021-10-10 14:48:04 UTC::@:[7159]:LOG: checkpoint complete: wrote 1 buffers (0.0%); 0 WAL file(s) added, 0 removed, 1 recycled; write=0.102 s, sync=0.002 s, total=0.115 s; sync files=1, longest=0.002 s, average=0.002 s; distance=65536 kB, estimate=65550 kB
2021-10-10 14:53:04 UTC::@:[7159]:LOG: checkpoint starting: time
2021-10-10 14:53:04 UTC::@:[7159]:LOG: checkpoint complete: wrote 1 buffers (0.0%); 0 WAL file(s) added, 0 removed, 1 recycled; write=0.102 s, sync=0.003 s, total=0.116 s; sync files=1, longest=0.003 s, average=0.003 s; distance=65536 kB, estimate=65548 kB
2021-10-10 14:54:07 UTC:45.146.164.110(43792):pgadmin@postgres:[28118]:FATAL: password authentication failed for user "pgadmin"
2021-10-10 14:54:07 UTC:45.146.164.110(43792):pgadmin@postgres:[28118]:DETAIL: Role "pgadmin" does not exist.
Connection matched pg_hba.conf line 13: "host all all all md5"
2021-10-10 14:58:04 UTC::@:[7159]:LOG: checkpoint starting: time
2021-10-10 14:58:04 UTC::@:[7159]:LOG: checkpoint complete: wrote 1 buffers (0.0%); 0 WAL file(s) added, 0 removed, 1 recycled; write=0.102 s, sync=0.003 s, total=0.116 s; sync files=1, longest=0.003 s, average=0.003 s; distance=65535 kB, estimate=65547 kB
----------------------- END OF LOG ----------------------
2021-10-10 15:03:04 UTC::@:[7159]:LOG: checkpoint starting: time
2021-10-10 15:03:04 UTC::@:[7159]:LOG: checkpoint complete: wrote 1 buffers (0.0%); 0 WAL file(s) added, 0 removed, 1 recycled; write=0.102 s, sync=0.003 s, total=0.114 s; sync files=1, longest=0.003 s, average=0.003 s; distance=65536 kB, estimate=65546 kB
2021-10-10 15:04:24 UTC:34.77.162.31(51701):[unknown]@[unknown]:[4258]:LOG: could not accept SSL connection: unknown protocol
2021-10-10 15:08:04 UTC::@:[7159]:LOG: checkpoint starting: time
2021-10-10 15:08:04 UTC::@:[7159]:LOG: checkpoint complete: wrote 1 buffers (0.0%); 0 WAL file(s) added, 0 removed, 1 recycled; write=0.102 s, sync=0.003 s, total=0.114 s; sync files=1, longest=0.003 s, average=0.003 s; distance=65535 kB, estimate=65545 kB
2021-10-10 15:12:51 UTC:45.146.164.110(56522):pgadmin@postgres:[11135]:FATAL: password authentication failed for user "pgadmin"
2021-10-10 15:12:51 UTC:45.146.164.110(56522):pgadmin@postgres:[11135]:DETAIL: Role "pgadmin" does not exist.
Connection matched pg_hba.conf line 13: "host all all all md5"
2021-10-10 15:13:04 UTC::@:[7159]:LOG: checkpoint starting: time
2021-10-10 15:13:04 UTC::@:[7159]:LOG: checkpoint complete: wrote 1 buffers (0.0%); 0 WAL file(s) added, 0 removed, 1 recycled; write=0.102 s, sync=0.002 s, total=0.114 s; sync files=1, longest=0.002 s, average=0.002 s; distance=65536 kB, estimate=65544 kB
2021-10-10 15:18:04 UTC::@:[7159]:LOG: checkpoint starting: time
2021-10-10 15:18:04 UTC::@:[7159]:LOG: checkpoint complete: wrote 1 buffers (0.0%); 0 WAL file(s) added, 0 removed, 1 recycled; write=0.102 s, sync=0.003 s, total=0.117 s; sync files=1, longest=0.003 s, average=0.003 s; distance=65536 kB, estimate=65543 kB
2021-10-10 15:22:24 UTC:49.37.162.238(60492):optiwinsdev@optiwins-engine:[21509]:LOG: could not receive data from client: Connection reset by peer
2021-10-10 15:23:04 UTC::@:[7159]:LOG: checkpoint starting: time
2021-10-10 15:23:04 UTC::@:[7159]:LOG: checkpoint complete: wrote 1 buffers (0.0%); 0 WAL file(s) added, 0 removed, 1 recycled; write=0.102 s, sync=0.003 s, total=0.116 s; sync files=1, longest=0.003 s, average=0.003 s; distance=65535 kB, estimate=65542 kB
2021-10-10 15:28:04 UTC::@:[7159]:LOG: checkpoint starting: time
2021-10-10 15:28:05 UTC::@:[7159]:LOG: checkpoint complete: wrote 1 buffers (0.0%); 0 WAL file(s) added, 0 removed, 1 recycled; write=0.102 s, sync=0.002 s, total=0.114 s; sync files=1, longest=0.002 s, average=0.002 s; distance=65534 kB, estimate=65542 kB
2021-10-10 15:31:38 UTC:45.146.164.110(46234):pgadmin@postgres:[27354]:FATAL: password authentication failed for user "pgadmin"
2021-10-10 15:31:38 UTC:45.146.164.110(46234):pgadmin@postgres:[27354]:DETAIL: Role "pgadmin" does not exist.
Connection matched pg_hba.conf line 13: "host all all all md5"
2021-10-10 15:33:04 UTC::@:[7159]:LOG: checkpoint starting: time
2021-10-10 15:33:04 UTC::@:[7159]:LOG: checkpoint complete: wrote 1 buffers (0.0%); 0 WAL file(s) added, 0 removed, 1 recycled; write=0.102 s, sync=0.003 s, total=0.116 s; sync files=1, longest=0.003 s, average=0.003 s; distance=65536 kB, estimate=65541 kB
2021-10-10 15:38:04 UTC::@:[7159]:LOG: checkpoint starting: time
2021-10-10 15:38:04 UTC::@:[7159]:LOG: checkpoint complete: wrote 1 buffers (0.0%); 0 WAL file(s) added, 0 removed, 1 recycled; write=0.102 s, sync=0.003 s, total=0.114 s; sync files=1, longest=0.003 s, average=0.003 s; distance=65536 kB, estimate=65540 kB
2021-10-10 15:43:05 UTC::@:[7159]:LOG: checkpoint starting: time
2021-10-10 15:43:05 UTC::@:[7159]:LOG: checkpoint complete: wrote 1 buffers (0.0%); 0 WAL file(s) added, 0 removed, 1 recycled; write=0.102 s, sync=0.004 s, total=0.118 s; sync files=1, longest=0.004 s, average=0.004 s; distance=65536 kB, estimate=65540 kB
2021-10-10 15:48:05 UTC::@:[7159]:LOG: checkpoint starting: time
2021-10-10 15:48:05 UTC::@:[7159]:LOG: checkpoint complete: wrote 1 buffers (0.0%); 0 WAL file(s) added, 0 removed, 1 recycled; write=0.102 s, sync=0.003 s, total=0.115 s; sync files=1, longest=0.002 s, average=0.002 s; distance=65536 kB, estimate=65539 kB
2021-10-10 15:50:27 UTC:45.146.164.110(54132):pgadmin@postgres:[11167]:FATAL: password authentication failed for user "pgadmin"
2021-10-10 15:50:27 UTC:45.146.164.110(54132):pgadmin@postgres:[11167]:DETAIL: Role "pgadmin" does not exist.
Connection matched pg_hba.conf line 13: "host all all all md5"
2021-10-10 15:53:05 UTC::@:[7159]:LOG: checkpoint starting: time
2021-10-10 15:53:05 UTC::@:[7159]:LOG: checkpoint complete: wrote 1 buffers (0.0%); 0 WAL file(s) added, 0 removed, 1 recycled; write=0.102 s, sync=0.002 s, total=0.118 s; sync files=1, longest=0.002 s, average=0.002 s; distance=65535 kB, estimate=65539 kB
2021-10-10 15:58:06 UTC::@:[7159]:LOG: checkpoint starting: time
2021-10-10 15:58:06 UTC::@:[7159]:LOG: checkpoint complete: wrote 1 buffers (0.0%); 0 WAL file(s) added, 0 removed, 1 recycled; write=0.102 s, sync=0.003 s, total=0.115 s; sync files=1, longest=0.003 s, average=0.003 s; distance=65535 kB, estimate=65539 kB
----------------------- END OF LOG ----------------------
2021-10-10 16:03:06 UTC::@:[7159]:LOG: checkpoint starting: time
2021-10-10 16:03:06 UTC::@:[7159]:LOG: checkpoint complete: wrote 1 buffers (0.0%); 0 WAL file(s) added, 0 removed, 1 recycled; write=0.102 s, sync=0.003 s, total=0.117 s; sync files=1, longest=0.003 s, average=0.003 s; distance=65536 kB, estimate=65538 kB
2021-10-10 16:08:06 UTC::@:[7159]:LOG: checkpoint starting: time
2021-10-10 16:08:06 UTC::@:[7159]:LOG: checkpoint complete: wrote 1 buffers (0.0%); 0 WAL file(s) added, 0 removed, 1 recycled; write=0.102 s, sync=0.003 s, total=0.116 s; sync files=1, longest=0.003 s, average=0.003 s; distance=65536 kB, estimate=65538 kB
2021-10-10 16:09:53 UTC:45.146.164.110(48318):pgadmin@postgres:[27800]:FATAL: password authentication failed for user "pgadmin"
2021-10-10 16:09:53 UTC:45.146.164.110(48318):pgadmin@postgres:[27800]:DETAIL: Role "pgadmin" does not exist.
Connection matched pg_hba.conf line 13: "host all all all md5"
2021-10-10 16:13:07 UTC::@:[7159]:LOG: checkpoint starting: time
2021-10-10 16:13:07 UTC::@:[7159]:LOG: checkpoint complete: wrote 1 buffers (0.0%); 0 WAL file(s) added, 0 removed, 1 recycled; write=0.102 s, sync=0.003 s, total=0.115 s; sync files=1, longest=0.003 s, average=0.003 s; distance=65537 kB, estimate=65538 kB
2021-10-10 16:18:07 UTC::@:[7159]:LOG: checkpoint starting: time
2021-10-10 16:18:07 UTC::@:[7159]:LOG: checkpoint complete: wrote 1 buffers (0.0%); 0 WAL file(s) added, 0 removed, 1 recycled; write=0.102 s, sync=0.003 s, total=0.114 s; sync files=1, longest=0.003 s, average=0.003 s; distance=65536 kB, estimate=65538 kB
2021-10-10 16:23:07 UTC::@:[7159]:LOG: checkpoint starting: time
2021-10-10 16:23:07 UTC::@:[7159]:LOG: checkpoint complete: wrote 1 buffers (0.0%); 0 WAL file(s) added, 0 removed, 1 recycled; write=0.102 s, sync=0.002 s, total=0.114 s; sync files=1, longest=0.002 s, average=0.002 s; distance=65536 kB, estimate=65538 kB
2021-10-10 16:28:08 UTC::@:[7159]:LOG: checkpoint starting: time
2021-10-10 16:28:08 UTC::@:[7159]:LOG: checkpoint complete: wrote 1 buffers (0.0%); 0 WAL file(s) added, 0 removed, 1 recycled; write=0.102 s, sync=0.003 s, total=0.124 s; sync files=1, longest=0.003 s, average=0.003 s; distance=65535 kB, estimate=65537 kB
2021-10-10 16:28:32 UTC:45.146.164.110(46312):postgres@bbbbbbb:[11182]:FATAL: expected password response, got message type 0
2021-10-10 16:29:21 UTC:45.146.164.110(33734):pgadmin@postgres:[12047]:FATAL: password authentication failed for user "pgadmin"
2021-10-10 16:29:21 UTC:45.146.164.110(33734):pgadmin@postgres:[12047]:DETAIL: Role "pgadmin" does not exist.
Connection matched pg_hba.conf line 13: "host all all all md5"
2021-10-10 16:33:08 UTC::@:[7159]:LOG: checkpoint starting: time
2021-10-10 16:33:08 UTC::@:[7159]:LOG: checkpoint complete: wrote 1 buffers (0.0%); 0 WAL file(s) added, 0 removed, 1 recycled; write=0.102 s, sync=0.003 s, total=0.115 s; sync files=1, longest=0.003 s, average=0.003 s; distance=65536 kB, estimate=65537 kB
2021-10-10 16:38:08 UTC::@:[7159]:LOG: checkpoint starting: time
2021-10-10 16:38:08 UTC::@:[7159]:LOG: checkpoint complete: wrote 1 buffers (0.0%); 0 WAL file(s) added, 0 removed, 1 recycled; write=0.102 s, sync=0.003 s, total=0.115 s; sync files=1, longest=0.003 s, average=0.003 s; distance=65536 kB, estimate=65537 kB
2021-10-10 16:43:09 UTC::@:[7159]:LOG: checkpoint starting: time
2021-10-10 16:43:09 UTC::@:[7159]:LOG: checkpoint complete: wrote 1 buffers (0.0%); 0 WAL file(s) added, 0 removed, 1 recycled; write=0.102 s, sync=0.003 s, total=0.114 s; sync files=1, longest=0.003 s, average=0.003 s; distance=65535 kB, estimate=65537 kB
2021-10-10 16:48:09 UTC::@:[7159]:LOG: checkpoint starting: time
2021-10-10 16:48:09 UTC::@:[7159]:LOG: checkpoint complete: wrote 1 buffers (0.0%); 0 WAL file(s) added, 0 removed, 1 recycled; write=0.102 s, sync=0.005 s, total=0.117 s; sync files=1, longest=0.005 s, average=0.005 s; distance=65536 kB, estimate=65537 kB
2021-10-10 16:48:48 UTC:45.146.164.110(54896):pgadmin@postgres:[28826]:FATAL: password authentication failed for user "pgadmin"
2021-10-10 16:48:48 UTC:45.146.164.110(54896):pgadmin@postgres:[28826]:DETAIL: Role "pgadmin" does not exist.
Connection matched pg_hba.conf line 13: "host all all all md5"
2021-10-10 16:53:09 UTC::@:[7159]:LOG: checkpoint starting: time
2021-10-10 16:53:09 UTC::@:[7159]:LOG: checkpoint complete: wrote 1 buffers (0.0%); 0 WAL file(s) added, 0 removed, 1 recycled; write=0.102 s, sync=0.003 s, total=0.115 s; sync files=1, longest=0.003 s, average=0.003 s; distance=65536 kB, estimate=65537 kB
2021-10-10 16:58:10 UTC::@:[7159]:LOG: checkpoint starting: time
2021-10-10 16:58:10 UTC::@:[7159]:LOG: checkpoint complete: wrote 1 buffers (0.0%); 0 WAL file(s) added, 0 removed, 2 recycled; write=0.227 s, sync=0.002 s, total=0.388 s; sync files=1, longest=0.002 s, average=0.002 s; distance=65535 kB, estimate=65536 kB
----------------------- END OF LOG ----------------------
2021-10-10 17:03:10 UTC::@:[7159]:LOG: checkpoint starting: time
2021-10-10 17:03:10 UTC::@:[7159]:LOG: checkpoint complete: wrote 1 buffers (0.0%); 0 WAL file(s) added, 0 removed, 1 recycled; write=0.223 s, sync=0.002 s, total=0.236 s; sync files=1, longest=0.002 s, average=0.002 s; distance=65536 kB, estimate=65536 kB
2021-10-10 17:08:10 UTC::@:[7159]:LOG: checkpoint starting: time
2021-10-10 17:08:11 UTC::@:[7159]:LOG: checkpoint complete: wrote 1 buffers (0.0%); 0 WAL file(s) added, 0 removed, 1 recycled; write=0.228 s, sync=0.003 s, total=0.241 s; sync files=1, longest=0.003 s, average=0.003 s; distance=65536 kB, estimate=65536 kB
2021-10-10 17:08:16 UTC:45.146.164.110(59750):pgadmin@postgres:[12805]:FATAL: password authentication failed for user "pgadmin"
2021-10-10 17:08:16 UTC:45.146.164.110(59750):pgadmin@postgres:[12805]:DETAIL: Role "pgadmin" does not exist.
Connection matched pg_hba.conf line 13: "host all all all md5"
2021-10-10 17:13:10 UTC::@:[7159]:LOG: checkpoint starting: time
2021-10-10 17:13:10 UTC::@:[7159]:LOG: checkpoint complete: wrote 1 buffers (0.0%); 0 WAL file(s) added, 0 removed, 1 recycled; write=0.226 s, sync=0.002 s, total=0.238 s; sync files=1, longest=0.002 s, average=0.002 s; distance=65536 kB, estimate=65536 kB
2021-10-10 17:18:10 UTC::@:[7159]:LOG: checkpoint starting: time
2021-10-10 17:18:11 UTC::@:[7159]:LOG: checkpoint complete: wrote 6 buffers (0.0%); 0 WAL file(s) added, 0 removed, 1 recycled; write=0.734 s, sync=0.003 s, total=0.747 s; sync files=5, longest=0.003 s, average=0.001 s; distance=65564 kB, estimate=65564 kB
2021-10-10 17:23:10 UTC::@:[7159]:LOG: checkpoint starting: time
2021-10-10 17:23:10 UTC::@:[7159]:LOG: checkpoint complete: wrote 1 buffers (0.0%); 0 WAL file(s) added, 0 removed, 1 recycled; write=0.229 s, sync=0.002 s, total=0.253 s; sync files=1, longest=0.002 s, average=0.002 s; distance=65507 kB, estimate=65558 kB
2021-10-10 17:27:39 UTC:45.146.164.110(33054):pgadmin@postgres:[29276]:FATAL: password authentication failed for user "pgadmin"
2021-10-10 17:27:39 UTC:45.146.164.110(33054):pgadmin@postgres:[29276]:DETAIL: Role "pgadmin" does not exist.
Connection matched pg_hba.conf line 13: "host all all all md5"
2021-10-10 17:28:10 UTC::@:[7159]:LOG: checkpoint starting: time
2021-10-10 17:28:11 UTC::@:[7159]:LOG: checkpoint complete: wrote 2 buffers (0.0%); 0 WAL file(s) added, 0 removed, 1 recycled; write=0.335 s, sync=0.002 s, total=0.360 s; sync files=2, longest=0.002 s, average=0.001 s; distance=65540 kB, estimate=65556 kB
2021-10-10 17:33:10 UTC::@:[7159]:LOG: checkpoint starting: time
2021-10-10 17:33:10 UTC::@:[7159]:LOG: checkpoint complete: wrote 1 buffers (0.0%); 0 WAL file(s) added, 0 removed, 1 recycled; write=0.230 s, sync=0.003 s, total=0.243 s; sync files=1, longest=0.002 s, average=0.002 s; distance=65532 kB, estimate=65554 kB
2021-10-10 17:38:10 UTC::@:[7159]:LOG: checkpoint starting: time
2021-10-10 17:38:10 UTC::@:[7159]:LOG: checkpoint complete: wrote 1 buffers (0.0%); 0 WAL file(s) added, 0 removed, 1 recycled; write=0.271 s, sync=0.002 s, total=0.284 s; sync files=1, longest=0.002 s, average=0.002 s; distance=65536 kB, estimate=65552 kB
2021-10-10 17:43:10 UTC::@:[7159]:LOG: checkpoint starting: time
2021-10-10 17:43:11 UTC::@:[7159]:LOG: checkpoint complete: wrote 4 buffers (0.0%); 0 WAL file(s) added, 0 removed, 1 recycled; write=0.546 s, sync=0.002 s, total=0.557 s; sync files=3, longest=0.002 s, average=0.001 s; distance=65553 kB, estimate=65553 kB
2021-10-10 17:46:54 UTC:45.146.164.110(55354):pgadmin@postgres:[13308]:FATAL: password authentication failed for user "pgadmin"
2021-10-10 17:46:54 UTC:45.146.164.110(55354):pgadmin@postgres:[13308]:DETAIL: Role "pgadmin" does not exist.
Connection matched pg_hba.conf line 13: "host all all all md5"
2021-10-10 17:48:10 UTC::@:[7159]:LOG: checkpoint starting: time
2021-10-10 17:48:10 UTC::@:[7159]:LOG: checkpoint complete: wrote 4 buffers (0.0%); 0 WAL file(s) added, 0 removed, 1 recycled; write=0.520 s, sync=0.002 s, total=0.532 s; sync files=4, longest=0.002 s, average=0.001 s; distance=65536 kB, estimate=65551 kB
2021-10-10 17:53:11 UTC::@:[7159]:LOG: checkpoint starting: time
2021-10-10 17:53:11 UTC::@:[7159]:LOG: checkpoint complete: wrote 2 buffers (0.0%); 0 WAL file(s) added, 0 removed, 1 recycled; write=0.327 s, sync=0.002 s, total=0.340 s; sync files=2, longest=0.002 s, average=0.001 s; distance=65516 kB, estimate=65548 kB
2021-10-10 17:58:11 UTC::@:[7159]:LOG: checkpoint starting: time
2021-10-10 17:58:11 UTC::@:[7159]:LOG: checkpoint complete: wrote 1 buffers (0.0%); 0 WAL file(s) added, 0 removed, 1 recycled; write=0.223 s, sync=0.002 s, total=0.236 s; sync files=1, longest=0.002 s, average=0.002 s; distance=65536 kB, estimate=65546 kB
2021-10-10 18:03:11 UTC::@:[7159]:LOG: checkpoint starting: time
2021-10-10 18:03:11 UTC::@:[7159]:LOG: checkpoint complete: wrote 1 buffers (0.0%); 0 WAL file(s) added, 0 removed, 1 recycled; write=0.227 s, sync=0.002 s, total=0.239 s; sync files=1, longest=0.002 s, average=0.002 s; distance=65536 kB, estimate=65545 kB
2021-10-10 18:05:49 UTC:45.146.164.110(40552):pgadmin@postgres:[29655]:FATAL: password authentication failed for user "pgadmin"
2021-10-10 18:05:49 UTC:45.146.164.110(40552):pgadmin@postgres:[29655]:DETAIL: Role "pgadmin" does not exist.
Connection matched pg_hba.conf line 13: "host all all all md5"
2021-10-10 18:08:12 UTC::@:[7159]:LOG: checkpoint starting: time
2021-10-10 18:08:12 UTC::@:[7159]:LOG: checkpoint complete: wrote 1 buffers (0.0%); 0 WAL file(s) added, 0 removed, 1 recycled; write=0.224 s, sync=0.002 s, total=0.235 s; sync files=1, longest=0.002 s, average=0.002 s; distance=65536 kB, estimate=65544 kB
2021-10-10 18:13:12 UTC::@:[7159]:LOG: checkpoint starting: time
2021-10-10 18:13:12 UTC::@:[7159]:LOG: checkpoint complete: wrote 1 buffers (0.0%); 0 WAL file(s) added, 0 removed, 1 recycled; write=0.229 s, sync=0.002 s, total=0.240 s; sync files=1, longest=0.002 s, average=0.002 s; distance=65536 kB, estimate=65543 kB
2021-10-10 18:13:55 UTC:49.37.162.238(65012):optiwinsdev@optiwins-dev-2:[17037]:LOG: could not receive data from client: Connection reset by peer
2021-10-10 18:18:12 UTC::@:[7159]:LOG: checkpoint starting: time
2021-10-10 18:18:12 UTC::@:[7159]:LOG: checkpoint complete: wrote 1 buffers (0.0%); 0 WAL file(s) added, 0 removed, 1 recycled; write=0.218 s, sync=0.002 s, total=0.234 s; sync files=1, longest=0.002 s, average=0.002 s; distance=65536 kB, estimate=65543 kB
----------------------- END OF LOG ----------------------
^ permalink raw reply [nested|flat] 22+ messages in thread
* Re: Error: server closed the connection unexpectedly
2021-10-09 16:01 Error: server closed the connection unexpectedly Anil <anilkumar15.mf@gmail.com>
2021-10-09 20:26 ` Re: Error: server closed the connection unexpectedly Adrian Klaver <adrian.klaver@aklaver.com>
2021-10-10 17:26 ` Re: Error: server closed the connection unexpectedly Adrian Klaver <adrian.klaver@aklaver.com>
2021-10-10 18:42 ` Re: Error: server closed the connection unexpectedly Anil <anilkumar15.mf@gmail.com>
@ 2021-10-11 08:08 ` Laurenz Albe <laurenz.albe@cybertec.at>
2021-10-22 13:02 ` Re: Error: server closed the connection unexpectedly Sachin Kotwal <kotsachin@gmail.com>
0 siblings, 1 reply; 22+ messages in thread
From: Laurenz Albe @ 2021-10-11 08:08 UTC (permalink / raw)
To: Anil <anilkumar15.mf@gmail.com>; Adrian Klaver <adrian.klaver@aklaver.com>; +Cc: pgsql-general
On Mon, 2021-10-11 at 00:12 +0530, Anil wrote:
> Please find the server log, if you can find something (due to some reasons not being able to get OS system log, will be shared soon).
Nothing to see.
Perhaps an ill-configured network component closes idle connection?
In that case, try keepalive.
Yours,
Laurenz Albe
--
Cybertec | https://www.cybertec-postgresql.com
^ permalink raw reply [nested|flat] 22+ messages in thread
* Re: Error: server closed the connection unexpectedly
2021-10-09 16:01 Error: server closed the connection unexpectedly Anil <anilkumar15.mf@gmail.com>
2021-10-09 20:26 ` Re: Error: server closed the connection unexpectedly Adrian Klaver <adrian.klaver@aklaver.com>
2021-10-10 17:26 ` Re: Error: server closed the connection unexpectedly Adrian Klaver <adrian.klaver@aklaver.com>
2021-10-10 18:42 ` Re: Error: server closed the connection unexpectedly Anil <anilkumar15.mf@gmail.com>
2021-10-11 08:08 ` Re: Error: server closed the connection unexpectedly Laurenz Albe <laurenz.albe@cybertec.at>
@ 2021-10-22 13:02 ` Sachin Kotwal <kotsachin@gmail.com>
0 siblings, 0 replies; 22+ messages in thread
From: Sachin Kotwal @ 2021-10-22 13:02 UTC (permalink / raw)
To: Laurenz Albe <laurenz.albe@cybertec.at>; +Cc: Anil <anilkumar15.mf@gmail.com>; Adrian Klaver <adrian.klaver@aklaver.com>; pgsql-general
Hi All,
I am also facing a similar issue. In my case I am connecting to AWS Aurora
PostgreSQL.
When my psql session is idle for a while ( for 5 - 10 minutes ) , It gets
terminated and reconnect but query/transaction started by earlier session
remain in `idle in transaction` state and the only option left to clean it
is terminate that session with `pg_terminate_backend()`. Issue happens when
we are connecting from either psql or DBeaver client but not with the
application.
Here is example :
```
test=> begin;
BEGIN
test=*> LOCK TABLE test.dependency_queue IN EXCLUSIVE MODE;
LOCK TABLE
test=*>
test=*> rollback;
server closed the connection unexpectedly
This probably means the server terminated abnormally
before or while processing the request.
The connection to the server was lost. Attempting reset:
Succeeded.
psql (13.4, server 11.9)
SSL connection (protocol: TLSv1.2, cipher: ECDHE-RSA-AES256-GCM-SHA384,
bits: 256, compression: off)
test=> select now()-query_start, pid,state, usename, application_name,
client_addr, wait_event_type, query from pg_stat_activity where
state!='idle';
?column? | pid | state | usename |
application_name | client_addr | wait_event_type |
query
-----------------+-------+---------------------+----------+------------------------+--------------+-----------------+------------------------------------------------------------------------------------------------------------------------------------------------
00:08:22.762573 | 20233 | active | postgres | PostgreSQL JDBC
Driver | 10.0.174.30 | Lock | LOCK TABLE test.dependency_queue
IN EXCLUSIVE MODE
00:09:28.101577 | 14830 | idle in transaction | postgres | psql
| 10.0.173.200 | Client | LOCK TABLE test.dependency_queue
IN EXCLUSIVE MODE;
00:00:00 | 10198 | active | postgres | psql
| 10.0.103.144 | | select now()-query_start,
pid,state, usename, application_name, client_addr, wait_event_type, query
from pg_stat_activity where state!='idle';
(3 rows)
test=> rollback;
WARNING: there is no transaction in progress
ROLLBACK
```
Nothing in the postgresql logs apart from below statements multiple times:
```
cat postgresql.log.2021-10-22-1200 | grep '10.0.173.200'
2021-10-22 12:00:09 UTC:10.0.173.200(4082):[unknown]@[unknown]:[729]:LOG:
connection received: host=10.0.173.200 port=4082
2021-10-22 12:00:09 UTC:10.0.173.200(4082):[unknown]@[unknown]:[729]:LOG:
incomplete startup packet
```
Now because the psql session was terminated incorrectly, another session
from the application trying to get explicit lock on the same table is
waiting for a long time, until we are not terminating the hanging session.
Below are timeout/keepalive settings on my PostgreSQL instance:
```
select name, setting, unit from pg_settings where name ilike '%timeout%';
name | setting | unit
-------------------------------------+----------+------
archive_timeout | 300 | s
authentication_timeout | 60 | s
checkpoint_timeout | 60 | s
deadlock_timeout | 1000 | ms
idle_in_transaction_session_timeout | 86400000 | ms
lock_timeout | 0 | ms
statement_timeout | 0 | ms
wal_receiver_timeout | 30000 | ms
wal_sender_timeout | 60000 | ms
(9 rows)
select name, setting, unit from pg_settings where name ilike '%keep%';
name | setting | unit
-------------------------+---------+------
tcp_keepalives_count | 9 |
tcp_keepalives_idle | 7200 | s
tcp_keepalives_interval | 75 | s
wal_keep_segments | 0 |
(4 rows)
```
macOS Catelina 10.15.7 timeout settings :
```
sysctl -A | grep keep
net.inet.tcp.keepidle: 7200000
net.inet.tcp.keepintvl: 75000
net.inet.tcp.keepinit: 75000
net.inet.tcp.keepcnt: 8
net.inet.tcp.always_keepalive: 0
net.inet.mptcp.keepalive: 840
net.link.ether.inet.keep_announcements: 1
net.key.natt_keepalive_interval: 20
net.inet6.ip6.keepfaith: 0
net.necp.pass_keepalives: 1
```
I can set ` lock_timeout` and ` idle_in_transaction_session_timeout` to
lower value so that the hanging session can get terminated automatically by
postgres but I would like to know root cause of the issue and fix it there
instead of adjusting postgresql timeout setting values.
Please let me know which setting on my client or server is not set properly
and because of that the issue is happening.
Regards,
Sachin
On Mon, Oct 11, 2021 at 1:38 PM Laurenz Albe <laurenz.albe@cybertec.at>
wrote:
> On Mon, 2021-10-11 at 00:12 +0530, Anil wrote:
> > Please find the server log, if you can find something (due to some
> reasons not being able to get OS system log, will be shared soon).
>
> Nothing to see.
>
> Perhaps an ill-configured network component closes idle connection?
> In that case, try keepalive.
>
> Yours,
> Laurenz Albe
> --
> Cybertec | https://www.cybertec-postgresql.com
>
>
>
>
--
Thanks and Regards,
Sachin Kotwal
^ permalink raw reply [nested|flat] 22+ messages in thread
end of thread, other threads:[~2021-10-22 13:02 UTC | newest]
Thread overview: 22+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2004-05-26 14:17 Error: server closed the connection unexpectedely Janez Kostanjšek <janez.kostanjsek@ensico.si>
2004-05-27 03:31 ` mike g <mike@thegodshalls.com>
2013-04-03 10:20 ERROR: SERVER CLOSED THE CONNECTION UNEXPECTEDLY jpui <p.ribas@hotmail.com>
2013-04-05 13:40 ` Re: ERROR: SERVER CLOSED THE CONNECTION UNEXPECTEDLY JotaComm <jota.comm@gmail.com>
2013-04-05 13:58 ` Re: ERROR: SERVER CLOSED THE CONNECTION UNEXPECTEDLY jpui <p.ribas@hotmail.com>
2013-04-06 00:25 ` Re: ERROR: SERVER CLOSED THE CONNECTION UNEXPECTEDLY John R Pierce <pierce@hogranch.com>
2021-10-09 16:01 Error: server closed the connection unexpectedly Anil <anilkumar15.mf@gmail.com>
2021-10-09 20:26 ` Re: Error: server closed the connection unexpectedly Adrian Klaver <adrian.klaver@aklaver.com>
2021-10-10 06:18 ` Re: Error: server closed the connection unexpectedly Ron <ronljohnsonjr@gmail.com>
2021-10-10 16:27 ` Re: Error: server closed the connection unexpectedly Adrian Klaver <adrian.klaver@aklaver.com>
2021-10-10 18:55 ` Re: Error: server closed the connection unexpectedly Ron <ronljohnsonjr@gmail.com>
2021-10-10 19:20 ` Re: Error: server closed the connection unexpectedly Tom Lane <tgl@sss.pgh.pa.us>
2021-10-10 19:30 ` Re: Error: server closed the connection unexpectedly Ron <ronljohnsonjr@gmail.com>
2021-10-10 20:00 ` Re: Error: server closed the connection unexpectedly Tom Lane <tgl@sss.pgh.pa.us>
2021-10-10 20:06 ` Re: Error: server closed the connection unexpectedly Ron <ronljohnsonjr@gmail.com>
2021-10-10 20:17 ` Re: Error: server closed the connection unexpectedly Adrian Klaver <adrian.klaver@aklaver.com>
2021-10-10 20:12 ` Re: Error: server closed the connection unexpectedly Adrian Klaver <adrian.klaver@aklaver.com>
2021-10-10 21:26 ` Re: Error: server closed the connection unexpectedly Ron <ronljohnsonjr@gmail.com>
2021-10-10 17:26 ` Re: Error: server closed the connection unexpectedly Adrian Klaver <adrian.klaver@aklaver.com>
2021-10-10 18:42 ` Re: Error: server closed the connection unexpectedly Anil <anilkumar15.mf@gmail.com>
2021-10-11 08:08 ` Re: Error: server closed the connection unexpectedly Laurenz Albe <laurenz.albe@cybertec.at>
2021-10-22 13:02 ` Re: Error: server closed the connection unexpectedly Sachin Kotwal <kotsachin@gmail.com>
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