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

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 12-15-2009, 11:55 AM
Junior Member
 
Posts: 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!
Reply With Quote
  #2 (permalink)  
Old 12-15-2009, 12:17 PM
Zimbra Consultant & Moderator
 
Posts: 20,317
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.
__________________
Regards


Bill

Last edited by phoenix; 12-15-2009 at 11:45 PM..
Reply With Quote
  #3 (permalink)  
Old 12-15-2009, 02:11 PM
Junior Member
 
Posts: 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!
Reply With Quote
  #4 (permalink)  
Old 12-16-2009, 04:54 AM
Zimbra Consultant & Moderator
 
Posts: 20,317
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
Reply With Quote
  #5 (permalink)  
Old 12-16-2009, 01:16 PM
Junior Member
 
Posts: 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
Reply With Quote
  #6 (permalink)  
Old 12-17-2009, 10:32 PM
Junior Member
 
Posts: 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!
Reply With Quote
  #7 (permalink)  
Old 12-17-2009, 11:22 PM
Zimbra Consultant & Moderator
 
Posts: 20,317
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
Reply With Quote
  #8 (permalink)  
Old 12-18-2009, 09:49 AM
Junior Member
 
Posts: 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!
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.