unable to install zimbra on centos due to LDAP initialization issue

Ask questions about your setup or get help installing ZCS server (ZD section below).
MustafaZargar
Posts: 12
Joined: Sat Mar 28, 2015 7:25 am

unable to install zimbra on centos due to LDAP initialization issue

Postby MustafaZargar » Tue Mar 31, 2015 10:07 am

Hi,



i am trying to install zimbra for last 5 days now and each time i faced issues and kept changing distros. now i hv decided to stick with centos and when i am trying to install zimbra 8.5.1 i get folowing error:


Tue Mar 31 14:30:34 2015 Initializing ldap…
Tue Mar 31 14:30:34 2015 *** Running as zimbra user: /opt/zimbra/libexec/zmldapinit
Connection timed out at /opt/zimbra/libexec/zmldapinit line 138.
Tue Mar 31 14:32:22 2015 failed. (28160)


I checked visudo file and requiretty line is commented out already.
any quick help plz?



User avatar
jorgedlcruz
Zimbra Alumni
Zimbra Alumni
Posts: 2778
Joined: Thu May 22, 2014 4:47 pm

unable to install zimbra on centos due to LDAP initialization issue

Postby jorgedlcruz » Tue Mar 31, 2015 10:12 am

Hi Mustafa,


This seems to be an error in the DNs Configuration, can you please share with us the content of:



  • /etc/hosts

  • /etc/hostname/

  • /etc/resolv.conf

  • ifconfig

  • dig mx yourdomain.com


Are you trying with CentOS 6 or 7? And also why you didn't try with Zimbra Collaboration 8.6, instead 8.5?



Looking forward for your response to help you.


Best regards

Jorge de la Cruz https://jorgedelacruz.es
Systems Engineer at Veeam Software https://www.veeam.com/
MustafaZargar
Posts: 12
Joined: Sat Mar 28, 2015 7:25 am

unable to install zimbra on centos due to LDAP initialization issue

Postby MustafaZargar » Wed Apr 01, 2015 12:15 am

because ZCS 8.6 had to be patched afterwards which was extra burden.

Here are outputs of some commands:



# cat /etc/redhat-release

CentOS release 6.6 (Final)



# cat /etc/hosts

127.0.0.1 localhost

192.168.26.11 mail.imanudin.net mail

#127.0.0.1 localhost localhost.localdomain localhost4 localhost4.localdomain4

#::1 localhost localhost.localdomain localhost6 localhost6.localdomain6



# cat /etc/hostname

cat: /etc/hostname: No such file or directory



# hostname

mail.imanudin.net



cat /etc/resolv.conf

; generated by /sbin/dhclient-script

search imanudin.net

nameserver 192.168.1.7

#nameserver 8.8.8.8

(i did try uncommenting 8.8.8.8 but still no success)



]# ifconfig

eth0 Link encap:Ethernet HWaddr 08:00:27:36:5C:0E

inet addr:192.168.1.7 Bcast:192.168.1.255 Mask:255.255.255.0

inet6 addr: fe80::a00:27ff:fe36:5c0e/64 Scope:Link

UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1

RX packets:250 errors:0 dropped:0 overruns:0 frame:0

TX packets:205 errors:0 dropped:0 overruns:0 carrier:0

collisions:0 txqueuelen:1000

RX bytes:71025 (69.3 KiB) TX bytes:22037 (21.5 KiB)



lo Link encap:Local Loopback

inet addr:127.0.0.1 Mask:255.0.0.0

inet6 addr: ::1/128 Scope:Host

UP LOOPBACK RUNNING MTU:65536 Metric:1

RX packets:4 errors:0 dropped:0 overruns:0 frame:0

TX packets:4 errors:0 dropped:0 overruns:0 carrier:0

collisions:0 txqueuelen:0

RX bytes:284 (284.0 b) TX bytes:284 (284.0 b)



# dig mx imanudin.net



; <<>> DiG 9.8.2rc1-RedHat-9.8.2-0.30.rc1.el6_6.2 <<>> mx imanudin.net

;; global options: +cmd

;; Got answer:

;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 22765

;; flags: qr aa rd ra; QUERY: 1, ANSWER: 1, AUTHORITY: 1, ADDITIONAL: 2



;; QUESTION SECTION:

;imanudin.net. IN MX



;; ANSWER SECTION:

imanudin.net. 86400 IN MX 0 mail.imanudin.net.



;; AUTHORITY SECTION:

imanudin.net. 86400 IN NS ns1.imanudin.net.



;; ADDITIONAL SECTION:

mail.imanudin.net. 86400 IN A 192.168.1.7

