[Date Prev][Date Next] [Chronological] [Thread] [Top]

Re: syncrepl slaves all quit after master restart - not a single retry

Nick Urbanik wrote:
Dear Alex,

On 28/07/10 18:57 -0400, Alexander Ivanov wrote:
Hello guys, I have a problem with delta-syn replication (all set up
according to 'official' guide
- http://www.openldap.org/doc/admin24/replication.html#Delta-syncrepl
>I'm running openldap 2.3.43-12.el5_5.1 from standard CentOS 5.4
I am running the same openldap as you, on CentOS 5.5.

It's generally a mistake to read the docs for a different version of the software than you're actually running.

I have master instance with logs 'shipped' to a client - it all works
fine as long as connection is good.  Getting ready to move into
production I'm trying to emulate connectivity problems and here where
I got problems.


once I have server disconnected (I sumply restart slapd on master), the client
not even tries to re-connect, the log below shows modificatin operation at
18:34:18 that went fine and 11 seconds later I restart master's ldap service
(which became immediately available again):

I am having the same trouble, but with ordinary syncrepl.  As soon as
the master is restarted, the slaves all quit their syncrepl threads, and
never start  again:

syncrepl     rid=003

If you see any problems with these configuration files, please let me
know, even if they do not relate to the problem of syncrepl
terminating after master is restarted.

You have no "retry" parameter in your syncrepl config, so naturally it does not retry. It always helps to actually Read The correct FM, slapd.conf(5) in your case.

  -- Howard Chu
  CTO, Symas Corp.           http://www.symas.com
  Director, Highland Sun     http://highlandsun.com/hyc/
  Chief Architect, OpenLDAP  http://www.openldap.org/project/