Re: BUG #17954: Postgres startup fails with `could not locate a valid checkpoint record`

Поиск
Список
Период
Сортировка
От Michael Paquier
Тема Re: BUG #17954: Postgres startup fails with `could not locate a valid checkpoint record`
Дата
Msg-id ZIaldUjDrK8D45db@paquier.xyz
обсуждение исходный текст
Ответ на BUG #17954: Postgres startup fails with `could not locate a valid checkpoint record`  (PG Bug reporting form <noreply@postgresql.org>)
Список pgsql-bugs
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

Вложения

В списке pgsql-bugs по дате отправления:

Предыдущее
От: Michael Paquier
Дата:
Сообщение: Re: BUG #17953: Libpq can stall indefinitely with non-tls localhost (127.0.0.1) connection
Следующее
От: Michael Paquier
Дата:
Сообщение: Re: Server crash with parallel workers with Postgres 14.7