pg.ddx.io  pgsql-general@postgresql.org mailing list archive  
help / color / mirror / Atom feed
FATAL:  terminating connection due to administrator command
12+ messages / 7 participants
[nested] [flat]

* FATAL:  terminating connection due to administrator command
@ 2006-01-13 11:52 surabhi.ahuja <surabhi.ahuja@iiitb.ac.in>
  2006-01-13 15:26 ` Re: FATAL: terminating connection due to administrator command Tom Lane <tgl@sss.pgh.pa.us>
  0 siblings, 1 reply; 12+ messages in thread

From: surabhi.ahuja @ 2006-01-13 11:52 UTC (permalink / raw)
  To: pgsql-general


i am seeing the following in the postgreslog

why is it coming:
FATAL:  terminating connection due to administrator command

thanks,
regards
Surabhi

^ permalink  raw  reply  [nested|flat] 12+ messages in thread

* Re: FATAL: terminating connection due to administrator command
  2006-01-13 11:52 FATAL:  terminating connection due to administrator command surabhi.ahuja <surabhi.ahuja@iiitb.ac.in>
@ 2006-01-13 15:26 ` Tom Lane <tgl@sss.pgh.pa.us>
  0 siblings, 0 replies; 12+ messages in thread

From: Tom Lane @ 2006-01-13 15:26 UTC (permalink / raw)
  To: surabhi.ahuja <surabhi.ahuja@iiitb.ac.in>; +Cc: pgsql-general

"surabhi.ahuja" <surabhi.ahuja@iiitb.ac.in> writes:
> why is it coming:
> FATAL:  terminating connection due to administrator command

Something sent the backend a SIGTERM signal.  With no more information
than that, it's difficult to say more.

			regards, tom lane



^ permalink  raw  reply  [nested|flat] 12+ messages in thread

* Re: FATAL: terminating connection due to administrator command
@ 2006-01-24 05:03 surabhi.ahuja <surabhi.ahuja@iiitb.ac.in>
  2006-01-24 09:16 ` Re: FATAL: terminating connection due to administrator Richard Huxton <dev@archonet.com>
  0 siblings, 1 reply; 12+ messages in thread

From: surabhi.ahuja @ 2006-01-24 05:03 UTC (permalink / raw)
  To: Tom Lane <tgl@sss.pgh.pa.us>; +Cc: pgsql-general

The exact message i saw is this:

LOG:  received fast shutdown request
LOG:  aborting any active transactions
FATAL:  terminating connection due to administrator command

so does this mean that someone is trying to stop postmaster by sending it a kill signal?

i also have these questions:

1. many times i have seen two instances of postmaster running. how does that happen and how to prevent it from happening?

2. into the logfile (which i specify at the time of starting postmaster), i want to add timestamps, for each log/warning etc. How do i do that?

thanks,
regards
Surabhi

-----Original Message-----
From: Tom Lane [mailto:tgl@sss.pgh.pa.us]
Sent: Fri 1/13/2006 8:56 PM
To: surabhi.ahuja
Cc: pgsql-general@postgresql.org
Subject: Re: [GENERAL] FATAL: terminating connection due to administrator command 
 
***********************
Your mail has been scanned by iiitb VirusWall.
***********-***********


"surabhi.ahuja" <surabhi.ahuja@iiitb.ac.in> writes:
> why is it coming:
> FATAL:  terminating connection due to administrator command

Something sent the backend a SIGTERM signal.  With no more information
than that, it's difficult to say more.

			regards, tom lane

^ permalink  raw  reply  [nested|flat] 12+ messages in thread

* Re: FATAL: terminating connection due to administrator
  2006-01-24 05:03 Re: FATAL: terminating connection due to administrator command surabhi.ahuja <surabhi.ahuja@iiitb.ac.in>
@ 2006-01-24 09:16 ` Richard Huxton <dev@archonet.com>
  2006-01-24 14:52   ` Re: FATAL: terminating connection due to administrator command Tom Lane <tgl@sss.pgh.pa.us>
  0 siblings, 1 reply; 12+ messages in thread

From: Richard Huxton @ 2006-01-24 09:16 UTC (permalink / raw)
  To: surabhi.ahuja <surabhi.ahuja@iiitb.ac.in>; +Cc: Tom Lane <tgl@sss.pgh.pa.us>; pgsql-general

surabhi.ahuja wrote:
> The exact message i saw is this:
> 
> LOG:  received fast shutdown request LOG:  aborting any active
> transactions FATAL:  terminating connection due to administrator
> command
> 
> so does this mean that someone is trying to stop postmaster by
> sending it a kill signal?

Someone or something. It can be Linux's out-of-memory facility picking 
processes to kill. Google "oom killer" for discussion. It would need to 
be sent from the postgres user or root though (or a process running as 
them).

> i also have these questions:
> 
> 1. many times i have seen two instances of postmaster running. how
> does that happen and how to prevent it from happening?

Shouldn't (unless you have two installations of course). You shouldn't 
have to do anything to prevent it from happening. Try and capture 
details of the processes with "ps aux" and "pstree" if you can.

> 2. into the logfile (which i specify at the time of starting
> postmaster), i want to add timestamps, for each log/warning etc. How
> do i do that?

See the manuals for details - run-time environment / error reporting and 
logging.
   http://www.postgresql.org/docs/

-- 
   Richard Huxton
   Archonet Ltd



^ permalink  raw  reply  [nested|flat] 12+ messages in thread

* Re: FATAL: terminating connection due to administrator command
  2006-01-24 05:03 Re: FATAL: terminating connection due to administrator command surabhi.ahuja <surabhi.ahuja@iiitb.ac.in>
  2006-01-24 09:16 ` Re: FATAL: terminating connection due to administrator Richard Huxton <dev@archonet.com>
