Zimbra offers Open Source email server software and shared calendar for Linux and the Mac
Go Back   Zimbra :: Forums > Zimbra Collaboration Suite > Administrators

Welcome to the Zimbra :: Forums!
Welcome, if you would like to post a comment please register. We also encourage you to explore all things Zimbra with our team and members of the community.

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 10-07-2009, 05:19 AM
Active Member
 
Posts: 31
Unhappy zimbra LDAP crash when start

hi all, i having problems starting my zimbra server, here's the output error:

zimbra@mail:~/data/ldap/hdb/db$ zmcontrol start
Host mail.ipiscpt.rimed.cu
Starting ldap...Done.
Failed.
Failed to start slapd. Attempting debug start to determine error.
hdb_db_open: database "": db_open(/opt/zimbra/data/ldap/hdb/db/id2entry.bdb) failed: Invalid argument (22).
backend_startup_one: bi_db_open failed! (22)
bdb_db_close: database "": alock_close failed


Thanks in advance

Hrch
Reply With Quote
  #2 (permalink)  
Old 10-07-2009, 02:08 PM
Moderator
 
Posts: 1,147
Default

Does the file mentioned (/opt/zimbra/data/ldap/hdb/db/id2entry.bdb) exist? Are the permissions correct? (640 zimbra:zimbra)
Reply With Quote
  #3 (permalink)  
Old 10-07-2009, 03:02 PM
Active Member
 
Posts: 31
Default

yeah, that file exist and the permission are ok as you mention, the problem apper to be in the integrity of the ldap database, i need save this server in thsi state because the backup has 1 day old with one difference around 200 new users and changes in 100 accounts.

Thanks in advance

Hermidio
Reply With Quote
  #4 (permalink)  
Old 10-07-2009, 04:01 PM
Zimbra Employee
 
Posts: 184
Default

Have tried restore the ldap config from the latest backups?

1) zmcontrol stop

2) mv /opt/zimbra/data/ldap/hdb /opt/zimbra/data/ldap/hdb.OLD

3) mkdir -p /opt/zimbra/data/ldap/hdb/db /opt/zimbra/data/ldap/hdb/logs
3a) This maybe optional, but copy /opt/zimbra/data/ldap/hdb.OLD/db/DB_CONFIG to /opt/zimbra/data/ldap/hdb/db

4) cp ~/backup/sessions/latest-backup-2009xxxx.xxxxxx.xx/ldap/ldap.bak /tmp/ldap.bak

5) /opt/zimbra/openldap/sbin/slapadd -q -b "" -F /opt/zimbra/data/ldap/config -cv -l /tmp/ldap.bak

6) ldap start

If you can start ldap, you should be good to go.
Reply With Quote
  #5 (permalink)  
Old 10-07-2009, 04:12 PM
Active Member
 
Posts: 31
Default

you assume that I have a backup of yesterday? or I can do what you explain with the current installation?

Greetings and thanks for your response!

Hermidio
Reply With Quote
  #6 (permalink)  
Old 10-07-2009, 05:08 PM
Zimbra Employee
 
Posts: 184
Default

You might need to elaborate on your statement:

>>i need save this server in this state because the backup has 1 day old with one difference around 200 new users and changes in 100 accounts.

You are not running Network Edition, correct? You will need to elaborate on how you are saving the ldap config during backups.

If you have a current ldap.bak file, possibly in ~/data/ldap/, then you should be able to restore the ldap config
Reply With Quote
  #7 (permalink)  
Old 10-07-2009, 07:37 PM
Active Member
 
Posts: 31
Default

Well I was reviewing the contents of the directory looking for files you mention. , but it happens that the time stamps do not match the date of the disaster on my server are over 10 days, the backups that were exact copies to directory /opt/zimbra, and the only backup that funtion OK is that of the previous day the disaster, can i fix my server with these files .back with 10 days old? to restore?
Reply With Quote
  #8 (permalink)  
Old 08-16-2011, 12:45 AM
Active Member
 
Posts: 48
Default

Good explanation, helped alot!
Luckily, some ldap-backups were in the ldap-datadir.
Some wise dev. might have put them there automagically ;-)
Reply With Quote
Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes


Similar Threads

Why Join?

Registering let's you ask questions, makes it easier to search, displays any files attached to posts, and notifies you about replies.

blog.zimbra.com




 

SEO by vBSEO ©2011, Crawlability, Inc.