Results 1 to 4 of 4

Thread: My zimbra crashed all of the sudden

  1. #1
    abacabb is offline Loyal Member
    Join Date
    Aug 2010
    Posts
    77
    Rep Power
    4

    Default My zimbra crashed all of the sudden

    I've been running zimbra for over a year and now it is completely not functional.

    I'm running zimbra 6.0.8 on CentOS 5 on a virtual machine. It's behind a NAT firewall. As I said before, it's been running fine for over a year. For some reason when I run zmcontrol status, I receive the following message:

    Unable to determine enabled services from ldap.
    Unable to determine enabled services. Cache is out of date or doesn't exist.


    I tried restoring from backup, but even my backup is doing the same thing! Here are my dig results:

    [zimbra@mail root]$ dig mydomain.com


    ; <<>> DiG 9.3.6-P1-RedHat-9.3.6-4.P1.el5_4.2 <<>> mydomain.com
    ;; global options: printcmd
    ;; Got answer:
    ;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 49395
    ;; flags: qr rd ra; QUERY: 1, ANSWER: 1, AUTHORITY: 13, ADDITIONAL: 0

    ;; QUESTION SECTION:
    ;mydomain.com. IN A

    ;; ANSWER SECTION:
    mydomain.com. 3600 IN A 55.55.55.55

    ;; AUTHORITY SECTION:
    . 452948 IN NS i.root-servers.net.
    . 452948 IN NS j.root-servers.net.
    . 452948 IN NS k.root-servers.net.
    . 452948 IN NS l.root-servers.net.
    . 452948 IN NS m.root-servers.net.
    . 452948 IN NS a.root-servers.net.
    . 452948 IN NS b.root-servers.net.
    . 452948 IN NS c.root-servers.net.
    . 452948 IN NS d.root-servers.net.
    . 452948 IN NS e.root-servers.net.
    . 452948 IN NS f.root-servers.net.
    . 452948 IN NS g.root-servers.net.
    . 452948 IN NS h.root-servers.net.

    ;; Query time: 97 msec
    ;; SERVER: 10.0.0.39#53(10.0.0.39)
    ;; WHEN: Wed Oct 19 20:22:52 2011
    ;; MSG SIZE rcvd: 258






    Here are the contents of my hosts file:

    [root@mail ~]# vim /etc/hosts
    # Do not remove the following line, or various programs
    # that require network functionality will fail.
    127.0.0.1 localhost.localdomain localhost
    10.0.0.39 mail.mydomain.com mail
    127.0.0.1 mail.mydomain.com mail localhost.localdomain localhost
    ::1 localhost6.localdomain6 localhost6





    Here are the results of my hostname command:


    [zimbra@mail root]$ hostname
    mail.mydomain.com




    Any ideas?

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

    Default

    Quote Originally Posted by abacabb View Post
    I'm running zimbra 6.0.8 on CentOS 5 on a virtual machine. It's behind a NAT firewall. As I said before, it's been running fine for over a year. For some reason when I run zmcontrol status, I receive the following message:

    Unable to determine enabled services from ldap.
    Unable to determine enabled services. Cache is out of date or doesn't exist.
    The answer to this question has been answered many times in the forums, you need a Split DNS set-up if you're behind a NAT router, the above error tells you that it unable to determine the Zimbra server IP address.

    Quote Originally Posted by abacabb View Post
    I tried restoring from backup, but even my backup is doing the same thing! Here are my dig results:

    Code:
    [zimbra@mail root]$ dig mydomain.com
    
    
    ; <<>> DiG 9.3.6-P1-RedHat-9.3.6-4.P1.el5_4.2 <<>> mydomain.com
    ;; global options:  printcmd
    ;; Got answer:
    ;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 49395
    ;; flags: qr rd ra; QUERY: 1, ANSWER: 1, AUTHORITY: 13, ADDITIONAL: 0
    
    ;; QUESTION SECTION:
    ;mydomain.com.                 IN      A
    
    ;; ANSWER SECTION:
    mydomain.com.          3600    IN      A       55.55.55.55
    
    ;; AUTHORITY SECTION:
    .                       452948  IN      NS      i.root-servers.net.
    .                       452948  IN      NS      j.root-servers.net.
    .                       452948  IN      NS      k.root-servers.net.
    .                       452948  IN      NS      l.root-servers.net.
    .                       452948  IN      NS      m.root-servers.net.
    .                       452948  IN      NS      a.root-servers.net.
    .                       452948  IN      NS      b.root-servers.net.
    .                       452948  IN      NS      c.root-servers.net.
    .                       452948  IN      NS      d.root-servers.net.
    .                       452948  IN      NS      e.root-servers.net.
    .                       452948  IN      NS      f.root-servers.net.
    .                       452948  IN      NS      g.root-servers.net.
    .                       452948  IN      NS      h.root-servers.net.
    
    ;; Query time: 97 msec
    ;; SERVER: 10.0.0.39#53(10.0.0.39)
    ;; WHEN: Wed Oct 19 20:22:52 2011
    ;; MSG SIZE  rcvd: 258
    Here are the contents of my hosts file:

    Code:
    [root@mail ~]# vim /etc/hosts
    # Do not remove the following line, or various programs
    # that require network functionality will fail.
    127.0.0.1       localhost.localdomain localhost
    10.0.0.39       mail.mydomain.com mail
    127.0.0.1               mail.mydomain.com mail localhost.localdomain localhost
    ::1             localhost6.localdomain6 localhost6
    Here are the results of my hostname command:

    Code:
    [zimbra@mail root]$ hostname
    mail.mydomain.com
    The limited output you've provided show that you have no A record pointing to your server, your hosts file is totally incorrect.

    Quote Originally Posted by abacabb View Post
    Any ideas?
    Go to the Split DNS wiki article and look at the output required by running all the commands in the 'Verify...' section of that article. You'll find full details in that article of what setting you need for DNS records and the correct /etc/hosts file - you need to make sure your hosts file is in that format and the DNS A & MX records are correct.
    Regards


    Bill


    Acompli: A new adventure for Co-Founder KevinH.

  3. #3
    abacabb is offline Loyal Member
    Join Date
    Aug 2010
    Posts
    77
    Rep Power
    4

    Default Not sure how my configuration is wrong...

    Quote Originally Posted by phoenix View Post
    The answer to this question has been answered many times in the forums, you need a Split DNS set-up if you're behind a NAT router, the above error tells you that it unable to determine the Zimbra server IP address.

    The limited output you've provided show that you have no A record pointing to your server, your hosts file is totally incorrect.

    Go to the Split DNS wiki article and look at the output required by running all the commands in the 'Verify...' section of that article. You'll find full details in that article of what setting you need for DNS records and the correct /etc/hosts file - you need to make sure your hosts file is in that format and the DNS A & MX records are correct.

    For my initial setup over a year ago, I went through that split DNS wiki pretty thoroughly I believe. However, as per your suggestion, I went through it again.

    I'm not quite sure how my hosts file is totally wrong. In that wiki it states 2 things:

    1. You need a line to resolve the IP of mail.yourdomain.com to the private IP of the zimbra server, so make sure you have:

    192.168.1.30 mail.yourdomain.com mail


    2. Although it's mentioned in other articles it bears repeating that your hosts file should look like this:

    127.0.0.1 localhost.localdomain localhost
    192.168.1.30 mail.yourdomain.com mail




    As described above, my hosts file appears to contain those attributes, as you can see below:

    # Do not remove the following line, or various programs
    # that require network functionality will fail.
    127.0.0.1 localhost.localdomain localhost
    10.0.0.39 mail.mydomain.com mail
    127.0.0.1 mail.mydomain.com mail localhost.localdomain localhost
    ::1 localhost6.localdomain6 localhost6


    If my hosts file is wrong, could you point out what exactly is wrong with it?


    As far as the rest of the split DNS configuration, the only discrepancy I found was in my db.mail.mydomain.com file. If you look at the very last line show in the example below, the wiki states that it should have the word "mail" all the way to the left.


    ;
    ; Addresses and other host information.
    ;
    @ IN SOA server.example.com. hostmaster.server.example.com. (
    10118 ; Serial
    43200 ; Refresh
    3600 ; Retry
    3600000 ; Expire
    2592000 ) ; Minimum
    ; Define the nameservers and the mail servers
    IN NS <internal address of server>
    IN MX 10 mail.yourdomain.com.
    mail IN A <internal address of server>



    ....But mine looks like this:

    ;
    ; Addresses and other host information.
    ;
    @ IN SOA mail.mydomain.com. hostmaster.mail.mydomain.com. (
    10118 ; Serial
    43200 ; Refresh
    3600 ; Retry
    3600000 ; Expire
    2592000 ) ; Minimum
    ; Define the nameservers and the mail servers
    IN NS 10.0.0.39
    IN A 10.0.0.39
    IN MX 10 mail.mydomain.com.



    Could that be what's causing the issue? I think it would be weird given that my server was working perfectly fine for the past year. But if you think that might be the cause then I'll correct it.

    As far as my A record (as you mentioned), my configuration appears to already have that, as you can see from the configuration above in bold.

    When I perform a dig any on my domain, that even shows the A record that you say I am missing:

    [root@mail named]# dig mydomain.com any

    ; <<>> DiG 9.3.6-P1-RedHat-9.3.6-4.P1.el5_4.2 <<>> mydomain.com any
    ;; global options: printcmd
    ;; Got answer:
    ;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 40250
    ;; flags: qr rd ra; QUERY: 1, ANSWER: 1, AUTHORITY: 13, ADDITIONAL: 1

    ;; QUESTION SECTION:
    ;mydomain.com. IN ANY

    ;; ANSWER SECTION:
    mydomain.com. 3513 IN MX 10 mail.mydomain.com.

    ;; AUTHORITY SECTION:
    . 371309 IN NS i.root-servers.net.
    . 371309 IN NS j.root-servers.net.
    . 371309 IN NS k.root-servers.net.
    . 371309 IN NS l.root-servers.net.
    . 371309 IN NS m.root-servers.net.
    . 371309 IN NS a.root-servers.net.
    . 371309 IN NS b.root-servers.net.
    . 371309 IN NS c.root-servers.net.
    . 371309 IN NS d.root-servers.net.
    . 371309 IN NS e.root-servers.net.
    . 371309 IN NS f.root-servers.net.
    . 371309 IN NS g.root-servers.net.
    . 371309 IN NS h.root-servers.net.

    ;; ADDITIONAL SECTION:
    mail.mydomain.com. 2592000 IN A 10.0.0.39

    ;; Query time: 4 msec
    ;; SERVER: 10.0.0.39#53(10.0.0.39)
    ;; WHEN: Thu Oct 20 19:03:31 2011
    ;; MSG SIZE rcvd: 279



    ..........Is there something that I am just not understanding? Please correct me if I'm wrong.

    -Frank

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

    Default

    Let's start with the information you posted initially. Your DNS output contains the following line:

    Code:
    mydomain.com. 3600 IN A 55.55.55.55
    Now, I'm not a mind reader but assuming the IP address in that line is obfuscated but in reality points to your ZCS server, the problem is it's incorrect. It does not contain the FQDN of your ZCS server, nor does any of the output in that dig command.

    Your hosts file also contains this additional line:

    Code:
    127.0.0.1 mail.mydomain.com mail localhost.localdomain localhost
    That is not necessary and can cause problems.The hosts file needs to contain only the loopback IP and the line for your ZCS IP address.

    Quote Originally Posted by abacabb View Post
    ....But mine looks like this:

    Code:
    ;
    ;       Addresses and other host information.
    ;
    @       IN      SOA     mail.mydomain.com. hostmaster.mail.mydomain.com. (
                                   10118      ; Serial
                                   43200      ; Refresh
                                   3600       ; Retry
                                   3600000    ; Expire
                                   2592000 )  ; Minimum
    ;       Define the nameservers and the mail servers
                   IN      NS      10.0.0.39
                   IN      A       10.0.0.39
                   IN      MX      10 mail.mydomain.com.
    Could that be what's causing the issue?
    Yes.

    Quote Originally Posted by abacabb View Post
    I think it would be weird given that my server was working perfectly fine for the past year.
    Yes, so do I. As I have no idea what caused the 'crash' I can only say on the information you've provided the DNS & hosts file are incorrect. The error you're seeing about LDAP tells you that it can't find the server IP.
    Regards


    Bill


    Acompli: A new adventure for Co-Founder KevinH.

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. My Zimbra Server crashed this morning...
    By glitch23 in forum Administrators
    Replies: 3
    Last Post: 04-07-2008, 01:28 PM
  2. Major Issue - 5.0RC2 NE to 5.0GA NE failed
    By DougWare in forum Installation
    Replies: 7
    Last Post: 01-06-2008, 09:56 PM
  3. Can't start Zimbra!
    By zibra in forum Administrators
    Replies: 5
    Last Post: 03-22-2007, 11:34 AM
  4. zmtlsctl give LDAP error
    By sourcehound in forum Administrators
    Replies: 5
    Last Post: 03-11-2007, 03:48 PM
  5. Fedora Core 3, Clean Install - Not working!
    By pcjackson in forum Installation
    Replies: 17
    Last Post: 03-05-2006, 07:38 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
  •