Unable to contact the LDAP server on Zimbra Update

Ask questions about your setup or get help installing ZCS server (ZD section below).
Post Reply
gman
Posts: 5
Joined: Sun Jan 20, 2019 4:40 pm

Unable to contact the LDAP server on Zimbra Update

Post by gman »

Hello,

Due to some misconfigurations our Ubuntu 14.04LTS system has been updated to Ubuntu 16.04LTS without updating Zimbra first (current version is 8.6).
Now zimbra throws "Segmentation fault" errors.

I've downloaded 8.7 and 8.8 but I can not update the current Zimbra setup due to some LDAP problems.
I'm no expert in Zimbra products, so I'd like to ask for detailed information about how should I try to resolve this issue.

This is the output of install.sh:

Code: Select all

# ./install.sh --skip-upgrade-check --force-upgrade

Operations logged to /tmp/install.log.PdZ2TIzw
Checking for existing installation...
    zimbra-chat...NOT FOUND
    zimbra-drive...NOT FOUND
    zimbra-suiteplus...NOT FOUND
    zimbra-ldap...NOT FOUND
    zimbra-logger...FOUND zimbra-logger-8.6.0.GA.1153.UBUNTU14.64
    zimbra-mta...FOUND zimbra-mta-8.6.0.GA.1153.UBUNTU14.64
    zimbra-dnscache...FOUND zimbra-dnscache-8.6.0.GA.1153.UBUNTU14.64
    zimbra-snmp...FOUND zimbra-snmp-8.6.0.GA.1153.UBUNTU14.64
    zimbra-store...FOUND zimbra-store-8.6.0.GA.1153.UBUNTU14.64
    zimbra-apache...FOUND zimbra-apache-8.6.0.GA.1153.UBUNTU14.64
    zimbra-spell...FOUND zimbra-spell-8.6.0.GA.1153.UBUNTU14.64
    zimbra-convertd...NOT FOUND
    zimbra-memcached...FOUND zimbra-memcached-1:1.4.37-2.u16
    zimbra-proxy...FOUND zimbra-proxy-8.6.0.GA.1153.UBUNTU14.64
    zimbra-archiving...NOT FOUND
    zimbra-core...FOUND zimbra-core-8.6.0.GA.1153.UBUNTU14.64
ZCS upgrade from 8.6.0 to 8.7.11 will be performed.
Checking for existing proxy service in your environment
Error: Unable to contact the LDAP server.
What should I try to resolve this?
Thanks!


Update: I copied over the /opt/zimbra folder to a new server running Ubuntu 16.04. I then followed the guide here: https://wiki.zimbra.com/wiki/How_to_mov ... her_server
However if I issue the install command the second time without parameters, I get this issue:
ZCS upgrade from 8.7.11 to 8.7.11 will be performed.
Validating ldap configuration
Error: Unable to create a successful TLS connection to the ldap masters.
Fix cert configuration prior to upgrading.

I've tried this: https://wiki.zimbra.com/wiki/Unable_to_ ... ap_masters
But it's still not resolved.
Last edited by gman on Mon Jan 21, 2019 1:15 pm, edited 1 time in total.
User avatar
DualBoot
Elite member
Elite member
Posts: 1326
Joined: Mon Apr 18, 2016 8:18 pm
Location: France - Earth
ZCS/ZD Version: ZCS FLOSS - 8.8.15 Mutli servers
Contact:

Re: Unable to contact the LDAP server on Zimbra Update

Post by DualBoot »

Hello,

is you Zimbra still here ? (database content, ldap content, store content).
Try to install Zimbra with this option : --softwareonly
after launch zmsetup.pl

Regards,
gman
Posts: 5
Joined: Sun Jan 20, 2019 4:40 pm

Re: Unable to contact the LDAP server on Zimbra Update

Post by gman »

Hello,

Thank you for the answer!
Yes, I left the /opt/zimbra as-is.
I've tried to run install.sh with --softwareonly but I got the same LDAP error.



