Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1rHAaS-001Hnw-AY for pgsql-general@arkaria.postgresql.org; Sat, 23 Dec 2023 22:35:16 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.94.2) (envelope-from ) id 1rHAaQ-005LzS-5E for pgsql-general@arkaria.postgresql.org; Sat, 23 Dec 2023 22:35:14 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1rHAaO-005LxL-AJ for pgsql-general@lists.postgresql.org; Sat, 23 Dec 2023 22:35:13 +0000 Received: from out4-smtp.messagingengine.com ([66.111.4.28]) by magus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1rHAaK-00DZYp-Ch for pgsql-general@lists.postgresql.org; Sat, 23 Dec 2023 22:35:11 +0000 Received: from compute1.internal (compute1.nyi.internal [10.202.2.41]) by mailout.nyi.internal (Postfix) with ESMTP id DFB3A5C018E; Sat, 23 Dec 2023 17:35:05 -0500 (EST) Received: from mailfrontend1 ([10.202.2.162]) by compute1.internal (MEProxy); Sat, 23 Dec 2023 17:35:05 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=aklaver.com; h= cc:cc:content-transfer-encoding:content-type:content-type:date :date:from:from:in-reply-to:in-reply-to:message-id:mime-version :references:reply-to:subject:subject:to:to; s=fm1; t=1703370905; x=1703457305; bh=O9Kxd6jB/OYj/H/O6RALDa6HlYh0CBug1xvnfr6ynwI=; b= XK+5gjZxlUHbcrbC9z8cVd121Ob3zctE6OC9FWFXvE1h+3/3rtz94wXoQY8RVX1H 7WEcZWqLftYa2oNv/FFLJ9ZDpHH4+KGica2vaU2O6rMOP0WQtFzycXH7u88e3qsK pAXV6WNBhZzudDwnmXAEtOnwEg8K1NublYlnSHe2+my6EmfhcalFPjQmldQX1PzM HU0sQMkUEWr2TeLahTEvRyWC0u8wMYrjOAjXnK3qGhe+amikYTVX2AZLutY6Fvhm UokckvwdgvHdarmF7abipbReQecHHsnYAdiltFVu0SNzl/1EIvWFat4c7PfL3djI s8MZyVzfd8tPio4KnRjEiA== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:cc:content-transfer-encoding :content-type:content-type:date:date:feedback-id:feedback-id :from:from:in-reply-to:in-reply-to:message-id:mime-version :references:reply-to:subject:subject:to:to:x-me-proxy:x-me-proxy :x-me-sender:x-me-sender:x-sasl-enc; s=fm2; t=1703370905; x= 1703457305; bh=O9Kxd6jB/OYj/H/O6RALDa6HlYh0CBug1xvnfr6ynwI=; b=g PAW6vHY5s5OZskHSrd/ju01VXsbDIEAYgrR0q2+g8p7R51D2UNe/3PgLR7hq2pBM nZESWGf3GqchEd/zDY2q6B/OEC0bh8M5tVJBRNaOIOxqjuShYrBzkBBdFbdWiu7B /QnUhu8c1Wrm41A1wDeIqrlCx08RO1EcFlH47Dhb7lXcdzdIDv+dbyK0l7gt+07y zRjb7Wh2R2IWlzZBvVq0XGxyfKLBqxcKGaVOKVawSR/+PQhlQ+F4nXk5Zhd2njkk NUfEOjwCRzINCvy2R+ZSqOSG/RUNYpyGhmLAxg6m0pR74oYUsKwqRGskKzXxc28+ 1Blm6f0OhAM3OMR1HbeAQ== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvkedrvdduledgudeihecutefuodetggdotefrod ftvfcurfhrohhfihhlvgemucfhrghsthforghilhdpqfgfvfdpuffrtefokffrpgfnqfgh necuuegrihhlohhuthemuceftddtnecusecvtfgvtghiphhivghnthhsucdlqddutddtmd enucfjughrpefkffggfgfuvfevfhfhjggtgfesthekredttddvjeenucfhrhhomheptegu rhhirghnucfmlhgrvhgvrhcuoegrughrihgrnhdrkhhlrghvvghrsegrkhhlrghvvghrrd gtohhmqeenucggtffrrghtthgvrhhnpeefgeefieeutdfggfetgefgheekjeehteeileei gfetieekjedvieeviefgheevtdenucevlhhushhtvghrufhiiigvpedtnecurfgrrhgrmh epmhgrihhlfhhrohhmpegrughrihgrnhdrkhhlrghvvghrsegrkhhlrghvvghrrdgtohhm X-ME-Proxy: Feedback-ID: i76984098:Fastmail Received: by mail.messagingengine.com (Postfix) with ESMTPA; Sat, 23 Dec 2023 17:35:05 -0500 (EST) Message-ID: Date: Sat, 23 Dec 2023 14:35:04 -0800 MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: Unable to start postgresql-14 To: Johnathan Tiamoh Cc: pgsql-general@lists.postgresql.org References: Content-Language: en-US From: Adrian Klaver In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk On 12/23/23 10:05, Johnathan Tiamoh wrote: > More information needed: > > 1) Exact Postgres version e.g 14.x > > Postgresql Version 14. 10 > > 2) Is it community version or fork? > > Community version > > 3) What was the command you used to start the cluster? > > systemctl start postgresql-14 > > 4) Do you have replication/WAL archiving set up? > > Yes. > > > Just to add. The data directory was accidentally deleted. At the time of > deletion. The secondary was broken. So that is the cause of the issue. > I restore from backup and it couldn't start. Was this backup taken before the data directory was deleted? If so how was the backup done? > > I ended up doing a pg_resetwal to start it and ended up with lots of > data corruption. Does this mean you recreated the data directory from some source and then ran pg_resetwal? > > I have try a pg_dumpall to restore in a new server and it has equally > failed. Do you mean you did a pg_dumpall from the Postgres instance running on the restored data directory? -- Adrian Klaver adrian.klaver@aklaver.com