Re: LOG: unexpected EOF on client connection

Lists: pgsql-general
From: akp geek <akpgeek(at)gmail(dot)com>
To: pgsql-general <pgsql-general(at)postgresql(dot)org>
Subject: LOG: unexpected EOF on client connection
Date: 2010-10-08 13:57:31
Message-ID: AANLkTinYAz9EWec7uPbEEbLyHty9oe3c_zWOoKBaW_g0@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Lists: pgsql-general

Hi all -

I am seeing lot of these records in the log file. Not able to
find why I get this in log file. Is there a way to find out info about this
? Thanks for your help

LOG: unexpected EOF on client connection
LOG: unexpected EOF on client connection
LOG: unexpected EOF on client connection
LOG: unexpected EOF on client connection
LOG: unexpected EOF on client connection
LOG: unexpected EOF on client connection
LOG: unexpected EOF on client connection
LOG: unexpected EOF on client connection
LOG: unexpected EOF on client connection
LOG: unexpected EOF on client connection
LOG: unexpected EOF on client connection
LOG: unexpected EOF on client connection
LOG: unexpected EOF on client connection

Regards


From: tv(at)fuzzy(dot)cz
To: "pgsql-general" <pgsql-general(at)postgresql(dot)org>
Subject: Re: LOG: unexpected EOF on client connection
Date: 2010-10-08 14:11:24
Message-ID: 9685e5794c217efb5fcbed06be628f47.squirrel@sq.gransy.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Lists: pgsql-general

> Hi all -
>
> I am seeing lot of these records in the log file. Not able
> to
> find why I get this in log file. Is there a way to find out info about
> this
> ? Thanks for your help
>
>
> LOG: unexpected EOF on client connection
> LOG: unexpected EOF on client connection

This means the client application is dropping the connection unexpectedly.
You have to find the application and fix it - a good log_line_prefix may
be a good way to find the application (e.g. "%t %u(at)%d %r" or something
like that).

Not too long ago I've received a lot of these when the apache http server
went crazy after an update and was dropping the connections (opened by a
PHP application) for some reason.

regards
Tomas


From: Scott Marlowe <scott(dot)marlowe(at)gmail(dot)com>
To: tv(at)fuzzy(dot)cz
Cc: pgsql-general <pgsql-general(at)postgresql(dot)org>
Subject: Re: LOG: unexpected EOF on client connection
Date: 2010-10-08 18:32:10
Message-ID: AANLkTik=U+fQVPWa3efLTci+cd1hbTQGgR4zAU_RuwM-@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Lists: pgsql-general

On Fri, Oct 8, 2010 at 8:11 AM, <tv(at)fuzzy(dot)cz> wrote:
>> Hi all -
>>
>>               I am seeing lot of these records in the log file. Not able
>> to
>> find why I get this in log file. Is there a way to find out info about
>> this
>> ? Thanks for your help
>>
>>
>> LOG:  unexpected EOF on client connection
>> LOG:  unexpected EOF on client connection
>
> This means the client application is dropping the connection unexpectedly.
> You have to find the application and fix it - a good log_line_prefix may
> be a good way to find the application (e.g. "%t %u(at)%d %r" or something
> like that).

Or that OP has a networking issue. Some firewalls are known for
dropping what they think are idle connections when they aren't.


From: Ben Carbery <ben(dot)carbery(at)gmail(dot)com>
To: pgsql-general <pgsql-general(at)postgresql(dot)org>
Subject: Re: LOG: unexpected EOF on client connection
Date: 2010-10-09 23:45:02
Message-ID: AANLkTinBPn8cRwekaF4mZk2BH50onoGNoaa12T2DO+rV@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Lists: pgsql-general

> Or that OP has a networking issue. Some firewalls are known for
> dropping what they think are idle connections when they aren't.
>
>
I don't think so.. EOF is an explicit termination, not a timeout as would
caused by a firewall dropping traffic. It's more like what happens when the
remote process on the client is killed for example. Postgres probably
expects to see some kind of "quit" command prior to receiving the EOF.


From: Scott Marlowe <scott(dot)marlowe(at)gmail(dot)com>
To: Ben Carbery <ben(dot)carbery(at)gmail(dot)com>
Cc: pgsql-general <pgsql-general(at)postgresql(dot)org>
Subject: Re: LOG: unexpected EOF on client connection
Date: 2010-10-10 01:51:36
Message-ID: AANLkTins7zv_fSCar=kJW7hJBY391ifrp+rT4VZcBERv@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Lists: pgsql-general

On Sat, Oct 9, 2010 at 5:45 PM, Ben Carbery <ben(dot)carbery(at)gmail(dot)com> wrote:
>
>> Or that OP has a networking issue.  Some firewalls are known for
>> dropping what they think are idle connections when they aren't.
>>
>
> I don't think so.. EOF is an explicit termination, not a timeout as would
> caused by a firewall dropping traffic. It's more like what happens when the
> remote process on the client is killed for example. Postgres probably
> expects to see some kind of "quit" command prior to receiving the EOF.

Well, this is exactly the error I used to get when the problem was
having a firewall timeout between client and server at my last job.
The fix there was to play with the tcp_keepalive settings

--
To understand recursion, one must first understand recursion.


From: Brar Piening <brar(at)gmx(dot)de>
To: pgsql-general(at)postgresql(dot)org
Subject: Re: LOG: unexpected EOF on client connection
Date: 2010-10-11 17:51:21
Message-ID: 4CB34E99.8090504@gmx.de
Views: Raw Message | Whole Thread | Download mbox | Resend email
Lists: pgsql-general


On Fri, 8 Oct 2010 09:57:31 -0400, akp geek <akpgeek(at)gmail(dot)com> wrote:
>
> LOG: unexpected EOF on client connection

Npgsql is a very potent EOF-Generator if the client app doesn't properly
close (or dispose explicitly) connections.

see
http://fxjr.blogspot.com/2010/04/npgsql-connection-pool-explained.html

Regards,

Brar