pg.ddx.io  pgsql-general@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Adrian Klaver <adrian.klaver@aklaver.com>
To: Tom K <tomkcpr@gmail.com>
Cc: pgsql-general@lists.postgresql.org
Subject: Re: psql: FATAL: the database system is starting up
Date: Sun, 2 Jun 2019 08:46:57 -0700
Message-ID: <f1875003-1790-5b30-db8d-0778f1c5e66f@aklaver.com> (raw)
In-Reply-To: <CAE3EmBB2Vut6Tyibj=kdrfDk1jvPXpVvD0gHJ1ysg9A6OD=6PA@mail.gmail.com>
References: <CAE3EmBDX+TRLot5Ar6fJwV_QazSrbQ8JmWb9ZhGtj9wgtu7c_g@mail.gmail.com>
	<CAE3EmBAiB6w6Zg3QOxzd=f6C7TGWH+5bSaW++Vn=v1cbCqmULg@mail.gmail.com>
	<d2dc9b50-af1f-8b0e-0e3f-264d72a62eab@aklaver.com>
	<CAE3EmBDE2=0dPJhTpcdyieKjHMs1-M6E+Da23vYQkH+FVyUJyQ@mail.gmail.com>
	<CAE3EmBDncwAX-i0z3w4_Q-k5svi8kSFxauwFD19k-bXVe5JoLw@mail.gmail.com>
	<aca93e88-e293-a03e-f29e-089eac69c111@aklaver.com>
	<CAE3EmBA8fPtRVNYDd9nt_7Yo1rSoCEw82FGCSEfbMmoJ7ZU+tQ@mail.gmail.com>
	<1bf8035e-006e-d026-e213-04f5b87cb686@aklaver.com>
	<CAE3EmBCbbw-hf7uRca3MvVKogshiLUpOod_9XmX4iF2jKJxugw@mail.gmail.com>
	<6e09cc96-ecc1-be79-fda7-694fc91f6986@aklaver.com>
	<CAE3EmBDpYCQ6h8QJWRzO=FsBXH3mT2aRmmoGi+RKVpVKc6NsNQ@mail.gmail.com>
	<CAE3EmBCsVppZw++1OOHRA=M_M_cSV09H4Me8X=b9__JdwpJXVw@mail.gmail.com>
	<CAE3EmBAh7iaEXvuN1G=LH4U3ScxPgzLWZrwxv-pVAUXQmo6s=Q@mail.gmail.com>
	<4fd730e6-cb9c-b3b8-5d37-72b680d13dc8@aklaver.com>
	<CAE3EmBB2Vut6Tyibj=kdrfDk1jvPXpVvD0gHJ1ysg9A6OD=6PA@mail.gmail.com>

On 6/1/19 8:07 PM, Tom K wrote:

> 
>     https://www.postgresql.org/docs/10/app-postgres.html
>     Single-User Mode
>     ...
> 
>     and see if that at least gets the server started. This is a highly
>     restricted so do not expect much usability.
> 
> 
> These servers did crash before however didn't' notice anything 
> particularly wrong at the time. Perhaps a better check was in order.
> 
> Here is the result from attempting to start the DB in single user mode.

> -bash-4.2$ /usr/pgsql-10/bin/postgres --single -D /data/patroni 
> --config-file=/data/patroni/postgresql.conf
> 2019-06-01 23:06:28.679 EDT [31969] LOG:  database system was 
> interrupted; last known up at 2019-04-28 06:06:24 EDT
> 2019-06-01 23:06:28.953 EDT [31969] LOG:  invalid record length at 
> 0/4C35CDF8: wanted 24, got 0
> 2019-06-01 23:06:28.953 EDT [31969] LOG:  invalid primary checkpoint record
> 2019-06-01 23:06:28.953 EDT [31969] LOG:  using previous checkpoint 
> record at 0/4C34EDA8
> 2019-06-01 23:06:28.953 EDT [31969] PANIC:  replication checkpoint has 
> wrong magic 0 instead of 307747550

That comes from origin.c in the logical replication section of the code.

Did you have logical replication set up?

What was the role of this cluster in the original setup?

> Aborted
> -bash-4.2$
> 

-- 
Adrian Klaver
adrian.klaver@aklaver.com





view thread (40+ messages)  latest in thread

Message-ID: <f1875003-1790-5b30-db8d-0778f1c5e66f@aklaver.com>
Permalink:  ../f1875003-1790-5b30-db8d-0778f1c5e66f@aklaver.com/
Also on:    postgresql.org/message-id/f1875003-1790-5b30-db8d-0778f1c5e66f@aklaver.com

 · 

reply

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 from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-general@postgresql.org
  Cc: adrian.klaver@aklaver.com, tomkcpr@gmail.com
  Subject: Re: psql: FATAL: the database system is starting up
  In-Reply-To: <f1875003-1790-5b30-db8d-0778f1c5e66f@aklaver.com>
  References: <CAE3EmBDX+TRLot5Ar6fJwV_QazSrbQ8JmWb9ZhGtj9wgtu7c_g@mail.gmail.com> <d2dc9b50-af1f-8b0e-0e3f-264d72a62eab@aklaver.com> <CAE3EmBDE2=0dPJhTpcdyieKjHMs1-M6E+Da23vYQkH+FVyUJyQ@mail.gmail.com> <CAE3EmBDncwAX-i0z3w4_Q-k5svi8kSFxauwFD19k-bXVe5JoLw@mail.gmail.com> <aca93e88-e293-a03e-f29e-089eac69c111@aklaver.com> <CAE3EmBA8fPtRVNYDd9nt_7Yo1rSoCEw82FGCSEfbMmoJ7ZU+tQ@mail.gmail.com> <1bf8035e-006e-d026-e213-04f5b87cb686@aklaver.com> <CAE3EmBCbbw-hf7uRca3MvVKogshiLUpOod_9XmX4iF2jKJxugw@mail.gmail.com> <6e09cc96-ecc1-be79-fda7-694fc91f6986@aklaver.com> <CAE3EmBDpYCQ6h8QJWRzO=FsBXH3mT2aRmmoGi+RKVpVKc6NsNQ@mail.gmail.com> <CAE3EmBCsVppZw++1OOHRA=M_M_cSV09H4Me8X=b9__JdwpJXVw@mail.gmail.com> <CAE3EmBAh7iaEXvuN1G=LH4U3ScxPgzLWZrwxv-pVAUXQmo6s=Q@mail.gmail.com> <4fd730e6-cb9c-b3b8-5d37-72b680d13dc8@aklaver.com> <CAE3EmBB2Vut6Tyibj=kdrfDk1jvPXpVvD0gHJ1ysg9A6OD=6PA@mail.gmail.com> <f1875003-1790-5b30-db8d-0778f1c5e66f@aklaver.com>

* 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