Results 1 to 4 of 4

Thread: Stumped.... Unable to determine enabled services from ldap

Hybrid View

  1. #1
    Join Date
    Jun 2011
    Posts
    76
    Rep Power
    4

    Default Stumped.... Unable to determine enabled services from ldap

    So every time I try and start the Zimbra services I get this

    Code:
    [zimbra@batman root]$ zmcontrol start
    Host batman.birchlake.ath.cx
            Starting ldap...Done.
    Unable to determine enabled services from ldap.
    Unable to determine enabled services. Cache is out of date or doesn't exist.
    [zimbra@batman root]$
    I've tried permission fixes, deploying new certificates, commenting out tty in sudoers, but nothing has helped.

    This happened after I attempted to do a server migration following this tutorial - Network Edition: Moving from 32-bit to 64-bit Server - Zimbra :: Wiki

    The previous server had a different hostname... would that have anything to do with it?

    The server is using DNSMasq for its DNS.
    Code:
    [root@batman ~]# cat /etc/hosts
    127.0.0.1   localhost.localdomain localhost
    ::1         localhost localhost.localdomain localhost6 localhost6.localdomain6
    192.168.0.125 batman.birchlake.ath.cx batman
    [root@batman ~]# cat /etc/resolv.conf
    # Generated by NetworkManager
    nameserver 127.0.0.1
    Code:
    [root@batman ~]# dig birchlake.ath.cx mx
    
    ; <<>> DiG 9.7.3-P3-RedHat-9.7.3-8.P3.el6_2.2 <<>> birchlake.ath.cx mx
    ;; global options: +cmd
    ;; Got answer:
    ;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 14449
    ;; flags: qr aa rd ra; QUERY: 1, ANSWER: 1, AUTHORITY: 0, ADDITIONAL: 1
    
    ;; QUESTION SECTION:
    ;birchlake.ath.cx.              IN      MX
    
    ;; ANSWER SECTION:
    birchlake.ath.cx.       0       IN      MX      5 batman.birchlake.ath.cx.
    
    ;; ADDITIONAL SECTION:
    batman.birchlake.ath.cx. 0      IN      A       192.168.0.125
    
    ;; Query time: 0 msec
    ;; SERVER: 127.0.0.1#53(127.0.0.1)
    ;; WHEN: Sun Apr  8 04:04:29 2012
    ;; MSG SIZE  rcvd: 89
    
    [root@batman ~]# dig birchlake.ath.cx any
    
    ; <<>> DiG 9.7.3-P3-RedHat-9.7.3-8.P3.el6_2.2 <<>> birchlake.ath.cx any
    ;; global options: +cmd
    ;; Got answer:
    ;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 10752
    ;; flags: qr aa rd ra; QUERY: 1, ANSWER: 1, AUTHORITY: 0, ADDITIONAL: 1
    
    ;; QUESTION SECTION:
    ;birchlake.ath.cx.              IN      ANY
    
    ;; ANSWER SECTION:
    birchlake.ath.cx.       0       IN      MX      5 batman.birchlake.ath.cx.
    
    ;; ADDITIONAL SECTION:
    batman.birchlake.ath.cx. 0      IN      A       192.168.0.125
    
    ;; Query time: 0 msec
    ;; SERVER: 127.0.0.1#53(127.0.0.1)
    ;; WHEN: Sun Apr  8 04:05:15 2012
    ;; MSG SIZE  rcvd: 89
    Last part of the /var/log/zimbra.log

    Code:
    Apr  8 03:55:11 batman zimbramon[2475]: 2475:info: Starting services initiated by zmcontrol
    Apr  8 03:55:11 batman slapd[2525]: @(#) $OpenLDAP: slapd 2.4.26 (Dec 22 2011 11:58:41) $#012#011build@zre-rhel6-64.eng.vmware.com:/home/build/p4/HELIX/ThirdParty/openldap/openldap-2.4.26.5z/servers/slapd
    Apr  8 03:55:12 batman slapd[2526]: slapd starting
    Apr  8 03:55:16 batman slapd[2526]: connection_read(12): no connection!
    Apr  8 03:55:16 batman slapd[2526]: connection_read(12): no connection!
    Apr  8 04:00:01 batman postfix/postqueue[3264]: fatal: Queue report unavailable - mail system is down
    Apr  8 04:00:01 batman zimbramon[3215]: 3215:info: 2012-04-08 04:00:01, QUEUE: 0 0
    Apr  8 04:00:01 batman postfix/sendmail[3307]: warning: the Postfix sendmail command has set-uid root file permissions
    Apr  8 04:00:01 batman postfix/sendmail[3307]: warning: or the command is run from a set-uid root process
    Apr  8 04:00:01 batman postfix/sendmail[3307]: warning: the Postfix sendmail command must be installed without set-uid root file permissions
    Apr  8 04:01:58 batman zimbramon[3661]: 3661:info: Stopping services initiated by zmcontrol
    Apr  8 04:01:58 batman zimbramon[3661]: 3661:info: Stopping zmconfigd via zmcontrol
    Apr  8 04:01:58 batman zimbramon[3661]: 3661:info: Stopping stats via zmcontrol
    Apr  8 04:01:58 batman zimbramon[3661]: 3661:info: Stopping mta via zmcontrol
    Apr  8 04:01:58 batman postfix/postfix-script[3783]: fatal: the Postfix mail system is not running
    Apr  8 04:01:58 batman zimbramon[3661]: 3661:info: Stopping spell via zmcontrol
    Apr  8 04:01:58 batman zimbramon[3661]: 3661:info: Stopping snmp via zmcontrol
    Apr  8 04:01:58 batman zimbramon[3661]: 3661:info: Stopping cbpolicyd via zmcontrol
    Apr  8 04:01:58 batman zimbramon[3661]: 3661:info: Stopping archiving via zmcontrol
    Apr  8 04:01:59 batman zimbramon[3661]: 3661:info: Stopping antivirus via zmcontrol
    Apr  8 04:01:59 batman zimbramon[3661]: 3661:info: Stopping antispam via zmcontrol
    Apr  8 04:01:59 batman zimbramon[3661]: 3661:info: Stopping imapproxy via zmcontrol
    Apr  8 04:01:59 batman zimbramon[3661]: 3661:info: Stopping memcached via zmcontrol
    Apr  8 04:01:59 batman zimbramon[3661]: 3661:info: Stopping mailbox via zmcontrol
    Apr  8 04:01:59 batman zmmailboxdmgr[4024]: status requested
    Apr  8 04:01:59 batman zmmailboxdmgr[4024]: file /opt/zimbra/log/zmmailboxd_manager.pid does not exist
    Apr  8 04:01:59 batman zmmailboxdmgr[4024]: assuming no other instance is running
    Apr  8 04:01:59 batman zmmailboxdmgr[4024]: file /opt/zimbra/log/zmmailboxd.pid does not exist
    Apr  8 04:01:59 batman zmmailboxdmgr[4024]: assuming no other instance is running
    Apr  8 04:01:59 batman zmmailboxdmgr[4024]: no manager process is running
    Apr  8 04:01:59 batman zimbramon[3661]: 3661:info: Stopping convertd via zmcontrol
    Apr  8 04:01:59 batman zimbramon[3661]: 3661:info: Stopping logger via zmcontrol
    Apr  8 04:01:59 batman zimbramon[3661]: 3661:info: Stopping ldap via zmcontrol
    Apr  8 04:01:59 batman slapd[2526]: daemon: shutdown requested and initiated.
    Apr  8 04:01:59 batman slapd[2526]: slapd shutdown: waiting for 0 operations/tasks to finish
    Apr  8 04:01:59 batman slapd[2526]: slapd stopped.
    Apr  8 04:02:04 batman zimbramon[3661]: 3661:info: Starting services initiated by zmcontrol
    Apr  8 04:02:04 batman slapd[4231]: @(#) $OpenLDAP: slapd 2.4.26 (Dec 22 2011 11:58:41) $#012#011build@zre-rhel6-64.eng.vmware.com:/home/build/p4/HELIX/ThirdParty/openldap/openldap-2.4.26.5z/servers/slapd
    Apr  8 04:02:05 batman slapd[4232]: slapd starting
    Apr  8 04:02:10 batman slapd[4232]: connection_read(12): no connection!
    Apr  8 04:02:10 batman slapd[4232]: connection_read(12): no connection!
    Code:
    [root@batman ~]# nmap localhost
    
    Starting Nmap 5.21 ( http://nmap.org ) at 2012-04-08 04:11 CDT
    Nmap scan report for localhost (127.0.0.1)
    Host is up (0.0000080s latency).
    Hostname localhost resolves to 2 IPs. Only scanned 127.0.0.1
    rDNS record for 127.0.0.1: localhost.localdomain
    Not shown: 997 closed ports
    PORT    STATE SERVICE
    22/tcp  open  ssh
    53/tcp  open  domain
    631/tcp open  ipp
    
    Nmap done: 1 IP address (1 host up) scanned in 0.12 seconds
    [root@batman ~]#

    Anyone have any wild guesses of what could be going wrong?
    Last edited by Eclipse; 04-08-2012 at 02:19 AM.

  2. #2
    Join Date
    Nov 2008
    Location
    Grand Rapids, MI
    Posts
    123
    Rep Power
    6

    Default

    Quote Originally Posted by Eclipse View Post
    The previous server had a different hostname... would that have anything to do with it?
    Most likely, yes. Probably the easiest thing to do is add the old hostname as a synonym to the local IP address on that server in your /etc/hosts file and then use the hostname command to set the server's hostname to the old name. That'll probably be enough to get it to actually start up. Then you can use the instructions at ZmSetServerName - Zimbra :: Wiki to properly change the hostname in the config. Once that's done, you can revert your changes to the server's real hostname and the hosts file.

  3. #3
    Join Date
    Jun 2011
    Posts
    76
    Rep Power
    4

    Default

    Quote Originally Posted by justdave View Post
    Most likely, yes. Probably the easiest thing to do is add the old hostname as a synonym to the local IP address on that server in your /etc/hosts file and then use the hostname command to set the server's hostname to the old name. That'll probably be enough to get it to actually start up. Then you can use the instructions at ZmSetServerName - Zimbra :: Wiki to properly change the hostname in the config. Once that's done, you can revert your changes to the server's real hostname and the hosts file.
    Cool thanks, I'll give that a shot and report back, would I also need to update the hostnames in the localconfig.xml file under /zimbra/conf/ ? It has the new hostname listed there as well instead of the old one...

  4. #4
    Join Date
    Jun 2011
    Posts
    76
    Rep Power
    4

    Default

    Almost forgot to reply to this, changing the hostname on the system and hostname on the localconfig.xml allowed it to start up farther then it did before, I just had to remake the SSL certificates and then everything started up okay.

    This is what you need to do to fix the keys.

    1. As root - # mv /opt/zimbra/mailboxd/etc/keystore /root/keystore.old
    2. As root - # /opt/zimbra/bin/zmcertmgr deploycrt self
    3. As root - /opt/zimbra/libexec/zmfixperms --verbose --extended
    4. Login as the zimbra and restart all of zimbra


    Thanks again.

Similar Threads

  1. [SOLVED] Unable to determine enabled services from ldap.
    By farrukhndm in forum Administrators
    Replies: 15
    Last Post: 02-10-2013, 11:19 PM
  2. Replies: 10
    Last Post: 01-15-2012, 10:26 PM
  3. Unable to determine enabled services from ldap
    By rakesraja in forum Administrators
    Replies: 24
    Last Post: 12-19-2011, 12:07 AM
  4. Replies: 0
    Last Post: 06-15-2011, 02:14 AM
  5. LDAP Cannot bind on migration to new server
    By neekster in forum Migration
    Replies: 23
    Last Post: 03-09-2009, 02:08 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
  •