pg.ddx.io  pgsql-bugs@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Kolla, Mahesh <Mahesh.Kolla@transunion.com>
To: Tomas Vondra <tomas.vondra@2ndquadrant.com>
Cc: Eric Radman <ericshane@eradman.com>
Cc: pgsql-bugs@lists.postgresql.org <pgsql-bugs@lists.postgresql.org>
Subject: RE: BUG #15078: Unable to receive data from WAL Stream Error
Date: Mon, 26 Feb 2018 21:49:33 +0000
Message-ID: <5745a050aefd493f838a8c17516454a3@transunion.com> (raw)
In-Reply-To: <01692319-7c0a-ee7a-9225-41b20a8ab5f7@2ndquadrant.com>
References: <151932012944.3881.5301513372480676421@wrigleys.postgresql.org>
	<20180222172758.GD24978@vm2.eradman.com>
	<28c9086b7fe148ffa8fbc0a381a99ea7@transunion.com>
	<22119.1519323567@sss.pgh.pa.us>
	<83fe5de9207d46fc9ab5b500da71a99b@transunion.com>
	<01692319-7c0a-ee7a-9225-41b20a8ab5f7@2ndquadrant.com>

Hello Tomas,

Thank you for the suggestions. 

We are not getting any other errors in our stand by database .This  error is written directly to postgres.log by Logger process. We are not running any shell script for it .

It is showing dev/null :no such file or directory may be because of this command 
restore_command='cp /archive/%f %p 2>/dev/null' in recovery.conf file 

Please let me know whether it gives any clue to answer this problem

Thank you
Mahesh Kolla
 

-----Original Message-----
From: Tomas Vondra [mailto:tomas.vondra@2ndquadrant.com] 
Sent: Sunday, February 25, 2018 6:45 PM
To: Kolla, Mahesh <Mahesh.Kolla@transunion.com>; Tom Lane <tgl@sss.pgh.pa.us>
Cc: Eric Radman <ericshane@eradman.com>; pgsql-bugs@lists.postgresql.org
Subject: Re: BUG #15078: Unable to receive data from WAL Stream Error


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                  https://urldefense.proofpoint.com/v2/url?u=http-3A__www.2ndQuadrant.com&d=DwICaQ&c=7gn0PlAmr...
PostgreSQL Development, 24x7 Support, Remote DBA, Training & Services

Attachments:

  PGP.sig (application/pgp-signature, 474B) download

view thread (8+ messages)

Message-ID: <5745a050aefd493f838a8c17516454a3@transunion.com>
Permalink:  ../5745a050aefd493f838a8c17516454a3@transunion.com/
Also on:    postgresql.org/message-id/5745a050aefd493f838a8c17516454a3@transunion.com

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-bugs@postgresql.org
  Cc: Mahesh.Kolla@transunion.com, tomas.vondra@2ndquadrant.com, ericshane@eradman.com
  Subject: Re: BUG #15078: Unable to receive data from WAL Stream Error
  In-Reply-To: <5745a050aefd493f838a8c17516454a3@transunion.com>
  References: <151932012944.3881.5301513372480676421@wrigleys.postgresql.org> <20180222172758.GD24978@vm2.eradman.com> <28c9086b7fe148ffa8fbc0a381a99ea7@transunion.com> <22119.1519323567@sss.pgh.pa.us> <83fe5de9207d46fc9ab5b500da71a99b@transunion.com> <01692319-7c0a-ee7a-9225-41b20a8ab5f7@2ndquadrant.com> <5745a050aefd493f838a8c17516454a3@transunion.com>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox