openldap service stops when query a user on rhel
by james000 from LinuxQuestions.org on (#5E8Y5)
Hi,
I have two servers on RHEL 7.2, running openldap and these servers are supposed to be in replication
ngia-dav-wks3
ngia-wdm-wks3
For the past couple of days, these servers are behaving strangely.
The first issue - I see contextCSN number is different for the first entry. Are they supposed to be different?
Code:[root@ngia-dav-wks3 /]# ldapsearch -x -LLL -H ldapi:/// -s base -b "dc=prod321,dc=county,dc=ia,dc=us" contextCSN dn: dc=prod321,dc=county,dc=ia,dc=us
dn: dc=prod321,dc=county,dc=ia,dc=us
contextCSN: 20210216163632.823441Z#000000#000#000000
contextCSN: 20190518194417.472262Z#000000#001#000000
[root@ngia-dav-wks3 /]#
[root@ngia-wdm-wks3 ~]# ldapsearch -x -LLL -H ldapi:/// -s base -b "dc=prod321,dc=county,dc=ia,dc=us" contextCSN dn: dc=prod321,dc=county,dc=ia,dc=us
dn: dc=prod321,dc=county,dc=ia,dc=us
contextCSN: 20190529161756.446263Z#000000#000#000000
contextCSN: 20190518194417.472262Z#000000#001#000000
[root@ngia-wdm-wks3 ~]#Second issue (bigger one) - When I try to query any user with "id -a johnd", slapd service stops on ngia-dav-wks3. And then I won't be able to do "id -a johnd" on ngia-wdm-wks3 also, though slapd will be running on that server.
I tried to understand from its logs. I see some errors, but not sure where to find it and how to fix them.
Code:First errors, after I start slapd ==>
Feb 16 13:10:26 ngia-dav-wks3 slapd[18475]: do_syncrep2: rid=001 got search entry without Sync county control (dc=prod321,dc=county,dc=ia,dc=us)
Feb 16 13:10:26 ngia-dav-wks3 slapd[18475]: do_syncrepl: rid=001 rc -1 retrying (3 retries left)
Second erros, when I do query to a user ==>
Feb 16 13:13:14 ngia-dav-wks3 slapd[18475]: bdb(dc=prod321,dc=county,dc=ia,dc=us): BDB0134 read: 0x7fd66bd16000, 6520: Bad address
Feb 16 13:13:14 ngia-dav-wks3 slapd[18475]: bdb(dc=prod321,dc=county,dc=ia,dc=us): BDB0134 read: 0x7fd66bd16000, 6520: Bad address
Feb 16 13:13:14 ngia-dav-wks3 slapd[18475]: bdb(dc=prod321,dc=county,dc=ia,dc=us): BDB0134 read: 0x7fd66bd16000, 6520: Bad address
Feb 16 13:13:14 ngia-dav-wks3 slapd[18475]: bdb(dc=prod321,dc=county,dc=ia,dc=us): BDB0134 read: 0x7fd66bd16000, 6520: Bad address
Feb 16 13:13:14 ngia-dav-wks3 slapd[18475]: bdb(dc=prod321,dc=county,dc=ia,dc=us): BDB0134 read: 0x7fd66bd16000, 6520: Bad address
Feb 16 13:13:14 ngia-dav-wks3 slapd[18475]: bdb(dc=prod321,dc=county,dc=ia,dc=us): BDB0134 read: 0x7fd66bd16000, 6520: Bad address
Feb 16 13:13:14 ngia-dav-wks3 slapd[18475]: bdb(dc=prod321,dc=county,dc=ia,dc=us): BDB0134 read: 0x7fd66bd16000, 6520: Bad address
Feb 16 13:13:14 ngia-dav-wks3 slapd[18475]: bdb(dc=prod321,dc=county,dc=ia,dc=us): BDB0134 read: 0x7fd66bd16000, 6520: Bad address
Feb 16 13:13:14 ngia-dav-wks3 slapd[18475]: bdb(dc=prod321,dc=county,dc=ia,dc=us): BDB0134 read: 0x7fd66bd16000, 6520: Bad addressPlease advise, thanks


I have two servers on RHEL 7.2, running openldap and these servers are supposed to be in replication
ngia-dav-wks3
ngia-wdm-wks3
For the past couple of days, these servers are behaving strangely.
The first issue - I see contextCSN number is different for the first entry. Are they supposed to be different?
Code:[root@ngia-dav-wks3 /]# ldapsearch -x -LLL -H ldapi:/// -s base -b "dc=prod321,dc=county,dc=ia,dc=us" contextCSN dn: dc=prod321,dc=county,dc=ia,dc=us
dn: dc=prod321,dc=county,dc=ia,dc=us
contextCSN: 20210216163632.823441Z#000000#000#000000
contextCSN: 20190518194417.472262Z#000000#001#000000
[root@ngia-dav-wks3 /]#
[root@ngia-wdm-wks3 ~]# ldapsearch -x -LLL -H ldapi:/// -s base -b "dc=prod321,dc=county,dc=ia,dc=us" contextCSN dn: dc=prod321,dc=county,dc=ia,dc=us
dn: dc=prod321,dc=county,dc=ia,dc=us
contextCSN: 20190529161756.446263Z#000000#000#000000
contextCSN: 20190518194417.472262Z#000000#001#000000
[root@ngia-wdm-wks3 ~]#Second issue (bigger one) - When I try to query any user with "id -a johnd", slapd service stops on ngia-dav-wks3. And then I won't be able to do "id -a johnd" on ngia-wdm-wks3 also, though slapd will be running on that server.
I tried to understand from its logs. I see some errors, but not sure where to find it and how to fix them.
Code:First errors, after I start slapd ==>
Feb 16 13:10:26 ngia-dav-wks3 slapd[18475]: do_syncrep2: rid=001 got search entry without Sync county control (dc=prod321,dc=county,dc=ia,dc=us)
Feb 16 13:10:26 ngia-dav-wks3 slapd[18475]: do_syncrepl: rid=001 rc -1 retrying (3 retries left)
Second erros, when I do query to a user ==>
Feb 16 13:13:14 ngia-dav-wks3 slapd[18475]: bdb(dc=prod321,dc=county,dc=ia,dc=us): BDB0134 read: 0x7fd66bd16000, 6520: Bad address
Feb 16 13:13:14 ngia-dav-wks3 slapd[18475]: bdb(dc=prod321,dc=county,dc=ia,dc=us): BDB0134 read: 0x7fd66bd16000, 6520: Bad address
Feb 16 13:13:14 ngia-dav-wks3 slapd[18475]: bdb(dc=prod321,dc=county,dc=ia,dc=us): BDB0134 read: 0x7fd66bd16000, 6520: Bad address
Feb 16 13:13:14 ngia-dav-wks3 slapd[18475]: bdb(dc=prod321,dc=county,dc=ia,dc=us): BDB0134 read: 0x7fd66bd16000, 6520: Bad address
Feb 16 13:13:14 ngia-dav-wks3 slapd[18475]: bdb(dc=prod321,dc=county,dc=ia,dc=us): BDB0134 read: 0x7fd66bd16000, 6520: Bad address
Feb 16 13:13:14 ngia-dav-wks3 slapd[18475]: bdb(dc=prod321,dc=county,dc=ia,dc=us): BDB0134 read: 0x7fd66bd16000, 6520: Bad address
Feb 16 13:13:14 ngia-dav-wks3 slapd[18475]: bdb(dc=prod321,dc=county,dc=ia,dc=us): BDB0134 read: 0x7fd66bd16000, 6520: Bad address
Feb 16 13:13:14 ngia-dav-wks3 slapd[18475]: bdb(dc=prod321,dc=county,dc=ia,dc=us): BDB0134 read: 0x7fd66bd16000, 6520: Bad address
Feb 16 13:13:14 ngia-dav-wks3 slapd[18475]: bdb(dc=prod321,dc=county,dc=ia,dc=us): BDB0134 read: 0x7fd66bd16000, 6520: Bad addressPlease advise, thanks