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 1hXEkl-0006EB-R4 for pgsql-general@arkaria.postgresql.org; Sun, 02 Jun 2019 00:53:39 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1hXEkj-0008LE-Br for pgsql-general@arkaria.postgresql.org; Sun, 02 Jun 2019 00:53:37 +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 1hXEkj-0008Ds-0I for pgsql-general@lists.postgresql.org; Sun, 02 Jun 2019 00:53:37 +0000 Received: from out3-smtp.messagingengine.com ([66.111.4.27]) by magus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1hXEkf-0002dk-Uy for pgsql-general@lists.postgresql.org; Sun, 02 Jun 2019 00:53:36 +0000 Received: from compute6.internal (compute6.nyi.internal [10.202.2.46]) by mailout.nyi.internal (Postfix) with ESMTP id BB2D020EF7; Sat, 1 Jun 2019 20:53:32 -0400 (EDT) Received: from mailfrontend2 ([10.202.2.163]) by compute6.internal (MEProxy); Sat, 01 Jun 2019 20:53:32 -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=n XtwEJiB+K8WD28Gnasw3ROHshcy0AtdMjm7i66kAuI=; b=TvG3qobfWfZbpeYut AqJIa7tIYPdDcD1fkRLMFGliWfw0ZGxaCjWnFMcKH2+zaWMr6FLuELhHLTnMEVKq KOVQR5SiwerkjBJI2rYNlO501Af4rO3IpOb3fL9h5tr/4d0oNbqFTPzQ7YP+Rct5 60yZcv33G1duG9AbZm0j+byahbLFPYMPbRljWLdl4z6SxFGyofPQpslTvzCOAApg oACv5pyVSM8B0EA3NgwdsjKVWXm6LCGniuxgY1t05h0HX6yZjcYb83ylj30o7ykg 2hix3skh8fQOoptsjLx8T9aHNxFQxPpg7JFxAr9sOEnL/8G05f85eMGEnikq9qw4 Vls8Q== 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=nXtwEJiB+K8WD28Gnasw3ROHshcy0AtdMjm7i66kA uI=; b=ZsMn6iXGzaOxdYUAlMqeOcXGEUQsEk8arB1scOdEhnMGNwcVZfVFu8/2E enUdLMCuwnsQ2m4LtGjZQnljQ7qHcIX8xCj3trPjiCeFXqAhb40W4PSybVXMo/Le nk5EXU6lDywMOStOYRtFTgNJG5SbagjX3KY7t6N/qMhFziiOF5PyRKegobYDl4bV 0El53FFdCoiuWWEDfLqIQBX6+2lhbv3/4eiSGrM8KUiimWcfhKRBlEgbzd0a52Kt EtalaL8/+OIxq0y+kbs3w50js0pqDM65iHi0wc8Lq9SmjhLm0Jd/Xh820CSOaQhS wkY775sDqb+Mow7Tard+af2R1RzKw== X-ME-Sender: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgeduuddrudefgedggedtucetufdoteggodetrfdotf 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 F0E25380083; Sat, 1 Jun 2019 20:53:31 -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> From: Adrian Klaver Message-ID: <4fd730e6-cb9c-b3b8-5d37-72b680d13dc8@aklaver.com> Date: Sat, 1 Jun 2019 17:53:31 -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 5:32 PM, Tom K wrote: > > > Trying what we did above but on the second node: > Was this node the primary? To me the below looks like there are replication slots set up that are failing. Not sure how to deal with this at the moment. You might try single-user mode: 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. > Removing the recovery.conf and restarting yields the following messages: > > 2019-06-01 20:31:12.231 EDT [21910] LOG:  database system was > interrupted; last known up at 2019-04-28 06:06:24 EDT > 2019-06-01 20:31:12.505 EDT [21910] LOG:  invalid record length at > 0/4C35CDF8: wanted 24, got 0 > 2019-06-01 20:31:12.505 EDT [21910] LOG:  invalid primary checkpoint record > 2019-06-01 20:31:12.505 EDT [21910] LOG:  using previous checkpoint > record at 0/4C34EDA8 > 2019-06-01 20:31:12.505 EDT [21910] DEBUG:  redo record is at > 0/4C34ED70; shutdown FALSE > 2019-06-01 20:31:12.505 EDT [21910] DEBUG:  next transaction ID: > 0:1409831; next OID: 237578 > 2019-06-01 20:31:12.505 EDT [21910] DEBUG:  next MultiXactId: 48; next > MultiXactOffset: 174 > 2019-06-01 20:31:12.505 EDT [21910] DEBUG:  oldest unfrozen transaction > ID: 549, in database 1 > 2019-06-01 20:31:12.505 EDT [21910] DEBUG:  oldest MultiXactId: 1, in > database 1 > 2019-06-01 20:31:12.505 EDT [21910] DEBUG:  commit timestamp Xid > oldest/newest: 0/0 > 2019-06-01 20:31:12.505 EDT [21910] DEBUG:  transaction ID wrap limit is > 2147484196, limited by database with OID 1 > 2019-06-01 20:31:12.505 EDT [21910] DEBUG:  MultiXactId wrap limit is > 2147483648, limited by database with OID 1 > 2019-06-01 20:31:12.505 EDT [21910] DEBUG:  starting up replication slots > 2019-06-01 20:31:12.505 EDT [21910] DEBUG:  starting up replication > origin progress state > 2019-06-01 20:31:12.505 EDT [21910] PANIC:  replication checkpoint has > wrong magic 0 instead of 307747550 > 2019-06-01 20:31:12.506 EDT [21908] DEBUG:  reaping dead processes > 2019-06-01 20:31:12.506 EDT [21908] LOG:  startup process (PID 21910) > was terminated by signal 6: Aborted > 2019-06-01 20:31:12.506 EDT [21908] LOG:  aborting startup due to > startup process failure > 2019-06-01 20:31:12.506 EDT [21908] DEBUG:  shmem_exit(1): 0 > before_shmem_exit callbacks to make > 2019-06-01 20:31:12.506 EDT [21908] DEBUG:  shmem_exit(1): 5 > on_shmem_exit callbacks to make > 2019-06-01 20:31:12.506 EDT [21908] DEBUG:  cleaning up dynamic shared > memory control segment with ID 976986759 > 2019-06-01 20:31:12.508 EDT [21908] DEBUG:  proc_exit(1): 2 callbacks to > make > 2019-06-01 20:31:12.508 EDT [21908] LOG:  database system is shut down > 2019-06-01 20:31:12.508 EDT [21908] DEBUG:  exit(1) > 2019-06-01 20:31:12.508 EDT [21908] DEBUG:  shmem_exit(-1): 0 > before_shmem_exit callbacks to make > 2019-06-01 20:31:12.508 EDT [21908] DEBUG:  shmem_exit(-1): 0 > on_shmem_exit callbacks to make > 2019-06-01 20:31:12.508 EDT [21908] DEBUG:  proc_exit(-1): 0 callbacks > to make > 2019-06-01 20:31:12.510 EDT [21909] DEBUG:  logger shutting down > 2019-06-01 20:31:12.510 EDT [21909] DEBUG:  shmem_exit(0): 0 > before_shmem_exit callbacks to make > 2019-06-01 20:31:12.510 EDT [21909] DEBUG:  shmem_exit(0): 0 > on_shmem_exit callbacks to make > 2019-06-01 20:31:12.510 EDT [21909] DEBUG:  proc_exit(0): 0 callbacks to > make > 2019-06-01 20:31:12.510 EDT [21909] DEBUG:  exit(0) > 2019-06-01 20:31:12.510 EDT [21909] DEBUG:  shmem_exit(-1): 0 > before_shmem_exit callbacks to make > 2019-06-01 20:31:12.510 EDT [21909] DEBUG:  shmem_exit(-1): 0 > on_shmem_exit callbacks to make > 2019-06-01 20:31:12.510 EDT [21909] DEBUG:  proc_exit(-1): 0 callbacks > to make > > -- > Adrian Klaver > adrian.klaver@aklaver.com > -- Adrian Klaver adrian.klaver@aklaver.com