Update to 8.7.10 - script failure on memcache package test

Ask questions about your setup or get help installing ZCS server (ZD section below).
User avatar
andreaswolske
Posts: 29
Joined: Tue Nov 26, 2013 11:24 am
Location: Berlin
ZCS/ZD Version: Release 8.8.12_GA_3794.RHEL7_64_201
Contact:

Update to 8.7.10 - script failure on memcache package test

Postby andreaswolske » Fri Jun 23, 2017 6:19 am

I tried to update from 8.7.7 to 8.7.10 on RHEL 7.x using Zimbra repos. First thing was a yum update. Then I started the installer as usual.
The installation process failed with an error message:

Code: Select all

no package zimbra-memcached-1:1.4.37-1zimbra8.7b2.el7 available.

After digging a bit I found an error in the installer utility script packages.sh.

The error is in zcs-NETWORK-8.7.10_GA_1829.RHEL7_64.20170524161336/util/modules/packages.sh

It seems that there's a special section for the memcache package which doesn't parse the installed version exactly.
This leads tho a wrong package name: zimbra-memcached-1:1.4.37-1zimbra8.7b2.el7 - The error is the 1:.
If I set the package name manually it works:

Code: Select all

$PACKAGEDOWNLOAD zimbra-memcached=$MEMCACHEDVER >> $LOGFILE 2>&1
         else
            MEMCACHEDVER=`yum --showduplicates list zimbra-memcached | \
               grep "zimbra$ZM_INST_MAJOR.$ZM_INST_MINOR" | head -n1 | \
               awk '{print $2}'`
            [b]MEMCACHEDVER="1.4.37-1zimbra8.7b2.el7"[/b]
            echo "Downloading Remote package zimbra-memcached version $MEMCACHEDVER";
            yum downgrade --downloadonly --assumeyes zimbra-memcached-$MEMCACHEDVER >> $LOGFILE 2>&1
         fi
         if [ $? -ne 0 ]; then
            echo "Unable to download packages zimbra-memcached from repository. System is not modified."


The better version to parse the installed version on yum based OSes would be:

Code: Select all

MEMCACHEDVER=`yum --showduplicates list zimbra-memcached | \                                                                                                                                       
               grep "zimbra$ZM_INST_MAJOR.$ZM_INST_MINOR" | head -n1 | \
               awk '{print $2}'`.`uname -i`


I also opened a bug report: https://bugzilla.zimbra.com/show_bug.cgi?id=108077

Just in case somebody else is stumbling upon this issue.

BR


User avatar
DualBoot
Elite member
Elite member
Posts: 1134
Joined: Mon Apr 18, 2016 8:18 pm
Location: France - Earth
ZCS/ZD Version: ZCS FLOSS - 8.8.15 Mutli servers
Contact:

Re: Update to 8.7.10 - script failure on memcache package test

Postby DualBoot » Fri Jun 23, 2017 12:05 pm

I have encountered the same problem and use the same trick.
User avatar
jorgedlcruz
Zimbra Alumni
Zimbra Alumni
Posts: 2773
Joined: Thu May 22, 2014 4:47 pm

Re: Update to 8.7.10 - script failure on memcache package test

Postby jorgedlcruz » Fri Jun 23, 2017 11:45 pm

Hi guys,
Did this happened in ZCS 8.7.11 as well for you?

Best regards
Jorge de la Cruz https://jorgedelacruz.es
Systems Engineer at Veeam Software https://www.veeam.com/
User avatar
andreaswolske
Posts: 29
Joined: Tue Nov 26, 2013 11:24 am
Location: Berlin
ZCS/ZD Version: Release 8.8.12_GA_3794.RHEL7_64_201
Contact:

Re: Update to 8.7.10 - script failure on memcache package test

Postby andreaswolske » Sat Jun 24, 2017 9:27 am

jorgedlcruz wrote:Hi guys,
Did this happened in ZCS 8.7.11 as well for you?


Yep: the test in packages.sh is still the same for yum based OSes:

Code: Select all

yum --showduplicates list zimbra-memcached | \
grep "zimbra$ZM_INST_MAJOR.$ZM_INST_MINOR" | head -n1 | \
awk '{print $2}'


returns a wrong package name: 1:1.4.37-1zimbra8.7b2.el7 - the leading "1:1.4.37-1" is the problem.

BTW: There's a test on Ubuntu before which considers the ":" an returns the correct name.
BR
User avatar
DualBoot
Elite member
Elite member
Posts: 1134
Joined: Mon Apr 18, 2016 8:18 pm
Location: France - Earth
ZCS/ZD Version: ZCS FLOSS - 8.8.15 Mutli servers
Contact:

Re: Update to 8.7.10 - script failure on memcache package test

Postby DualBoot » Sun Jun 25, 2017 4:25 pm

Yep, 8.7.11 for me, on two distinct customers.

Return to “Installation and Upgrade”

Who is online

Users browsing this forum: No registered users and 7 guests