Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1o29OS-0004vf-Uf for pgsql-general@arkaria.postgresql.org; Fri, 17 Jun 2022 10:40:01 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1o29OQ-0004pR-Bj for pgsql-general@arkaria.postgresql.org; Fri, 17 Jun 2022 10:39:58 +0000 Received: from makus.postgresql.org ([2001:4800:3e1:1::229]) by malur.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1o29OP-0004p9-U5 for pgsql-general@lists.postgresql.org; Fri, 17 Jun 2022 10:39:58 +0000 Received: from mail-wr1-x42e.google.com ([2a00:1450:4864:20::42e]) by makus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.92) (envelope-from ) id 1o29OI-0001z6-S1 for pgsql-general@lists.postgresql.org; Fri, 17 Jun 2022 10:39:56 +0000 Received: by mail-wr1-x42e.google.com with SMTP id q9so5211767wrd.8 for ; Fri, 17 Jun 2022 03:39:50 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=cybertec-at.20210112.gappssmtp.com; s=20210112; h=message-id:subject:from:to:date:in-reply-to:references:user-agent :mime-version:content-transfer-encoding; bh=tQd6uuDbJqU0bLWI+L7t8ciiVsY/GuGCoXgY1EDdZ7k=; b=FX8gi0V+S2RNQ9155oS49uJ/auDCBmmWJDXWxOFJdGDtYrzin/p5sGDeAXQPnH/cGW 218TEXLl19yhWbTGZe0A/ZNIx+BrxfKyfbSkNfi85e6V3AYD+cHyibVC+rOfS5NJH05H fD1mJC9w3WWafBlJ/RfKqMCxpxZMAHlb66EjWq51B0Seg/uatjeFa7gDDczO7I4AdriN fO6afnasT500rkWHcc7Lb5ZHOR1TCxDFek5T4PT46fhqhK9nTSyN26OJDlEr6ViNOVkz lUaFCcXvJ7Gx/hia4h/Mjk7qpc960mrrBRtr+5B3gD158r91uYO90bPZpR+5vax8wll+ C5DA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:message-id:subject:from:to:date:in-reply-to :references:user-agent:mime-version:content-transfer-encoding; bh=tQd6uuDbJqU0bLWI+L7t8ciiVsY/GuGCoXgY1EDdZ7k=; b=Zh1nDtF2SAVnZIK80Dr47a0vXfBCKNbtv6GM0VY1MGTSoh9ha13upNsJBnKOd6/DI4 WnN23OAZYUmtAHOOBmFmUjpU2IUpU67vUSBoNjjWJVdWh8C150T2HWVwJWNZ0qvkd92L /dUr93zTrP2CanBT4WcKCudGI//WnCwUiyRKB+RAsw0DNzn4DmSd25xgftYRjYiXo2ES 9CbbW4DYgL1X3mGIiYDpJjaNSFEjhCUGtA/238vBJ4b4eXuS6FudS4+gVysr1Gs/m9Ai Xp89bIWeywgaRT6lv7CGWI8Da3YCK7omGmXpJ5lTRSOZh8UvLFNiU7lRyQNBBBZC5bY9 3L7Q== X-Gm-Message-State: AJIora+AlupK+QKXuU28No5B5DURPflpN9oWCL1Scp5fCovHWOWOK4A2 0eers2k6viDVamQb2kpKVKmaPg== X-Google-Smtp-Source: AGRyM1ssyLn+E28QgF7iO5lMPMNw0yRBIE2PsmVZqqXcvu9qI0s6ZbkAwSXEd3x7L6hQ4tGde8Z/UQ== X-Received: by 2002:a5d:49cf:0:b0:21b:818a:a09b with SMTP id t15-20020a5d49cf000000b0021b818aa09bmr1240842wrs.676.1655462388835; Fri, 17 Jun 2022 03:39:48 -0700 (PDT) Received: from localhost.localdomain ([2001:871:5e:9b03:671f:dd0e:598:3e5a]) by smtp.gmail.com with ESMTPSA id j14-20020adfa54e000000b0020fd392df33sm4519096wrb.29.2022.06.17.03.39.48 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 17 Jun 2022 03:39:48 -0700 (PDT) Message-ID: Subject: Re: Postgresql error : PANIC: could not locate a valid checkpoint record From: Laurenz Albe To: "Mahendrakar, Prabhakar - Dell Team" , "pgsql-general@lists.postgresql.org" Date: Fri, 17 Jun 2022 12:39:47 +0200 In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" User-Agent: Evolution 3.42.4 (3.42.4-2.fc35) MIME-Version: 1.0 Content-Transfer-Encoding: 8bit List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk On Fri, 2022-06-17 at 06:35 +0000, Mahendrakar, Prabhakar - Dell Team wrote: > 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. You should not be using 13.4, but the latest minor release, at this point 13.7. Anyway, the error message looks like somebody removed the contents of the "pg_wal" directory. How exactly did you upgrade PostgreSQL? Yours, Laurenz Albe -- Cybertec | https://www.cybertec-postgresql.com