@ 2006-01-24 14:52   ` Tom Lane <tgl@sss.pgh.pa.us>
  0 siblings, 0 replies; 12+ messages in thread

From: Tom Lane @ 2006-01-24 14:52 UTC (permalink / raw)
  To: Richard Huxton <dev@archonet.com>; +Cc: surabhi.ahuja <surabhi.ahuja@iiitb.ac.in>; pgsql-general

Richard Huxton <dev@archonet.com> writes:
> surabhi.ahuja wrote:
>> so does this mean that someone is trying to stop postmaster by
>> sending it a kill signal?

> Someone or something. It can be Linux's out-of-memory facility picking 
> processes to kill. Google "oom killer" for discussion.

No, because the OOM killer invariably uses "kill -9".  "Fast shutdown"
means that something sent the postmaster a SIGINT.

If you launch the postmaster manually and are not careful to make it
dissociate from your terminal, then typing ^C at some unrelated program
later would be enough to make this happen ...

>> 1. many times i have seen two instances of postmaster running. how
>> does that happen and how to prevent it from happening?

> Shouldn't (unless you have two installations of course).

Perhaps he's not understanding the difference between the postmaster and
its child processes?  I don't believe he's actually got two postmasters
running (unless maybe in separate directories with separate ports, which
is hardly likely to be a setup one would create by accident).  There are
*very* extensive safety interlocks in place to prevent that.

			regards, tom lane



^ permalink  raw  reply  [nested|flat] 12+ messages in thread

* Re: FATAL: terminating connection due to administrator command
@ 2006-01-25 13:58 surabhi.ahuja <surabhi.ahuja@iiitb.ac.in>
  0 siblings, 0 replies; 12+ messages in thread

From: surabhi.ahuja @ 2006-01-25 13:58 UTC (permalink / raw)
  To: Tom Lane <tgl@sss.pgh.pa.us>; Richard Huxton <dev@archonet.com>; +Cc: pgsql-general

 is it also possible that someone was doing an operation on the database for instance inserting manyr rows
and suddenly a command to stop the postmaster arrived?
 
thanks,
regards
Surabhi

________________________________

From: Tom Lane [mailto:tgl@sss.pgh.pa.us]
Sent: Tue 1/24/2006 8:22 PM
To: Richard Huxton
Cc: surabhi.ahuja; pgsql-general@postgresql.org
Subject: Re: [GENERAL] FATAL: terminating connection due to administrator command 



***********************
Your mail has been scanned by iiitb VirusWall.
***********-***********


Richard Huxton <dev@archonet.com> writes:
> surabhi.ahuja wrote:
>> so does this mean that someone is trying to stop postmaster by
>> sending it a kill signal?

> Someone or something. It can be Linux's out-of-memory facility picking
> processes to kill. Google "oom killer" for discussion.

No, because the OOM killer invariably uses "kill -9".  "Fast shutdown"
means that something sent the postmaster a SIGINT.

If you launch the postmaster manually and are not careful to make it
dissociate from your terminal, then typing ^C at some unrelated program
later would be enough to make this happen ...

>> 1. many times i have seen two instances of postmaster running. how
>> does that happen and how to prevent it from happening?

> Shouldn't (unless you have two installations of course).

Perhaps he's not understanding the difference between the postmaster and
its child processes?  I don't believe he's actually got two postmasters
running (unless maybe in separate directories with separate ports, which
is hardly likely to be a setup one would create by accident).  There are
*very* extensive safety interlocks in place to prevent that.

                        regards, tom lane

^ permalink  raw  reply  [nested|flat] 12+ messages in thread

* FATAL: terminating connection due to administrator command
@ 2006-03-13 08:54 surabhi.ahuja <surabhi.ahuja@iiitb.ac.in>
  2006-03-13 15:32 ` Re: FATAL: terminating connection due to administrator command Tom Lane <tgl@sss.pgh.pa.us>
  0 siblings, 1 reply; 12+ messages in thread

