Problem: mdb.c:2121: Assertion 'rc == 0' failed in mdb_page_dirty()

Problem:

620cd0a3 mdb_idl_delete_keys: 6e5d7 [3f5323a5]
620cd0a3 mdb_idl_delete_keys: 6e5d7 [c61a1c78]
../../../../../servers/slapd/back-mdb/../../../libraries/liblmdb/mdb.c:2121: Assertion 'rc == 0' failed in mdb_page_dirty()
Abgebrochen

Investigation:

You can find this message in /var/log/univention/listener.log or you face the problem, that slapd is not starting anymore.

How to debug slapd starting:

Soultion:

1. If you find this message in /var/log/univention/listener.log you should recreate the listener cache:

2. If you find this message comming from slapd you can recreate the database and its data like this:

root@ucs:~# mkdir ldap-backup 
root@ucs:~# cd ldap-backup 
root@ucs:~/ldap-backup# /etc/init.d/slapd stop 
root@ucs:~/ldap-backup# slapcat > backup.ldif
root@ucs:~# cd
root@ucs:~# mkdir DB
root@ucs:~# mv /var/lib/univention-ldap/ldap/* DB/
root@ucs:~# ucr commit /var/lib/univention-ldap/ldap/DB_CONFIG 
root@ucs:~# slapadd < ldap-backup/backup.ldif 
root@ucs:~# /etc/init.d/slapd start
Mastodon