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 1nc1U6-0003hM-0K for pgsql-general@arkaria.postgresql.org; Wed, 06 Apr 2022 08:57:50 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1nc1U4-0007RM-TS for pgsql-general@arkaria.postgresql.org; Wed, 06 Apr 2022 08:57:48 +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 1nc1U4-0007RD-Fn for pgsql-general@lists.postgresql.org; Wed, 06 Apr 2022 08:57:48 +0000 Received: from mx3.wp.pl ([212.77.101.9]) by magus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1nc1U2-0003iU-Br for pgsql-general@lists.postgresql.org; Wed, 06 Apr 2022 08:57:48 +0000 Received: (wp-smtpd smtp.wp.pl 9466 invoked from network); 6 Apr 2022 10:57:43 +0200 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=wp.pl; s=1024a; t=1649235463; bh=UGmEFp+vx43ibY1MnUS8AO8WPYz+dG4IA8xnI7qSdO0=; h=From:Subject:To; b=woXg3PcUmF28P9XNybeaBAPcvUFiPih3126P8+dFEjgrf3XF7djrZ6mnPOcNTt5V8 ht2Z+LoPAgJT+UvS+3AT57/qdj51yM4Jtb4DfTaBlwc357YHRmcc1rNJ8Y7qhvp7ah Tc0hIPc5GVoAQ3zyU32CWy1fzBDqcl3wHBAsxnek= Received: from afrl5.neoplus.adsl.tpnet.pl (HELO [192.168.1.200]) (laurentp@wp.pl@[178.42.193.5]) (envelope-sender ) by smtp.wp.pl (WP-SMTPD) with ECDHE-RSA-AES256-GCM-SHA384 encrypted SMTP for ; 6 Apr 2022 10:57:43 +0200 From: "W.P." Subject: Problem with PG 11 database on OrangePi3 (ARMBIAN, ARM64) after disk disrupion (problem with USB disk connection) To: pgsql-general@lists.postgresql.org Message-ID: <9ff52fa7-a125-1225-0e23-c22f034ceb91@wp.pl> Disposition-Notification-To: "W.P." Date: Wed, 6 Apr 2022 10:57:43 +0200 User-Agent: Mozilla/5.0 (X11; Linux i686 on x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.5.0 MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="------------CC90452BB1CA75E821E06EB3" Content-Language: pl X-WP-MailID: a98041869023cdd1730e035b01c6351b X-WP-AV: skaner antywirusowy Poczty Wirtualnej Polski X-WP-SPAM: NO 0000009 [wFOk] List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk This is a multi-part message in MIME format. --------------CC90452BB1CA75E821E06EB3 Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit Hi there, I had a problem with disconnecting USB disc with PG database on my OPi3. PG is 11. Now base refuses to start, with problem reported in log (see attached file). But I don't have replication configured! Is it possible to repair this? Laurent --------------CC90452BB1CA75E821E06EB3 Content-Type: text/x-log; charset=UTF-8; name="postgresql-11-main_2022-06-04.log" Content-Transfer-Encoding: 7bit Content-Disposition: attachment; filename="postgresql-11-main_2022-06-04.log" 2022-04-05 20:53:38.892 CEST [12022-04-06 08:30:33.359 CEST [11834] LOG: listening on IPv4 address "0.0.0.0", port 5432 2022-04-06 08:30:33.360 CEST [11834] LOG: listening on IPv6 address "::", port 5432 2022-04-06 08:30:33.406 CEST [11834] LOG: listening on Unix socket "/var/run/postgresql/.s.PGSQL.5432" 2022-04-06 08:30:33.586 CEST [11835] LOG: database system was interrupted; last known up at 2022-04-05 20:55:49 CEST 2022-04-06 08:30:34.369 CEST [11835] PANIC: replication checkpoint has wrong magic 1346542039 instead of 307747550 2022-04-06 08:30:34.371 CEST [11834] LOG: startup process (PID 11835) was terminated by signal 6: Aborted 2022-04-06 08:30:34.371 CEST [11834] LOG: aborting startup due to startup process failure 2022-04-06 08:30:34.374 CEST [11834] LOG: database system is shut down 2022-04-06 08:32:26.775 CEST [11873] LOG: listening on IPv4 address "0.0.0.0", port 5432 2022-04-06 08:32:26.776 CEST [11873] LOG: listening on IPv6 address "::", port 5432 2022-04-06 08:32:26.811 CEST [11873] LOG: listening on Unix socket "/var/run/postgresql/.s.PGSQL.5432" 2022-04-06 08:32:26.980 CEST [11874] LOG: database system was interrupted; last known up at 2022-04-05 20:55:49 CEST 2022-04-06 08:32:27.668 CEST [11874] PANIC: replication checkpoint has wrong magic 1346542039 instead of 307747550 2022-04-06 08:32:27.669 CEST [11873] LOG: startup process (PID 11874) was terminated by signal 6: Aborted 2022-04-06 08:32:27.670 CEST [11873] LOG: aborting startup due to startup process failure 2022-04-06 08:32:27.673 CEST [11873] LOG: database system is shut down --------------CC90452BB1CA75E821E06EB3--