Error during Migration Centos 6 to Rocky 8 Zimbra v9.0.0

Looking to migrate to ZCS? Ask here. Got a great tip or script that helped you migrate? Post it here.
Post Reply
tlgerdes
Posts: 42
Joined: Mon Nov 21, 2022 4:02 am

Error during Migration Centos 6 to Rocky 8 Zimbra v9.0.0

Post by tlgerdes »

Hi Team

Folling the ZCS migration guide https://wiki.zimbra.com/wiki/How_to_mov ... her_server and hitting an error at the last hurdle
...
zimbra-memcached...FOUND zimbra-memcached-1.6.5-1zimbra8.7b1
zimbra-proxy...FOUND zimbra-proxy-9.0.0_GA_4325
zimbra-archiving...NOT FOUND
zimbra-core...FOUND zimbra-core-9.0.0_GA_4325
ZCS upgrade from 9.0.0 to 9.0.0 will be performed.
Validating existing license is not expired and qualifies for upgrade
/usr/bin/perl: symbol lookup error: /opt/zimbra/common/lib/perl5/x86_64-linux-thread-multi/auto/Socket/Socket.so: undefined symbol: Perl_Istack_sp_ptr
Unknown Error. It should be impossible to reach this statement.

I noticed this is sort of covered for Ubuntu 14 and 16 in the guide

A common error that might be experienced if you move the server from Ubuntu 14 to Ubuntu 16 is:

Validating ldap configuration
/usr/bin/perl: symbol lookup error: /opt/zimbra/common/lib/perl5//x86_64-linux-gnu-thread-multi/auto/Socket/Socket.so: undefined symbol: Perl_xs_apiversion_bootcheck
Unknown Error: It should be impossible to reach this statement.
OR

Validating existing license is not expired and qualifies for upgrade
Unknown Error. It should be impossible to reach this statement.


But the resolution

The solution:

for pkg in $(dpkg -l | grep zimbra | grep perl | awk '{print $2}'); do sudo apt-get install --reinstall $pkg; done


doesnt work. I get this error.

# for pkg in $(dpkg -l | grep zimbra | grep perl | awk '{print $2}'); do sudo apt-get install --reinstall $pkg; done
bash: dpkg: command not found...


I believe it is just something i am missing on my system to process the commands
User avatar
JDunphy
Outstanding Member
Outstanding Member
Posts: 889
Joined: Fri Sep 12, 2014 11:18 pm
Location: Victoria, BC
ZCS/ZD Version: 9.0.0_P39 NETWORK Edition

Re: Error during Migration Centos 6 to Rocky 8 Zimbra v9.0.0

Post by JDunphy »

Run ./install.sh -s one more time...

Those instructions are misleading because you did this.

1) installed Rocky 8 zimbra and binaries
2) removed /opt/zimbra - meaning the previous Rocky 8 zimbra stuff is now gone
3) copied RHEL 6 zimbra binaries into /opt/zimbra

The easy fix...

Run ./install.sh -s to put back those Rocky 8 zimbra binaries and perl stuff and then continue to step 7.

The problem is that part of install.sh calls /opt/zimbra/libexec/zmsetup.pl and your perl is RHEL 6 which doesn't work because of socket.so, etc.
That extra (install.sh -s) fixes this issue so you can continue.

I don't know the history of that link you provided but I think it was from moving to the same OS on a different machine so didn't need to do it twice. I also think that as of P34 (8.8.15) and P27 (Version 9), that you would want -X to the rsync option so the extended attributes on /opt/zimbra/common/libexec/slapd make it over but fixperms will now call setcap to fix it or you can run it directly if slapd doesn't start.

Code: Select all

#  setcap cap_net_bind_service=+ep /opt/zimbra/common/libexec/slapd
Jim
tlgerdes
Posts: 42
Joined: Mon Nov 21, 2022 4:02 am

Re: Error during Migration Centos 6 to Rocky 8 Zimbra v9.0.0

Post by tlgerdes »

Thanks.

I actually had to run again like you indicated

./install.sh -s

but it didnt restore my config, so I then re-ran

./install.sh

and the config was restored and everything started OK.
Post Reply