[Solved] Ldap MDB file corrupted

General discussion about Zimbra Desktop.
User avatar
evilside
Advanced member
Advanced member
Posts: 55
Joined: Sat Sep 13, 2014 3:24 am
Location: Chile
ZCS/ZD Version: zcs-8.7.9_GA_1794.UBUNTU14_64

[Solved] Ldap MDB file corrupted

Postby evilside » Thu Aug 06, 2015 3:28 pm

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?



Gavin-T
Posts: 5
Joined: Mon Nov 17, 2014 6:14 am

[Solved] Ldap MDB file corrupted

Postby Gavin-T » Sun Sep 06, 2015 9:20 am

try searching for your problem before posting. This one is already solved.



https://community.zimbra.com/collaboration/f/1886/t/1091407
User avatar
evilside
Advanced member
Advanced member
Posts: 55
Joined: Sat Sep 13, 2014 3:24 am
Location: Chile
ZCS/ZD Version: zcs-8.7.9_GA_1794.UBUNTU14_64

[Solved] Ldap MDB file corrupted

Postby evilside » Sun Sep 06, 2015 1:12 pm

Thanks, but my problem was other. Here is my solution in spanish: http://community.zimbra.com/hispano/f/1937/t/1139991
User avatar
maumar
Outstanding Member
Outstanding Member
Posts: 372
Joined: Fri Sep 12, 2014 10:28 pm

Re: [Solved] Ldap MDB file corrupted

Postby maumar » Thu Aug 23, 2018 4:14 pm

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]
phoenix
Ambassador
Ambassador
Posts: 25814
Joined: Fri Sep 12, 2014 9:56 pm

Re: [Solved] Ldap MDB file corrupted

Postby phoenix » Thu Aug 23, 2018 4:20 pm

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?
Regards

Bill

Rspamd: A high performance spamassassin replacement

If you'd like to see this implemented in a future version of ZCS then please vote on Bugzilla entries 97706 & 108168
User avatar
L. Mark Stone
Elite member
Elite member
Posts: 1898
Joined: Wed Oct 09, 2013 11:35 am
Location: Portland, Maine
ZCS/ZD Version: 8.8.10 Network Edition
Contact:

Re: [Solved] Ldap MDB file corrupted

Postby L. Mark Stone » Thu Aug 23, 2018 5:59 pm

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
___________________________________
L. Mark Stone
Mission Critical Email - Zimbra VAR/BSP/Training Partner https://www.missioncriticalemail.com/
Zeta Alliance http://www.zetalliance.org/

Return to “General Questions”

Who is online

Users browsing this forum: No registered users and 11 guests