Results 1 to 10 of 10

Thread: Starting ldap...Done. FAILED

  1. #1
    mice0217 is offline Junior Member
    Join Date
    Dec 2009
    Posts
    5
    Rep Power
    5

    Default Starting ldap...Done. FAILED

    Hi all,

    I am a rookie in zimbra. I have a problem today, our mail server is down today. But when I try to restart it, it shows me these messages:

    www:/var/log # su - zimbra -c "zmcontrol start"
    Host mail.***.***.com
    Starting ldap...Done.
    FAILED

    I don't know why, because it was OK yesterday. Does anyone help me to fix this problem?
    Thank you!

  2. #2
    phoenix is online now Zimbra Consultant & Moderator
    Join Date
    Sep 2005
    Location
    Vannes, France
    Posts
    23,470
    Rep Power
    56

    Default

    The usual reason for this is your either don't have a correct hosts file or you have invalid (or none) DNS A & MX records, if you're behind a NAT router you'll need a Split DNS set-up.

    Post the output of the following commands run on the Zimbra server:

    Code:
    cat /etc/hosts
    cat /etc/resolv.conf
    dig yourdomain.com mx
    dig yourdomain.com any
    host `hostname`  <-- use that exact command with backticks not single quotes
    You should also look in the log files for any errors.
    Last edited by phoenix; 12-16-2009 at 12:45 AM.
    Regards


    Bill


    Acompli: A new adventure for Co-Founder KevinH.

  3. #3
    mice0217 is offline Junior Member
    Join Date
    Dec 2009
    Posts
    5
    Rep Power
    5

    Default

    Hi Phoenix,

    Thanks your help. These are the output as your commands:

    Code:
    cd /etc/hosts
    127.0.0.1       localhost
    
    # special IPv6 addresses
    ::1             localhost ipv6-localhost ipv6-loopback
    
    fe00::0         ipv6-localnet
    
    ff00::0         ipv6-mcastprefix
    ff02::1         ipv6-allnodes
    ff02::2         ipv6-allrouters
    ff02::3         ipv6-allhosts
    127.0.0.2       www.mydomain www
    
    
    cd /etc/resolv.conf
    search mydomain.com
    nameserver 192.168.1.195
    nameserver 128.110.124.120
    
    dig mail.****.***.com
    www:/etc # dig mail.****.***.com mx
    
    ; <<>> DiG 9.3.2 <<>> mail.****.****.commx
    ;; global options:  printcmd
    ;; Got answer:
    ;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 53712
    ;; flags: qr aa rd ra; QUERY: 1, ANSWER: 0, AUTHORITY: 1, ADDITIONAL: 0
    
    ;; QUESTION SECTION:
    ;mail.****.****.com.            IN      MX
    
    ;; AUTHORITY SECTION:
    ****.****.com.          3600    IN      SOA     ****-server.****.local. hostmaster.****.local. 96 900 600 86400 3600
    
    ;; Query time: 2 msec
    ;; SERVER: 192.168.1.195#53(192.168.1.195)
    ;; WHEN: Tue Dec 15 15:04:03 2009
    ;; MSG SIZE  rcvd: 105
    
    
    dig mail.****.***.com
    www:/etc # dig mail.****.****.comany
    
    ; <<>> DiG 9.3.2 <<>> mail.****.****.com any
    ;; global options:  printcmd
    ;; Got answer:
    ;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 62518
    ;; flags: qr aa rd ra; QUERY: 1, ANSWER: 1, AUTHORITY: 0, ADDITIONAL: 0
    
    ;; QUESTION SECTION:
    ;mail.****.****.edu.            IN      ANY
    
    ;; ANSWER SECTION:
    mail.****.****.com.     3600    IN      A       192.168.1.99
    
    ;; Query time: 4 msec
    ;; SERVER: 192.168.1.195#53(192.168.1.195)
    ;; WHEN: Tue Dec 15 15:07:20 2009
    ;; MSG SIZE  rcvd: 52
    
    www:/etc # host 'mail.****.****.com'
    mail.****.****.com has address 192.168.1.99
    Please tell me how to fix it. Thank you!

  4. #4
    phoenix is online now Zimbra Consultant & Moderator
    Join Date
    Sep 2005
    Location
    Vannes, France
    Posts
    23,470
    Rep Power
    56

    Default

    Your hosts file isn't correct and according to you dig output, you appear to have no MX record for your Zimbra server. You can find the information about your hosts file in the Quick Start Installation Guide (and all over the forums). You can also follow the Split DNS instructions for setting up your DNS records.

    According to your forum profile you have Zimbra 4.5.3, is that correct? If it's not correct then please update it with the version you currently have (or are trying) installed.

    BTW, when you do a dig command you use the domain name not the FQDN of the server. So you should use:

    Code:
    dig domain.com mx
    not
    Code:
    dig mail.domain.com mx
    Regards


    Bill


    Acompli: A new adventure for Co-Founder KevinH.

  5. #5
    mice0217 is offline Junior Member
    Join Date
    Dec 2009
    Posts
    5
    Rep Power
    5

    Default

    Hi Phoenix,

    Thanks your advise. But I still confuse that must I set up split DNS? Because this mail server was OK till yesterday it was down. I modify the hosts file to add mydomain.com and IP address, but it still can not work. How to fix it? What should I do? I appreciate your help. Thank you!
    BTW, this mail server's version is 4.5.3, it is pretty old.

    Code:
    ; <<>> DiG 9.3.2 <<>> mydomain.com mx
    ;; global options:  printcmd
    ;; Got answer:
    ;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 20868
    ;; flags: qr aa rd ra; QUERY: 1, ANSWER: 1, AUTHORITY: 0, ADDITIONAL: 1
    
    ;; QUESTION SECTION:
    ;mydomain.com.                 IN      MX
    
    ;; ANSWER SECTION:
    mydomain.com.          3600    IN      MX      10 mydomain.com.
    
    ;; ADDITIONAL SECTION:
    mydomain.com.          3600    IN      A       192.168.1.98
    
    ;; Query time: 0 msec
    ;; SERVER: 192.168.1.195#53(192.168.1.195)
    ;; WHEN: Wed Dec 16 14:14:02 2009
    ;; MSG SIZE  rcvd: 63

  6. #6
    mice0217 is offline Junior Member
    Join Date
    Dec 2009
    Posts
    5
    Rep Power
    5

    Default

    Hi Phoenix,

    After I cleaned up some disk space, my problem became that,
    Code:
    www:~ # su - zimbra -c "zmcontrol start"
    Host mydomain.com
            Starting ldap...Done.
    FAILED
    daemon: bind(7) failed errno=98 (Address already in use)
    slap_open_listener: failed on ldap://mydomain:389
    ERROR - failed to start slapd
    I followed with the steps in WIKI about ldap to kill the process, but it didn't work. Do you have any idea? Please help me. I appreciate it, thank you!

  7. #7
    phoenix is online now Zimbra Consultant & Moderator
    Join Date
    Sep 2005
    Location
    Vannes, France
    Posts
    23,470
    Rep Power
    56

    Default

    Quote Originally Posted by mice0217 View Post
    Hi Phoenix,

    After I cleaned up some disk space, my problem became that,
    Code:
    www:~ # su - zimbra -c "zmcontrol start"
    Host mydomain.com
            Starting ldap...Done.
    FAILED
    daemon: bind(7) failed errno=98 (Address already in use)
    slap_open_listener: failed on ldap://mydomain:389
    ERROR - failed to start slapd
    I followed with the steps in WIKI about ldap to kill the process, but it didn't work. Do you have any idea? Please help me. I appreciate it, thank you!
    The error above tells you what the problem is. Shutdown Zimbra, check for any zimbra processes that are still running and kill them. When you've done that restart Zimbra.
    Regards


    Bill


    Acompli: A new adventure for Co-Founder KevinH.

  8. #8
    mice0217 is offline Junior Member
    Join Date
    Dec 2009
    Posts
    5
    Rep Power
    5

    Default

    Thanks your patience Phoenix. I think I am a stupid guy. Actually, I do it. But it doesn't work. This is my steps:
    Code:
    www:~ # su - zimbra -c "zmcontrol stop"
    Host mydomain.com
            Stopping mta...Done
            Stopping spell...Done
            Stopping snmp...Done
            Stopping antivirus...Done
            Stopping antispam...Done
            Stopping imapproxy...Done
            Stopping mailbox...Done
            Stopping logger...Done
            Stopping ldap...Done
    www:~ # ps auxx | grep zimbra
    zimbra    3791  0.0  0.1  19520  5260 ?        Ssl  02:02   0:00 /opt/zimbra/openldap-2.3.21/libexec/slapd -l LOCAL0 -4 -u zimbra -h ldap://mydomain.com:389 -f /opt/zimbra/conf/slapd.conf
    root     15846  0.0  0.0   1864   648 pts/0    S+   10:28   0:00 grep zimbra
    www:~ # kill 3791
    www:~ # ps auxx | grep zimbra
    root     15934  0.0  0.0   1856   636 pts/0    S+   10:30   0:00 grep zimbra
    www:~ # su - zimbra -c "zmcontrol start"
    Host mydomain.com
            Starting ldap...Done.
    FAILED
    daemon: bind(7) failed errno=98 (Address already in use)
    slap_open_listener: failed on ldap://mydomain.com:389
    ERROR - failed to start slapd
    I also follow the steps like this:
    Code:
    www:~ # su - zimbra -c "sudo /opt/zimbra/openldap-2.3.21/libexec/slapd -d7 -| LOCAL0 -4 -u zimbra -h ldap://localhost:389/ -f /opt/zimbra/conf/slapd.conf"
    @(#) $OpenLDAP: slapd 2.3.21 (Feb  8 2007 20:14:53) $
            build@build-suse10:/home/build/p4/main/ThirdParty/openldap/openldap-2.3.21/servers/slapd
    daemon_init: 
    daemon_init: listen on ldap:///
    daemon_init: 1 listeners to open...
    ldap_url_parse_ext(ldap:///)
    daemon: listener initialized ldap:///
    daemon_init: 2 listeners opened
    slapd init: initiated server.
    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)
    -su: LOCAL0: command not found
    >>> dnNormalize: <>
    <<< dnNormalize: <>
    >>> dnNormalize: 
    => ldap_bv2dn(cn=Subschema,0)
    <= ldap_bv2dn(cn=Subschema)=0
    => ldap_dn2bv(272)
    <= ldap_dn2bv(cn=subschema)=0
    <<< dnNormalize: 
    >>> dnNormalize: 
    => ldap_bv2dn(cn=zimbra,0)
    <= ldap_bv2dn(cn=zimbra)=0
    => ldap_dn2bv(272)
    <= ldap_dn2bv(cn=zimbra)=0
    <<< dnNormalize: 
    >>> dnNormalize: 
    => ldap_bv2dn(cn=admins,cn=zimbra,0)
    <= ldap_bv2dn(cn=admins,cn=zimbra)=0
    => ldap_dn2bv(272)
    <= ldap_dn2bv(cn=admins,cn=zimbra)=0
    <<< dnNormalize: 
    >>> dnNormalize: 
    => ldap_bv2dn(cn=admins,cn=zimbra,0)
    <= ldap_bv2dn(cn=admins,cn=zimbra)=0
    => ldap_dn2bv(272)
    <= ldap_dn2bv(cn=admins,cn=zimbra)=0
    <<< dnNormalize: 
    >>> dnNormalize: 
    => ldap_bv2dn(cn=admins,cn=zimbra,0)
    <= ldap_bv2dn(cn=admins,cn=zimbra)=0
    => ldap_dn2bv(272)
    <= ldap_dn2bv(cn=admins,cn=zimbra)=0
    <<< dnNormalize: 
    put_filter: "(!(zimbraHideInGal=TRUE))"
    put_filter: NOT
    put_filter_list "(zimbraHideInGal=TRUE)"
    put_filter: "(zimbraHideInGal=TRUE)"
    put_filter: simple
    put_simple_filter: "zimbraHideInGal=TRUE"
    ber_scanf fmt ({mm}) ber:
    >>> dnNormalize: 
    => ldap_bv2dn(cn=admins,cn=zimbra,0)
    <= ldap_bv2dn(cn=admins,cn=zimbra)=0
    => ldap_dn2bv(272)
    <= ldap_dn2bv(cn=admins,cn=zimbra)=0
    <<< dnNormalize: 
    >>> dnNormalize: 
    => ldap_bv2dn(cn=admins,cn=zimbra,0)
    <= ldap_bv2dn(cn=admins,cn=zimbra)=0
    => ldap_dn2bv(272)
    <= ldap_dn2bv(cn=admins,cn=zimbra)=0
    <<< dnNormalize: 
    >>> dnNormalize: 
    => ldap_bv2dn(cn=admins,cn=zimbra,0)
    <= ldap_bv2dn(cn=admins,cn=zimbra)=0
    => ldap_dn2bv(272)
    <= ldap_dn2bv(cn=admins,cn=zimbra)=0
    <<< dnNormalize: 
    bdb_db_init: Initializing BDB database
    >>> dnPrettyNormal: <>
    <<< dnPrettyNormal: <>, <>
    >>> dnPrettyNormal: 
    => ldap_bv2dn(uid=zimbra,cn=admins,cn=zimbra,0)
    <= ldap_bv2dn(uid=zimbra,cn=admins,cn=zimbra)=0
    => ldap_dn2bv(272)
    <= ldap_dn2bv(uid=zimbra,cn=admins,cn=zimbra)=0
    => ldap_dn2bv(272)
    <= ldap_dn2bv(uid=zimbra,cn=admins,cn=zimbra)=0
    <<< dnPrettyNormal: , 
    /opt/zimbra/openldap-2.3.21/etc/openldap/slapd.conf: line 105:  unknown level "@@ldap_log_level@@"
    slapd destroy: freeing system resources.
    slapd stopped.
    connections_destroy: nothing to destroy.
    I desire your help. Thank you!

  9. #9
    birdsthewurd is offline Intermediate Member
    Join Date
    Apr 2012
    Posts
    21
    Rep Power
    3

    Default

    Is there any update to this thread? I notice that I'll all the responses to this issue, the resolution is that the hostname file or DNS settings are incorrect or that there are expired certificates. This is not true in all cases. In mice0217's example, you can see him clearly killing the processes but having it fail again on starting services.

    In my cases this is the exact same thing that happens. I have my services stop for backup, kill lingering processes, run backup, start up, fail. This only happens on occasion, which is strange. I even threw in my script to kill lingering processes again before the services start back up and it still fails on occasion. Right before starting I even do a 'ps aux' in my script, which shows that there is no ldap process. I've run the command to check my certs expiration date, no problem. This issue just recently started happening, even though I've made no changes to any configuration. The system has been up and running for a couple years now with no other issues.

    I AM able to get the system up and running by manually killing the process and then starting the services. Again, it's only on occasion now that I kill the processes in my backup script.

    Code:
    # zmcontrol -v 
    Release 7.1.4_GA_2555.UBUNTU10_64 UBUNTU10_64 FOSS edition.

  10. #10
    birdsthewurd is offline Intermediate Member
    Join Date
    Apr 2012
    Posts
    21
    Rep Power
    3

    Default

    Solved on my end!!!

    It turns out that it had nothing to do with cert expirations, hostname or DNS. It was a simple foolish mistake where I installed sSMTP to send emails from the command line. (Yes, I should just been using sendmail from the beginning) Anyways, I noticed that there was always a sendmail processes sitting around when I did a 'ps aux'. Then did a find for all sendmail references and there was one inside of /opt/zimbra/postfix****/sbin/ and also one in /usr/sbin/. I realized the /usr/sbin was created by sSMTP, so I uninstalled sSMTP and now I'm all good! Hooray! No more waking up every morning to do a manual kill/start!!!! WOOOO!!!!!!

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. Help!!! Moving ZCS does not work!
    By ASebestian in forum Migration
    Replies: 7
    Last Post: 02-12-2009, 06:06 PM
  2. upgrading from 5.0.4 to 5.0.5 opensource
    By smoke in forum Installation
    Replies: 4
    Last Post: 10-19-2008, 10:38 AM
  3. Upgrade: 4.5.5 -> 4.5.6 failed, LDAP/slapd issues
    By Daimyo in forum Installation
    Replies: 7
    Last Post: 08-04-2007, 09:23 PM
  4. Zimbra Install Problem - getDirectContext
    By bsimzer in forum Installation
    Replies: 27
    Last Post: 07-19-2007, 10:12 AM
  5. 3 testing: LDAP: 389 Failed when restore zimbra
    By victorLeong in forum Administrators
    Replies: 15
    Last Post: 05-24-2007, 06:45 AM

Posting Permissions

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