Re: Getting FATAL: terminating connection due to administrator command

From: Peter Hopfgartner <peter(dot)hopfgartner(at)r3-gis(dot)com>
To: pgsql-general(at)postgresql(dot)org
Cc: sergio(dot)segala(at)r3-gis(dot)com
Subject: Re: Getting FATAL: terminating connection due to administrator command
Date: 2010-09-16 14:55:55
Message-ID: 20100916145555.CEE731678216@mail.r3-gis.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

--------Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us> wrote--------
Subject: Re: [GENERAL] Getting FATAL: terminating connection due to administrator command
Date: 15.09.2010 17:40

>Peter Hopfgartner <peter(dot)hopfgartner(at)r3-gis(dot)com> writes:
>> --------Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us> wrote--------
>>> This is a result of something sending SIGTERM to the backend process.
>
>> Can I trace where the SIGTERM comes from?
>
>If this is a recent Red-Hat-based release, I think that systemtap could
>probably be used to determine that. There's a script here that solves
>a related problem:
>http://sourceware.org/systemtap/examples/process/sigmon.stp
>

Ok, I was able to create the packages with the debug info, adapted the script to report SIGTERM sent so any process, see attachment, tested this sending some SIGTERM and seeing them reported by systemtap.

Anyway, currently we are not able to reproduce the problem on the server, magically everything seems to work on this machine. The only changes should be the 2 debug-info packages (kernel-debuginfo-common-2.6.18-194.11.3.el5.x86_64.rpm and kernel-xen-debuginfo-2.6.18-194.11.3.el5.x86_64.rpm).

In the same time, the problem appeared twice today on our testing server. This suggests to drop the hardware failure hypothesis.

I'm running systemtap on the testing server now, too.

> regards, tom lane
>

Attachment Content-Type Size
sigmon1.stp application/octet-stream 913 bytes

Browse pgsql-general by date

  From Date Subject
Next Message Christine Penner 2010-09-16 15:05:54 query join issue
Previous Message Tom Lane 2010-09-16 14:54:24 Re: missing chunk number 497 for toast value 504723663