From: Tomas Vondra <tomas.vondra@2ndquadrant.com>
To: wally.baggaley@gmail.com, pgsql-bugs@lists.postgresql.org, PG Bug reporting form <noreply@postgresql.org>
Subject: Re: BUG #15021: Postgres crashes unexpectedly
Date: Sun, 21 Jan 2018 01:56:30 +0100
Message-ID: <ed5bdf1f-69f7-695d-9ce9-bffbbaf0548a@2ndquadrant.com> (raw)
In-Reply-To: <20180119214744.3623.2508@wrigleys.postgresql.org>
References: <20180119214744.3623.2508@wrigleys.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
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients from your mail client; the link fills in
the headers below: reply via email
Some clients, webmail especially, drop In-Reply-To and References from
a link, and the reply then starts a new thread: use the mbox below.
To: pgsql-bugs@postgresql.org
Cc: tomas.vondra@2ndquadrant.com, noreply@postgresql.org
Subject: Re: BUG #15021: Postgres crashes unexpectedly
In-Reply-To: <ed5bdf1f-69f7-695d-9ce9-bffbbaf0548a@2ndquadrant.com>
References: <20180119214744.3623.2508@wrigleys.postgresql.org> <ed5bdf1f-69f7-695d-9ce9-bffbbaf0548a@2ndquadrant.com>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
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