pg.ddx.io  pgsql-general@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Helmut Bender <hab@helmut-bender.de>
To: pgsql-general@lists.postgresql.org
Subject: Re: Segmentation fault on startup
Date: Tue, 2 Feb 2021 19:22:41 +0100
Message-ID: <d0717eb3-875a-99c1-9c48-a585bad8984d@helmut-bender.de> (raw)
In-Reply-To: <3420507.1612212027@sss.pgh.pa.us>
References: <f95597ab-228d-f023-888f-7683668823cf@helmut-bender.de>
	<3420507.1612212027@sss.pgh.pa.us>

(again to the list...)

Am 01.02.21 um 21:40 schrieb Tom Lane:
> Helmut Bender <pgsql@helmut-bender.de> writes:
>> I'm running a nextcloud server in a docker container on an RasPi 4 (only
>> SSD, no SD), which uses PostgreSQL 10 as server.
> 
> 10.what?  We're already up to 15 patch releases for that branch.

As I use the docker image, it seems to be at 10.15.

>> Today I had to restart the RasPi. Now the container fails to start with
>> a segmentation violation.
> 
> Not good --- sounds like you have data corruption.  After an OS crash
> this is something that's quite possible if you haven't taken the time
> to qualify the storage subsystem's honoring of fsync.

Well, it was a regular reboot... don't know what happend.

> If it's a reasonably recent dump, you might end up just having to
> re-initdb and restore the dump.

OK, so there's no way to repair? Well, I make a daily backup, so that is 
not the problem.

> As with all else computer-related, there's no substitute for a
> good backup plan :-(

Oh yes.
And when you do, be shure to backup anything you need.
I managed to fiddle the backup into my container (which I updated to 
PGSQL 11 btw). BUT - it complained about missing roles.

So don't forget to
pg_dumpall --roles-only
when you pg_dump!

Thank you for your tips, it's running again. :-D

-- 
Gruß Helmut





view thread (4+ messages)  latest in thread

Message-ID: <d0717eb3-875a-99c1-9c48-a585bad8984d@helmut-bender.de>
Permalink:  ../d0717eb3-875a-99c1-9c48-a585bad8984d@helmut-bender.de/
Also on:    postgresql.org/message-id/d0717eb3-875a-99c1-9c48-a585bad8984d@helmut-bender.de

 · 

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: hab@helmut-bender.de
  Subject: Re: Segmentation fault on startup
  In-Reply-To: <d0717eb3-875a-99c1-9c48-a585bad8984d@helmut-bender.de>
  References: <f95597ab-228d-f023-888f-7683668823cf@helmut-bender.de> <3420507.1612212027@sss.pgh.pa.us> <d0717eb3-875a-99c1-9c48-a585bad8984d@helmut-bender.de>

* 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