Re: pg_basebackup: could not receive data from WAL stream

2018-09-02 Thread Kaixi Luo
wal_sender_timeout should be as long as necessary. Each wal file is 16MB, so it should be *at least* as long as the time needed to transfer 16MB*wal_keep_segments. Take a look at the size of your pg_xlog folder. On Sun, Sep 2, 2018 at 3:41 PM Adrian Klaver wrote: > On 09/01/2018 09:06 PM, greigw

Re: pg_basebackup: could not receive data from WAL stream

2018-09-02 Thread Adrian Klaver
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 r

Re: pg_basebackup: could not receive data from WAL stream

2018-09-01 Thread greigwise
I should also add that when it fails, it's always right at the very end of the backup when it's very nearly done or maybe even after it's done. Thanks again. Greig -- Sent from: http://www.postgresql-archive.org/PostgreSQL-general-f1843780.html