From: surabhi.ahuja @ 2006-03-13 08:54 UTC (permalink / raw)
  To: pgsql-general

 
please see the following snippet
 
Feb 27, 2006 6:23:51 
.DMException: java.sql.SQLException: FATAL: terminating connection due to administrator command

this error message is in one of the log files, and because of the above error the desired job does not get executed
 
i tried to see the postgreslog.
 
the log message around that time are as follows:
<2006-02-27 18:23:52 CST%>LOG:  connection received: host=localhost.localdomain port=33256
<2006-02-27 18:23:52 CST%authentication>LOG:  connection authorized: user=sdc database=dbexpress
<2006-02-27 18:23:53 CST%>LOG:  connection received: host=localhost.localdomain port=33258
<2006-02-27 18:23:53 CST%authentication>LOG:  connection authorized: user=sdc database=dbexpress
<2006-02-27 18:30:41 CST%>LOG:  connection received: host=[local] port=
<2006-02-27 18:30:41 CST%authentication>LOG:  connection authorized: user=sdc database=dbexpress
<2006-02-27 18:30:42 CST%idle>LOG:  disconnection: session time: 0:00:00.35 user=sdc database=dbexpress host=[local] port=
<2006-02-27 18:40:44 CST%idle>LOG:  unexpected EOF on client connection
<
 
 
please note the lines in bold, is it because of this EOF on client connection that ... the DMException is coming.
 
 
will be glad if any hints could be provided.
 
this is Postgres 8.0.0
 
thanks,
regards
Surabhi

^ permalink  raw  reply  [nested|flat] 12+ messages in thread

* Re: FATAL: terminating connection due to administrator command
  2006-03-13 08:54 FATAL: terminating connection due to administrator command surabhi.ahuja <surabhi.ahuja@iiitb.ac.in>
