Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1hXShs-0001Ot-Tl for pgsql-general@arkaria.postgresql.org; Sun, 02 Jun 2019 15:47:37 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1hXShp-0001zb-0i for pgsql-general@arkaria.postgresql.org; Sun, 02 Jun 2019 15:47:33 +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_SHA1:256) (Exim 4.89) (envelope-from ) id 1hXShn-0001vm-3K for pgsql-general@lists.postgresql.org; Sun, 02 Jun 2019 15:47:32 +0000 Received: from [64.147.123.20] (helo=wout4-smtp.messagingengine.com) by magus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1hXShd-0004TU-Rc for pgsql-general@lists.postgresql.org; Sun, 02 Jun 2019 15:47:30 +0000 Received: from compute6.internal (compute6.nyi.internal [10.202.2.46]) by mailout.west.internal (Postfix) with ESMTP id 487A024A; Sun, 2 Jun 2019 11:46:59 -0400 (EDT) Received: from mailfrontend2 ([10.202.2.163]) by compute6.internal (MEProxy); Sun, 02 Jun 2019 11:46:59 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=aklaver.com; h= subject:to:cc:references:from:message-id:date:mime-version :in-reply-to:content-type:content-transfer-encoding; s=fm3; bh=r 5cfBpcrB4I4+GqYYuwm+G9As0wctSLKQhpwfXRGzXU=; b=d1Ls8RHMIjd5JDAtu ue1/WS6dh/82ijLrRuGL9lLXODd7VVLlPCFF8xIeAYResxnmvXJeV326ln2sFIYZ 9lrMHsdCJ7KA7c5lynvLQUAUmCltwrHy9GDFxsi+hoEHMkbOCu0Tvg0sjJEUImnr ewdiS4+YrU/mCGkf1CHtfHcQrTdpL2EeQqaW7Ejq+Q6hoDAZ+Npi1k3a2nAFzt7J AssctHFNL0Bxt+cYlwJ8AiLOvGpOOrMB1l1XVwaRTGuNQ+iJTe2u7hRCkfJqaExg NRRcpmxoUm105b4zMwTVVilK76WZcq1KAD839L4NidcRmG8tIAx3v1dP3SFkCp8c CFSwA== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:content-transfer-encoding:content-type :date:from:in-reply-to:message-id:mime-version:references :subject:to:x-me-proxy:x-me-proxy:x-me-sender:x-me-sender :x-sasl-enc; s=fm2; bh=r5cfBpcrB4I4+GqYYuwm+G9As0wctSLKQhpwfXRGz XU=; b=4/rjVHSS9t7RLhHnJbNPCqAHLqtrRDxdHSo1q/ROhGVe93Rg6JVILe9UL oG19Qsi9jHI2ouBTpfyhU+snVqVv5CEdKiVVy5F3o0jDe7M7KIcnBMv64g+02D9F +SPnaMuWJ3nmYYVqonTYAuscgIXkyoeb7w0K5z7H22mt9Y3sWLqEHKB4ZhvH2IbZ S3KWC1wDO69ZClwqC3rJ+n6QXuNnFFYjgnHasM9tL5XGYNVF9HwGUetwYJDyqx67 mZiNln2yviP1eojg+QDeEbsPnIhG3m1TB8oADLtRm9VWUGUKU7K815mtwuZH+tXI RvaBDzElHKa3fnSSjyVjMqfPZEWMA== X-ME-Sender: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgeduuddrudefhedgleefucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucenucfjughrpefuvfhfhffkffgfgggjtgfgsehtke ertddtfeejnecuhfhrohhmpeetughrihgrnhcumfhlrghvvghruceorggurhhirghnrdhk lhgrvhgvrhesrghklhgrvhgvrhdrtghomheqnecuffhomhgrihhnpehpohhsthhgrhgvsh hqlhdrohhrghenucfkphepjedurddvuddvrdduhedtrddvtddvnecurfgrrhgrmhepmhgr ihhlfhhrohhmpegrughrihgrnhdrkhhlrghvvghrsegrkhhlrghvvghrrdgtohhmnecuve hluhhsthgvrhfuihiivgeptd X-ME-Proxy: Received: from [192.168.1.4] (unknown [71.212.150.202]) by mail.messagingengine.com (Postfix) with ESMTPA id DF73F380073; Sun, 2 Jun 2019 11:46:57 -0400 (EDT) Subject: Re: psql: FATAL: the database system is starting up To: Tom K Cc: pgsql-general@lists.postgresql.org References: <1bf8035e-006e-d026-e213-04f5b87cb686@aklaver.com> <6e09cc96-ecc1-be79-fda7-694fc91f6986@aklaver.com> <4fd730e6-cb9c-b3b8-5d37-72b680d13dc8@aklaver.com> From: Adrian Klaver Message-ID: Date: Sun, 2 Jun 2019 08:46:57 -0700 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.6.1 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 8bit X-Host-Lookup-Failed: Reverse DNS lookup failed for 64.147.123.20 (deferred) List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk On 6/1/19 8:07 PM, Tom K wrote: > > https://www.postgresql.org/docs/10/app-postgres.html > Single-User Mode > ... > > and see if that at least gets the server started. This is a highly > restricted so do not expect much usability. > > > These servers did crash before however didn't' notice anything > particularly wrong at the time. Perhaps a better check was in order. > > Here is the result from attempting to start the DB in single user mode. > -bash-4.2$ /usr/pgsql-10/bin/postgres --single -D /data/patroni > --config-file=/data/patroni/postgresql.conf > 2019-06-01 23:06:28.679 EDT [31969] LOG:  database system was > interrupted; last known up at 2019-04-28 06:06:24 EDT > 2019-06-01 23:06:28.953 EDT [31969] LOG:  invalid record length at > 0/4C35CDF8: wanted 24, got 0 > 2019-06-01 23:06:28.953 EDT [31969] LOG:  invalid primary checkpoint record > 2019-06-01 23:06:28.953 EDT [31969] LOG:  using previous checkpoint > record at 0/4C34EDA8 > 2019-06-01 23:06:28.953 EDT [31969] PANIC:  replication checkpoint has > wrong magic 0 instead of 307747550 That comes from origin.c in the logical replication section of the code. Did you have logical replication set up? What was the role of this cluster in the original setup? > Aborted > -bash-4.2$ > -- Adrian Klaver adrian.klaver@aklaver.com