From: Adrian Klaver <adrian.klaver@aklaver.com>
To: greigwise <greigwise@comcast.net>
To: pgsql-general@postgresql.org
Subject: Re: pg_basebackup: could not receive data from WAL stream
Date: Sun, 2 Sep 2018 06:41:19 -0700
Message-ID: <572baa61-2a05-109d-e887-f02b0e076ada@aklaver.com> (raw)
In-Reply-To: <1535861193579-0.post@n3.nabble.com>
References: <1535861193579-0.post@n3.nabble.com>
On 09/01/2018 09:06 PM, greigwise wrote:
> Hello.
>
> On postgresql 10.5, my pg_basebackup is failing with this error:
>
> 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
>
> In the postgres log files, I'm seeing:
>
> 2018-09-02 00:57:32 UTC bkp_user 5b8b278c.11c3f [unknown] LOG: terminating
> walsender process due to replication timeout
>
> I'm running the following command right on the database server itself:
>
> pg_basebackup -U repl -D /var/tmp/pg_basebackup_20180901 -Ft -z
>
> It seems to be an intermittent problem.. I've had it fail or succeed about
> 50/50. I even bumped up the wal_sender_timeout to 2000. One notable thing
> is that I'm running on an ec2 instance on AWS.
The unit for wal_sender_timeout is ms so the above is 2 seconds whereas
the default value is 60 seconds(60s in postgresql.conf file).
See below for setting units in file:
https://www.postgresql.org/docs/10/static/config-setting.html
Also what is your max_wal_senders setting?
>
> Any advice would be helpful.
>
> Greig Wise
>
>
>
> --
> Sent from: http://www.postgresql-archive.org/PostgreSQL-general-f1843780.html
>
>
--
Adrian Klaver
adrian.klaver@aklaver.com
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-general@postgresql.org
Cc: adrian.klaver@aklaver.com, greigwise@comcast.net
Subject: Re: pg_basebackup: could not receive data from WAL stream
In-Reply-To: <572baa61-2a05-109d-e887-f02b0e076ada@aklaver.com>
References: <1535861193579-0.post@n3.nabble.com> <572baa61-2a05-109d-e887-f02b0e076ada@aklaver.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