Currently I'm copying /opt/zimbra to a new machine with Ubuntu 16.04 and zcs 8.7 (software only install, following instructions from: https://wiki.zimbra.com/wiki/How_to_mov ... her_server), but I'm not sure if it will work.
It would be better if the current installation could be repaired.
gman
Posts: 5
Joined: Sun Jan 20, 2019 4:40 pm

Re: Unable to contact the LDAP server on Zimbra Update

Post by gman »

Update: I've copied over the /opt/zimbra directory to a new server with zcs 8.7.11, but when I issue ./install.sh I can not "update".

ZCS upgrade from 8.7.11 to 8.7.11 will be performed.
Validating ldap configuration
Can't locate Net/LDAP.pm in @INC (you may need to install the Net::LDAP module) (@INC contains: /opt/zimbra/common/lib/perl5/ /opt/zimbra/zimbramon/lib /etc/perl /usr/local/lib/x86_64-linux-gnu/perl/5.22.1 /usr/local/share/perl/5.22.1 /usr/lib/x86_64-linux-gnu/perl5/5.22 /usr/share/perl5 /usr/lib/x86_64-linux-gnu/perl/5.22 /usr/share/perl/5.22 /usr/local/lib/site_perl /usr/lib/x86_64-linux-gnu/perl-base .) at bin/zmValidateLdap.pl line 23.
BEGIN failed--compilation aborted at bin/zmValidateLdap.pl line 23.
Error: Unable to bind to the LDAP server as the root LDAP user.
This is required to upgrade.
gman
Posts: 5
Joined: Sun Jan 20, 2019 4:40 pm

Re: Unable to contact the LDAP server on Zimbra Update

Post by gman »

Hello,

I have copied /opt/zimbra to a new server running Ubuntu 14.04.
I've tried to move the install of Zimbra 8.6 according to this: https://wiki.zimbra.com/wiki/How_to_mov ... her_server

Everything seems fine except LDAP.
I can start it by issuing "ldap start" and it runs, but can't connect to it.
If I manually start it and add -h "ldap:/// ldapi:///" I can connect to it but zmcontrol start still fails because it can't connect.

Code: Select all

zimbra@vm6:~$ zmcontrol start
Host localhost
Connect: Unable to determine enabled services from ldap.
Unable to determine enabled services. Cache is out of date or doesn't exist.
Please help me with this! I believe this is the last step to get it working again.
User avatar
DualBoot
Elite member
Elite member
Posts: 1326
Joined: Mon Apr 18, 2016 8:18 pm
Location: France - Earth
ZCS/ZD Version: ZCS FLOSS - 8.8.15 Mutli servers
Contact:

Re: Unable to contact the LDAP server on Zimbra Update

Post by DualBoot »

Hello,

I think the problem is related to the zmlocalconfig. Most of the time it is password problem.
You can reset them with appropriate Zimbra tools.

Regards,
gman
Posts: 5
Joined: Sun Jan 20, 2019 4:40 pm

Re: Unable to contact the LDAP server on Zimbra Update

Post by gman »

Hi,

I already checked the password and it should match.
When I run "./install.sh --skip-activation-check" this is what I get:

Code: Select all

connect: No such file or directory at bin/zmValidateLdap.pl line 89, <DATA> line 751.
Error: Unable to bind to the LDAP server as the root LDAP user.
       This is required to upgrade.
If I start it manually instead of root, zimbra user can not bind.


At this point it would be an acceptable solution if I could just move all emails from /opt/zimbra/store to a normal Dovecot system or import them to a client like Thunderbird. Do you know if it is possible?
User avatar
DualBoot
Elite member
Elite member
Posts: 1326
Joined: Mon Apr 18, 2016 8:18 pm
Location: France - Earth
ZCS/ZD Version: ZCS FLOSS - 8.8.15 Mutli servers
Contact:

Re: Unable to contact the LDAP server on Zimbra Update

Post by DualBoot »

Check by using this method :
- get the appropriate variables with zmlocalcolconfig
- use them to connect to the Zimbra LDAP with ldapsearch

And what your log show also ?
Regards,
Post Reply