Page 1 of 1

[Solved] Ldap MDB file corrupted

Posted: Thu Aug 06, 2015 3:28 pm
by evilside
Hi, my Zimbra 8.0.7 in Ubuntu 10.04 not start, I get this error:
Host correo.alguien.dom
Starting ldap...Done.
Failed.
Failed to start slapd. Attempting debug start to determine error.
55c39d91 mdb_db_open: database "": mdb_dbi_open(/opt/zimbra/data/ldap/mdb/db/ad2i) failed: MDB_CORRUPTED: Located page was wrong type (-30796).
55c39d91 backend_startup_one (type=mdb, suffix=""): bi_db_open failed! (-30796)
How to repair MDB file?

[Solved] Ldap MDB file corrupted

Posted: Sun Sep 06, 2015 9:20 am
by Gavin-T
try searching for your problem before posting. This one is already solved.



https://community.zimbra.com/collaborat ... /t/1091407

[Solved] Ldap MDB file corrupted

Posted: Sun Sep 06, 2015 1:12 pm
by evilside
Thanks, but my problem was other. Here is my solution in spanish: http://community.zimbra.com/hispano/f/1937/t/1139991

Re: [Solved] Ldap MDB file corrupted

Posted: Thu Aug 23, 2018 4:14 pm
by maumar
evilside wrote:Thanks, but my problem was other. Here is my solution in spanish: http://community.zimbra.com/hispano/f/1937/t/1139991

http://community.zimbra.com/ does not open,
[rant]
thnx to those people that do not waste his time to rewrite the solution here
[/rant]

Re: [Solved] Ldap MDB file corrupted

Posted: Thu Aug 23, 2018 4:20 pm
by phoenix
There is another one that encountered the same problem on the internet: https://blog.sajjan.com.np/2016/03/06/zimbra-recovery/ - I haven't read that but is it of any use?

Re: [Solved] Ldap MDB file corrupted

Posted: Thu Aug 23, 2018 5:59 pm
by L. Mark Stone
maumar wrote:
evilside wrote:Thanks, but my problem was other. Here is my solution in spanish: http://community.zimbra.com/hispano/f/1937/t/1139991

http://community.zimbra.com/ does not open,
[rant]
thnx to those people that do not waste his time to rewrite the solution here
[/rant]
The reply containing that link is from three years ago FWIW, but yes, posting the actual steps instead of a link would have been better.

Sometimes just dumping and re-adding the LDAP database works:

Code: Select all

ldap stop
/opt/zimbra/libexec/zmslapcat /tmp (or other good location)
cd /opt/zimbra/data/ldap
mv mdb mdb.backup
mkdir -p mdb/db
cd ~
/opt/zimbra/libexec/zmslapadd /tmp/ldap.bak
ldap start
Hope that helps,
Mark

Re: [Solved] Ldap MDB file corrupted

Posted: Sun Jan 13, 2019 8:12 am
by myzamri
I got this error while running the command :

/opt/zimbra/libexec/zmslapcat /tmp
5c3af248 mdb_db_open: database "": mdb_dbi_open(/opt/zimbra/data/ldap/mdb/db/ad2i) failed: MDB_PAGE_NOTFOUND: Requested page not found (-30797).
5c3af248 backend_startup_one (type=mdb, suffix=""): bi_db_open failed! (-30797)
slap_startup failed

Re: [Solved] Ldap MDB file corrupted

Posted: Thu Feb 13, 2020 1:35 pm
by bvillers
The link provided in the solution is no longer available:
https://community.zimbra.com/collaborat ... /t/1091407

It is purported to have solution of problem:

Starting ldap:
Failed.
Failed to start slapd. Attempting to debug start to determine error.
mdb_db_open: database "": mdb_dbi_open(/opt/zimbra/data/ldap/mdb/db/ad2i) failed: MDB_CORRUPTED: Located page was wrong type (-30796).
backend_startup_one (type=mdb, suffix=""): bi_db_open failed! (-30796)