ns1.imanudin.net. 86400 IN A 192.168.1.7



;; Query time: 0 msec

;; SERVER: 192.168.1.7#53(192.168.1.7)

;; WHEN: Wed Apr 1 10:45:00 2015

;; MSG SIZE rcvd: 101





Hope to hear from you soon.
User avatar
cayaraa
Outstanding Member
Outstanding Member
Posts: 333
Joined: Sat Sep 13, 2014 12:33 am
ZCS/ZD Version: ZCS 8.7 NE & ZCS 8.7 FOSS

unable to install zimbra on centos due to LDAP initialization issue

Postby cayaraa » Wed Apr 01, 2015 10:43 am

You've only half disabled IPv6...I'd try disabling it all the way to make sure thats not the issue since your ifconfig is listing inet6.



Try adding this to /etc/sysctl.conf

net.ipv6.conf.all.disable_ipv6 = 1

and this to /etc/sysconfig/network-scripts/ifcfg-eth0

IPV6INIT=no



There might be others...but its been a while since I setup the template...
MustafaZargar
Posts: 12
Joined: Sat Mar 28, 2015 7:25 am

unable to install zimbra on centos due to LDAP initialization issue

Postby MustafaZargar » Thu Apr 02, 2015 3:02 am

Did above edits plus ones mentioned here: http://ithelpblog.com/os/linux/redhat/centos-redhat/howto-disable-ipv6-on-centos-6-4-or-redhat-6-4-rhel/

then i uninstalled zimbra and removed /opt/zimbra directory to restart installation from scratch but still the same error:



Thu Apr 2 13:26:03 2015 Initializing ldap...

Thu Apr 2 13:26:03 2015 *** Running as zimbra user: /opt/zimbra/libexec/zmldapinit

Connection timed out at /opt/zimbra/libexec/zmldapinit line 138.

Thu Apr 2 13:27:53 2015 failed. (28160)

Thu Apr 2 13:27:53 2015



ERROR



Thu Apr 2 13:27:53 2015



Configuration failed

-----

any other suggestions?
User avatar
jorgedlcruz
Zimbra Alumni
Zimbra Alumni
Posts: 2778
Joined: Thu May 22, 2014 4:47 pm

unable to install zimbra on centos due to LDAP initialization issue

Postby jorgedlcruz » Thu Apr 02, 2015 5:35 am

Hi Mustafa,

You have wrong your Hosts file, look you have the next:

192.168.26.11 mail.imanudin.net mail



But your Server IP is 192.168.1.7, so is normal to have this error.



Change the hosts entry, restart the server and try to install 8.6 again.



Best regards
Jorge de la Cruz https://jorgedelacruz.es
Systems Engineer at Veeam Software https://www.veeam.com/
MustafaZargar
Posts: 12
Joined: Sat Mar 28, 2015 7:25 am

unable to install zimbra on centos due to LDAP initialization issue

Postby MustafaZargar » Thu Apr 02, 2015 6:30 am

Bummerrrrrr :|

how could i not notice that :/



Thanks a lot but you may need to wait as i have not been able to get past mailbox not running error.

will proceed with installation and update you accordingly :)



Thanks again!
User avatar
jorgedlcruz
Zimbra Alumni
Zimbra Alumni
Posts: 2778
Joined: Thu May 22, 2014 4:47 pm

unable to install zimbra on centos due to LDAP initialization issue

Postby jorgedlcruz » Thu Apr 02, 2015 7:31 am

Hi Mustafa,

Looking forward your news, hopefuilly will be good news.



Best regards
Jorge de la Cruz https://jorgedelacruz.es
Systems Engineer at Veeam Software https://www.veeam.com/
MustafaZargar
Posts: 12
Joined: Sat Mar 28, 2015 7:25 am

unable to install zimbra on centos due to LDAP initialization issue

Postby MustafaZargar » Fri Apr 03, 2015 9:49 am

Hello again,



So the goodnews is our zimbra is installed and the bad news is i cannot access its webmail interface.



here is output of some commands:



$ zmcontrol status

Host mail.imanudin.net

amavis Running

antispam Running

antivirus Running

ldap Running

logger Running

mailbox Running

memcached Running

mta Running

opendkim Running

proxy Running

service webapp Running

snmp Running

spell Running

stats Running

zimbra webapp Running

zimbraAdmin webapp Running

zimlet webapp Running

zmconfigd Running



]# netstat -nltp

Active Internet connections (only servers)

Proto Recv-Q Send-Q Local Address Foreign Address State PID/Program name

