pg.ddx.io  pgsql-general@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Adrian Klaver <adrian.klaver@aklaver.com>
To: Nicola Contu <nicola.contu@gmail.com>
Cc: pgsql-general <pgsql-general@postgresql.org>
Subject: Re: Streaming replication - 11.5
Date: Tue, 10 Mar 2020 17:53:55 -0700
Message-ID: <1fdd13a5-d38b-8040-8261-c866bd782bd5@aklaver.com> (raw)
In-Reply-To: <CAMTZZh0fDY2QxLsbvfh4A3u4zxe8hdQjpncGZEcUNS1hRFBA1g@mail.gmail.com>
References: <CAMTZZh20bCNzf3o+OqVGbZqZ2SXjVkn-hP27A8Rpf_O_gC6yPg@mail.gmail.com>
	<89a1e4cd-1da5-7233-d8c3-5e19cc9d1b75@aklaver.com>
	<CAMTZZh0fDY2QxLsbvfh4A3u4zxe8hdQjpncGZEcUNS1hRFBA1g@mail.gmail.com>

On 3/10/20 8:17 AM, Nicola Contu wrote:
Please post to list also.
Ccing list.

What came immediately before the temporary file error?

>    2020-03-10 15:10:17 GMT [[local]] [28171]: [1-1] 
> db=postgres,user=postgres LOG:  temporary file: path 
> "base/pgsql_tmp/pgsql_tmp28171.0", size 382474936
> 2020-03-10 15:10:17 GMT [[local]] [28171]: [4-1] 
> db=postgres,user=postgres LOG:  could not send data to client: Broken pipe
> 2020-03-10 15:10:17 GMT [[local]] [28171]: [5-1] 
> db=postgres,user=postgres FATAL:  connection to client lost
> 2020-03-10 15:10:26 GMT [] [12598]: [3544-1] db=,user= LOG: 
>   restartpoint complete: wrote 37315 buffers (0.4%); 0 WAL file(s) 
> added, 0 removed, 16 recycled; write=269.943 s, sync=0.039 s, 
> total=269.999 s; sync files=1010, longest=0.001 s, average=0.000 s; 
> distance=175940 kB, estimate=416149 kB
> 2020-03-10 15:10:26 GMT [] [12598]: [3545-1] db=,user= LOG:  recovery 
> restart point at 6424/1D7DEDE8
> 
> It is a cascade replication
> 
> Il giorno mar 10 mar 2020 alle ore 15:58 Adrian Klaver 
> <adrian.klaver@aklaver.com <mailto:adrian.klaver@aklaver.com>> ha scritto:
> 
>     On 3/10/20 2:26 AM, Nicola Contu wrote:
>      > Hello,
>      > I have two servers connected to the same switch running postgres 11.5
>      >
>      > I am trying to replicate one of those servers after a planned
>     work on
>      > the master, so the replica has been lost. It has always worked
>     but now I
>      > get this :
>      >
>      > 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.
>      >
>      > I don't really understand what the issue is.
> 
>     I would start with the logs from the Postgres server you are taking the
>     backup from.
> 
>      > I had this issue last week as well in another DC and I had to
>     reboot the
>      > slave to make it working (not sure why it helped)
>      >
>      > Do you know what can cause this?
>      >
>      > Thank you,
>      > Nicola
> 
> 
>     -- 
>     Adrian Klaver
>     adrian.klaver@aklaver.com <mailto:adrian.klaver@aklaver.com>
> 


-- 
Adrian Klaver
adrian.klaver@aklaver.com





view thread (16+ messages)  latest in thread

Message-ID: <1fdd13a5-d38b-8040-8261-c866bd782bd5@aklaver.com>
Permalink:  ../1fdd13a5-d38b-8040-8261-c866bd782bd5@aklaver.com/
Also on:    postgresql.org/message-id/1fdd13a5-d38b-8040-8261-c866bd782bd5@aklaver.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-general@postgresql.org
  Cc: adrian.klaver@aklaver.com, nicola.contu@gmail.com
  Subject: Re: Streaming replication - 11.5
  In-Reply-To: <1fdd13a5-d38b-8040-8261-c866bd782bd5@aklaver.com>
  References: <CAMTZZh20bCNzf3o+OqVGbZqZ2SXjVkn-hP27A8Rpf_O_gC6yPg@mail.gmail.com> <89a1e4cd-1da5-7233-d8c3-5e19cc9d1b75@aklaver.com> <CAMTZZh0fDY2QxLsbvfh4A3u4zxe8hdQjpncGZEcUNS1hRFBA1g@mail.gmail.com> <1fdd13a5-d38b-8040-8261-c866bd782bd5@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