zmValidateLdap segfault on Ubuntu upgrade from 14.04 to 18.04

Ask questions about your setup or get help installing ZCS server (ZD section below).
Post Reply
lnappa
Posts: 7
Joined: Sat Sep 13, 2014 12:52 am
Location: Oslo, Norway
ZCS/ZD Version: 8.8.15.GA.3869.UBUNTU18.64 FOSS P5

zmValidateLdap segfault on Ubuntu upgrade from 14.04 to 18.04

Post by lnappa »

I have a working installation Release 8.8.15.GA.3869.UBUNTU14.64 UBUNTU14_64 FOSS edition, Patch 8.8.15_P5 that I am trying upgrade to Ubuntu 18.04.3 LTS.
I follow instructions from https://wiki.zimbra.com/wiki/How_to_mov ... her_server and everything looks good until step 7. I copy my working /etc/hosts file to the new server, updating only the hosts new IP address.

Code: Select all

$ ./install.sh 

Operations logged to /tmp/install.log.XGYsRQlv
Checking for existing installation...
    zimbra-drive...NOT FOUND
    zimbra-imapd...NOT FOUND
    zimbra-patch...FOUND zimbra-patch-8.8.15.1576149483.p5-1.u18
    zimbra-mta-patch...FOUND zimbra-mta-patch-8.8.15.1552427139.p0-1.u18
    zimbra-proxy-patch...NOT FOUND
    zimbra-license-tools...NOT FOUND
    zimbra-license-extension...NOT FOUND
    zimbra-network-store...NOT FOUND
    zimbra-network-modules-ng...NOT FOUND
    zimbra-chat...NOT FOUND
    zimbra-talk...NOT FOUND
    zimbra-ldap...FOUND zimbra-ldap-8.8.15.GA.3869.UBUNTU18.64
    zimbra-logger...FOUND zimbra-logger-8.8.15.GA.3869.UBUNTU18.64
    zimbra-mta...FOUND zimbra-mta-8.8.15.GA.3869.UBUNTU18.64
    zimbra-dnscache...NOT FOUND
    zimbra-snmp...FOUND zimbra-snmp-8.8.15.GA.3869.UBUNTU18.64
    zimbra-store...FOUND zimbra-store-8.8.15.GA.3869.UBUNTU18.64
    zimbra-apache...FOUND zimbra-apache-8.8.15.GA.3869.UBUNTU18.64
    zimbra-spell...FOUND zimbra-spell-8.8.15.GA.3869.UBUNTU18.64
    zimbra-convertd...NOT FOUND
    zimbra-memcached...NOT FOUND
    zimbra-proxy...NOT FOUND
    zimbra-archiving...NOT FOUND
    zimbra-core...FOUND zimbra-core-8.8.15.GA.3869.UBUNTU18.64
ZCS upgrade from 8.8.15 to 8.8.15 will be performed.
Validating ldap configuration
Unknown Error: It should be impossible to reach this statement.
Log files:

Code: Select all

sudo cat /tmp/install.log.XGYsRQlv
COMMAND: ldap start
Started slapd: pid 1152

Code: Select all

