[Solved] Ldap MDB file corrupted

General discussion about Zimbra Desktop.
Post Reply
User avatar
evilside
Advanced member
Advanced member
Posts: 62
Joined: Sat Sep 13, 2014 3:24 am
Location: Chile
ZCS/ZD Version: zcs-8.8.15_GA_3918.UBUNTU14_64

[Solved] Ldap MDB file corrupted

Post 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?
Gavin-T
Posts: 5
Joined: Mon Nov 17, 2014 6:14 am

[Solved] Ldap MDB file corrupted

Post by Gavin-T »

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



https://community.zimbra.com/collaborat ... /t/1091407
User avatar
evilside
Advanced member
Advanced member
Posts: 62
Joined: Sat Sep 13, 2014 3:24 am
Location: Chile
ZCS/ZD Version: zcs-8.8.15_GA_3918.UBUNTU14_64

[Solved] Ldap MDB file corrupted

Post by evilside »

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: 390
Joined: Fri Sep 12, 2014 10:28 pm

Re: [Solved] Ldap MDB file corrupted

Post 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]
phoenix
Ambassador
Ambassador
Posts: 27272
Joined: Fri Sep 12, 2014 9:56 pm
Location: Liverpool, England

Re: [Solved] Ldap MDB file corrupted

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

Bill

Rspamd: A high performance spamassassin replacement

Per ardua ad astra
User avatar
L. Mark Stone
Ambassador
Ambassador
Posts: 2796
Joined: Wed Oct 09, 2013 11:35 am
Location: Portland, Maine, US
ZCS/ZD Version: 10.0.6 Network Edition
Contact:

Re: [Solved] Ldap MDB file corrupted

Post 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
___________________________________
L. Mark Stone
Mission Critical Email - Zimbra VAR/BSP/Training Partner https://www.missioncriticalemail.com/
AWS Certified Solutions Architect-Associate
myzamri
Posts: 20
Joined: Tue Mar 28, 2017 2:46 am

Re: [Solved] Ldap MDB file corrupted

Post 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
bvillers
Posts: 18
Joined: Wed Nov 16, 2016 11:07 am

Re: [Solved] Ldap MDB file corrupted

Post 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)
Post Reply