On Tue, Mar 29, 2016 at 8:20 PM, Brian Reichert <reichert@numachi.com> wrote:
On Tue, Mar 29, 2016 at 12:11:29PM +0200, Prashanth P.Nair wrote:
> Hello
> Am using OpenLDAP 'openldap-2.4.31' on debian. I have configured syncrepl
> .Everything work???s normal. But frequently am getting below Error. The log
> file ownership is getting changed any one of the node automatically .

Does that node run any of the db_checkpoint utilities as a user
other than your openldap UID?

I shot myself in the foot with a backup script that ran as root,
and it would sometimes mess with the ownership of the transaction

> Br/Prashanth

Thanks Brian

Yes.i have back up script which runs as root. But it stores the back file in different location .

here is the script.

/usr/bin/logger -t ldap_backup "Starting hourly LDAP backup"
for each in 1 2 3 4 5 6; do /usr/bin/logger -t ldap_backup "Backing up database number $each"; /usr/sbin/slapcat -n $each -l /var/backup/$(date +%F_%H%M)_$each.ldif; done
/usr/bin/logger -t ldap_backup "Hourly LDAP backup finished."


root@-02:~# ls -lt /var/
total 36
drwxr-xr-x  2 root root  16384 Mar 30 12:14 backup
root@02:~# ls -lt /var/lib/
 drwxr-xr-x 12 openldap openldap 4096 Feb 21  2014 ldap
Brian Reichert                          <reichert@numachi.com>
BSD admin/developer at large