Search Postgresql Archives

RE: replication terminated by primary server

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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@xxxxxxxx]
Sent: donderdag 7 december 2017 19:29
To: Bruyninckx Kristof <Kristof.Bruyninckx@xxxxxxxxxx>
Cc: pgsql-general@xxxxxxxxxxxxxxxxxxxx
Subject: Re: replication terminated by primary server

 

 

 

On Wed, Dec 6, 2017 at 8:07 AM, Bruyninckx Kristof <Kristof.Bruyninckx@xxxxxxxxxx> 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: db.log
Description: db.log


[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Index of Archives]     [Postgresql Jobs]     [Postgresql Admin]     [Postgresql Performance]     [Linux Clusters]     [PHP Home]     [PHP on Windows]     [Kernel Newbies]     [PHP Classes]     [PHP Books]     [PHP Databases]     [Postgresql & PHP]     [Yosemite]

  Powered by Linux