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.92) (envelope-from ) id 1jBpdJ-0001Ep-QQ for pgsql-general@arkaria.postgresql.org; Wed, 11 Mar 2020 00:54:01 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1jBpdI-0002kX-G9 for pgsql-general@arkaria.postgresql.org; Wed, 11 Mar 2020 00:54:00 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1jBpdI-0002kQ-6W for pgsql-general@lists.postgresql.org; Wed, 11 Mar 2020 00:54:00 +0000 Received: from out1-smtp.messagingengine.com ([66.111.4.25]) by magus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1jBpdF-0005Z2-VV for pgsql-general@postgresql.org; Wed, 11 Mar 2020 00:53:59 +0000 Received: from compute4.internal (compute4.nyi.internal [10.202.2.44]) by mailout.nyi.internal (Postfix) with ESMTP id AFAA321E5B; Tue, 10 Mar 2020 20:53:56 -0400 (EDT) Received: from mailfrontend2 ([10.202.2.163]) by compute4.internal (MEProxy); Tue, 10 Mar 2020 20:53:56 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=aklaver.com; h= subject:to:references:cc:from:message-id:date:mime-version :in-reply-to:content-type:content-transfer-encoding; s=fm2; bh=z FEByh3mOBKD+CexFcjyb6YDc/If2VX5pzxkjuzIjxY=; b=qCpZs0FunRLMUljFe D6Zcb65jIqc1uL1IDxMe8MJubUoFiPZDMklzibmEVCwDH2uNlUcyOlBpA9EIvbcC dCMZ50CrKUHx/caLzD711pGbkdVxIhLGbWJf25zsw/ekbVij0JfGmPBFzpEFnWxT YLN64yTu7m7qXa2el34PlyLFU96QDfEnrS9ZPZRcmrVW7O9xLFLwCRhjJz6vdgis qZ2BrxYXa6VCOoth0uPDFaD7ENf5t6gHZSJ9i9OOoLd+kKIlCRdnxrJ+uqkVXa00 XU+w601hmHva1Bquw/71qiqjLdRrSd0g7T02ZaFXg6JZ1RbVLwcz8thH3HppVl7K Y5fxg== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:content-transfer-encoding:content-type :date:from:in-reply-to:message-id:mime-version:references :subject:to:x-me-proxy:x-me-proxy:x-me-sender:x-me-sender :x-sasl-enc; s=fm2; bh=zFEByh3mOBKD+CexFcjyb6YDc/If2VX5pzxkjuzIj xY=; b=rFkbHyrvIAncs6mKrO2RdSIq06ZUErjWOHz32XpweqzmxJGARG+szMsSl CDJEtpm1K8HRbA7RsbcfP9YAV5FwBiREXdWkwCQF6eWM6hVn0xR8frGNOMbjQYQ3 N+L+6gVnZlfhk8yDRb3EXDEv13jJnf16enhypBBDYKN4T8TZiQOnE0Dr4Rs8Nb7h 2hpnH+RvF3/3bUpsdR1Uen/x35ThPpghARmctoHtJDVt/NGAxawGXEwjkgHlavrW uGdLPtChq1j5NR8rsoliFldBhZNPhLDMwHITwH013lrkqDwFVNjS5uKQnb+UnbC3 B7nS3MwqCcDYqZEt4OwDDwbv54YJw== X-ME-Sender: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedugedruddvuddgvdeiucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucesvcftvggtihhpihgvnhhtshculddquddttddmne cujfgurhepuffvfhfhkffffgggjggtgfesthekredttdefjeenucfhrhhomheptegurhhi rghnucfmlhgrvhgvrhcuoegrughrihgrnhdrkhhlrghvvghrsegrkhhlrghvvghrrdgtoh hmqeenucfkphepjedurddvuddvrdduvdelrdduleefnecuvehluhhsthgvrhfuihiivgep tdenucfrrghrrghmpehmrghilhhfrhhomheprggurhhirghnrdhklhgrvhgvrhesrghklh grvhgvrhdrtghomh X-ME-Proxy: Received: from [192.168.1.10] (unknown [71.212.129.193]) by mail.messagingengine.com (Postfix) with ESMTPA id D971930614FA; Tue, 10 Mar 2020 20:53:55 -0400 (EDT) Subject: Re: Streaming replication - 11.5 To: Nicola Contu References: <89a1e4cd-1da5-7233-d8c3-5e19cc9d1b75@aklaver.com> Cc: pgsql-general From: Adrian Klaver Message-ID: <1fdd13a5-d38b-8040-8261-c866bd782bd5@aklaver.com> Date: Tue, 10 Mar 2020 17:53:55 -0700 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.5.0 MIME-Version: 1.0 In-Reply-To: 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 3/10/20 8:17 AM, Nicola Contu wrote: Please post to list also. Ccing list. What came immediately before the temporary file error? >   2020-03-10 15:10:17 GMT [[local]] [28171]: [1-1] > db=postgres,user=postgres LOG:  temporary file: path > "base/pgsql_tmp/pgsql_tmp28171.0", size 382474936 > 2020-03-10 15:10:17 GMT [[local]] [28171]: [4-1] > db=postgres,user=postgres LOG:  could not send data to client: Broken pipe > 2020-03-10 15:10:17 GMT [[local]] [28171]: [5-1] > db=postgres,user=postgres FATAL:  connection to client lost > 2020-03-10 15:10:26 GMT [] [12598]: [3544-1] db=,user= LOG: >  restartpoint complete: wrote 37315 buffers (0.4%); 0 WAL file(s) > added, 0 removed, 16 recycled; write=269.943 s, sync=0.039 s, > total=269.999 s; sync files=1010, longest=0.001 s, average=0.000 s; > distance=175940 kB, estimate=416149 kB > 2020-03-10 15:10:26 GMT [] [12598]: [3545-1] db=,user= LOG:  recovery > restart point at 6424/1D7DEDE8 > > It is a cascade replication > > Il giorno mar 10 mar 2020 alle ore 15:58 Adrian Klaver > > ha scritto: > > On 3/10/20 2:26 AM, Nicola Contu wrote: > > Hello, > > I have two servers connected to the same switch running postgres 11.5 > > > > I am trying to replicate one of those servers after a planned > work on > > the master, so the replica has been lost. It has always worked > but now I > > get this : > > > > pg_basebackup: could not receive data from WAL stream: server > closed the > > connection unexpectedly > >          This probably means the server terminated abnormally > >          before or while processing the request. > > > > I don't really understand what the issue is. > > I would start with the logs from the Postgres server you are taking the > backup from. > > > I had this issue last week as well in another DC and I had to > reboot the > > slave to make it working (not sure why it helped) > > > > Do you know what can cause this? > > > > Thank you, > > Nicola > > > -- > Adrian Klaver > adrian.klaver@aklaver.com > -- Adrian Klaver adrian.klaver@aklaver.com