pg.ddx.io  pgsql-bugs@postgresql.org mailing list archive  
help / color / mirror / Atom feed
BUG #15021: Postgres crashes unexpectedly
5+ messages / 5 participants
[nested] [flat]

* BUG #15021: Postgres crashes unexpectedly
@ 2018-01-19 21:47  PG Bug reporting form <noreply@postgresql.org>
  0 siblings, 2 replies; 5+ messages in thread

From: PG Bug reporting form @ 2018-01-19 21:47 UTC (permalink / raw)
  To: pgsql-bugs@lists.postgresql.org; +Cc: wally.baggaley@gmail.com

The following bug has been logged on the website:

Bug reference:      15021
Logged by:          Wallace Baggaley
Email address:      wally.baggaley@gmail.com
PostgreSQL version: 9.6.5
Operating system:   Debian GNU Linux 8 container on CentOS 7.2.1511
Description:        

Postgres crashes unexpectedly and indicates that it received a signal to end
based on the following logs. But checking user history and journald show
nothing has terminated the application. Is it possible the log "LOG: 
received smart shutdown request" could be caused by something other than a
signal. What signals could be associated with this log or is this possibly
related to a crash?

Thanks!
Wally

        January 19th 2018, 11:26:14.710 LOG:  autovacuum launcher started
	January 19th 2018, 11:26:14.706	LOG:  database system is ready to accept
connections
	January 19th 2018, 11:26:14.704	LOG:  MultiXact member wraparound
protections are now enabled
	January 19th 2018, 11:26:14.690	LOG:  invalid record length at 0/88D9C00:
wanted 24, got 0
	January 19th 2018, 11:26:14.690	LOG:  redo is not required
	January 19th 2018, 11:26:14.689	LOG:  database system was not properly shut
down; automatic recovery in progress
	January 19th 2018, 11:26:14.677	LOG:  database system was interrupted; last
known up at 2018-01-19 19:26:04 UTC
	January 19th 2018, 11:26:04.710	LOG:  autovacuum launcher started
	January 19th 2018, 11:26:04.709	LOG:  database system is ready to accept
connections
	January 19th 2018, 11:26:04.707	LOG:  MultiXact member wraparound
protections are now enabled
	January 19th 2018, 11:26:04.698	LOG:  redo done at 0/88D9B68
	January 19th 2018, 11:26:04.698	LOG:  last completed transaction was at log
time 2018-01-19 18:33:58.443636+00
	January 19th 2018, 11:26:04.698	LOG:  invalid record length at 0/88D9B90:
wanted 24, got 0
	January 19th 2018, 11:26:04.694	LOG:  redo starts at 0/88D2B70
	January 19th 2018, 11:26:04.692	LOG:  database system was not properly shut
down; automatic recovery in progress
	January 19th 2018, 11:26:04.678	LOG:  database system was interrupted; last
known up at 2018-01-19 16:41:01 UTC
	January 19th 2018, 10:34:07.436	DETAIL:  Key ("code")=(ABC123) already
exists.
	January 19th 2018, 10:34:07.436	STATEMENT:  insert into "TableName"
("code","subcode")  values ($1,$2)
	January 19th 2018, 10:34:07.436	ERROR:  duplicate key value violates unique
constraint "INDEX_NAME"
	January 19th 2018, 10:34:03.807	STATEMENT:  insert into "TableName"
("code","subcode")  values ($1,$2)
	January 19th 2018, 10:34:03.806	DETAIL:  Key ("code")=(ABC123) already
exists.
	January 19th 2018, 10:34:03.806	ERROR:  duplicate key value violates unique
constraint "INDEX_NAME"
	January 19th 2018, 10:33:58.533	LOG:  autovacuum launcher shutting down
	January 19th 2018, 10:33:58.526	LOG:  received smart shutdown request
	January 19th 2018, 10:33:58.452	DETAIL:  Key ("code")=(ABC123) already
exists.
	January 19th 2018, 10:33:58.452	STATEMENT:  insert into "TableName"
("code","subcode")  values ($1,$2)
	January 19th 2018, 10:33:58.451	ERROR:  duplicate key value violates unique
constraint "INDEX_NAME"




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

* Re: BUG #15021: Postgres crashes unexpectedly
@ 2018-01-19 21:53  Merlin Moncure <mmoncure@gmail.com>
  parent: PG Bug reporting form <noreply@postgresql.org>
  1 sibling, 1 reply; 5+ messages in thread

