[Date Prev][Date Next]
syncrepl (refreshAndPersist) consumer cannot reconnect after provider
My slapd consumer server uses syncrepl to connect with provider server.
I use refreshAndPersist mode, and everything works fine until I stop and start a
gain my provider server.
Then my consumer server looses connection and cannot reconnect to provider serve
1) I start provider slapd.
2) I start consumer slapd
Now everything works fine. All changes from provider to consumer are replicated
Connection is ESTABLISHED between two machines sockets (netstat -an).
3) I stop provider slapd.
There is _NO_ ESTABLISHED socket connection between two servers.
My consumer slapd log says:
do_syncrep2 : Can't contact LDAP server
4) I start provider slapd once again.
There is still _NO_ ESTABLISHED socket connection, (even after 5 minutes despit
e of 20sec interval set)
Now everything what I update on provider is NOT replicated.
My consumer slapd log repeats after search command::
5) Now if I restart consumer slapd everything works fine.
Connection is ESTABLISTHED (netstat -an).
FreeBSD 5.2.1-RELEASE & 6.0-CURRENT
sessionlog 123 200
consumer (replica) slapd.conf:
If you know how to solve it,
please let me know.
Is it somehow possible to automaticaly apply changes from my slave server to mas
ter slapd server, after master being out of services.
Or automatically apply changes between two slapd servers eg some users change 1s
t server, some users change data on 2nd server, but I want two have identical di
rectory databases on both servers.
If it is not possible to do with openldap, where can I find it?