@ 2006-03-13 15:32 ` Tom Lane <tgl@sss.pgh.pa.us>
  0 siblings, 0 replies; 12+ messages in thread

From: Tom Lane @ 2006-03-13 15:32 UTC (permalink / raw)
  To: surabhi.ahuja <surabhi.ahuja@iiitb.ac.in>; +Cc: pgsql-general

"surabhi.ahuja" <surabhi.ahuja@iiitb.ac.in> writes:
> .DMException: java.sql.SQLException: FATAL: terminating connection due =
> to administrator command

> <2006-02-27 18:40:44 CST%idle>LOG:  unexpected EOF on client connection

> please note the lines in bold, is it because of this EOF on client =
> connection that ... the DMException is coming.

1. Please don't post HTML --- many of us aren't going to see your "bold".

2. The two log messages above are completely unrelated; the same backend
would not have generated both.

			regards, tom lane



^ permalink  raw  reply  [nested|flat] 12+ messages in thread

* FATAL: terminating connection due to administrator command
@ 2014-09-16 14:05 Emi Lu <emilu@encs.concordia.ca>
  2014-09-16 14:21 ` Re: FATAL: terminating connection due to administrator command Adrian Klaver <adrian.klaver@aklaver.com>
  0 siblings, 1 reply; 12+ messages in thread

From: Emi Lu @ 2014-09-16 14:05 UTC (permalink / raw)
  To: pgsql-general

<html>
  <head>

    <meta http-equiv="content-type" content="text/html; charset=ISO-8859-1">
  </head>
  <body bgcolor="#FFFFFF" text="#000000">
    <font size="-1">Good morning, <br>
      <br>
      Through web application, once in a while(totally twice), we got
      the following fatal error message. May I know what may cause the
      error message please?<br>
      <br>
      &nbsp;&nbsp;&nbsp;&nbsp; <font color="#3333ff">org.postgresql.util.PSQLException:
        FATAL: terminating connection due to administrator command</font><br>
      <br>
      &nbsp;&nbsp;&nbsp;&nbsp; PostgreSQL 8.3.18 on x86_64-unknown-linux-gnu, compiled by
      GCC gcc (GCC) 4.1.2<br>
      <br>
      Without any coding changes, just re-run it, everything went well.
      So, I'd like to get comments what may cause "FATAL: terminating
      connection due to administrator command"?<br>
      <br>
      Thanks a lot!<br>
      Emi<br>
    </font>
  </body>
</html>




^ permalink  raw  reply  [nested|flat] 12+ messages in thread

* Re: FATAL: terminating connection due to administrator command
  2014-09-16 14:05 FATAL: terminating connection due to administrator command Emi Lu <emilu@encs.concordia.ca>
@ 2014-09-16 14:21 ` Adrian Klaver <adrian.klaver@aklaver.com>
  0 siblings, 0 replies; 12+ messages in thread

From: Adrian Klaver @ 2014-09-16 14:21 UTC (permalink / raw)
  To: pgsql-general

On 09/16/2014 07:05 AM, Emi Lu wrote:
> Good morning,
>
> Through web application, once in a while(totally twice), we got the
> following fatal error message. May I know what may cause the error
> message please?
>
> org.postgresql.util.PSQLException: FATAL: terminating connection due to
> administrator command
>
>       PostgreSQL 8.3.18 on x86_64-unknown-linux-gnu, compiled by GCC gcc
> (GCC) 4.1.2
>
> Without any coding changes, just re-run it, everything went well. So,
> I'd like to get comments what may cause "FATAL: terminating connection
> due to administrator command"?

http://www.postgresql.org/message-id/5665.1202148155@sss.pgh.pa.us

>
> Thanks a lot!
> Emi


-- 
Adrian Klaver
adrian.klaver@aklaver.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] 12+ messages in thread

* FATAL:  terminating connection due to administrator command
@ 2020-10-01 09:17 Alban Hertroys <alban.hertroys@apollovredestein.com>
  2020-10-01 09:47 ` Re: FATAL: terminating connection due to administrator command Srinivasa T N <seenutn@gmail.com>
  0 siblings, 1 reply; 12+ messages in thread

From: Alban Hertroys @ 2020-10-01 09:17 UTC (permalink / raw)
  To: pgsql-general@lists.postgresql.org

Hi all,

We're seeing the FATAL error message from the subject pop up in our logs 
at regular intervals, but I haven't been able to pinpoint what is causing 
it. I'm hoping for some insights here.

We run a PostgreSQL 11.9 server on CentOS 7, within a vmware environment:
 PostgreSQL 11.9 on x86_64-pc-linux-gnu, compiled by gcc (GCC) 4.8.5 
