From: Michael Paquier <michael@paquier.xyz>
To: srivastavautkarsh8097@gmail.com
To: pgsql-bugs@lists.postgresql.org
Subject: Re: BUG #17954: Postgres startup fails with `could not locate a valid checkpoint record`
Date: Mon, 12 Jun 2023 13:56:21 +0900
Message-ID: <ZIaldUjDrK8D45db@paquier.xyz> (raw)
In-Reply-To: <17954-487d02209af43b14@postgresql.org>
References: <17954-487d02209af43b14@postgresql.org>
On Thu, Jun 01, 2023 at 01:11:20PM +0000, PG Bug reporting form wrote:
> - What could be the root cause of this issue?
> - Is this a known issue (I did search the archives but couldn't find it
> though)? If yes, is this fixed in a PG 13, 14, 15?
Hard to say for sure, but it looks like your host has a few problems.
This part from your logs refers to something that should not happen,
to begin with:
> 2023-05-14 05:13:13.678 UTC [1] LOG: received smart shutdown request
> 2023-05-14 05:13:36.692 UTC [1] LOG: could not open file "postmaster.pid":
> No such file or directory
> 2023-05-14 05:13:36.692 UTC [1] LOG: performing immediate shutdown because
> data directory lock file is invalid
> 2023-05-14 05:13:36.692 UTC [1] LOG: received immediate shutdown request
> 2023-05-14 05:13:36.692 UTC [1] LOG: could not open file "postmaster.pid":
> No such file or directory
This LOG would come from either AddToDataDirLockFile() or
RecheckDataDirLockFile(). Still, the third entry I am quoting refers
to a recheck of the PID file, meaning that the postmaster has bumped
into what looks like a corrupted PID file.
--
Michael
Attachments:
signature.asc (application/pgp-signature, 832B) download
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients using the --to and --cc options:
reply via email
To: pgsql-bugs@postgresql.org
Cc: michael@paquier.xyz, srivastavautkarsh8097@gmail.com, pgsql-bugs@lists.postgresql.org
Subject: Re: BUG #17954: Postgres startup fails with `could not locate a valid checkpoint record`
In-Reply-To: <ZIaldUjDrK8D45db@paquier.xyz>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox