Results 1 to 4 of 4

Thread: LDAP failed after i changed my server

  1. #1
    crowley's Avatar
    crowley is offline Junior Member
    Join Date
    Jul 2007
    Posts
    9
    Rep Power
    8

    Unhappy LDAP failed after i changed my server

    Hi, yesterday I had i total failure with my mail server and had to use another one for my Zimbra installation, it's under Red Hat 5.01 (64 bits) and ZCS OpenSource 4.5.10 (the same version in both servers). First, I installed Zimbra and worked without a problem, then I stop the service and copy this directories from my backup:

    db
    conf
    log
    logger
    openldap-data
    store

    When I tried to restart, showed this error:

    sudo -u zimbra zmcontrol start
    Host mail1.aspel.com.mx
    Starting ldap...Done.
    FAILED
    cp: accessing `/opt/zimbra/openldap-data/DB_CONFIG': Permission denied
    Failed to start slapd. Attempting debug start to determine error.
    backend_startup_one: bi_db_open failed! (-1)
    I checked the permisions and ownership of the files and directories and looked fine, so i runned this command to find whats wrong with OpenLDAP:

    sudo /opt/zimbra/openldap/libexec/slapd -l LOCAL0 -4 -u zimbra -h ldap://mail1.aspel.com.mx:389 -f /opt/zimbra/conf/slapd.conf -d 7

    @(#) $OpenLDAP: slapd 2.3.39 (Nov 11 2007 11:52:20) $
    build@build11:/home/build/p4/FRANK/ThirdParty/openldap/openldap-2.3.39.5z/servers/slapd
    daemon_init: ldap://mail1.aspel.com.mx:389
    daemon_init: listen on ldap://mail1.aspel.com.mx:389
    daemon_init: 1 listeners to open...
    ldap_url_parse_ext(ldap://mail1.aspel.com.mx:389)
    daemon: listener initialized ldap://mail1.aspel.com.mx:389
    daemon_init: 1 listeners opened
    slapd init: initiated server.
    slap_sasl_init: initialized!
    bdb_back_initialize: initialize BDB backend
    bdb_back_initialize: Sleepycat Software: Berkeley DB 4.2.52: (December 3, 2003)
    hdb_back_initialize: initialize HDB backend
    hdb_back_initialize: Sleepycat Software: Berkeley DB 4.2.52: (December 3, 2003)
    ....
    backend_startup_one: starting ""
    bdb_db_open:
    bdb_db_open: alock package is unstable
    backend_startup_one: bi_db_open failed! (-1)
    slapd shutdown: initiated
    ====> bdb_cache_release_all
    slapd destroy: freeing system resources.
    slapd stopped.
    connections_destroy: nothing to destroy.
    When it started, send a lot of lines, but at the end showed this error about the alock file. Even if I delete it and re-run the startup, fails the same way.

    So, I runed db_recover to try to recover the DB but it failed.

    sudo -u zimbra /opt/zimbra/sleepycat/bin/db_recover -h /opt/zimbra/openldap-data/

    db_recover: unlink: /opt/zimbra/openldap-data/__db.005: Permission denied
    db_recover: unlink: /opt/zimbra/openldap-data/__db.004: Permission denied
    db_recover: unlink: /opt/zimbra/openldap-data/__db.002: Permission denied
    db_recover: unlink: /opt/zimbra/openldap-data/__db.003: Permission denied
    db_recover: unlink: /opt/zimbra/openldap-data/__db.001: Permission denied
    db_recover: Invalid log file: log.0000000006: Permission denied
    db_recover: PANIC: Permission denied
    db_recover: PANIC: DB_RUNRECOVERY: Fatal error, run database recovery
    db_recover: unlink: /opt/zimbra/openldap-data/__db.005: Permission denied
    db_recover: unlink: /opt/zimbra/openldap-data/__db.004: Permission denied
    db_recover: unlink: /opt/zimbra/openldap-data/__db.002: Permission denied
    db_recover: unlink: /opt/zimbra/openldap-data/__db.003: Permission denied
    db_recover: unlink: /opt/zimbra/openldap-data/__db.001: Permission denied
    db_recover: DB_ENV->open: DB_RUNRECOVERY: Fatal error, run database recovery
    Again, the files and directory belongs to the zimbra user and the zimbra.log doesn't have nothing related.

    I don't know what else to do. Any idea?

    Best Regards.

  2. #2
    jholder's Avatar
    jholder is offline Former Zimbran
    Join Date
    Oct 2005
    Location
    Thatcher, AZ
    Posts
    5,606
    Rep Power
    20

    Default

    run the zmfixperms directory located in /opt/zimbra/libexec

  3. #3
    quanah is offline Zimbra Employee
    Join Date
    May 2007
    Location
    Zimbra
    Posts
    1,271
    Rep Power
    10

    Default

    Quote Originally Posted by crowley View Post
    I don't know what else to do. Any idea?
    Please show the output of ls -ld /opt/zimbra/openldap-data and ls -l /opt/zimbra/openldap-data
    Quanah Gibson-Mount
    Server Architect
    Zimbra, Inc
    --------------------
    Zimbra :: the leader in open source messaging and collaboration

  4. #4
    tomparker.net is offline Starter Member
    Join Date
    Feb 2009
    Location
    Winter Springs, FL
    Posts
    3
    Rep Power
    6

    Default

    Quote Originally Posted by jholder View Post
    run the zmfixperms directory located in /opt/zimbra/libexec
    I had this problem when moving from Ubuntu Dapper 32-bit to Hardy 64-bit. The above command worked great. Don't forget to run it as root.

    I followed this guide on the wiki:
    Network Edition: Moving from 32-bit to 64-bit Server - Zimbra :: Wiki

    I hope this helps the next person who was up all night trying to get email operational before dawn.

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. Zimbra fails after working for 2 weeks
    By Linsys in forum Administrators
    Replies: 10
    Last Post: 10-07-2008, 12:42 AM
  2. My Zimbra server down ... please help :)
    By frankb in forum Administrators
    Replies: 2
    Last Post: 12-12-2007, 11:29 AM
  3. need advice on configuring zimbra to work with fax server
    By pheonix1t in forum Administrators
    Replies: 0
    Last Post: 07-11-2007, 07:46 PM
  4. 3 testing: LDAP: 389 Failed when restore zimbra
    By victorLeong in forum Administrators
    Replies: 15
    Last Post: 05-24-2007, 06:45 AM
  5. Replies: 4
    Last Post: 11-15-2006, 12:16 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
  •