RE: replication terminated by primary server

From: Bruyninckx Kristof <Kristof(dot)Bruyninckx(at)cegeka(dot)com>
To: Payal Singh <payals1(at)umbc(dot)edu>
Cc: "pgsql-general(at)lists(dot)postgresql(dot)org" <pgsql-general(at)lists(dot)postgresql(dot)org>
Subject: RE: replication terminated by primary server
Date: 2017-12-08 11:30:26
Message-ID: 3cb87ae8daba4f6db7a587a72852302b@SVINTMAIL03.cegekanv.corp.local
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

I’ve been going over the log of the system at the time of the crash, but I’m not seeing something that stands out as telling me anymore about the reason of either the crash or the failure to start the replication again. I’m attaching a part of the log file to this mail.

Correct me if I’m wrong but the “select * from pg_stat_archiver” is linked with WAL archiving, correct ? Currently this system has archiving switch off. For backup purposes we are running scheduled pg_dumps of each database.
So it didn’t give me any output. Which I think is normal since we switched it off.

To setup the replication we used the pg_basebackup with the --xlog-method=stream option this way pg_basebackup will not only copy the data as it is, but also stream the XLOG being created during the base backup to our destination server.
Not sure what the problem is since it appears to being able to perform these actions without any reported error.

Cheers,

Kristof

From: Payal Singh [mailto:payals1(at)umbc(dot)edu]
Sent: donderdag 7 december 2017 19:29
To: Bruyninckx Kristof <Kristof(dot)Bruyninckx(at)cegeka(dot)com>
Cc: pgsql-general(at)lists(dot)postgresql(dot)org
Subject: Re: replication terminated by primary server

On Wed, Dec 6, 2017 at 8:07 AM, Bruyninckx Kristof <Kristof(dot)Bruyninckx(at)cegeka(dot)com<mailto:Kristof(dot)Bruyninckx(at)cegeka(dot)com>> wrote:

In our environment, we have a master slave replication setup that has been working stable for the last year.
Host systems are debian Jessie and we are using postgres 9.4.
Now recently we have experienced a crash/hung master, and after restarting the postgress services on here the replication stopped working. The master however is running seemingly normal, except for the errors reported when it got restarted. After this nothing error related is reported.

Might want to check the master postgres logs during and after crash as well. Also, check for wal file progress on master (select * from pg_stat_archiver).

--
Payal Singh
Graduate Student
Department of Computer Science and Electrical Engineering
University of Maryland, Baltimore County

Attachment Content-Type Size
db.log application/octet-stream 257.0 KB

In response to

Browse pgsql-general by date

  From Date Subject
Next Message chiru r 2017-12-08 12:40:41 Secured ldap connectivity between PostgreSQL and LDAPs server
Previous Message Jakub Glapa 2017-12-08 07:59:07 Re: ERROR: too many dynamic shared memory segments