Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1iFmoB-0005mb-Sb for pgsql-general@arkaria.postgresql.org; Wed, 02 Oct 2019 22:09:20 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1iFmoA-00033n-D7 for pgsql-general@arkaria.postgresql.org; Wed, 02 Oct 2019 22:09:18 +0000 Received: from makus.postgresql.org ([2001:4800:3e1:1::229]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1iFmoA-00033P-0D for pgsql-general@lists.postgresql.org; Wed, 02 Oct 2019 22:09:18 +0000 Received: from tamriel.snowman.net ([96.255.250.162]) by makus.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1iFmo7-0006yc-Ph for pgsql-general@lists.postgresql.org; Wed, 02 Oct 2019 22:09:16 +0000 Received: by tamriel.snowman.net (Postfix, from userid 1000) id 2C3935F79F; Wed, 2 Oct 2019 18:09:15 -0400 (EDT) Date: Wed, 2 Oct 2019 18:09:15 -0400 From: Stephen Frost To: =?utf-8?B?QWxlxaEgWmVsZW7DvQ==?= Cc: pgsql-general@lists.postgresql.org Subject: Re: Wall shiping replica failed to recover database with error: invalid contrecord length 1956 at FED/38FFE208 Message-ID: <20191002220914.GS6962@tamriel.snowman.net> References: MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="eQdMgXSGinCmuJ0P" Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.24 (2015-08-30) List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk --eQdMgXSGinCmuJ0P Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Greetings, * Ale=C5=A1 Zelen=C3=BD (zeleny.ales@gmail.com) wrote: > But recovery on replica failed to proceed WAL file > 0000000100000FED00000039 with log message: " invalid contrecord length > 1956 at FED/38FFE208". Err- you've drawn the wrong conclusion from that message (and you're certainly not alone- it's a terrible message and we should really have a HINT there or something). That's an INFO-level message, not an error, and basically just means "oh, look, there's an invalid WAL record, guess we got to the end of the WAL available from this source." If you had had primary_conninfo configured in your recovery.conf, PG would likely have connected to the primary and started replication. One other point is that if you actually did a promotion in this process somewhere, then you might want to set recovery_target_timeline=3Dlatest, to make sure the replica follows along on the timeline switch that happens when a promotion happens. Thanks, Stephen --eQdMgXSGinCmuJ0P Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- Version: GnuPG v1 iQIcBAEBCgAGBQJdlSAKAAoJEO1sijiDR2RVmu8P/3ybLe18ofRQYuBHegxr9CZI iPqmMBtIfNzUs0sUQvOHAb1rfggbchWCun5JlgaMyhTIWOREcTnCI2ZyPCpdZ/kg OoZgkWSESPFwDg87JQE9kbt/jwI+AyTL5EDMRR6KFtiROLZ4W3sbZS5E2+gWIlRd BMh5lr3J5EEyQz8E/9zoIHjIiVicl4GHlu670sY1ZQiKNJ4m0t/SDAT6Sz0NLoH2 4TL6fzmoqJtHDQ0wfEOJE0pJEjyjeVHQ866r/xGaJ2DJF7rJK6LVXIc4/Vr8k0Nk wSUcBhg5WIWQCwaZotuvVOz3Z8sY2N2TJsBn9kVjDHlEwfeHtuLwGt2Efo5oZe0d Y/1fgg9iwvEiBx+byO/iaVkdLW0yxWoMioNwyr6Mo1z0TtsPP21AMWEF7tbv4SB9 PAFrFlflyezdvfn6QzXavB2rezJsNdO93W9e9+DAdDAkd+GdalNnJeKNQIn6/fKJ vBFxNgmfw7oYTFREQiVAJ+nRb95ynBdwJlpjYaGRJOhnD3/Nv7YVfiPvqjkftefa sJmEeV0ecRHFkMEEV5gLJUoUSmGIV/p6aP04aacuw1aRRXvZQvEaKqeFsL9tqJJa Jp4veNrkwN7Z+FgbmFg0xLJZ2SSBBkAUpbzYdOxgL0E1l+xh2MfI0dVsUgm+p1IJ mzSVVc2OasTqd6nIkYIN =Zy1E -----END PGP SIGNATURE----- --eQdMgXSGinCmuJ0P--