cat /var/log/syslog
...
Jan  5 22:06:49 slapd[1151]: @(#) $OpenLDAP: slapd 2.4.46 (Sep 18 2018 11:14:58) $#012#011build@u1487:/home/build/git/87/packages/thirdparty/openldap/build/UBUNTU14_64/zimbra-openldap/servers/slapd
Jan  5 22:06:50 slapd[1152]: slapd starting
Jan  5 22:06:53 kernel: [  875.860455] zmValidateLdap.[1172]: segfault at 5 ip 00007f27fa6b7d99 sp 00007ffdcdd51000 error 4 in Socket.so[7f27fa6b2000+8000]
I have tried several different OS installations, Server and Minimal with no difference.
The Server OS installation produced a Crash Dump:

Code: Select all

ProblemType: Crash
Architecture: amd64
Date: Thu Jan  2 19:56:51 2020
DistroRelease: Ubuntu 18.04
ExecutablePath: /usr/bin/perl
ExecutableTimestamp: 1542642884
ProcCmdline: /usr/bin/perl bin/zmValidateLdap.pl --vmajor 8 --vminor 8 --vmicro 15 --umajor 8 --uminor 8 --umicro 15 -l
ProcCwd: /home/User/Zimbra/zcs-8.8.15_GA_3869.UBUNTU18_64.20190918004220
ProcEnviron:
 LC_MEASUREMENT=C.UTF-8
 LC_PAPER=C.UTF-8
 LC_MONETARY=C.UTF-8
 LANG=C.UTF-8
 LC_NAME=C.UTF-8
 LC_COLLATE=en_US.UTF-8
 LC_CTYPE=en_US.UTF-8
 LC_ADDRESS=C.UTF-8
 LC_NUMERIC=C.UTF-8
 SHELL=/bin/bash
 TERM=xterm-256color
 LC_MESSAGES=en_US.UTF-8
 LC_TELEPHONE=C.UTF-8
 PATH=(custom, no user)
 LC_IDENTIFICATION=C.UTF-8
 LC_TIME=C.UTF-8
ProcMaps:
 55e936e07000-55e936fff000 r-xp 00000000 fc:02 1050688                    /usr/bin/perl
 55e9371ff000-55e937205000 r--p 001f8000 fc:02 1050688                    /usr/bin/perl
 55e937205000-55e937207000 rw-p 001fe000 fc:02 1050688                    /usr/bin/perl
 55e937c3f000-55e937dcf000 rw-p 00000000 00:00 0                          [heap]
 7fd65eae6000-7fd65eaee000 r-xp 00000000 fc:11 4588569                    /opt/zimbra/common/lib/perl5/x86_64-linux-gnu-thread-multi/auto/Socket/Socket.so
 7fd65eaee000-7fd65ecee000 ---p 00008000 fc:11 4588569                    /opt/zimbra/common/lib/perl5/x86_64-linux-gnu-thread-multi/auto/Socket/Socket.so
 7fd65ecee000-7fd65ecf0000 r--p 00008000 fc:11 4588569                    /opt/zimbra/common/lib/perl5/x86_64-linux-gnu-thread-multi/auto/Socket/Socket.so
 7fd65ecf0000-7fd65ecf1000 rw-p 0000a000 fc:11 4588569                    /opt/zimbra/common/lib/perl5/x86_64-linux-gnu-thread-multi/auto/Socket/Socket.so
 7fd65ecf1000-7fd65ecfa000 r-xp 00000000 fc:02 656138                     /lib/x86_64-linux-gnu/libcrypt-2.27.so
 7fd65ecfa000-7fd65eef9000 ---p 00009000 fc:02 656138                     /lib/x86_64-linux-gnu/libcrypt-2.27.so
 7fd65eef9000-7fd65eefa000 r--p 00008000 fc:02 656138                     /lib/x86_64-linux-gnu/libcrypt-2.27.so
 7fd65eefa000-7fd65eefb000 rw-p 00009000 fc:02 656138                     /lib/x86_64-linux-gnu/libcrypt-2.27.so
 7fd65eefb000-7fd65ef29000 rw-p 00000000 00:00 0 
 7fd65ef29000-7fd65f110000 r-xp 00000000 fc:02 656133                     /lib/x86_64-linux-gnu/libc-2.27.so
 7fd65f110000-7fd65f310000 ---p 001e7000 fc:02 656133                     /lib/x86_64-linux-gnu/libc-2.27.so
 7fd65f310000-7fd65f314000 r--p 001e7000 fc:02 656133                     /lib/x86_64-linux-gnu/libc-2.27.so
 7fd65f314000-7fd65f316000 rw-p 001eb000 fc:02 656133                     /lib/x86_64-linux-gnu/libc-2.27.so
 7fd65f316000-7fd65f31a000 rw-p 00000000 00:00 0 
 7fd65f31a000-7fd65f334000 r-xp 00000000 fc:02 656196                     /lib/x86_64-linux-gnu/libpthread-2.27.so
 7fd65f334000-7fd65f533000 ---p 0001a000 fc:02 656196                     /lib/x86_64-linux-gnu/libpthread-2.27.so
 7fd65f533000-7fd65f534000 r--p 00019000 fc:02 656196                     /lib/x86_64-linux-gnu/libpthread-2.27.so
 7fd65f534000-7fd65f535000 rw-p 0001a000 fc:02 656196                     /lib/x86_64-linux-gnu/libpthread-2.27.so
 7fd65f535000-7fd65f539000 rw-p 00000000 00:00 0 
 7fd65f539000-7fd65f6d6000 r-xp 00000000 fc:02 656166                     /lib/x86_64-linux-gnu/libm-2.27.so
 7fd65f6d6000-7fd65f8d5000 ---p 0019d000 fc:02 656166                     /lib/x86_64-linux-gnu/libm-2.27.so
 7fd65f8d5000-7fd65f8d6000 r--p 0019c000 fc:02 656166                     /lib/x86_64-linux-gnu/libm-2.27.so
 7fd65f8d6000-7fd65f8d7000 rw-p 0019d000 fc:02 656166                     /lib/x86_64-linux-gnu/libm-2.27.so
 7fd65f8d7000-7fd65f8da000 r-xp 00000000 fc:02 656144                     /lib/x86_64-linux-gnu/libdl-2.27.so
 7fd65f8da000-7fd65fad9000 ---p 00003000 fc:02 656144                     /lib/x86_64-linux-gnu/libdl-2.27.so
 7fd65fad9000-7fd65fada000 r--p 00002000 fc:02 656144                     /lib/x86_64-linux-gnu/libdl-2.27.so
 7fd65fada000-7fd65fadb000 rw-p 00003000 fc:02 656144                     /lib/x86_64-linux-gnu/libdl-2.27.so
 7fd65fadb000-7fd65fb02000 r-xp 00000000 fc:02 656121                     /lib/x86_64-linux-gnu/ld-2.27.so
 7fd65fb53000-7fd65fb54000 r--p 00000000 fc:02 1051175                    /usr/lib/locale/C.UTF-8/LC_NUMERIC
 7fd65fb54000-7fd65fb55000 r--p 00000000 fc:02 1051178                    /usr/lib/locale/C.UTF-8/LC_TIME
 7fd65fb55000-7fd65fb56000 r--p 00000000 fc:02 1051173                    /usr/lib/locale/C.UTF-8/LC_MONETARY
 7fd65fb56000-7fd65fb57000 r--p 00000000 fc:02 1051176                    /usr/lib/locale/C.UTF-8/LC_PAPER
 7fd65fb57000-7fd65fb58000 r--p 00000000 fc:02 1051174                    /usr/lib/locale/C.UTF-8/LC_NAME
 7fd65fb58000-7fd65fb59000 r--p 00000000 fc:02 1051164                    /usr/lib/locale/C.UTF-8/LC_ADDRESS
 7fd65fb59000-7fd65fb5a000 r--p 00000000 fc:02 1051177                    /usr/lib/locale/C.UTF-8/LC_TELEPHONE
 7fd65fb5a000-7fd65fb5b000 r--p 00000000 fc:02 1051172                    /usr/lib/locale/C.UTF-8/LC_MEASUREMENT
 7fd65fb5b000-7fd65fcf6000 r--p 00000000 fc:02 1049302                    /usr/lib/locale/locale-archive
 7fd65fcf6000-7fd65fcfa000 rw-p 00000000 00:00 0 
 7fd65fcfa000-7fd65fd01000 r--s 00000000 fc:02 1182899                    /usr/lib/x86_64-linux-gnu/gconv/gconv-modules.cache
 7fd65fd01000-7fd65fd02000 r--p 00000000 fc:02 1051171                    /usr/lib/locale/C.UTF-8/LC_IDENTIFICATION
 7fd65fd02000-7fd65fd03000 r--p 00027000 fc:02 656121                     /lib/x86_64-linux-gnu/ld-2.27.so
 7fd65fd03000-7fd65fd04000 rw-p 00028000 fc:02 656121                     /lib/x86_64-linux-gnu/ld-2.27.so
 7fd65fd04000-7fd65fd05000 rw-p 00000000 00:00 0 
 7ffda274b000-7ffda276c000 rw-p 00000000 00:00 0                          [stack]
 7ffda2784000-7ffda2787000 r--p 00000000 00:00 0                          [vvar]
 7ffda2787000-7ffda2789000 r-xp 00000000 00:00 0                          [vdso]
 ffffffffff600000-ffffffffff601000 r-xp 00000000 00:00 0                  [vsyscall]
ProcStatus:
 Name:	zmValidateLdap.
 Umask:	0022
 State:	S (sleeping)
 Tgid:	2293
 Ngid:	0
 Pid:	2293
 PPid:	2292
 TracerPid:	0
 Uid:	0	0	0	0
 Gid:	0	0	0	0
 FDSize:	64
 Groups:	0 
 NStgid:	2293
 NSpid:	2293
 NSpgid:	1955
 NSsid:	1830
 VmPeak:	   22032 kB
 VmSize:	   22032 kB
 VmLck:	       0 kB
 VmPin:	       0 kB
 VmHWM:	    6116 kB
 VmRSS:	    6116 kB
 RssAnon:	    1640 kB
 RssFile:	    4476 kB
 RssShmem:	       0 kB
 VmData:	    1876 kB
 VmStk:	     132 kB
 VmExe:	    2016 kB
 VmLib:	    3948 kB
 VmPTE:	      80 kB
 VmSwap:	       0 kB
 HugetlbPages:	       0 kB
 CoreDumping:	1
 Threads:	1
 SigQ:	0/15532
 SigPnd:	0000000000000000
 ShdPnd:	0000000000000000
 SigBlk:	0000000000000000
 SigIgn:	0000000000000080
 SigCgt:	0000000180000000
 CapInh:	0000000000000000
 CapPrm:	0000003fffffffff
 CapEff:	0000003fffffffff
 CapBnd:	0000003fffffffff
 CapAmb:	0000000000000000
 NoNewPrivs:	0
 Seccomp:	0
 Speculation_Store_Bypass:	vulnerable
 Cpus_allowed:	7
 Cpus_allowed_list:	0-2
 Mems_allowed:	00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000001
 Mems_allowed_list:	0
 voluntary_ctxt_switches:	8
 nonvoluntary_ctxt_switches:	35
Signal: 11
Uname: Linux 4.15.0-72-generic x86_64
UserGroups: 
_LogindSession: 3
CoreDump: base64
...
Any ideas?
Thank you very much.
neutronscott
Posts: 28
Joined: Fri Jun 09, 2017 2:05 pm

Re: zmValidateLdap segfault on Ubuntu upgrade from 14.04 to 18.04

Post by neutronscott »

The guide seems to cover this issue. Read down further and let us know if reinstall of Zimbra perl pkg did not fix it.
lnappa
Posts: 7
Joined: Sat Sep 13, 2014 12:52 am
Location: Oslo, Norway
ZCS/ZD Version: 8.8.15.GA.3869.UBUNTU18.64 FOSS P5

Re: zmValidateLdap segfault on Ubuntu upgrade from 14.04 to 18.04

Post by lnappa »

Yes, this worked great. And I need to consult my optician :shock: :lol: Thank you very much!

Code: Select all

# for pkg in $(dpkg -l | grep zimbra | grep perl | awk '{print $2}'); do sudo apt-get install --reinstall $pkg; done
Reading package lists... Done
Building dependency tree
Reading state information... Done
0 to upgrade, 0 to newly install, 1 reinstalled, 0 to remove and 0 not to upgrade.
Need to get 0 B/2,404 B of archives.
After this operation, 0 B of additional disk space will be used.
(Reading database ... 111699 files and directories currently installed.)
Preparing to unpack .../zimbra-perl_1.0.3-1zimbra8.7b1.18.04_all.deb ...
Unpacking zimbra-perl (1.0.3-1zimbra8.7b1.18.04) over (1.0.3-1zimbra8.7b1.18.04) ...
 ...
# ./install.sh

Operations logged to /tmp/install.log.KxwMGvUi
Checking for existing installation...
    zimbra-drive...NOT FOUND
    zimbra-imapd...NOT FOUND
    zimbra-patch...FOUND zimbra-patch-8.8.15.1576149483.p5-1.u18
    zimbra-mta-patch...FOUND zimbra-mta-patch-8.8.15.1552427139.p0-1.u18
    zimbra-proxy-patch...NOT FOUND
    zimbra-license-tools...NOT FOUND
    zimbra-license-extension...NOT FOUND
    zimbra-network-store...NOT FOUND
    zimbra-network-modules-ng...NOT FOUND
    zimbra-chat...NOT FOUND
    zimbra-talk...NOT FOUND
    zimbra-ldap...FOUND zimbra-ldap-8.8.15.GA.3869.UBUNTU18.64
    zimbra-logger...FOUND zimbra-logger-8.8.15.GA.3869.UBUNTU18.64
    zimbra-mta...FOUND zimbra-mta-8.8.15.GA.3869.UBUNTU18.64
    zimbra-dnscache...NOT FOUND
    zimbra-snmp...FOUND zimbra-snmp-8.8.15.GA.3869.UBUNTU18.64
    zimbra-store...FOUND zimbra-store-8.8.15.GA.3869.UBUNTU18.64
    zimbra-apache...FOUND zimbra-apache-8.8.15.GA.3869.UBUNTU18.64
    zimbra-spell...FOUND zimbra-spell-8.8.15.GA.3869.UBUNTU18.64
    zimbra-convertd...NOT FOUND
    zimbra-memcached...NOT FOUND
    zimbra-proxy...NOT FOUND
    zimbra-archiving...NOT FOUND
    zimbra-core...FOUND zimbra-core-8.8.15.GA.3869.UBUNTU18.64
ZCS upgrade from 8.8.15 to 8.8.15 will be performed.
Validating ldap configuration
LDAP validation succeeded.  Continuing.

----------------------------------------------------------------------
PLEASE READ THIS AGREEMENT CAREFULLY BEFORE USING THE SOFTWARE.
SYNACOR, INC. ("SYNACOR") WILL ONLY LICENSE THIS SOFTWARE TO YOU IF YOU
FIRST ACCEPT THE TERMS OF THIS AGREEMENT. BY DOWNLOADING OR INSTALLING
THE SOFTWARE, OR USING THE PRODUCT, YOU ARE CONSENTING TO BE BOUND BY
THIS AGREEMENT. IF YOU DO NOT AGREE TO ALL OF THE TERMS OF THIS
AGREEMENT, THEN DO NOT DOWNLOAD, INSTALL OR USE THE PRODUCT.

License Terms for this Zimbra Collaboration Suite Software:
https://www.zimbra.com/license/zimbra-public-eula-2-6.html
----------------------------------------------------------------------

Do you agree with the terms of the software license agreement? [N] Y

Checking current number of databases...

Do you want to verify message store database integrity? [Y]
Verifying integrity of message store databases.  This may take a while.
Starting mysqld...done.
mysqld is alive
No errors found
mysqld is alive
Stopping mysqld... done.

Use Zimbra's package repository [Y]

Warning: apt-key output should not be parsed (stdout is not a terminal)
Importing Zimbra GPG key

Configuring package repository

Checking for installable packages

Found zimbra-core (local)
Found zimbra-ldap (local)
Found zimbra-logger (local)
Found zimbra-mta (local)
Found zimbra-dnscache (local)
Found zimbra-snmp (local)
Found zimbra-store (local)
Found zimbra-apache (local)
Found zimbra-spell (local)
Found zimbra-memcached (repo)
Found zimbra-proxy (local)
Found zimbra-drive (repo)
Found zimbra-imapd (local)
Found zimbra-patch (repo)
Found zimbra-mta-patch (repo)
Found zimbra-proxy-patch (repo)
 ...
# cat /tmp/install.log.KxwMGvUi
COMMAND: ldap start
Started slapd: pid 4101
Warning: apt-key output should not be parsed (stdout is not a terminal)
Executing: /tmp/apt-key-gpghome.b5LOs7lIUc/gpg.1.sh --keyserver hkp://keyserver.ubuntu.com:80 --recv-keys XXX
gpg: key XXX: "Zimbra Packaging Services <packaging-devel@zimbra.com>" not changed
gpg: Total number processed: 1
gpg:              unchanged: 1
Reading package lists...
Building dependency tree...
Reading state information...
apt-transport-https is already the newest version (1.6.12).
0 to upgrade, 0 to newly install, 0 to remove and 0 not to upgrade.
Hit:1 http://no.archive.ubuntu.com/ubuntu bionic InRelease
Get:2 http://no.archive.ubuntu.com/ubuntu bionic-updates InRelease [88.7 kB]
Get:3 http://no.archive.ubuntu.com/ubuntu bionic-backports InRelease [74.6 kB]
Get:4 http://security.ubuntu.com/ubuntu bionic-security InRelease [88.7 kB]
Get:5 http://no.archive.ubuntu.com/ubuntu bionic-updates/main amd64 Packages [828 kB]
Get:6 http://no.archive.ubuntu.com/ubuntu bionic-updates/main i386 Packages [628 kB]
Get:7 http://no.archive.ubuntu.com/ubuntu bionic-updates/main Translation-en [290 kB]
Get:8 http://no.archive.ubuntu.com/ubuntu bionic-updates/restricted amd64 Packages [25.8 kB]
Get:9 http://no.archive.ubuntu.com/ubuntu bionic-updates/restricted Translation-en [6,964 B]
Get:10 http://no.archive.ubuntu.com/ubuntu bionic-updates/universe i386 Packages [997 kB]
Get:11 http://no.archive.ubuntu.com/ubuntu bionic-updates/universe amd64 Packages [1,035 kB]
Get:12 http://no.archive.ubuntu.com/ubuntu bionic-updates/universe Translation-en [320 kB]
Get:13 http://no.archive.ubuntu.com/ubuntu bionic-updates/multiverse amd64 Packages [9,500 B]
Get:14 http://no.archive.ubuntu.com/ubuntu bionic-updates/multiverse Translation-en [4,540 B]
Hit:15 https://repo.zimbra.com/apt/87 bionic InRelease
Hit:16 https://repo.zimbra.com/apt/8815 bionic InRelease
Fetched 4,396 kB in 1s (3,077 kB/s)
Reading package lists...
 ...
Post Reply