From: Merlin Moncure @ 2018-01-19 21:53 UTC (permalink / raw)
  To: wally.baggaley@gmail.com; pgsql-bugs@lists.postgresql.org

On Fri, Jan 19, 2018 at 3:47 PM, PG Bug reporting form
<noreply@postgresql.org> wrote:
> The following bug has been logged on the website:
>
> Bug reference:      15021
> Logged by:          Wallace Baggaley
> Email address:      wally.baggaley@gmail.com
> PostgreSQL version: 9.6.5
> Operating system:   Debian GNU Linux 8 container on CentOS 7.2.1511
> Description:
>
> Postgres crashes unexpectedly and indicates that it received a signal to end
> based on the following logs. But checking user history and journald show
> nothing has terminated the application. Is it possible the log "LOG:
> received smart shutdown request" could be caused by something other than a
> signal. What signals could be associated with this log or is this possibly
> related to a crash?
>
> Thanks!
> Wally
>
>         January 19th 2018, 11:26:14.710 LOG:  autovacuum launcher started
>         January 19th 2018, 11:26:14.706 LOG:  database system is ready to accept
> connections
>         January 19th 2018, 11:26:14.704 LOG:  MultiXact member wraparound
> protections are now enabled
>         January 19th 2018, 11:26:14.690 LOG:  invalid record length at 0/88D9C00:
> wanted 24, got 0
>         January 19th 2018, 11:26:14.690 LOG:  redo is not required
>         January 19th 2018, 11:26:14.689 LOG:  database system was not properly shut
> down; automatic recovery in progress
>         January 19th 2018, 11:26:14.677 LOG:  database system was interrupted; last
> known up at 2018-01-19 19:26:04 UTC
>         January 19th 2018, 11:26:04.710 LOG:  autovacuum launcher started
>         January 19th 2018, 11:26:04.709 LOG:  database system is ready to accept
> connections
>         January 19th 2018, 11:26:04.707 LOG:  MultiXact member wraparound
> protections are now enabled
>         January 19th 2018, 11:26:04.698 LOG:  redo done at 0/88D9B68
>         January 19th 2018, 11:26:04.698 LOG:  last completed transaction was at log
> time 2018-01-19 18:33:58.443636+00
>         January 19th 2018, 11:26:04.698 LOG:  invalid record length at 0/88D9B90:
> wanted 24, got 0
>         January 19th 2018, 11:26:04.694 LOG:  redo starts at 0/88D2B70
>         January 19th 2018, 11:26:04.692 LOG:  database system was not properly shut
> down; automatic recovery in progress
>         January 19th 2018, 11:26:04.678 LOG:  database system was interrupted; last
> known up at 2018-01-19 16:41:01 UTC
>         January 19th 2018, 10:34:07.436 DETAIL:  Key ("code")=(ABC123) already
> exists.
>         January 19th 2018, 10:34:07.436 STATEMENT:  insert into "TableName"
> ("code","subcode")  values ($1,$2)
>         January 19th 2018, 10:34:07.436 ERROR:  duplicate key value violates unique
> constraint "INDEX_NAME"
>         January 19th 2018, 10:34:03.807 STATEMENT:  insert into "TableName"
> ("code","subcode")  values ($1,$2)
>         January 19th 2018, 10:34:03.806 DETAIL:  Key ("code")=(ABC123) already
> exists.
>         January 19th 2018, 10:34:03.806 ERROR:  duplicate key value violates unique
> constraint "INDEX_NAME"
>         January 19th 2018, 10:33:58.533 LOG:  autovacuum launcher shutting down
>         January 19th 2018, 10:33:58.526 LOG:  received smart shutdown request
>         January 19th 2018, 10:33:58.452 DETAIL:  Key ("code")=(ABC123) already
> exists.
>         January 19th 2018, 10:33:58.452 STATEMENT:  insert into "TableName"
> ("code","subcode")  values ($1,$2)
>         January 19th 2018, 10:33:58.451 ERROR:  duplicate key value violates unique
> constraint "INDEX_NAME"

These log messages appear not to be in order; is this how the were in the file?

merlin




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

