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 1gjn3n-0007pu-5c for pgsql-admin@arkaria.postgresql.org; Wed, 16 Jan 2019 15:24:55 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1gjn3l-0008HW-Tp for pgsql-admin@arkaria.postgresql.org; Wed, 16 Jan 2019 15:24:53 +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 1gjn3l-0008HP-JM for pgsql-admin@lists.postgresql.org; Wed, 16 Jan 2019 15:24:53 +0000 Received: from hermes.gatewaynet.com ([193.92.121.98]) by makus.postgresql.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1gjn3h-00062W-A0 for pgsql-admin@lists.postgresql.org; Wed, 16 Jan 2019 15:24:52 +0000 Received: from smadev.internal.net (pc131.internal.net [10.9.200.131]) by hermes.gatewaynet.com (8.14.3/8.14.3/Debian-9.4) with ESMTP id x0GFOe3p003153 for ; Wed, 16 Jan 2019 17:24:45 +0200 Received: from smadev.internal.net (smadev [10.9.200.131]) by smadev.internal.net (8.15.2/8.15.2) with ESMTP id x0GFOevr056910 for ; Wed, 16 Jan 2019 17:24:40 +0200 (EET) (envelope-from achill@matrix.gatewaynet.com) To: pgsql-admin@lists.postgresql.org From: Achilleas Mantzios Subject: pgBackRest : "ERROR: [042]: unexpected EOF reading line from remote process on" and stale pgbackrest processes hanging Message-ID: Date: Wed, 16 Jan 2019 17:24:40 +0200 User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:60.0) Gecko/20100101 Thunderbird/60.3.2 MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 8bit Content-Language: en-US X-Virus-Scanned: clamav-milter 0.98.7 at hermes X-Virus-Status: Clean X-Spam-Status: No, score=-28.9 required=5.0 tests=ALL_TRUSTED,DYN_HAM_COORD, DYN_HAM_IT,DYN_HAM_NAUTICAL,TW_PG autolearn=unavailable version=3.3.1 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on hermes.gatewaynet.com List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk Hello List, I had this error today with postgresql 10.6 and pgbackrest 2.07. I was running test backups and during a backup The command given to the repo host (pg1-host=10.9.0.77) was : pgbackrest@smadb2cs:~$ pgbackrest --stanza=dynacomtest backup I noticed that the (two) ssh login sessions to the repo host just froze. No disconnections, just froze. So some network problem surely occurred. On the repo host pgbackrest log I got : 2019-01-16 12:20:38.372 P00  ERROR: [042]: unexpected EOF reading line from remote process on '10.9.0.77' on the pg host (10.9.0.77) I noticed that the pgbackrest backup processes had died, the only ones running was spawn from the archive-push , however on the repo host the pgbackrest processes were alive, when in fact the backup was stalled. On the repo I got : root@smadb2cs:/home/pgbackrest# netstat -apn | grep 10.9.0.77 tcp        0     88 10.9.1.22:43837 10.9.0.77:22            ESTABLISHED 11918/ssh tcp        0     88 10.9.1.22:43838 10.9.0.77:22            ESTABLISHED 11920/ssh tcp        0     88 10.9.1.22:43839 10.9.0.77:22            ESTABLISHED 11919/ssh tcp        0     88 10.9.1.22:43840 10.9.0.77:22            ESTABLISHED 11922/ssh root@smadb2cs:/home/pgbackrest# netstat -anp --timers | grep 0.77 tcp        0     88 10.9.1.22:43837 10.9.0.77:22            ESTABLISHED 11918/ssh        on (65.50/12/0) tcp        0     88 10.9.1.22:43838 10.9.0.77:22            ESTABLISHED 11920/ssh        on (69.60/12/0) tcp        0     88 10.9.1.22:43839 10.9.0.77:22            ESTABLISHED 11919/ssh        on (65.50/12/0) tcp        0     88 10.9.1.22:43840 10.9.0.77:22            ESTABLISHED 11922/ssh        on (61.40/12/0) In order to start a new backup I had to kill the 4 processes. Is this behavior normal ? Would the 4 processes be killed due to KEEPALIVE settings eventually ? -- Achilleas Mantzios IT DEV Lead IT DEPT Dynacom Tankers Mgmt