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 1l6g06-0005gs-Sf for pgsql-general@arkaria.postgresql.org; Mon, 01 Feb 2021 20:40:46 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1l6g05-0001hM-HG for pgsql-general@arkaria.postgresql.org; Mon, 01 Feb 2021 20:40:45 +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 1l6g05-0001hF-9N for pgsql-general@lists.postgresql.org; Mon, 01 Feb 2021 20:40:45 +0000 Received: from sss.pgh.pa.us ([66.207.139.130]) by makus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1l6g01-0000OB-Fc for pgsql-general@lists.postgresql.org; Mon, 01 Feb 2021 20:40:44 +0000 Received: from sss1.sss.pgh.pa.us (localhost [127.0.0.1]) by sss.pgh.pa.us (8.15.2/8.15.2) with ESMTP id 111KeREe3420508; Mon, 1 Feb 2021 15:40:28 -0500 From: Tom Lane To: Helmut Bender cc: pgsql-general@lists.postgresql.org Subject: Re: Segmentation fault on startup In-reply-to: References: Comments: In-reply-to Helmut Bender message dated "Mon, 01 Feb 2021 18:53:54 +0100" MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <3420506.1612212027.1@sss.pgh.pa.us> Date: Mon, 01 Feb 2021 15:40:27 -0500 Message-ID: <3420507.1612212027@sss.pgh.pa.us> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk 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. > 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. It is barely possible that it's a PG bug that we've fixed, so if you are not on 10.15 then an update would be worth trying. But I don't have a lot of hope for that. > I have a dump of the data, but without running server I can't do > anything with it either... If it's a reasonably recent dump, you might end up just having to re-initdb and restore the dump. If the missing data is very valuable to you, there are people around who specialize in trying to recover data from corrupted databases (see "Professional Services" on our website). But it's expensive and there's no guarantee how much can be recovered. As with all else computer-related, there's no substitute for a good backup plan :-( regards, tom lane