20150623 (Red Hat 4.8.5-39), 64-bit

The package was installed from the PGDG repository.

I'm not even sure I should be worried, there doesn't appear to be any 
impact on the servers' functioning, but it does say 'FATAL'.
What we're seeing are lines like these two instances:

2020-09-30 21:45:09.999 CEST [2375] 172.30.2.25 asdf STATEMENT:  select 
count(*) from "util_asdf"."v_something_something2"
2020-09-30 21:45:15.018 CEST [2375] 172.30.2.25 asdf ERROR:  canceling 
statement due to user request
2020-09-30 21:45:15.018 CEST [2375] 172.30.2.25 asdf STATEMENT:  select 
count(*) from "dm_asdf"."asdf_func"
2020-09-30 21:45:20.027 CEST [2375] 172.30.2.25 asdf ERROR:  canceling 
statement due to user request
2020-09-30 21:45:20.027 CEST [2375] 172.30.2.25 asdf STATEMENT:  select 
count(*) from "dm_asdf"."asdf_func"
2020-09-30 22:27:51.422 CEST [20270] 172.30.2.26 selfservice_sales ERROR: 
canceling statement due to user request
2020-09-30 22:27:51.422 CEST [20270] 172.30.2.26 selfservice_sales 
STATEMENT:  select count(*) from "dm_b2b"."prlwytzkofskiv1"
2020-09-30 22:27:51.422 CEST [30649]   FATAL:  terminating connection due 
to administrator command
2020-09-30 22:27:51.422 CEST [30649]   STATEMENT:  select count(*) from 
"dm_b2b"."prlwytzkofskiv1"
2020-09-30 22:27:51.422 CEST [30648]   FATAL:  terminating connection due 
to administrator command
2020-09-30 22:27:51.422 CEST [30648]   STATEMENT:  select count(*) from 
"dm_b2b"."prlwytzkofskiv1"
2020-09-30 22:27:51.422 CEST [30647]   FATAL:  terminating connection due 
to administrator command
2020-09-30 22:27:51.422 CEST [30647]   STATEMENT:  select count(*) from 
"dm_b2b"."prlwytzkofskiv1"
2020-09-30 22:27:51.422 CEST [30646]   FATAL:  terminating connection due 
to administrator command
2020-09-30 22:27:51.422 CEST [30646]   STATEMENT:  select count(*) from 
"dm_b2b"."prlwytzkofskiv1"
2020-09-30 22:27:51.422 CEST [30645]   FATAL:  terminating connection due 
to administrator command
2020-09-30 22:27:51.422 CEST [30645]   STATEMENT:  select count(*) from 
"dm_b2b"."prlwytzkofskiv1"
2020-09-30 22:27:51.435 CEST [6482]   LOG:  background worker "parallel 
worker" (PID 30646) exited with exit code 1
2020-09-30 22:27:51.435 CEST [6482]   LOG:  background worker "parallel 
worker" (PID 30645) exited with exit code 1
2020-09-30 22:27:51.435 CEST [6482]   LOG:  background worker "parallel 
worker" (PID 30647) exited with exit code 1
2020-09-30 22:27:51.435 CEST [6482]   LOG:  background worker "parallel 
worker" (PID 30648) exited with exit code 1
2020-09-30 22:27:51.435 CEST [6482]   LOG:  background worker "parallel 
worker" (PID 30649) exited with exit code 1
2020-09-30 22:27:56.446 CEST [20270] 172.30.2.26 selfservice_sales ERROR: 
canceling statement due to user request
2020-09-30 22:27:56.446 CEST [20270] 172.30.2.26 selfservice_sales 
STATEMENT:  select count(*) from "dm_b2b"."prlwytzkofskiv1"
2020-09-30 22:27:56.446 CEST [30659]   FATAL:  terminating connection due 
to administrator command
2020-09-30 22:27:56.446 CEST [30659]   STATEMENT:  select count(*) from 
"dm_b2b"."prlwytzkofskiv1"
2020-09-30 22:27:56.446 CEST [30658]   FATAL:  terminating connection due 
to administrator command
2020-09-30 22:27:56.446 CEST [30658]   STATEMENT:  select count(*) from 
"dm_b2b"."prlwytzkofskiv1"
2020-09-30 22:27:56.446 CEST [30657]   FATAL:  terminating connection due 
to administrator command
2020-09-30 22:27:56.446 CEST [30657]   STATEMENT:  select count(*) from 
"dm_b2b"."prlwytzkofskiv1"
2020-09-30 22:27:56.446 CEST [30656]   FATAL:  terminating connection due 
to administrator command
2020-09-30 22:27:56.446 CEST [30656]   STATEMENT:  select count(*) from 
"dm_b2b"."prlwytzkofskiv1"
2020-09-30 22:27:56.446 CEST [30655]   FATAL:  terminating connection due 
to administrator command
2020-09-30 22:27:56.446 CEST [30655]   STATEMENT:  select count(*) from 
"dm_b2b"."prlwytzkofskiv1"
2020-09-30 22:27:56.459 CEST [6482]   LOG:  background worker "parallel 
worker" (PID 30655) exited with exit code 1
2020-09-30 22:27:56.459 CEST [6482]   LOG:  background worker "parallel 
worker" (PID 30656) exited with exit code 1
2020-09-30 22:27:56.459 CEST [6482]   LOG:  background worker "parallel 
worker" (PID 30657) exited with exit code 1
2020-09-30 22:27:56.459 CEST [6482]   LOG:  background worker "parallel 
worker" (PID 30658) exited with exit code 1
2020-09-30 22:27:56.459 CEST [6482]   LOG:  background worker "parallel 
worker" (PID 30659) exited with exit code 1
2020-09-30 22:43:08.459 CEST [8055] 172.30.2.25 selfservice_prd ERROR: 
schema "somethingelse" does not exist at character 71

