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 1l72DH-0002hW-PM for pgsql-general@arkaria.postgresql.org; Tue, 02 Feb 2021 20:23:51 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1l72DG-0002wI-Ph for pgsql-general@arkaria.postgresql.org; Tue, 02 Feb 2021 20:23:50 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1l70KB-00053S-Tb for pgsql-general@lists.postgresql.org; Tue, 02 Feb 2021 18:22:51 +0000 Received: from www454.your-server.de ([78.46.146.181]) by magus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1l70K5-00037T-KB for pgsql-general@lists.postgresql.org; Tue, 02 Feb 2021 18:22:51 +0000 Received: from sslproxy05.your-server.de ([78.46.172.2]) by www454.your-server.de with esmtpsa (TLSv1.3:TLS_AES_256_GCM_SHA384:256) (Exim 4.92.3) (envelope-from ) id 1l70K1-000ARF-Rh for pgsql-general@lists.postgresql.org; Tue, 02 Feb 2021 19:22:41 +0100 Received: from [109.193.248.113] (helo=[192.168.200.2]) by sslproxy05.your-server.de with esmtpsa (TLSv1.3:TLS_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1l70K1-000AVj-P0 for pgsql-general@lists.postgresql.org; Tue, 02 Feb 2021 19:22:41 +0100 Subject: Re: Segmentation fault on startup To: pgsql-general@lists.postgresql.org References: <3420507.1612212027@sss.pgh.pa.us> From: Helmut Bender Message-ID: Date: Tue, 2 Feb 2021 19:22:41 +0100 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.10.0 MIME-Version: 1.0 In-Reply-To: <3420507.1612212027@sss.pgh.pa.us> Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: de-DE Content-Transfer-Encoding: 8bit X-Authenticated-Sender: hab@helmut-bender.de X-Virus-Scanned: Clear (ClamAV 0.102.4/26068/Tue Feb 2 13:21:02 2021) List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk (again to the list...) Am 01.02.21 um 21:40 schrieb Tom Lane: > Helmut Bender 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