Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.72) (envelope-from ) id 1U6MIj-0006g0-9d for pgsql-bugs@arkaria.postgresql.org; Fri, 15 Feb 2013 14:30:09 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.72) (envelope-from ) id 1U6MIi-0006z0-QP for pgsql-bugs@arkaria.postgresql.org; Fri, 15 Feb 2013 14:30:08 +0000 Received: from makus.postgresql.org ([2001:4800:7903:4::125]) by malur.postgresql.org with esmtp (Exim 4.72) (envelope-from ) id 1U6AQw-0006KI-Mm for pgsql-bugs@postgresql.org; Fri, 15 Feb 2013 01:49:50 +0000 Received: from mahout.postgresql.org ([2001:4800:7903:4::123]) by makus.postgresql.org with esmtp (Exim 4.72) (envelope-from ) id 1U6AQv-0005QF-Gj for pgsql-bugs@postgresql.org; Fri, 15 Feb 2013 01:49:50 +0000 Received: from [204.145.124.246] (helo=wrigleys.postgresql.org) by mahout.postgresql.org with esmtp (Exim 4.72) (envelope-from ) id 1U6AQu-0001Xg-Ce for pgsql-bugs@postgresql.org; Fri, 15 Feb 2013 01:49:49 +0000 Received: from www-data by wrigleys.postgresql.org with local (Exim 4.72) (envelope-from ) id 1U6AQu-0002rq-4b for pgsql-bugs@postgresql.org; Fri, 15 Feb 2013 01:49:48 +0000 Date: Fri, 15 Feb 2013 01:49:48 +0000 Message-Id: Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Subject: BUG #7883: "PANIC: WAL contains references to invalid pages" on replica recovery To: pgsql-bugs@postgresql.org From: maciek@heroku.com X-Pg-Spam-Score: 1.7 (+) List-Archive: List-Help: List-ID: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: X-Mailing-List: pgsql-bugs Precedence: bulk Sender: pgsql-bugs-owner@postgresql.org The following bug has been logged on the website: Bug reference: 7883 Logged by: Maciek Sakrejda Email address: maciek@heroku.com PostgreSQL version: 9.1.8 Operating system: Ubuntu 12.04 64-bit Description:=20=20=20=20=20=20=20=20 We ran into a customer database giving us the error above when replicating from 9.1.7 to 9.1.8 and attempting to fail over to the 9.1.8. I noticed several fixes to WAL replay in 9.1.8--could this be a factor in this case? We're trying again with a fresh replica; hopefully that will just work. Logs from the incident are below. Thanks, Maciek Feb 15 00:49:12 wal_e.worker.s3_worker INFO MSG: could not locate object while performing wal restore#012 DETAIL: The absolute URI that could not be located is s3://wal-e-[redacted]/wal-e-backups/timeline-0e0b390f-cb3f-4192-8cdb-fced4d= 54b0a2/wal_005/000000010000003C00000094.lzo.#012 HINT: This can be normal when Postgres is trying to detect what timelines are available during restoration. Feb 15 00:49:12 [1300-1] [COPPER] LOG: invalid magic number 0000 in log file 60, segment 148, offset 0 Feb 15 00:49:13 wal_e.worker.s3_worker INFO MSG: could not locate object while performing wal restore#012 DETAIL: The absolute URI that could not be located is s3://wal-e-[redacted]/wal-e-backups/timeline-0e0b390f-cb3f-4192-8cdb-fced4d= 54b0a2/wal_005/000000010000003C00000094.lzo.#012 HINT: This can be normal when Postgres is trying to detect what timelines are available during restoration. Feb 15 00:49:13 [1301-1] [COPPER] LOG: redo done at 3C/930000B0 Feb 15 00:49:13 [1302-1] [COPPER] LOG: last completed transaction was at log time 2013-02-14 22:35:05.338681+00 Feb 15 00:49:15 wal_e.worker.s3_worker INFO MSG: completed download and decompression#012 DETAIL: Downloaded and decompressed "s3://wal-e-[redacted]/wal-e-backups/timeline-0e0b390f-cb3f-4192-8cdb-fced4= d54b0a2/wal_005/000000010000003C00000093.lzo" to "pg_xlog/RECOVERYXLOG" Feb 15 00:49:15 [1303-1] [COPPER] LOG: restored log file "000000010000003C00000093" from archive Feb 15 00:49:15 wal_e.worker.s3_worker INFO MSG: could not locate object while performing wal restore#012 DETAIL: The absolute URI that could not be located is s3://wal-e-[redacted]/wal-e-backups/timeline-0e0b390f-cb3f-4192-8cdb-fced4d= 54b0a2/wal_005/00000002.history.lzo.#012 HINT: This can be normal when Postgres is trying to detect what timelines are available during restoration. Feb 15 00:49:16 [1304-1] [COPPER] LOG: selected new timeline ID: 2 Feb 15 00:49:16 wal_e.worker.s3_worker INFO MSG: could not locate object while performing wal restore#012 DETAIL: The absolute URI that could not be located is s3://wal-e-[redacted]/wal-e-backups/timeline-0e0b390f-cb3f-4192-8cdb-fced4d= 54b0a2/wal_005/00000001.history.lzo.#012 HINT: This can be normal when Postgres is trying to detect what timelines are available during restoration. Feb 15 00:49:16 [1305-1] [COPPER] LOG: archive recovery complete Feb 15 00:49:16 [1306-1] [COPPER] WARNING: page 37956 of relation base/16385/16430 was uninitialized Feb 15 00:49:16 [1307-1] [COPPER] PANIC: WAL contains references to invalid pages Feb 15 00:49:17 [3-1] [COPPER] LOG: startup process (PID 7) was terminated by signal 6: Aborted Feb 15 00:49:17 [4-1] [COPPER] LOG: terminating any other active server processes Feb 15 00:49:17 [37-1] collectd [COPPER] WARNING: terminating connection because of crash of another server process Feb 15 00:49:17 [37-2] collectd [COPPER] DETAIL: The postmaster has commanded this server process to roll back the current transaction and exit, because another server process exited abnormally and possibly corrupted shared memory. Feb 15 00:49:17 [37-3] collectd [COPPER] HINT: In a moment you should be able to reconnect to the database and repeat your command. --=20 Sent via pgsql-bugs mailing list (pgsql-bugs@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-bugs