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

Thread: 6.0.15 on Ubuntu 10.04 - Installed LDAP, doesn't start without manually fixing it

  1. #1
    alexander.s is offline Intermediate Member
    Join Date
    Feb 2013
    Location
    Zürich, Switzerland
    Posts
    19
    Rep Power
    2

    Default 6.0.15 on Ubuntu 10.04 - Installed LDAP, doesn't start without manually fixing it

    Hello

    I installed ZCS NE 6.0.15 on a Ubuntu 10.04 LTS system (6.0.15, because our environment is still that old…). This particular system is supposed to be LDAP replication system ("slave"); hostname zcs-xx6.

    Please check this out for a script log of running install.sh: install.log.zcs-xx6.txt

    After having installed it, I found two issues, making it impossible to start LDAP:

    1)

    Code:
    (zcs-xx6 <local>) 0 % sudo /opt/zimbra/bin/ldap 
    ldap_url and ldap_master_url cannot be the same on an ldap replica 
    
    zimbra@zcs-xx6:~$ zmlocalconfig ldap_url ldap_master_url 
    ldap_url = ldap://zcs-ds1.COMPANY.ch:389 
    ldap_master_url = ldap://zcs-ds1.COMPANY.ch:389
    Why is that? Why are ldap_url and ldap_master_url set to the SAME value? zcs-ds1 is our current LDAP master. On another slave called zcs-ds2 that we have (with RHEL5 64bit), it's not like that (but it's an ancient system and I don't know if we manually fixed that since way back then).

    2)

    Even after having changed that, I found that sudo /opt/zimbra/bin/ldap start would not actually start LDAP. This actually does that:

    Code:
    (zcs-xx6 <config>) 0 % sudo /opt/zimbra/libexec/zmslapd -l LOCAL0 -4 -u zimbra -h 'ldap://zcs-xx6.COMPANY.ch:389 ldapi:///' -F /opt/zimbra/data/ldap/config -d 1
    […]
    daemon: listen(ldap://zcs-xx6.COMPANY.ch:389, 5) failed errno=98 (Address already in use)
    slapd shutdown: initiated
    ====> bdb_cache_release_all
    slapd destroy: freeing system resources.
    slapd stopped.
    Comparing that to how it starts on our current zcs-ds2 slave, I find that it actually invokes this:

    Code:
    sudo /opt/zimbra/libexec/zmslapd -l LOCAL0 -4 -u zimbra -h 'ldap:/// ldapi:///' -F /opt/zimbra/data/ldap/config
    Difference: … -h 'ldap:/// ldapi… vs. … -h 'ldap://zcs-xx6.COMPANY.ch:389 ldapi….

    That is so, because of this:

    Code:
    zimbra@zcs-xx6:~$ zmlocalconfig ldap_bind_url
    ldap_bind_url =
    vs.

    Code:
    [zimbra@zcs-ds2 ~]$ zmlocalconfig ldap_bind_url
    ldap_bind_url = ldap:///
    After having manually set ldap_bind_url on the new server, I can start LDAP just fine.

    Now I wonder - why is it, that I had to do those changes? Is that really supposed to happen like that? Or did I do something wrong during the installation?

    Thanks a lot,
    Alexander

  2. #2
    quanah is online now Zimbra Employee
    Join Date
    May 2007
    Location
    Zimbra
    Posts
    1,196
    Rep Power
    9

    Default

    Clearly you did not set the server up correctly at installation time. Given the lack of useful information in this post, there's not much more than can be said.
    Quanah Gibson-Mount
    Server Architect
    Zimbra, Inc
    --------------------
    Zimbra :: the leader in open source messaging and collaboration

  3. #3
    alexander.s is offline Intermediate Member
    Join Date
    Feb 2013
    Location
    Zürich, Switzerland
    Posts
    19
    Rep Power
    2

    Default

    quanah,

    "lack of information"? I posted the complete install.sh output. What's missing? What more can you want? Please tell, and I'd be happy to send it along.

    Regards,
    Alexander

  4. #4
    stro is offline Junior Member
    Join Date
    Feb 2013
    Posts
    5
    Rep Power
    2

    Default

    Alexander,

    What is missing is the actual configs of both machines. i.e. slapd.conf etc... In order to understand which part is failing when starting LDAP, you need to know how they are both configured. From the error, it sounds like there is already a service running on that address/port.

    Greg

  5. #5
    quanah is online now Zimbra Employee
    Join Date
    May 2007
    Location
    Zimbra
    Posts
    1,196
    Rep Power
    9

    Default

    You would need to provide the zmsetup.log file as well...
    Quanah Gibson-Mount
    Server Architect
    Zimbra, Inc
    --------------------
    Zimbra :: the leader in open source messaging and collaboration

  6. #6
    alexander.s is offline Intermediate Member
    Join Date
    Feb 2013
    Location
    Zürich, Switzerland
    Posts
    19
    Rep Power
    2

    Default zmsetup.log

    Hello quanah

    Please find the zmsetup log attached → zmsetup.04242013-135121.log,safe.txt

    Best regards,
    Alexander

  7. #7
    quanah is online now Zimbra Employee
    Join Date
    May 2007
    Location
    Zimbra
    Posts
    1,196
    Rep Power
    9

    Default

    It clearly cannot start LDAP on your system at install time:
    Verifying ldap on ldap://zcs-ds1.COMPANY.ch:389...succeeded
    Setting ldap_url on zcs-xx6.COMPANY.ch...done
    Starting LDAP on zcs-xx6.COMPANY.ch...Error: Unable to start ldap, exiting.
    Resetting ldap_url on zcs-xx6.COMPANY.ch...done
    Wed Apr 24 14:00:27 2013 failed.
    Wed Apr 24 14:00:27 2013 You will have to correct the problem and manually enable replication.
    Wed Apr 24 14:00:27 2013 Disabling ldap on zcs-xx6.COMPANY.ch...


    You would need to determine why. Usually this is because of bad /etc/hosts entries, or something else already bound to the port.
    Quanah Gibson-Mount
    Server Architect
    Zimbra, Inc
    --------------------
    Zimbra :: the leader in open source messaging and collaboration

  8. #8
    alexander.s is offline Intermediate Member
    Join Date
    Feb 2013
    Location
    Zürich, Switzerland
    Posts
    19
    Rep Power
    2

    Default

    Quote Originally Posted by quanah View Post
    It clearly cannot start LDAP on your system at install time:
    Verifying ldap on ldap://zcs-ds1.COMPANY.ch:389...succeeded
    Setting ldap_url on zcs-xx6.COMPANY.ch...done
    Starting LDAP on zcs-xx6.COMPANY.ch...Error: Unable to start ldap, exiting.
    Resetting ldap_url on zcs-xx6.COMPANY.ch...done
    Wed Apr 24 14:00:27 2013 failed.
    Wed Apr 24 14:00:27 2013 You will have to correct the problem and manually enable replication.
    Wed Apr 24 14:00:27 2013 Disabling ldap on zcs-xx6.COMPANY.ch...


    You would need to determine why.
    How? That's right in the middle of the installation (well… at the end… nonetheless).

    Quote Originally Posted by quanah View Post
    Usually this is because of bad /etc/hosts entries, or something else already bound to the port.
    There's nothing running on port 389 (besides Zimbra). I don't think that there are bad /etc/hosts entries (→ zcs-xx6 /etc/hosts - Pastebin.com). Clearly Zimbra 6.0.15 fails to create a working installation out of the box on Ubuntu 10.04. Question is - why?

    Thanks a lot,
    Alexander

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

    Default

    Quote Originally Posted by alexander.s View Post
    There's nothing running on port 389 (besides Zimbra).
    You'd have to provide some information that your comment is correct.

    Quote Originally Posted by alexander.s View Post
    I don't think that there are bad /etc/hosts entries (→ zcs-xx6 /etc/hosts - Pastebin.com).
    You hosts file is not correct, read the forum threads on the topic or look at the Split DNS wiki article for the required format.

    Quote Originally Posted by alexander.s View Post
    Clearly Zimbra 6.0.15 fails to create a working installation out of the box on Ubuntu 10.04. Question is - why?
    The simple answer to that is that it does produce a working installation out-of-the-box. Although I don't use (or like) Ubuntu, I have installed ZCS many times on all the supported versions of Ubuntu and with all versions of ZCS and never had problems.
    Regards


    Bill


    Acompli: A new adventure for Co-Founder KevinH.

  10. #10
    alexander.s is offline Intermediate Member
    Join Date
    Feb 2013
    Location
    Zürich, Switzerland
    Posts
    19
    Rep Power
    2

    Default

    Quote Originally Posted by phoenix View Post
    You'd have to provide some information that your comment is correct.
    It is correct - I checked with netstat -tulpen | grep 389 and saw nothing (and there shouldn't be anything running, as I didn't install anything related to LDAP from Ubuntu).

    But, FWIW, there you go:

    (zcs-xx6 ) 1 % sudo netstat -tulpen | grep 389
    (zcs-xx6 ) 1 %


    VMware snapshots are a god send - especially when "developing" something I reverted to a snapshot I took right after having installed Ubuntu 10.04.

    You hosts file is not correct, read the forum threads on the topic or look at the Split DNS wiki article for the required format.
    Do you mean Split DNS - Zimbra :: Wiki?

    Do you mean, that I need to add "localhost.localdomain" to the beginning of the 127.0.0.1 line, like so?

    127.0.0.1 localhost.localdomain localhost

    The simple answer to that is that it does produce a working installation out-of-the-box.
    Well, Zimbra support fails to provide such an answer (I'm not referring to quanah here).

    Thanks,
    Alexander
    Last edited by alexander.s; 05-14-2013 at 02:00 AM. Reason: proof that nothing has bound to port 389

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. Installed Zimbra Desktop 7, but it won't start
    By Carya in forum General Questions
    Replies: 0
    Last Post: 05-24-2011, 12:18 PM
  2. Installed Zimbra Desktop 7, but it won't start
    By Carya in forum Installation Help
    Replies: 0
    Last Post: 05-24-2011, 12:18 PM
  3. Upgrading Ubuntu 8.04 to 10.04 with Zimbra 7 installed
    By halfgaar in forum Installation
    Replies: 0
    Last Post: 04-22-2011, 12:09 AM
  4. Manually importing LDAP entries..
    By tamilnandhu in forum Installation
    Replies: 1
    Last Post: 01-06-2008, 10:41 PM
  5. Replies: 5
    Last Post: 02-06-2007, 11:58 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
  •