Apparently, something is sending SIGTERM to our pg processes. I know that 
I'm not doing that, certainly not at those hours, and I'm the one who set 
up this system and am the only DBA of it.

Advice I found on the Internet is to use systemtap with some tap-script, 
but the scripts that I found just displayed the PID's of processes without 
telling me their names, which I didn't find all that useful in figuring 
out who was responsible, so I made an attempt (I have no experience with 
stap) at modifying it to print process names of signal sender and target:

/*
 * killsnoop-nd.stp     Trace process signals.
 *                      For Linux, uses SystemTap (non-debuginfo).
 *
 * Copyright (C) 2015 Brendan Gregg.
(etc)
 */
global target;
global signal;

probe begin
{
        printf("%-6s %-12s %-5s %-6s %6s\n", "FROM", "COMMAND", "SIG", 
"TO", "COMMAND");
}

probe nd_syscall.kill
{
        target[tid()] = uint_arg(1);
        signal[tid()] = uint_arg(2);
}

probe nd_syscall.kill.return
{
        if (signal[tid()] == 15 && target[tid()] != 0) {
                printf("%-6d %-12s %-5d %-6d %12s\n"
                                , pid(), execname()
                                , signal[tid()]
                                , target[tid()], 
pid2execname(target[tid()]));
        }
        delete target[tid()];
        delete signal[tid()];
}


The output of last night was:

FROM   COMMAND      SIG   TO     COMMAND
30068  systemd-udevd 15    14151  systemd-udevd
30068  systemd-udevd 15    14836  systemd-udevd
(...)
6482   postmaster   15    30649    postmaster
6482   postmaster   15    30648    postmaster
6482   postmaster   15    30647    postmaster
6482   postmaster   15    30646    postmaster
6482   postmaster   15    30645    postmaster
6482   postmaster   15    30659    postmaster
6482   postmaster   15    30658    postmaster
6482   postmaster   15    30657    postmaster
6482   postmaster   15    30656    postmaster
6482   postmaster   15    30655    postmaster
6482   postmaster   15    2065     postmaster
6482   postmaster   15    2064     postmaster
6482   postmaster   15    2063     postmaster

Several of these TO-pid's match those in the PG log.

