Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.89) (envelope-from ) id 1eq6uN-0001jE-AF for pgsql-bugs@arkaria.postgresql.org; Mon, 26 Feb 2018 00:44:47 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1eq6uM-0002uA-8c for pgsql-bugs@arkaria.postgresql.org; Mon, 26 Feb 2018 00:44:46 +0000 Received: from makus.postgresql.org ([2001:4800:1501:1::229]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.89) (envelope-from ) id 1eq6uL-0002u1-Ul for pgsql-bugs@lists.postgresql.org; Mon, 26 Feb 2018 00:44:46 +0000 Received: from mail-wr0-x242.google.com ([2a00:1450:400c:c0c::242]) by makus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1eq6uF-0007Om-9j for pgsql-bugs@lists.postgresql.org; Mon, 26 Feb 2018 00:44:44 +0000 Received: by mail-wr0-x242.google.com with SMTP id l43so19505235wrc.2 for ; Sun, 25 Feb 2018 16:44:38 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=2ndquadrant-com.20150623.gappssmtp.com; s=20150623; h=subject:to:cc:references:from:message-id:date:user-agent :mime-version:in-reply-to:content-language:content-transfer-encoding; bh=UdWfLYEWmBQrTb9eAWkGnGZuuajhw7JuVW5sWZiXE5E=; b=iVg9Wmvi4N26RdB6Ks6dr0g3PSb+84WZNqmGXotcgC1+cNTJ1ESwHvXPupvKtS5F8X C0mpTMbJSb076OLr48VTK/UcAku5+ea1pqZvchFHDJCW8nCuIpQF/xRY7xhpgwg8RF6w tuRWP/j44fxb0kFQrwkkM/TXMkiRZA78kummA8zYqVo58XwFJPBRrk4QLNofAWJ2PUgK BI9eYsrh4Y2bclxxYnmi/w/TO2XSuPLN7k/YQ5NT/4tEG5gAyWyhM6uhUDzRyjFN3xCh KK/oi6EQKCbzgvgOwk/MHlFiHYwV9bZTYnmOC/NCMTHuZ1nB1DAg3SRWOeLTaTUgDltz Qh3g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:subject:to:cc:references:from:message-id:date :user-agent:mime-version:in-reply-to:content-language :content-transfer-encoding; bh=UdWfLYEWmBQrTb9eAWkGnGZuuajhw7JuVW5sWZiXE5E=; b=ZpDbNVu91WP+4mw9x1nKkrCAAQlBtEg9DUhqvYasWBUU/KVSqcnYci8y6yYlS9kJ7L ripg5kTG6BFD3TJjC/XTtPSOtf+X1MR729X2oxv1JEkGt4asNTdMDEUXqKLw0NacprkT lRoDVRTQFhNBEcAhRc3tABbh7unygs3WiA23P9P8b1dPrF8BmEEVtCCSWPaEyFvoaUE0 VPAD8/JNR+2RgsU6TBxf6P3ZcbFKEK7L0rGZLCfgb9f/HIVe0RHFop+XXIOxmq9sflF6 q58BSx/Bpfi7XE8X9ae+9drRZW/alTH7EVh+eKdaWFh4IflbLpnxUpqJ3mibCsxTsJG7 Sv9A== X-Gm-Message-State: APf1xPDyf2qbXyvCswXU9ehojhBiBSa5VsCkv3i5/ZSNzwbNXx9yQqMS 8RAEWafsVaA+61XKZs8Pk3E6xqy5yUSOhQm5NXlISVPRUZsQkGrYNoSeKI4cKkjgcuVxpGC0nkF WpSMH4grs/lEaEKPhKYmFBx6zznEN4rEh5w2BQvIU/FolE+eGOHSxuDBzpHoGZh4XY2/+8jG/6x swXcVmJJ+fVbd+ X-Google-Smtp-Source: AH8x225PnqG3OWp5Wky+13NkKvyz05E1iTHsXWKwoUwDvUOwipO93A6RN8HZfD/71QvfeoUYIyAVmQ== X-Received: by 10.223.138.153 with SMTP id y25mr7586786wry.257.1519605877050; Sun, 25 Feb 2018 16:44:37 -0800 (PST) Received: from [10.137.2.19] (ip-78-102-97-226.net.upcbroadband.cz. [78.102.97.226]) by smtp.gmail.com with ESMTPSA id 63sm9165790wms.46.2018.02.25.16.44.36 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Sun, 25 Feb 2018 16:44:36 -0800 (PST) Subject: Re: BUG #15078: Unable to receive data from WAL Stream Error To: "Kolla, Mahesh" , Tom Lane Cc: Eric Radman , "pgsql-bugs@lists.postgresql.org" References: <151932012944.3881.5301513372480676421@wrigleys.postgresql.org> <20180222172758.GD24978@vm2.eradman.com> <28c9086b7fe148ffa8fbc0a381a99ea7@transunion.com> <22119.1519323567@sss.pgh.pa.us> <83fe5de9207d46fc9ab5b500da71a99b@transunion.com> From: Tomas Vondra Message-ID: <01692319-7c0a-ee7a-9225-41b20a8ab5f7@2ndquadrant.com> Date: Mon, 26 Feb 2018 01:44:32 +0100 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.4.0 MIME-Version: 1.0 In-Reply-To: <83fe5de9207d46fc9ab5b500da71a99b@transunion.com> Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 7bit List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk On 02/22/2018 07:43 PM, Kolla, Mahesh wrote: > Hello Tom , > > Please let me know why we are getting below associated LOGS saying invalid resource manager with the FATAL message Unable to receive data from WAL Stream Error > >> sh: dev/null: No such file or directory >> sh: dev/null: No such file or directory < 2018-02-19 01:37:48.860 CST >>> LOG: invalid resource manager ID 48 at >> 15/2D69E848 > I believe that essentially means the WAL is corrupted in some way, possibly due to a network issue. I don't think I've seen such error message though, so not sure. FWIW it's really hard to investigate issues when you only copy three lines, two of which are errors in your shell script. That provides no context whatsoever. > Please kindly suggest us a value for tcp_keepalives_idle as it is > presently set to 0 > That really depends on your networking configuration, but you can try this: tcp_keepalives_idle = 60 tcp_keepalives_interval = 15 tcp_keepalives_count = 3 which essentially pings the server every 60 seconds, if the server does not respond in 15 seconds it'll try again, and will consider the connection gone after 3 failures. But it's unclear if this really is a networking issue, so hard to say if this improves the situation. regards -- Tomas Vondra http://www.2ndQuadrant.com PostgreSQL Development, 24x7 Support, Remote DBA, Training & Services