* Re: BUG #15021: Postgres crashes unexpectedly
@ 2018-01-20 00:32  Wallace Baggaley <wally.baggaley@gmail.com>
  parent: Merlin Moncure <mmoncure@gmail.com>
  0 siblings, 1 reply; 5+ messages in thread

From: Wallace Baggaley @ 2018-01-20 00:32 UTC (permalink / raw)
  To: Merlin Moncure <mmoncure@gmail.com>; +Cc: pgsql-bugs@lists.postgresql.org

This was pulled from kibana/elasticsearch, so logs with the same
millisecond log may be out-of-order. Otherwise should be in order.

On Fri, Jan 19, 2018 at 1:53 PM, Merlin Moncure <mmoncure@gmail.com> wrote:

> On Fri, Jan 19, 2018 at 3:47 PM, PG Bug reporting form
> <noreply@postgresql.org> wrote:
> > The following bug has been logged on the website:
> >
> > Bug reference:      15021
> > Logged by:          Wallace Baggaley
> > Email address:      wally.baggaley@gmail.com
> > PostgreSQL version: 9.6.5
> > Operating system:   Debian GNU Linux 8 container on CentOS 7.2.1511
> > Description:
> >
> > Postgres crashes unexpectedly and indicates that it received a signal to
> end
> > based on the following logs. But checking user history and journald show
> > nothing has terminated the application. Is it possible the log "LOG:
> > received smart shutdown request" could be caused by something other than
> a
> > signal. What signals could be associated with this log or is this
> possibly
> > related to a crash?
> >
> > Thanks!
> > Wally
> >
> >         January 19th 2018, 11:26:14.710 LOG:  autovacuum launcher started
> >         January 19th 2018, 11:26:14.706 LOG:  database system is ready
> to accept
> > connections
> >         January 19th 2018, 11:26:14.704 LOG:  MultiXact member wraparound
> > protections are now enabled
> >         January 19th 2018, 11:26:14.690 LOG:  invalid record length at
> 0/88D9C00:
> > wanted 24, got 0
> >         January 19th 2018, 11:26:14.690 LOG:  redo is not required
> >         January 19th 2018, 11:26:14.689 LOG:  database system was not
> properly shut
> > down; automatic recovery in progress
> >         January 19th 2018, 11:26:14.677 LOG:  database system was
> interrupted; last
> > known up at 2018-01-19 19:26:04 UTC
> >         January 19th 2018, 11:26:04.710 LOG:  autovacuum launcher started
> >         January 19th 2018, 11:26:04.709 LOG:  database system is ready
> to accept
> > connections
> >         January 19th 2018, 11:26:04.707 LOG:  MultiXact member wraparound
> > protections are now enabled
> >         January 19th 2018, 11:26:04.698 LOG:  redo done at 0/88D9B68
> >         January 19th 2018, 11:26:04.698 LOG:  last completed transaction
> was at log
> > time 2018-01-19 18:33:58.443636+00
> >         January 19th 2018, 11:26:04.698 LOG:  invalid record length at
> 0/88D9B90:
> > wanted 24, got 0
> >         January 19th 2018, 11:26:04.694 LOG:  redo starts at 0/88D2B70
> >         January 19th 2018, 11:26:04.692 LOG:  database system was not
> properly shut
> > down; automatic recovery in progress
> >         January 19th 2018, 11:26:04.678 LOG:  database system was
> interrupted; last
> > known up at 2018-01-19 16:41:01 UTC
> >         January 19th 2018, 10:34:07.436 DETAIL:  Key ("code")=(ABC123)
> already
> > exists.
> >         January 19th 2018, 10:34:07.436 STATEMENT:  insert into
> "TableName"
> > ("code","subcode")  values ($1,$2)
> >         January 19th 2018, 10:34:07.436 ERROR:  duplicate key value
> violates unique
> > constraint "INDEX_NAME"
> >         January 19th 2018, 10:34:03.807 STATEMENT:  insert into
> "TableName"
> > ("code","subcode")  values ($1,$2)
> >         January 19th 2018, 10:34:03.806 DETAIL:  Key ("code")=(ABC123)
> already
> > exists.
> >         January 19th 2018, 10:34:03.806 ERROR:  duplicate key value
> violates unique
> > constraint "INDEX_NAME"
> >         January 19th 2018, 10:33:58.533 LOG:  autovacuum launcher
> shutting down
> >         January 19th 2018, 10:33:58.526 LOG:  received smart shutdown
> request
> >         January 19th 2018, 10:33:58.452 DETAIL:  Key ("code")=(ABC123)
> already
> > exists.
> >         January 19th 2018, 10:33:58.452 STATEMENT:  insert into
> "TableName"
> > ("code","subcode")  values ($1,$2)
> >         January 19th 2018, 10:33:58.451 ERROR:  duplicate key value
> violates unique
> > constraint "INDEX_NAME"
>
> These log messages appear not to be in order; is this how the were in the
> file?
>
> merlin
>

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

