How to Fix “Initializing ldap…failed” Zimbra Installation on CentOS 6.2 x86_64

Question :
When i try to install Zimbra 7.1.4 on linux CentOS 6.2 server, i stuck at the following error:

*** CONFIGURATION COMPLETE - press 'a' to apply
Select from menu, or press 'a' to apply config (? - help) a
Save configuration data to a file? [Yes] yes
Save config in file: [/opt/zimbra/config.9228]
Saving config in /opt/zimbra/config.9228...done.
The system will be modified - continue? [No] yes
Operations logged to /tmp/zmsetup.03312012-204237.log
Setting local config values...done.
Setting up CA...done.
Deploying CA to /opt/zimbra/conf/ca ...done.
Creating SSL certificate...done.
Installing mailboxd SSL certificates...done.
Initializing ldap...failed. (28416)


ERROR



Configuration failed

Please address the error and re-run /opt/zimbra/libexec/zmsetup.pl to
complete the configuration.

Errors have been logged to /tmp/zmsetup.03312012-204237.log

How to fix this?

See also  How to Download CentOS 6.3 ISO

Solutions :

By default, sudo configuration has deny any sudo command for the user who not logged in. Therefore you need to comment out this line on /etc/sudoers.

1. Login to another putty session(second screen) and leave the installation error (first screen) for a while.
2. Modify /etc/sudoers or alternatively, you just type visudo :

[root@mail ~]# vi /etc/sudoers

3. Comment out this line only :

# Defaults requiretty

4. Go to the first screen where your zimbra installation failed. Then you can continue back the installation by executing the following command :

[root@mail ~]# /opt/zimbra/libexec/zmsetup.pl

How to Reset the Directory Manager Password on RHEL 7 / CentOS 7
How to Reset the Directory Manager Password on RHEL 7 / CentOS 7

It is best practice to remember passwords, but because too many passwords, sometimes we forget. We are not encouraged to write the password on any paper or share the password...

How to Find Big Files Size on Linux RHEL/CentOS
How to Find Big Files Size on Linux RHEL/CentOS

As the linux administrator, sometimes we have to identify which files are most take much space in the linux server resulting in low free space. Low disk space can also...

Why Linux users should worry about malware and what they can do about it
Why Linux users should worry about malware and what they can do about it

Don’t drop your guard just because you’re running Linux. Preventing the spread of malware and/or dealing with the consequences of infection are a fact of life when using computers. If...

How to Reset Forgotten Root Password on Linux RHEL 7 / CentOS 7
How to Reset Forgotten Root Password on Linux RHEL 7 / CentOS 7

This short howto will explain the steps to reset a lost root password or to reset a forgotten root password on Linux RHEL 7 or CentOS 7. Basically, we will...

How to Update CentOS or Upgrade CentOS to the Latest Version
How to Update CentOS or Upgrade CentOS to the Latest Version

Recently, the latest version of CentOS 7.3 was released. All users of CentOS 7.0, 7.1 and 7.2 can upgrade their system to the most recent. This quick guide will explain...

How to Change your WordPress Username, Nickname and Display Name in MySQL
How to Change your WordPress Username, Nickname and Display Name in MySQL

After you create an account log in WordPress, you may want to change your WordPress username, as appropriate or due to security reason. However, you can not do this from...

How to Enable SSH Root Login on Ubuntu 16.04
How to Enable SSH Root Login on Ubuntu 16.04

As what we wrote in the previous article on how to allow SSH root on Ubuntu 14.04, after installing a fresh new copy of Ubuntu 16.04 LTS, we find that...

How to Change UUID of Linux Partition on CentOS 7
How to Change UUID of Linux Partition on CentOS 7

UUID (Universally Unique IDentifier) should be unique and it is used to identify storage devices on a linux system. If you cloned a virtual machine from vCenter, the metadata containing...

