RE: Postgresql error : PANIC: could not locate a valid checkpoint record

From: "Mahendrakar, Prabhakar - Dell Team" <Prabhakar(dot)Mahendraka(at)dellteam(dot)com>
To: Mateusz Henicz <mateuszhenicz(at)gmail(dot)com>
Cc: "pgsql-general(at)lists(dot)postgresql(dot)org" <pgsql-general(at)lists(dot)postgresql(dot)org>
Subject: RE: Postgresql error : PANIC: could not locate a valid checkpoint record
Date: 2022-06-21 12:02:54
Message-ID: BYAPR19MB2886F67734ACEB07FAE1391E94B39@BYAPR19MB2886.namprd19.prod.outlook.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

Could you please provide some insights in the below query. We are in need of this as it this issue is seen at some of our customer's site.

Thanks,
Prabhakar

Internal Use - Confidential
From: Mahendrakar, Prabhakar - Dell Team
Sent: Monday, June 20, 2022 4:22 PM
To: Mateusz Henicz
Cc: pgsql-general(at)lists(dot)postgresql(dot)org
Subject: RE: Postgresql error : PANIC: could not locate a valid checkpoint record

Thanks for the response.
Yes, we have taken care of proper shut down of Postgres before initiating the Upgrade.
pg_resetwal - I have read that using pg_resetwal may cause the Database more inconsistent and should be used only as a last resort.

Also this problem ( checkpoint related issue -could not locate a valid checkpoint record ) is not happening frequently. This issue is seen with the large size of Data base.
Please let me know if you require any more information.

Thanks,
Prabhakar

From: Mateusz Henicz <mateuszhenicz(at)gmail(dot)com<mailto:mateuszhenicz(at)gmail(dot)com>>
Sent: Friday, June 17, 2022 3:39 PM
To: Mahendrakar, Prabhakar - Dell Team
Cc: pgsql-general(at)lists(dot)postgresql(dot)org<mailto:pgsql-general(at)lists(dot)postgresql(dot)org>
Subject: Re: Postgresql error : PANIC: could not locate a valid checkpoint record

[EXTERNAL EMAIL]
Assuming you have shut down your postgres properly before upgrading, it should be safe for you to run pg_resetwal.
https://www.postgresql.org/docs/current/app-pgresetwal.html [postgresql.org]<https://urldefense.com/v3/__https:/www.postgresql.org/docs/current/app-pgresetwal.html__;!!LpKI!nLsPoYLxz9_0wbkgjbQGXorp1s6PcSTlir-of_nvRmQZazd2S0Rnqe7iZ8l6oW7aarWf8v4_p1LdgHThZk0YSPfaD4cz4g-K$>
It should help in this case.

pt., 17 cze 2022 o 12:03 Mahendrakar, Prabhakar - Dell Team <Prabhakar(dot)Mahendraka(at)dellteam(dot)com<mailto:Prabhakar(dot)Mahendraka(at)dellteam(dot)com>> napisał(a):
Yes, We are using the pg_upgrade utility of Postgres.

From: Mateusz Henicz <mateuszhenicz(at)gmail(dot)com<mailto:mateuszhenicz(at)gmail(dot)com>>
Sent: Friday, June 17, 2022 3:31 PM
To: Mahendrakar, Prabhakar - Dell Team
Cc: pgsql-general(at)lists(dot)postgresql(dot)org<mailto:pgsql-general(at)lists(dot)postgresql(dot)org>
Subject: Re: Postgresql error : PANIC: could not locate a valid checkpoint record

[EXTERNAL EMAIL]
Hi,
Have you done pg_upgrade post Postgres 13 installation?

https://www.postgresql.org/docs/13/pgupgrade.html [postgresql.org]<https://urldefense.com/v3/__https:/www.postgresql.org/docs/13/pgupgrade.html__;!!LpKI!idvJ795EwLEkEftyMMQc6j4AvHBN-AWOsHhukZYHV0VBPR8PRtDCRs_JDRGs5Nz34Vs4VK05szBLxdJ13Wzjztu6q67YUhUY$>

Cheers,
Mateusz

pt., 17 cze 2022 o 11:20 Mahendrakar, Prabhakar - Dell Team <Prabhakar(dot)Mahendraka(at)dellteam(dot)com<mailto:Prabhakar(dot)Mahendraka(at)dellteam(dot)com>> napisał(a):
Hello,

Good Morning !

We are facing checkpoint related issues from PostGreSQL 13.4 ( could not locate a valid checkpoint record) and Postgres service fails to come up.
========================================================================================================
LOG: starting PostgreSQL 13.4 on x86_64-pc-linux-gnu, compiled by gcc (GCC) 4.4.7 20120313 (Red Hat 4.4.7-16), 64-bit
LOG: listening on IPv4 address "127.0.0.1", port 9003
LOG: listening on IPv4 address "10.xx.xx.x..", port 9003
LOG: listening on Unix socket "/tmp/.s.PGSQL.9003"
LOG: database system was shut down at 2022-06-09 10:19:24 CEST
LOG: invalid primary checkpoint record
PANIC: could not locate a valid checkpoint record
LOG: startup process (PID 8773) was terminated by signal 6: Aborted
LOG: aborting startup due to startup process failure
LOG: database system is shut down

This issue is seen in both Windows and Linux OS platforms.

To Brief on the Scenario: Our product say example with Version A1 uses Postgres 10 and in the latest version of our product (Say A2) we upgraded the Postgres to 13.
When we try to upgrade our Product through InstallAnyWhere from A1 to A2, Postgres service fails with above mentioned error.

Could you please suggest the probable cause of the issue. Let us know if you require any more information.

Thanks,
Prabhakar

Internal Use - Confidential

Internal Use - Confidential

Internal Use - Confidential

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message houzj.fnst@fujitsu.com 2022-06-21 12:19:15 RE: Support logical replication of DDLs
Previous Message Andreas 'ads' Scherbaum 2022-06-21 11:57:51 Reminder: Call for Papers for PostgreSQL Conference Europe 2022 is closing soon!