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 1hXBpj-0006He-8z for pgsql-general@arkaria.postgresql.org; Sat, 01 Jun 2019 21:46:35 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1hXBph-0007DV-Fa for pgsql-general@arkaria.postgresql.org; Sat, 01 Jun 2019 21:46: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 1hXBph-0007DO-6W for pgsql-general@lists.postgresql.org; Sat, 01 Jun 2019 21:46:33 +0000 Received: from out1-smtp.messagingengine.com ([66.111.4.25]) by magus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1hXBpd-0006oe-Nf for pgsql-general@lists.postgresql.org; Sat, 01 Jun 2019 21:46:32 +0000 Received: from compute6.internal (compute6.nyi.internal [10.202.2.46]) by mailout.nyi.internal (Postfix) with ESMTP id 7D6CB20EAA; Sat, 1 Jun 2019 17:46:28 -0400 (EDT) Received: from mailfrontend2 ([10.202.2.163]) by compute6.internal (MEProxy); Sat, 01 Jun 2019 17:46:28 -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=S PVJCvcfc8OkJxZ7tVwcC2Q50w/1Bp0homTGohzk864=; b=HzyNe4WLhaAXU/t5F X0V2NRL2DV+7o63J+2YF5z1Zmd32mAdPUWX8G0CzuuxRPTatGzbIbZNZIiuls1Lr 6effi/tJq5jVSBO4oVfdrA2Ijy1q3p/2bhuDy5ToeUpzvBGSa5NQr4taKvhvsv29 gemm94DIdcfM7y6n6HHSPLOZGCuLARdwrtbYb09DtsPvaJrKWDRDBWBOY9b7e2xQ FdSu+KZls8J3FWDRXx2WUFtRUGy1BZFwvKebFiTimQJllzO6Rw9GpLTdgh0J40Al 6quYHFZzvE76Tzv4UE2728A3Kiil5NjZ2g5K90W4MokETrP6mP0D/6/NSxYbe1Wn Jf0KQ== 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=SPVJCvcfc8OkJxZ7tVwcC2Q50w/1Bp0homTGohzk8 64=; b=mn+IhYsd5qxLYOogErLHcsMf8qui2U7heefzm8b5kAFZgGNcdFiCL9EKP tG6imdmCQraEBTBApVnI1P2CvmNOMRw/rV6OlBhTloPzZZ0sIM7aEtVFJiGf4gVe yk4ZSA/Vu/6pwRvODLvZdM7WJCDzRI0j/0qmdYT8m8JMDF40RvV2eCkRc7yLLDU6 Sg6ByTbxghFZlXXMYc+/G/yYJTzJ+yJoOKLMEQLMV6HWq48R+PvmgOtxbjY7ePpC vNwTy5DWlDxrKsU2uljmnTEhwS/siz443CbcNVuEQrhg3amA9+MEZPYw6tswDYdw la5r8ej8p8M3YOva3hEFsqBJl/O2w== X-ME-Sender: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgeduuddrudefgedgtdduucetufdoteggodetrfdotf 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 B6E4B380084; Sat, 1 Jun 2019 17:46:27 -0400 (EDT) Subject: Re: psql: FATAL: the database system is starting up To: Tom K Cc: pgsql-general@lists.postgresql.org References: <5b7e0d74-8d6e-c3b8-fb62-3aab1fe0145d@aklaver.com> <76851993-4826-f300-85ac-42d8b705a56f@aklaver.com> <43b5c459-6ee4-c8ec-c402-47ea92738c86@aklaver.com> From: Adrian Klaver Message-ID: <8fb107a7-58e4-99ed-a0b3-04d739c162ff@aklaver.com> Date: Sat, 1 Jun 2019 14:46:27 -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 List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk On 6/1/19 2:30 PM, Tom K wrote: > > > On Sat, Jun 1, 2019 at 4:52 PM Adrian Klaver > wrote: > > On 6/1/19 12:42 PM, Tom K wrote: > > > > > > > > > Of note are the characters f2W below.  I see nothing in the postgres > > source code to indicate this is any recognizable postgres > message.  A > > part of me suspects that the postgres binaries got corrupted. > Had this > > case occur with glib-common and a reinstall fixed it.  However the > > postgres binaries csum matches a standalone install perfectly so > that > > should not be an issue. > > It comes from timeline.c: > > https://doxygen.postgresql.org/bin_2pg__rewind_2timeline_8c.html > > pg_log_error("syntax error in history file: %s", fline); > > ... > > There should be another error message after the above. > > > Nope.  Here's the full set of lines in the postgres logs when running > the above line: > > 2019-06-01 17:13:03.263 EDT [14909] FATAL:  syntax error in history > file: f2W > 2019-06-01 17:13:03.263 EDT [14909] HINT:  Expected a numeric timeline ID. Actually the above HINT is what I was looking for. > ^C > -bash-4.2$ > > What's interesting is that f2W isn't a string you'd expect to be printed > as part of the code logic   ( I mean, what is f2W? ). As the HINT said neither was Postgres. That is probably down to file corruption. > > The point of the POC and the LAB is to test these things across failures > as well as various configurations.  To that end, I'm just as curious how > to recover from these error conditions as I am just getting things to work. I think what it proved was that a single point of failure is not good and that there needs to be steps taken to prevent or deal with it e.g. second location backup of some sort. > > > > > -- > Adrian Klaver > adrian.klaver@aklaver.com > -- Adrian Klaver adrian.klaver@aklaver.com