8 Comments

  • Avatar for John Adams John Adams says:

    Thanks for this I was well struggling

  • Avatar for Anthony Vande Weghe Anthony Vande Weghe says:

    Hello to the end of the installation I get this error, I’m on ubuntu 12.04 server, I can not to install Zimbra, the “sudoers” file does not contain the line “Defaults requiretty”
    Then I can not find how to resume the installation of Zimbra, the file launches zmsetup.pl nothing

  • Avatar for ducnc ducnc says:

    Hi!
    I followed your instruction and finish the installation. But when i enter my address of my server in Firefox, it always show the connecting message but cannot show the webmail for me to login.
    I checked my server with netstat command and i saw a connection from my client (Firefox) to server.
    My server is CentOS 6.5 with Zimbra 7.1.3
    Thank you!

  • Avatar for ryan ryan says:

    [root@mail zcs-8.6.0_GA_1153.RHEL6_64.20141215151155]# /opt/zimbra/libexec/zmsetup.pl
    Operations logged to /tmp/zmsetup12162015-184041.log
    Installing LDAP configuration database…done.
    Setting defaults…

    DNS ERROR resolving MX for mail.datalink.edu.local
    It is suggested that the domain name have an MX record configured in DNS
    Change domain name? [Yes]
    Create domain: [mail.datalink.edu.local] datalink.edu.local
    MX: mail.datalink.edu.local (192.168.13.11)

    Interface: 192.168.13.11
    Interface: 127.0.0.1
    Interface: ::1
    done.
    Checking for port conflicts
    Port conflict detected: 53 (zimbra-dnscache)
    Port conflict detected: 53 (zimbra-dnscache)
    Port conflicts detected! – Press Enter/Return key to continue

    Note

    The previous configuration appears to have failed to complete

    Attempt to complete configuration now? [yes]
    Save configuration data to a file? [Yes]
    Save config in file: [/opt/zimbra/config.29087]
    Saving config in /opt/zimbra/config.29087…done.
    The system will be modified – continue? [No] yes
    Operations logged to /tmp/zmsetup12162015-184041.log
    Initializing ldap…failed. (28416)

    ERROR

    Configuration failed

    Please address the error and re-run /opt/zimbra/libexec/zmsetup.pl to
    complete the configuration.

    Errors have been logged to /tmp/zmsetup12162015-184041.log

  • Avatar for darwin darwin says:

    thanks , another solution is to modify the permissions of the sudoers file and comment the line ssh # Defaults requiretty

  • Avatar for Henry Henry says:

    [root@localhost zcs-8.6.0_GA_1153.RHEL7_64.20141215151110]# /opt/zimbra/libexec/zmsetup.pl
    Operations logged to /tmp/zmsetup03172020-181828.log
    Installing LDAP configuration database…done.
    Setting defaults…

    DNS ERROR resolving MX for mail.doublecoin.tech
    It is suggested that the domain name have an MX record configured in DNS
    Change domain name? [Yes] no
    done.
    Checking for port conflicts
    Port conflict detected: 636 (zimbra-ldap)
    Port conflict detected: 389 (zimbra-ldap)
    Port conflict detected: 636 (zimbra-ldap)
    Port conflict detected: 389 (zimbra-ldap)
    Port conflicts detected! – Press Enter/Return key to continue

    Note

    The previous configuration appears to have failed to complete

    Attempt to complete configuration now? [yes] yes
    Save configuration data to a file? [Yes] yes
    Save config in file: [/opt/zimbra/config.28648]
    Saving config in /opt/zimbra/config.28648…done.
    The system will be modified – continue? [No] yes
    Operations logged to /tmp/zmsetup03172020-181828.log
    Initializing ldap…failed. (28160)

  • Avatar for ayush ayush says:

    thanks , for another solution is to modify the permissions of the sudoers file and comment the line ssh # Defaults requiretty

Leave a Reply

Your email address will not be published. Required fields are marked *