Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ed3wE-0002sl-8L for pgsql-bugs@arkaria.postgresql.org; Sun, 21 Jan 2018 00:56:46 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ed3wD-00006T-0F for pgsql-bugs@arkaria.postgresql.org; Sun, 21 Jan 2018 00:56:45 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1ed3wC-00006K-Na for pgsql-bugs@lists.postgresql.org; Sun, 21 Jan 2018 00:56:44 +0000 Received: from mail-wm0-x231.google.com ([2a00:1450:400c:c09::231]) by magus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1ed3w5-00071u-0u for pgsql-bugs@lists.postgresql.org; Sun, 21 Jan 2018 00:56:43 +0000 Received: by mail-wm0-x231.google.com with SMTP id i186so9970818wmi.4 for ; Sat, 20 Jan 2018 16:56:36 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=2ndquadrant-com.20150623.gappssmtp.com; s=20150623; h=subject:to:references:from:message-id:date:user-agent:mime-version :in-reply-to:content-language:content-transfer-encoding; bh=0mekgJHHOdFdWE0xrEcGcUUSaeGX9ItmK61IuLX6R4U=; b=XtjRJle4F84uwk7VXVPbq/34FDnqsIN0MkCI5io2/Fy9Z/6nrIIKMFTOQ3EjEZWXOy ZQEVcW5E5WEmJPnBPyJY/7cjCcg9MauNyr3tg52TSMKFZSeEV0zOkqhRKLJQWtsxbCrs 7kDCSfWreSZ6tDz81nYo9SWRlYAnjPnqAdxNYUFEXQSjlnjSpCs0wG/9NNJ/n1wSHKl7 gw/FIcBXIaveqMKPw9QUbrARDb1U6RLCJQYib5MG3mH/YIVdii7ubSFcpwlZ3BmPmQoN 0VZiZibBQH2HYMQ7Y8uX7IqCoa5l+y+fL8wrsV5SwAM92JV6eWZp4wjswrxaDRTdSEzy 6U5A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:subject:to:references:from:message-id:date :user-agent:mime-version:in-reply-to:content-language :content-transfer-encoding; bh=0mekgJHHOdFdWE0xrEcGcUUSaeGX9ItmK61IuLX6R4U=; b=XgCdr7OgjgU00PgYsPn8hAhVLhYqMuaFtzvT8rsEa+u1atw5cSHjBIob2x7H1e9zqg w0PsATiLo1pXYZ6PUpE5BZ475W9W+36VL9JjJfyWwEKX9R+sVMc6UqVjwpAG8Yn9JLX/ 3a7lhpUbyuwcDXkguq0by4n0FkqROQxKlbnLlwF9rgiidAQGyiyIjiYdTxgJrrAJeNCW nPx/gtPBxJBneutSNEdm6jcQtTBb6ZD874Ar8Q42lMAh23wEdofv1NbWflHc3o43sWM7 hKgR7Q9wW+EQkDBdQ5P0DnTOvBoTsi7G4HMDgxEJ/K/spM5+KMf4147APok7U6jwYrx1 1giQ== X-Gm-Message-State: AKwxyteReUfZdmiuh1XI9/Rpu8aEeOuxeTrxRY44KKrPgLGRIV7C3u5X Je7K6Vw4Vk9/0AOXy7YKSVYrtQ== X-Google-Smtp-Source: AH8x226LnAJbJ60zT61s1pJNphE1VSdld5aDpqo4ili5NOCdx1FZfTnP7y7GxtSpePPg7MhECxMK+g== X-Received: by 10.28.249.22 with SMTP id x22mr1831626wmh.135.1516496192913; Sat, 20 Jan 2018 16:56:32 -0800 (PST) Received: from [10.137.2.19] (ip-78-102-97-226.net.upcbroadband.cz. [78.102.97.226]) by smtp.gmail.com with ESMTPSA id 39sm17572744wrz.93.2018.01.20.16.56.31 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Sat, 20 Jan 2018 16:56:32 -0800 (PST) Subject: Re: BUG #15021: Postgres crashes unexpectedly To: wally.baggaley@gmail.com, pgsql-bugs@lists.postgresql.org, PG Bug reporting form References: <20180119214744.3623.2508@wrigleys.postgresql.org> From: Tomas Vondra Message-ID: Date: Sun, 21 Jan 2018 01:56:30 +0100 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.4.0 MIME-Version: 1.0 In-Reply-To: <20180119214744.3623.2508@wrigleys.postgresql.org> Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 7bit List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk 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