$ ps aux | grep 6482
postgres  6482  0.0  0.5 51755776 1043872 ?    Ss   Sep28   3:25 
/usr/pgsql-11/bin/postmaster -D /data/11/data

Am I correct in concluding that postmaster is killing its own processes? 
If so, what is going on here? And more importantly, what do I do about it?

Regards,
Alban Hertroys.

P.S. I'm mailing from my work account, as this is work related. You may 
remember me from my private account.


Alban  Hertroys     
D: +31 (0)53 4 888 888  | T: +31 (0)53 4888 888 | E: alban.hertroys@apollovredestein.com
Apollo Vredestein B.V.| Ir. E.L.C. Schiffstraat 370, 7547 RD Enschede, The 
Netherlands
Chamber of Commerce number: 34223268




 
	
		 
The information contained in this e-mail is intended solely for the use of the 
individual or entity to whom it is addressed. If you are not the intended 
recipient, you are hereby notified that any disclosure, copying, distribution 
or action in relation to the contents of this information is strictly 
prohibited and may be unlawful and request you to delete this message and any 
attachments and advise the sender by return e-mail. The confidentiality of this 
message is not warranted. Apollo Vredestein and its subsidiaries rule out any 
and every liability resulting from this or any other electronic transmission



	
		
	   Please consider the environment before printing this e-mail

^ permalink  raw  reply  [nested|flat] 12+ messages in thread

* Re: FATAL: terminating connection due to administrator command
  2020-10-01 09:17 FATAL:  terminating connection due to administrator command Alban Hertroys <alban.hertroys@apollovredestein.com>
