Results 1 to 2 of 2

Thread: Possible db corruption

  1. #1
    Join Date
    Aug 2010
    Posts
    4
    Rep Power
    5

    Default Possible db corruption

    I woke up on Sunday to find that my installation of Zimbra was not running.

    zmcontrol status showed that nothing was running and zmcontrol start failed at ldap with the following message:

    [zimbra@zimbra ~]$ zmcontrol start
    Host zimbra.solveitsimply.local
    Starting ldap...Done.
    Failed.
    Failed to start slapd. Attempting debug start to determine error.
    daemon: listen(ldap://zimbra.solveitsimply.local:389, 5) failed errno=98 (Address already in use)

    From what I can see on the forums there seems to be an option to recover a corrupt db but the instrutions I have seen refer to a sleepycat directory which I don't appear to have on my installation:

    http://www.zimbra.com/forums/adminis...-solution.html

    "$ cd /opt/zimbra/openldap-data
    $ /opt/zimbra/sleepycat/bin/db_recover"

    Does anyone have any suggestions on how to recover the db on community edition v6.0.7_GA_2686?

    Any help greatly appreciated. Let me know if you need more info.

    The logs show that the Zimbra services had to randomly restart at about 4:40AM

    [normal activity] Nov 20 04:40:11 zimbra postfix/qmgr[5497]: DBB3A652FB: removed

    [restart occurs] Nov 20 04:45:34 zimbra zimbramon[1315]: 1315:info: Starting services initiated by zmcontrol
    Nov 20 04:45:34 zimbra slapd[1362]: @(#) $OpenLDAP: slapd 2.4.22 (Jun 10 2010 14:08:22) $#012#011build@build29.lab.zimbra.com:/home/build/p4/main/ThirdParty/openldap/openldap-2.4.22.3z/servers/slapd
    Nov 20 04:45:35 zimbra slapd[1363]: hdb_db_open: database "": unclean shutdown detected; attempting recovery.
    Nov 20 04:45:37 zimbra slapd[1363]: slapd starting
    Nov 20 04:45:37 zimbra slapd[1363]: daemon: listen(ldap://zimbra.solveitsimply.local:389, 5) failed errno=98 (Address already in use)
    Nov 20 04:45:37 zimbra slapd[1363]: slapd stopped.
    Nov 20 04:45:40 zimbra slapd[1367]: @(#) $OpenLDAP: slapd 2.4.22 (Jun 10 2010 14:08:22) $#012#011build@build29.lab.zimbra.com:/home/build/p4/main/ThirdParty/openldap/openldap-2.4.22.3z/servers/slapd
    Nov 20 04:45:40 zimbra slapd[1368]: slapd starting
    Nov 20 04:45:40 zimbra slapd[1368]: daemon: listen(ldap://zimbra.solveitsimply.local:389, 5) failed errno=98 (Address already in use)
    Nov 20 04:45:40 zimbra slapd[1368]: slapd stopped.

  2. #2
    phoenix is offline Zimbra Consultant & Moderator
    Join Date
    Sep 2005
    Location
    Vannes, France
    Posts
    23,587
    Rep Power
    58

    Default

    Quote Originally Posted by Orangeruffy View Post
    [restart occurs] Nov 20 04:45:34 zimbra zimbramon[1315]: 1315:info: Starting services initiated by zmcontrol
    Nov 20 04:45:34 zimbra slapd[1362]: @(#) $OpenLDAP: slapd 2.4.22 (Jun 10 2010 14:08:22) $#012#011build@build29.lab.zimbra.com:/home/build/p4/main/ThirdParty/openldap/openldap-2.4.22.3z/servers/slapd
    Nov 20 04:45:35 zimbra slapd[1363]: hdb_db_open: database "": unclean shutdown detected; attempting recovery.
    Nov 20 04:45:37 zimbra slapd[1363]: slapd starting
    Nov 20 04:45:37 zimbra slapd[1363]: daemon: listen(ldap://zimbra.solveitsimply.local:389, 5) failed errno=98 (Address already in use)
    Nov 20 04:45:37 zimbra slapd[1363]: slapd stopped.
    Nov 20 04:45:40 zimbra slapd[1367]: @(#) $OpenLDAP: slapd 2.4.22 (Jun 10 2010 14:08:22) $#012#011build@build29.lab.zimbra.com:/home/build/p4/main/ThirdParty/openldap/openldap-2.4.22.3z/servers/slapd
    Nov 20 04:45:40 zimbra slapd[1368]: slapd starting
    Nov 20 04:45:40 zimbra slapd[1368]: daemon: listen(ldap://zimbra.solveitsimply.local:389, 5) failed errno=98 (Address already in use)
    Nov 20 04:45:40 zimbra slapd[1368]: slapd stopped.
    According to that error there's already something listening on port 389, shutdown Zimbra then kill any remaining processes and restart Zimbra. Do you still get an error and if so, what is it?

    If a problem still exists please post the output from all of the commands in the 'Verify...' section of the Split DNS article.
    Regards


    Bill


    Acompli: A new adventure for Co-Founder KevinH.

Similar Threads

  1. Replies: 0
    Last Post: 11-09-2010, 05:23 PM
  2. Replies: 8
    Last Post: 08-08-2008, 07:18 AM
  3. [SOLVED] Constant mta table corruption
    By soulskater in forum Administrators
    Replies: 3
    Last Post: 05-03-2008, 01:38 PM
  4. raw_logs mysql table corruption - how to recover?
    By mrdini in forum Administrators
    Replies: 11
    Last Post: 12-20-2007, 12:45 PM
  5. Database corruption after restore
    By NightTwix in forum Administrators
    Replies: 1
    Last Post: 07-06-2007, 05:01 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
  •