Results 1 to 8 of 8

Thread: zimbra LDAP crash when start

  1. #1
    hrch is offline Active Member
    Join Date
    Aug 2009
    Posts
    31
    Rep Power
    5

    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

  2. #2
    ArcaneMagus's Avatar
    ArcaneMagus is offline Moderator
    Join Date
    Feb 2007
    Location
    Portland, OR
    Posts
    1,147
    Rep Power
    10

    Default

    Does the file mentioned (/opt/zimbra/data/ldap/hdb/db/id2entry.bdb) exist? Are the permissions correct? (640 zimbra:zimbra)

  3. #3
    hrch is offline Active Member
    Join Date
    Aug 2009
    Posts
    31
    Rep Power
    5

    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

  4. #4
    king0770's Avatar
    king0770 is offline Zimbra Employee
    Join Date
    Sep 2007
    Posts
    186
    Rep Power
    7

    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.

  5. #5
    hrch is offline Active Member
    Join Date
    Aug 2009
    Posts
    31
    Rep Power
    5

    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

  6. #6
    king0770's Avatar
    king0770 is offline Zimbra Employee
    Join Date
    Sep 2007
    Posts
    186
    Rep Power
    7

    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

  7. #7
    hrch is offline Active Member
    Join Date
    Aug 2009
    Posts
    31
    Rep Power
    5

    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?

  8. #8
    leSasch is offline Senior Member
    Join Date
    Jun 2010
    Posts
    56
    Rep Power
    4

    Default

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

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. [SOLVED] Moving Zimbra to a new server
    By krolen in forum Administrators
    Replies: 109
    Last Post: 02-05-2009, 11:38 AM
  2. Replies: 8
    Last Post: 01-20-2009, 01:06 PM
  3. Big Fubar on 5 FOSS GA Upgrade
    By uxbod in forum Administrators
    Replies: 24
    Last Post: 01-21-2008, 03:37 AM
  4. 3.1 on FC4 problems
    By cohnhead in forum Installation
    Replies: 8
    Last Post: 05-26-2006, 11:16 AM
  5. Mail logs
    By Rick Baker in forum Installation
    Replies: 8
    Last Post: 01-17-2006, 04:33 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •