Re: SQLSTATE[08006] [7] server closed the connection unexpectedly - Mailing list pgsql-general

From Albe Laurenz
Subject Re: SQLSTATE[08006] [7] server closed the connection unexpectedly
Date
Msg-id D960CB61B694CF459DCFB4B0128514C2086C172A@exadv11.host.magwien.gv.at
Whole thread Raw
In response to Re: SQLSTATE[08006] [7] server closed the connection unexpectedly  (Yvon Thoraval <yvon.thoraval@gmail.com>)
Responses Re: SQLSTATE[08006] [7] server closed the connection unexpectedly  (Yvon Thoraval <yvon.thoraval@gmail.com>)
List pgsql-general
Yvon Thoraval wrote:
>> You may want to set log_statement='all' in postgresql.conf

> i did this change , restart PostgreSQL and test again, with the same error, however postgres log
> didn't report any error, as far as i understand the log :
> 
> 2012-09-14 18:43:14 CEST LOG:  received fast shutdown request
> 2012-09-14 18:43:14 CEST LOG:  aborting any active transactions
> 2012-09-14 18:43:14 CEST LOG:  autovacuum launcher shutting down
> 2012-09-14 18:43:14 CEST LOG:  shutting down
> 2012-09-14 18:43:14 CEST LOG:  database system is shut down
> 2012-09-14 18:43:17 CEST LOG:  database system was shut down at 2012-09-14 18:43:14 CEST
> 2012-09-14 18:43:17 CEST LOG:  incomplete startup packet
> 2012-09-14 18:43:17 CEST LOG:  database system is ready to accept connections
> 2012-09-14 18:43:17 CEST LOG:  autovacuum launcher started

Well, "received fast shutdown request" would explain what is
going on.  The server shuts down, and all active connections
are terminated, which on the client end looks exactly like
you described.

What is odd is that you say it is repeatable.
What could be sending SIGINT to the postmaster whenever
you try to connect?  Are database server and web server
on the same machine?
Try to find out what is going on there.
How does the log look when you enable
log_connections and log_disconnections in postgresql.conf?

Yours,
Laurenz Albe

pgsql-general by date:

Previous
From: Yvon Thoraval
Date:
Subject: On Ubuntu 12.04 i do have two psql one of those isn't working
Next
From: "Albe Laurenz"
Date:
Subject: Re: application for postgres Log