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 1hX4Ti-0001Xp-EX for pgsql-general@arkaria.postgresql.org; Sat, 01 Jun 2019 13:55:23 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1hX4Th-0001XU-6u for pgsql-general@arkaria.postgresql.org; Sat, 01 Jun 2019 13:55:21 +0000 Received: from makus.postgresql.org ([2001:4800:3e1:1::229]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1hX4Te-0001XN-VM for pgsql-general@lists.postgresql.org; Sat, 01 Jun 2019 13:55:20 +0000 Received: from out5-smtp.messagingengine.com ([66.111.4.29]) by makus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1hX4Tb-0001ee-S5 for pgsql-general@lists.postgresql.org; Sat, 01 Jun 2019 13:55:17 +0000 Received: from compute6.internal (compute6.nyi.internal [10.202.2.46]) by mailout.nyi.internal (Postfix) with ESMTP id A8C10220DD; Sat, 1 Jun 2019 09:55:14 -0400 (EDT) Received: from mailfrontend1 ([10.202.2.162]) by compute6.internal (MEProxy); Sat, 01 Jun 2019 09:55:14 -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=w 8VhcnkAakUxebWA4EJTczjkeN/cBBgoM5vEpbmPf7Y=; b=D0dhGnS9nBdUGuacS 9tS9eY53+2YUob/QRz2V2HEiqDBSo5n2sY5F0UXDzeN8AJw+pCj+uLKSUxr5PLDo sGktHYwGOAaOJwrbrgrgLK/uZDsZ2CND9RN1XyKUmN7k4r4gY9vXybDBwixpgI5A XgDjLt1YgIjoYcNbmFHNJfY69dKNkoSOn5wazOhtCR/f65BDST5qrsxCDa7pOhDK NnUDYlHzP4b6SIZkCTeBIBX9Nej/M4H0jlO4eut6tdRtNMVpMTWI1SmFoJAj1R7Y 2QNNDAAXEZdWkPU+yIBOzENNBf1XeOsc4r9LUJ5hbWD8EAdLlNBIv0hdiMA8bd4r oLqZw== 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=w8VhcnkAakUxebWA4EJTczjkeN/cBBgoM5vEpbmPf 7Y=; b=SSQMVfprkhdFwCF/TySbZpwjuA6tANzyzsN5hJYo1NeWE4th80GrZsd8D zArGD+vMDw0wH/eg6sI91q0TkYw5WyHuO8dyUznaT9i5S+W3Jz8u6bZI/5SwidSE 2nVEETEUrDsqsCuy7VfCUCFyc1tIr1ornYrftQiEobOSqakukHKbQBRP2VSHoskd c1HdjwTnvTysjzYddEn7x1ijWpUW/0CsclWbaky/04Q8nPvcDygaSV5wANe2ACrm hDjnsqNbLHFGIz4XViCiYsPa3FmmO17TyadCbhxbQm8OESE5bEDMbsE6kYah9YX3 Z1ACl1Qs/9GrACq38Go+FpTiaUmoA== X-ME-Sender: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgeduuddrudeffedgjedvucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucenucfjughrpefuvfhfhffkffgfgggjtgfgsehtke ertddtfeejnecuhfhrohhmpeetughrihgrnhcumfhlrghvvghruceorggurhhirghnrdhk lhgrvhgvrhesrghklhgrvhgvrhdrtghomheqnecukfhppeejuddrvdduvddrudehtddrvd dtvdenucfrrghrrghmpehmrghilhhfrhhomheprggurhhirghnrdhklhgrvhgvrhesrghk lhgrvhgvrhdrtghomhenucevlhhushhtvghrufhiiigvpedt X-ME-Proxy: Received: from [192.168.1.4] (unknown [71.212.150.202]) by mail.messagingengine.com (Postfix) with ESMTPA id 870FF8005A; Sat, 1 Jun 2019 09:55:13 -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> From: Adrian Klaver Message-ID: <43b5c459-6ee4-c8ec-c402-47ea92738c86@aklaver.com> Date: Sat, 1 Jun 2019 06:55:12 -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 5/31/19 7:53 PM, Tom K wrote: > > There are two places to connect with the Patroni community: on github, > via Issues and PRs, and on channel #patroni in the PostgreSQL Slack. If > you're using Patroni, or just interested, please join us. > > > Will post there as well.  Thank you.  My thinking was to post here first > since I suspect the Patroni community will simply refer me back here > given that the PostgreSQL errors are originating directly from PostgreSQL. > > > That being said, can you start the copied Postgres instance without > using the Patroni instrumentation? > > > Yes, that is something I have been trying to do actually.  But I hit a > dead end with the three errors above. > > So what I did is to copy a single node's backed up copy of the data > files to */data/patroni* of the same node ( this is the psql data > directory as defined through patroni ) of the same node then ran this ( > psql03 = 192.168.0.118 ): > > # sudo su - postgres > $ /usr/pgsql-10/bin/postgres -D /data/patroni > --config-file=/data/patroni/postgresql.conf > --listen_addresses=192.168.0.118 --max_worker_processes=8 > --max_locks_per_transaction=64 --wal_level=replica > --track_commit_timestamp=off --max_prepared_transactions=0 --port=5432 > --max_replication_slots=10 --max_connections=100 --hot_standby=on > --cluster_name=postgres --wal_log_hints=on --max_wal_senders=10 -d 5 Why all the options? That should be covered in postgresql.conf, no? > > This resulted in one of the 3 messages above.  Hence the post here.  If > I can start a single instance, I should be fine since I could then 1) > replicate over to the other two or 2) simply take a dump, reinitialize > all the databases then restore the dump. > What if you move the recovery.conf file out? The below looks like missing/corrupted/incorrect files. Hard to tell without knowing what Patroni did? > Using the above procedure I get one of three error messages when using > the data files of each node: > > [ PSQL01 ] > postgres: postgres: startup process waiting for 000000010000000000000008 > > [ PSQL02 ] > PANIC:replicationcheckpointhas wrong magic 0 instead of  307747550 > > [ PSQL03 } > FATAL:syntax error inhistory file:f2W > > And I can't start any one of them. > > > > > > > Thx, > > TK > > > > > > -- > Adrian Klaver > adrian.klaver@aklaver.com > -- Adrian Klaver adrian.klaver@aklaver.com