tcp 0 0 0.0.0.0:465 0.0.0.0:* LISTEN 1166/master

tcp 0 0 127.0.0.1:8465 0.0.0.0:* LISTEN 783/opendkim

tcp 0 0 0.0.0.0:7025 0.0.0.0:* LISTEN 32222/java

tcp 0 0 192.168.1.7:53 0.0.0.0:* LISTEN 901/named

tcp 0 0 127.0.0.1:53 0.0.0.0:* LISTEN 901/named

tcp 0 0 0.0.0.0:22 0.0.0.0:* LISTEN 959/sshd

tcp 0 0 0.0.0.0:25 0.0.0.0:* LISTEN 1166/master

tcp 0 0 0.0.0.0:7993 0.0.0.0:* LISTEN 32222/java

tcp 0 0 127.0.0.1:953 0.0.0.0:* LISTEN 901/named

tcp 0 0 0.0.0.0:443 0.0.0.0:* LISTEN 356/nginx

tcp 0 0 0.0.0.0:7995 0.0.0.0:* LISTEN 32222/java

tcp 0 0 0.0.0.0:8443 0.0.0.0:* LISTEN 32222/java

tcp 0 0 0.0.0.0:7071 0.0.0.0:* LISTEN 32222/java

tcp 0 0 127.0.0.1:23232 0.0.0.0:* LISTEN 391/perl

tcp 0 0 0.0.0.0:7072 0.0.0.0:* LISTEN 32222/java

tcp 0 0 127.0.0.1:23233 0.0.0.0:* LISTEN 395/perl

tcp 0 0 0.0.0.0:993 0.0.0.0:* LISTEN 356/nginx

tcp 0 0 0.0.0.0:995 0.0.0.0:* LISTEN 356/nginx

tcp 0 0 127.0.0.1:7171 0.0.0.0:* LISTEN 31584/java

tcp 0 0 0.0.0.0:7780 0.0.0.0:* LISTEN 813/httpd

tcp 0 0 192.168.1.7:389 0.0.0.0:* LISTEN 31545/slapd

tcp 0 0 0.0.0.0:7110 0.0.0.0:* LISTEN 32222/java

tcp 0 0 0.0.0.0:7143 0.0.0.0:* LISTEN 32222/java

tcp 0 0 127.0.0.1:10663 0.0.0.0:* LISTEN 32133/zmlogger: zmr

tcp 0 0 127.0.0.1:10024 0.0.0.0:* LISTEN 499/amavisd (master

tcp 0 0 127.0.0.1:10025 0.0.0.0:* LISTEN 1166/master

tcp 0 0 127.0.0.1:10026 0.0.0.0:* LISTEN 499/amavisd (master

tcp 0 0 127.0.0.1:7306 0.0.0.0:* LISTEN 32121/mysqld

tcp 0 0 127.0.0.1:10027 0.0.0.0:* LISTEN 1166/master

tcp 0 0 0.0.0.0:587 0.0.0.0:* LISTEN 1166/master

tcp 0 0 0.0.0.0:11211 0.0.0.0:* LISTEN 316/memcached

tcp 0 0 127.0.0.1:10028 0.0.0.0:* LISTEN 1166/master

tcp 0 0 127.0.0.1:10029 0.0.0.0:* LISTEN 1166/master

tcp 0 0 127.0.0.1:10030 0.0.0.0:* LISTEN 1166/master

tcp 0 0 127.0.0.1:3310 0.0.0.0:* LISTEN 747/clamd

tcp 0 0 0.0.0.0:110 0.0.0.0:* LISTEN 356/nginx

tcp 0 0 0.0.0.0:143 0.0.0.0:* LISTEN 356/nginx

tcp 0 0 127.0.0.1:10032 0.0.0.0:* LISTEN 499/amavisd (master

tcp 0 0 127.0.0.1:8080 0.0.0.0:* LISTEN 32222/java





over to you Jorge!



Regards/
MustafaZargar
Posts: 12
Joined: Sat Mar 28, 2015 7:25 am

unable to install zimbra on centos due to LDAP initialization issue

Postby MustafaZargar » Fri Apr 03, 2015 9:53 am

and here is what i get on web page:



HTTP ERROR 502



Problem accessing ZCS upstream server. Cannot connect to the ZCS upstream server. Connection is refused.

Possible reasons:



upstream server is unreachable

upstream server is currently being upgraded

upstream server is down

Please contact your ZCS administrator to fix the problem.



Powered by Nginx-Zimbra://

Return to “Installation and Upgrade”

Who is online

Users browsing this forum: No registered users and 5 guests