@ 2020-10-01 09:47 ` Srinivasa T N <seenutn@gmail.com>
  0 siblings, 0 replies; 12+ messages in thread

From: Srinivasa T N @ 2020-10-01 09:47 UTC (permalink / raw)
  To: Alban Hertroys <alban.hertroys@apollovredestein.com>; +Cc: PostgreSQL General <pgsql-general@lists.postgresql.org>

On Thu, Oct 1, 2020 at 2:47 PM Alban Hertroys <
alban.hertroys@apollovredestein.com> wrote:

> Hi all,
>
> We're seeing the FATAL error message from the subject pop up in our logs
> at regular intervals, but I haven't been able to pinpoint what is causing
> it. I'm hoping for some insights here.
>
> We run a PostgreSQL 11.9 server on CentOS 7, within a vmware environment:
>  PostgreSQL 11.9 on x86_64-pc-linux-gnu, compiled by gcc (GCC) 4.8.5
> 20150623 (Red Hat 4.8.5-39), 64-bit
>
> The package was installed from the PGDG repository.
>
> I'm not even sure I should be worried, there doesn't appear to be any
> impact on the servers' functioning, but it does say 'FATAL'.
> What we're seeing are lines like these two instances:
>
> 2020-09-30 22:27:56.446 CEST [30659]   STATEMENT:  select count(*) from
> "dm_b2b"."prlwytzkofskiv1"
> 2020-09-30 22:27:56.446 CEST [30658]   FATAL:  terminating connection due
> to administrator command
> 2020-09-30 22:27:56.446 CEST [30658]   STATEMENT:  select count(*) from
> "dm_b2b"."prlwytzkofskiv1"
> 2020-09-30 22:27:56.446 CEST [30657]   FATAL:  terminating connection due
> to administrator command
> 2020-09-30 22:27:56.446 CEST [30657]   STATEMENT:  select count(*) from
> "dm_b2b"."prlwytzkofskiv1"
> 2020-09-30 22:27:56.446 CEST [30656]   FATAL:  terminating connection due
> to administrator command
> 2020-09-30 22:27:56.446 CEST [30656]   STATEMENT:  select count(*) from
> "dm_b2b"."prlwytzkofskiv1"
> 2020-09-30 22:27:56.446 CEST [30655]   FATAL:  terminating connection due
> to administrator command
> 2020-09-30 22:27:56.446 CEST [30655]   STATEMENT:  select count(*) from
> "dm_b2b"."prlwytzkofskiv1"
> 2020-09-30 22:27:56.459 CEST [6482]   LOG:  background worker "parallel
> worker" (PID 30655) exited with exit code 1
> 2020-09-30 22:27:56.459 CEST [6482]   LOG:  background worker "parallel
> worker" (PID 30656) exited with exit code 1
> 2020-09-30 22:27:56.459 CEST [6482]   LOG:  background worker "parallel
> worker" (PID 30657) exited with exit code 1
> 2020-09-30 22:27:56.459 CEST [6482]   LOG:  background worker "parallel
> worker" (PID 30658) exited with exit code 1
> 2020-09-30 22:27:56.459 CEST [6482]   LOG:  background worker "parallel
> worker" (PID 30659) exited with exit code 1
> 2020-09-30 22:43:08.459 CEST [8055] 172.30.2.25 selfservice_prd ERROR:
>  schema "somethingelse" does not exist at character 71
>
> I am guessing that 6 background workers are started, 1 worker had the
result and hence killing the other 5 workers.  Maybe, some more pg experts
can comment.  Anyway, explain of your query helps.

Regards,
Seenu.

Apparently, something is sending SIGTERM to our pg processes. I know that
> I'm not doing that, certainly not at those hours, and I'm the one who set
> up this system and am the only DBA of it.
>
> Advice I found on the Internet is to use systemtap with some tap-script,
> but the scripts that I found just displayed the PID's of processes without
> telling me their names, which I didn't find all that useful in figuring out
> who was responsible, so I made an attempt (I have no experience with stap)
> at modifying it to print process names of signal sender and target:
>
>
> *The information contained in this e-mail is intended solely for the use
> of the individual or entity to whom it is addressed. If you are not the
> intended recipient, you are hereby notified that any disclosure, copying,
> distribution or action in relation to the contents of this information is
> strictly prohibited and may be unlawful and request you to delete this
> message and any attachments and advise the sender by return e-mail. The
> confidentiality of this message is not warranted. Apollo Vredestein and its
> subsidiaries rule out any and every liability resulting from this or any
> other electronic transmission*
>    Please consider the environment before printing this e-mail
>

Attachments:

noname (image/gif, 2.2K) download view image
^ permalink raw reply [nested|flat] 12+ messages in thread


end of thread, other threads:[~2020-10-01 09:47 UTC | newest]

Thread overview: 12+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2006-01-13 11:52 FATAL:  terminating connection due to administrator command surabhi.ahuja <surabhi.ahuja@iiitb.ac.in>
2006-01-13 15:26 ` Re: FATAL: terminating connection due to administrator command Tom Lane <tgl@sss.pgh.pa.us>
2006-01-24 05:03 Re: FATAL: terminating connection due to administrator command surabhi.ahuja <surabhi.ahuja@iiitb.ac.in>
2006-01-24 09:16 ` Re: FATAL: terminating connection due to administrator Richard Huxton <dev@archonet.com>
2006-01-24 14:52   ` Re: FATAL: terminating connection due to administrator command Tom Lane <tgl@sss.pgh.pa.us>
2006-01-25 13:58 Re: FATAL: terminating connection due to administrator command surabhi.ahuja <surabhi.ahuja@iiitb.ac.in>
2006-03-13 08:54 FATAL: terminating connection due to administrator command surabhi.ahuja <surabhi.ahuja@iiitb.ac.in>
2006-03-13 15:32 ` Re: FATAL: terminating connection due to administrator command Tom Lane <tgl@sss.pgh.pa.us>
2014-09-16 14:05 FATAL: terminating connection due to administrator command Emi Lu <emilu@encs.concordia.ca>
2014-09-16 14:21 ` Re: FATAL: terminating connection due to administrator command Adrian Klaver <adrian.klaver@aklaver.com>
2020-10-01 09:17 FATAL:  terminating connection due to administrator command Alban Hertroys <alban.hertroys@apollovredestein.com>
2020-10-01 09:47 ` Re: FATAL: terminating connection due to administrator command Srinivasa T N <seenutn@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