Page 1 of 2 12 LastLast
Results 1 to 10 of 12

Thread: Zimbra fails at starting ldap

  1. #1
    priyadarsanroy's Avatar
    priyadarsanroy is offline Active Member
    Join Date
    Dec 2008
    Posts
    36
    Rep Power
    6

    Default Zimbra fails at starting ldap

    Hi,

    My Zimbra installation was working perfectly untill my server had to be rebooted. After reboot it gives the below error

    Host mail.example.com
    Starting ldap...Done.
    Unable to determine enabled services from ldap.
    Enabled services read from cache. Service list may be inaccurate.
    Starting ldap...Done.
    Starting zmconfigd...

    Done.
    Starting logger...Failed.
    Starting logswatch...[] FATAL: failed to initialize LDAP client
    com.zimbra.cs.ldap.LdapException: LDAP error: : An error occurred while attempting to connect to server mail.example.com:389: java.io.IOException: An error occurred while attempting to establish a connection to server mail.example.com:389: java.net.ConnectException: Connection refused
    ExceptionId:main:1392275498915:b61a4f2a0bf72b9b
    Code:ldap.LDAP_ERROR
    at com.zimbra.cs.ldap.LdapException.LDAP_ERROR(LdapEx ception.java:88)
    at com.zimbra.cs.ldap.unboundid.UBIDLdapException.map ToLdapException(UBIDLdapException.java:72)
    at com.zimbra.cs.ldap.unboundid.UBIDLdapException.map ToLdapException(UBIDLdapException.java:38)
    at com.zimbra.cs.ldap.unboundid.LdapConnectionPool.cr eateConnPool(LdapConnectionPool.java:117)
    at com.zimbra.cs.ldap.unboundid.LdapConnectionPool.cr eateConnectionPool(LdapConnectionPool.java:64)
    at com.zimbra.cs.ldap.unboundid.UBIDLdapContext.init( UBIDLdapContext.java:95)
    at com.zimbra.cs.ldap.unboundid.UBIDLdapClient.init(U BIDLdapClient.java:37)
    at com.zimbra.cs.ldap.LdapClient.getInstance(LdapClie nt.java:63)
    at com.zimbra.cs.ldap.LdapClient.initialize(LdapClien t.java:86)
    at com.zimbra.cs.account.ldap.LdapProv.<init>(LdapPro v.java:46)
    at com.zimbra.cs.account.ldap.LdapProvisioning.<init> (LdapProvisioning.java:256)
    at com.zimbra.cs.account.ldap.LdapProvisioning.<init> (LdapProvisioning.java:253)
    at sun.reflect.NativeConstructorAccessorImpl.newInsta nce0(Native Method)
    at sun.reflect.NativeConstructorAccessorImpl.newInsta nce(NativeConstructorAccessorImpl.java:57)
    at sun.reflect.DelegatingConstructorAccessorImpl.newI nstance(DelegatingConstructorAccessorImpl.java:45)
    at java.lang.reflect.Constructor.newInstance(Construc tor.java:525)
    at java.lang.Class.newInstance0(Class.java:372)
    at java.lang.Class.newInstance(Class.java:325)
    at com.zimbra.cs.account.Provisioning.getInstance(Pro visioning.java:278)
    at com.zimbra.cs.account.Provisioning.getInstance(Pro visioning.java:238)
    at com.zimbra.cs.account.ProvUtil.initProvisioning(Pr ovUtil.java:744)
    at com.zimbra.cs.account.ProvUtil.main(ProvUtil.java: 3505)
    Caused by: LDAPException(resultCode=91 (connect error), errorMessage='An error occurred while attempting to connect to server mail.example.com:389: java.io.IOException: An error occurred while attempting to establish a connection to server mail.example.com:389: java.net.ConnectException: Connection refused')
    at com.unboundid.ldap.sdk.LDAPConnection.connect(LDAP Connection.java:741)
    at com.unboundid.ldap.sdk.LDAPConnection.connect(LDAP Connection.java:675)
    at com.unboundid.ldap.sdk.LDAPConnection.<init>(LDAPC onnection.java:507)
    at com.unboundid.ldap.sdk.SingleServerSet.getConnecti on(SingleServerSet.java:229)
    at com.unboundid.ldap.sdk.ServerSet.getConnection(Ser verSet.java:98)
    at com.unboundid.ldap.sdk.LDAPConnectionPool.createCo nnection(LDAPConnectionPool.java:616)
    at com.unboundid.ldap.sdk.LDAPConnectionPool.<init>(L DAPConnectionPool.java:562)
    at com.zimbra.cs.ldap.unboundid.LdapConnectionPool.cr eateConnPool(LdapConnectionPool.java:113)
    ... 18 more
    Caused by: java.io.IOException: An error occurred while attempting to establish a connection to server mail.example.com:389: java.net.ConnectException: Connection refused
    at com.unboundid.ldap.sdk.LDAPConnectionInternals.<in it>(LDAPConnectionInternals.java:142)
    at com.unboundid.ldap.sdk.LDAPConnection.connect(LDAP Connection.java:732)
    ... 25 more
    zimbra logger service is not enabled! failed.


    Starting mailbox...Done.
    Starting antispam...Done.
    Starting antivirus...Done.
    Starting snmp...Done.
    Starting spell...Done.
    Starting mta...Failed.
    Starting saslauthd...done.
    /opt/zimbra/bin/zmopendkimctl: line 54: kill: (3305) - No such process
    opendkim: /opt/zimbra/conf/opendkim.conf: ldap://mail.example.com:389/?DKIMSelector?sub?(DKIMIdentity=$d): dkimf_db_open(): Can't contact LDAP server
    Failed to start opendkim: 0
    zmopendkimctl failed to start
    Starting stats...Done.

    My certificate had never expired. Since most other threads regarding this same issue got it working with reinstalling the certificate I gave that a try. But still not way. Zimbra fails to start.. Any pointers on how to go ahead would be very helpful

    Regards,
    P Roy

  2. #2
    priyadarsanroy's Avatar
    priyadarsanroy is offline Active Member
    Join Date
    Dec 2008
    Posts
    36
    Rep Power
    6

    Default

    I tried a lot of steps about fixing the hostname and all. Even installing the new self signed certificate. Now the new error is at

    Host mail.example.com
    Starting ldap...Done.
    Unable to determine enabled services from ldap.
    Unable to determine enabled services. Cache is out of date or doesn't exist.

  3. #3
    vavai's Avatar
    vavai is offline Special Member
    Join Date
    May 2007
    Location
    Indonesia
    Posts
    149
    Rep Power
    8

    Default

    Most of Zimbra LDAP problems with the above error messages are caused by an expired SSL certificate but I got similar problem last month due to insufficient disk space for root folder. i know it would be odd but could you please check disk space for root or others partition or paste the result or error messages (if any) for the following command :

    Code:
    /opt/zimbra/bin/zmcertmgr viewdeployedcrt all
    Best Regards
    ---
    Masim "Vavai" Sugianto
    Zimbra Tutorial
    Personal Blog [ID]

    Release 8.0.6_GA_5922.SLES11_64_20131203103702 SLES11_64 FOSS edition.

  4. #4
    priyadarsanroy's Avatar
    priyadarsanroy is offline Active Member
    Join Date
    Dec 2008
    Posts
    36
    Rep Power
    6

    Default

    Here is the output of the command. Any help would be greatly appreciated.

    root@writemenmedia:/opt/zimbra# /opt/zimbra/bin/zmcertmgr viewdeployedcrt all
    ::service mta::
    notBefore=Feb 13 12:08:46 2014 GMT
    notAfter=Feb 11 12:08:46 2024 GMT
    subject= /C=US/ST=N/A/O=Zimbra Collaboration Server/OU=Zimbra Collaboration Server/CN=mail.writemenmedia.com
    issuer= /C=US/ST=N/A/L=N/A/O=Zimbra Collaboration Server/OU=Zimbra Collaboration Server/CN=mail.writemenmedia.com
    SubjectAltName=
    ::service proxy::
    notBefore=Feb 13 12:08:46 2014 GMT
    notAfter=Feb 11 12:08:46 2024 GMT
    subject= /C=US/ST=N/A/O=Zimbra Collaboration Server/OU=Zimbra Collaboration Server/CN=mail.writemenmedia.com
    issuer= /C=US/ST=N/A/L=N/A/O=Zimbra Collaboration Server/OU=Zimbra Collaboration Server/CN=mail.writemenmedia.com
    SubjectAltName=
    ::service mailboxd::
    notBefore=Feb 13 12:08:46 2014 GMT
    notAfter=Feb 11 12:08:46 2024 GMT
    subject= /C=US/ST=N/A/O=Zimbra Collaboration Server/OU=Zimbra Collaboration Server/CN=mail.writemenmedia.com
    issuer= /C=US/ST=N/A/L=N/A/O=Zimbra Collaboration Server/OU=Zimbra Collaboration Server/CN=mail.writemenmedia.com
    SubjectAltName=
    ::service ldap::
    notBefore=Feb 13 12:08:46 2014 GMT
    notAfter=Feb 11 12:08:46 2024 GMT
    subject= /C=US/ST=N/A/O=Zimbra Collaboration Server/OU=Zimbra Collaboration Server/CN=mail.writemenmedia.com
    issuer= /C=US/ST=N/A/L=N/A/O=Zimbra Collaboration Server/OU=Zimbra Collaboration Server/CN=mail.writemenmedia.com
    SubjectAltName=

  5. #5
    tonster is online now Zimbra Employee
    Join Date
    Dec 2007
    Location
    Ypsilanti, MI
    Posts
    145
    Rep Power
    7

    Default

    Have you considered starting ldap?

  6. #6
    priyadarsanroy's Avatar
    priyadarsanroy is offline Active Member
    Join Date
    Dec 2008
    Posts
    36
    Rep Power
    6

    Default

    Starting and stopping ldap individually works.

    zimbra@writemenmedia:~$ bin/ldap start

    bin/ldap: line 50: kill: (18455) - No such process
    Started slapd: pid 24663
    zimbra@writemenmedia:~$ ps aux | grep slapd
    zimbra 24663 0.0 0.5 84044912 35200 ? Ssl 18:27 0:00 /opt/zimbra/openldap/sbin/slapd -l LOCAL0 -u zimbra -h ldap://mail.writemenmedia.com:389 ldapi:/// -F /opt/zimbra/data/ldap/config

  7. #7
    tonster is online now Zimbra Employee
    Join Date
    Dec 2007
    Location
    Ypsilanti, MI
    Posts
    145
    Rep Power
    7

    Default

    Now try starting other services and see if they'll start up, or you get another error. The error above was clearly that it couldn't reach ldap, so it's expected. You might try with zmconfigdctl start and then maybe zmmtactl start.

  8. #8
    priyadarsanroy's Avatar
    priyadarsanroy is offline Active Member
    Join Date
    Dec 2008
    Posts
    36
    Rep Power
    6

    Default

    Ok. I tried to start configd after starting ldap

    zimbra@writemenmedia:~$ ps aux | grep ldap
    zimbra 17676 0.0 0.5 84044912 35204 ? Ssl 19:36 0:00 /opt/zimbra/openldap/sbin/slapd -l LOCAL0 -u zimbra -h ldap://mail.writemenmedia.com:389 ldapi:/// -F /opt/zimbra/data/ldap/config

    zimbra@writemenmedia:~$ zmconfigdctl start
    Starting zmconfigd...

    failed.
    Starting zmconfigdctl...success

    then when I see ldap its not there.

    zimbra@writemenmedia:~$ zmmtactl start
    Rewriting configuration files...done.
    postfix/postfix-script: warning: not owned by root: /opt/zimbra/postfix-2.10-20120422.2z/conf/master.cf.in
    postfix/postfix-script: starting the Postfix mail system
    Starting saslauthd...done.
    /opt/zimbra/bin/zmopendkimctl: line 54: kill: (3305) - No such process
    opendkim: /opt/zimbra/conf/opendkim.conf: ldap://mail.writemenmedia.com:389/?DKIMSelector?sub?(DKIMIdentity=$d): dkimf_db_open(): Can't contact LDAP server
    Failed to start opendkim: 0
    zmopendkimctl failed to start

    zimbra@writemenmedia:~$ ps aux | grep ldap
    zimbra 18643 0.0 0.0 6508 620 pts/1 S+ 19:39 0:00 grep ldap

    Is it that ldap starts and then shuts down ?

  9. #9
    tonster is online now Zimbra Employee
    Join Date
    Dec 2007
    Location
    Ypsilanti, MI
    Posts
    145
    Rep Power
    7

    Default

    So slapd is still running, right? Can you check if a command like zmaccts works? It talks to ldap directly. zmprov -l gaa is another command that can test whether or not it can talk over ldap.

  10. #10
    priyadarsanroy's Avatar
    priyadarsanroy is offline Active Member
    Join Date
    Dec 2008
    Posts
    36
    Rep Power
    6

    Default

    It gives the blow error
    zimbra@writemenmedia:~$ zmprov -l gaa
    [] WARN: entry skipped, encountered error while processing entry at:dc=writemenmedia,dc=com
    com.zimbra.common.service.ServiceException: system failure: unable to get config
    ExceptionId:main:1392301296367:a3d86363920957ca
    Code:service.FAILURE
    at com.zimbra.common.service.ServiceException.FAILURE (ServiceException.java:258)
    at com.zimbra.cs.account.ldap.LdapProvisioning.getCon fig(LdapProvisioning.java:660)
    at com.zimbra.cs.account.ldap.LdapProvisioning$Search ObjectsVisitor.doVisit(LdapProvisioning.java:1883)
    at com.zimbra.cs.account.ldap.LdapProvisioning$Search ObjectsVisitor.visit(LdapProvisioning.java:1846)
    at com.zimbra.cs.ldap.unboundid.UBIDLdapContext.searc hPaged(UBIDLdapContext.java:506)
    at com.zimbra.cs.account.ldap.LdapProvisioning.search LdapObjects(LdapProvisioning.java:1954)
    at com.zimbra.cs.account.ldap.LdapProvisioning.search Objects(LdapProvisioning.java:1910)
    at com.zimbra.cs.account.ldap.LdapProvisioning.search DirectoryInternal(LdapProvisioning.java:1705)
    at com.zimbra.cs.account.ldap.LdapProvisioning.getAll Domains(LdapProvisioning.java:2661)
    at com.zimbra.cs.account.ldap.LdapProvisioning.getAll Domains(LdapProvisioning.java:2650)
    at com.zimbra.cs.account.ProvUtil.doGetAllAccounts(Pr ovUtil.java:1907)
    at com.zimbra.cs.account.ProvUtil.execute(ProvUtil.ja va:898)
    at com.zimbra.cs.account.ProvUtil.main(ProvUtil.java: 3509)
    Caused by: com.zimbra.cs.ldap.LdapException: LDAP error: - unable to get attributes: The connection to server mail.writemenmedia.com:389 was closed while waiting for a response to search request SearchRequest(baseDN='cn=config,cn=zimbra', scope=BASE, deref=NEVER, sizeLimit=1, timeLimit=0, filter='(objectClass=*)', attrs={}).
    ExceptionId:main:1392301296366:a3d86363920957ca
    Code:ldap.LDAP_ERROR
    at com.zimbra.cs.ldap.LdapException.LDAP_ERROR(LdapEx ception.java:88)
    at com.zimbra.cs.ldap.unboundid.UBIDLdapException.map ToLdapException(UBIDLdapException.java:72)
    at com.zimbra.cs.ldap.unboundid.UBIDLdapContext.mapTo LdapException(UBIDLdapContext.java:206)
    at com.zimbra.cs.ldap.unboundid.UBIDLdapContext.getAt tributes(UBIDLdapContext.java:337)
    at com.zimbra.cs.account.ldap.ZLdapHelper.getAttribut es(ZLdapHelper.java:244)
    at com.zimbra.cs.account.ldap.LdapHelper.getAttribute s(LdapHelper.java:197)
    at com.zimbra.cs.account.ldap.LdapProvisioning.getCon fig(LdapProvisioning.java:651)
    ... 11 more
    Caused by: LDAPSearchException(resultCode=81 (server down), numEntries=0, numReferences=0, errorMessage='The connection to server mail.writemenmedia.com:389 was closed while waiting for a response to search request SearchRequest(baseDN='cn=config,cn=zimbra', scope=BASE, deref=NEVER, sizeLimit=1, timeLimit=0, filter='(objectClass=*)', attrs={}).')
    at com.unboundid.ldap.sdk.SearchRequest.processSync(S earchRequest.java:1488)
    at com.unboundid.ldap.sdk.SearchRequest.process(Searc hRequest.java:1101)
    at com.unboundid.ldap.sdk.LDAPConnection.search(LDAPC onnection.java:3097)
    at com.unboundid.ldap.sdk.LDAPConnection.getEntry(LDA PConnection.java:1422)
    at com.unboundid.ldap.sdk.LDAPConnection.getEntry(LDA PConnection.java:1390)
    at com.zimbra.cs.ldap.unboundid.UBIDLdapOperation$Get Entry.execute(UBIDLdapOperation.java:310)
    at com.zimbra.cs.ldap.unboundid.UBIDLdapContext.getAt tributes(UBIDLdapContext.java:330)
    ... 14 more

    Not sure if ldap is working or not

Page 1 of 2 12 LastLast

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. Replies: 3
    Last Post: 05-08-2013, 07:38 AM
  2. Starting saslauthd. fails
    By simax in forum Administrators
    Replies: 1
    Last Post: 07-04-2012, 02:24 PM
  3. Replies: 1
    Last Post: 11-07-2008, 12:10 PM
  4. Replies: 2
    Last Post: 01-17-2008, 05:32 PM
  5. Replies: 2
    Last Post: 05-24-2006, 10:01 AM

Tags for this Thread

Posting Permissions

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