Re: SQLSTATE[08006] [7] server closed the connection unexpectedly

From: "Albe Laurenz" <laurenz(dot)albe(at)wien(dot)gv(dot)at>
To: "Yvon Thoraval *EXTERN*" <yvon(dot)thoraval(at)gmail(dot)com>
Cc: <pgsql-general(at)postgresql(dot)org>
Subject: Re: SQLSTATE[08006] [7] server closed the connection unexpectedly
Date: 2012-09-17 07:19:54
Message-ID: D960CB61B694CF459DCFB4B0128514C2086C172A@exadv11.host.magwien.gv.at
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: 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

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Albe Laurenz 2012-09-17 07:38:06 Re: application for postgres Log
Previous Message Yvon Thoraval 2012-09-17 06:15:47 On Ubuntu 12.04 i do have two psql one of those isn't working