* Re: BUG #15021: Postgres crashes unexpectedly
@ 2018-01-20 09:51  Francisco Olarte <folarte@peoplecall.com>
  parent: Wallace Baggaley <wally.baggaley@gmail.com>
  0 siblings, 0 replies; 5+ messages in thread

From: Francisco Olarte @ 2018-01-20 09:51 UTC (permalink / raw)
  To: Wallace Baggaley <wally.baggaley@gmail.com>; +Cc: Merlin Moncure <mmoncure@gmail.com>; pgsql-bugs@lists.postgresql.org

On Sat, Jan 20, 2018 at 1:32 AM, Wallace Baggaley
<wally.baggaley@gmail.com> wrote:
> This was pulled from kibana/elasticsearch, so logs with the same millisecond
> log may be out-of-order. Otherwise should be in order.

They seem to be in DESCENDING time order. This is used by a lot of
things ( like the gmail web MUA I'm using now ), as it can be prettier
to show /easier to look at the last event in a web form / ... but due
to the way people are usually taught to read it makes reading it for
diagnostic purpose extremely difficult / annoying.

Francisco Olarte




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

* Re: BUG #15021: Postgres crashes unexpectedly
@ 2018-01-21 00:56  Tomas Vondra <tomas.vondra@2ndquadrant.com>
  parent: PG Bug reporting form <noreply@postgresql.org>
  1 sibling, 0 replies; 5+ messages in thread

From: Tomas Vondra @ 2018-01-21 00:56 UTC (permalink / raw)
  To: wally.baggaley@gmail.com, pgsql-bugs@lists.postgresql.org, PG Bug reporting form <noreply@postgresql.org>



On 01/19/2018 10:47 PM, PG Bug reporting form wrote:
> The following bug has been logged on the website:
> 
> Bug reference:      15021
> Logged by:          Wallace Baggaley
> Email address:      wally.baggaley@gmail.com
> PostgreSQL version: 9.6.5
> Operating system:   Debian GNU Linux 8 container on CentOS 7.2.1511
> Description:        
> 
> Postgres crashes unexpectedly and indicates that it received a signal to end
> based on the following logs. But checking user history and journald show
> nothing has terminated the application. Is it possible the log "LOG: 
> received smart shutdown request" could be caused by something other than a
> signal. What signals could be associated with this log or is this possibly
> related to a crash?
> 

Apparently something happened between 10:34:07.436 and 11:26:04.678, as
indicated by these log messages:

    January 19th 2018, 11:26:04.692 LOG:  database system was not
        properly shut down; automatic recovery in progress
    January 19th 2018, 11:26:04.678 LOG:  database system was
        interrupted; last known up at 2018-01-19 16:41:01 UTC
    January 19th 2018, 10:34:07.436 DETAIL:  Key ("code")=(ABC123)
        already exists.

but it's damn impossible to say why that happened. You have to inspect
some additional logs from that machine - it might have been rebooted,
the process might have been killed by OOM killer (although that usually
writes additional stuff to the log) etc.

My recommendation - look at dmesg and logs for other services on the
same host.


regards

-- 
Tomas Vondra                  http://www.2ndQuadrant.com
PostgreSQL Development, 24x7 Support, Remote DBA, Training & Services




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


end of thread, other threads:[~2018-01-21 00:56 UTC | newest]

Thread overview: 5+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2018-01-19 21:47 BUG #15021: Postgres crashes unexpectedly PG Bug reporting form <noreply@postgresql.org>
2018-01-19 21:53 ` Merlin Moncure <mmoncure@gmail.com>
2018-01-20 00:32   ` Wallace Baggaley <wally.baggaley@gmail.com>
2018-01-20 09:51     ` Francisco Olarte <folarte@peoplecall.com>
2018-01-21 00:56 ` Tomas Vondra <tomas.vondra@2ndquadrant.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