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 1kLbtE-0000Bo-D0 for pgsql-bugs@arkaria.postgresql.org; Fri, 25 Sep 2020 00:47:08 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1kLbtD-0007gt-0q for pgsql-bugs@arkaria.postgresql.org; Fri, 25 Sep 2020 00:47:07 +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 1kLbtC-0007gm-R2 for pgsql-bugs@lists.postgresql.org; Fri, 25 Sep 2020 00:47:06 +0000 Received: from oss.nttdata.com ([49.212.34.109]) by magus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1kLbtA-0001WA-Aq for pgsql-bugs@postgresql.org; Fri, 25 Sep 2020 00:47:06 +0000 Received: from hnk.local (p2368131-ipbf2226funabasi.chiba.ocn.ne.jp [114.177.250.131]) by oss.nttdata.com (Postfix) with ESMTPSA id F1930622EB; Fri, 25 Sep 2020 09:46:58 +0900 (JST) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.102.3 at oss.nttdata.com Subject: Re: PG13 pg_receivewal failing To: Grigory Smolkin , Pg Bugs References: <549e0057-05dc-9310-92c7-45bf93a3a192@postgrespro.ru> From: Fujii Masao Message-ID: <11943c9a-de5f-36ff-5f97-270488507177@oss.nttdata.com> Date: Fri, 25 Sep 2020 09:46:58 +0900 User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.14; rv:68.0) Gecko/20100101 Thunderbird/68.12.0 MIME-Version: 1.0 In-Reply-To: <549e0057-05dc-9310-92c7-45bf93a3a192@postgrespro.ru> Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 8bit List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk On 2020/09/25 5:51, Grigory Smolkin wrote: > Hello! > > I`ve encountered the following error when trying to stream WAL via pg_receivewal: > > pg_receivewal -p 11770 --synchronous -D /wal/node -v > pg_receivewal: starting log streaming at 0/1000000 (timeline 1) > pg_receivewal: error: unexpected termination of replication stream: ERROR:  requested WAL segment 000000010000000000000001 has already been removed > pg_receivewal: disconnected; waiting 5 seconds to try again > > > Is there something awry with start position calculation, or am I doing something wrong? I guess that 000000010000000000000001.partial file remained in /wal/node and pg_receivewal used 0/1000000 as the starting WAL position. Regards, -- Fujii Masao Advanced Computing Technology Center Research and Development Headquarters NTT DATA CORPORATION