How to Upgrade Zimbra Collaboration Suite 8.0.8 to 8.0.9 on CentOS 7.0

Early of November 2014, Zimbra has released the updates to Zimbra Collaboration Suite (ZCS) 8.0.9 and ZCS 8.5.1. The following are the comparison in the bug list resolved betweenZCS 8.0.9 and ZCS 8.5.1 :

8.5.1 – Bug List resolved

96008 – Upgrade to OpenSSL 1.0.1j in all Zimbra Collaboration components, fixing a critical security issue with Dos vulnerability
95237 – Zimbra Disclaimer/Signature Option per Domain does not work.
95461 – RHEL rpm packaging sets /opt/zimbra/conf files as executable
96145 – Moscow timezone change
94725 – Update timezones.ics to tzdata2014i.tar.gz
96084 – Logrotate Cron error after update to 8.0.8
96120 – ZCS open source license update for 8.5.1 GA
96195 – Upgrade step for migrating global disclaimers to domain level is broken

8.0.9 – Bug List resolved

96008 – Upgrade to OpenSSL 1.0.1j in all Zimbra Collaboration components, fixing a critical security issue with Dos vulnerability
96145 – Moscow timezone change
94725 – Update timezones.ics to tzdata2014i.tar.gz
96084 – Logrotate Cron error after update to 8.0.8
96113 – ZCS open source license update for 8.0.9 GA

There are 4 major fixed in ZCS 8.0.9 which also included in the ZCS 8.5.1 release.

Major Issues Fixed for 8.0.9

1. Admin – Utilities
• 96084 – Logrotate Cron error after update to 8.0.8 is fixed.

2. Install and Upgrade
• 96008 – Upgraded to OpenSSL 1.0.1j. See https://www.openssl.org/news/secadv_20141015.txt and Security Fixes for more information.
• 96113 – ZCS open source license update

3. Security Fix
• 96105 – Security Fix. For more information, see Security Fixes on page 24.

4. Timezone Changes
Updated Zimbra to be aware of the latest timezone information, in particular reflecting changes Russia has made to its existing time zones from October 26, 2014.
• 94725 – Updated timezones.ics to tzdata2014i.tar.gz
• 96145 – Rules for Europe/Moscow timezone do not reflect

I have prepared the steps to upgrade the Zimbra Open Source Edition from 8.0.8 to 8.0.9 in CentOS 7.0.

1. Download Zimbra packages:
a. Download Zimbra Collaboration Suite 8.0.9 :

[root@centos7 ~]# wget http://files2.zimbra.com/downloads/8.0.9_GA/zcs-8.0.9_GA_6191.RHEL7_64.20141103151539.tgz

b. Download Zimbra Collaboration Suite 8.5.1 :

[root@centos7 ~]# wget http://files2.zimbra.com/downloads/8.5.1_GA/zcs-8.5.1_GA_3056.RHEL7_64.20141103151515.tgz

2. Log in as root to the Zimbra server and cd to the directory where the ZCS Open Source Edition 8.0.9 archive tar file is saved. Type the following commands to unpack:

[root@centos7 ~]# tar xzvf zcs-8.0.9_GA_6191.RHEL7_64.20141103151539.tgz
[root@centos7 ~]# cd zcs-8.0.9_GA_6191.RHEL7_64.20141103151539

3. To begin the upgrade installation, type the following command :

./install.sh --platform-override
[root@centos7 zcs-8.0.9_GA_6191.RHEL7_64.20141103151539]# ./install.sh --platform-override

Full installation steps :

[root@centos7 zcs-8.0.9_GA_6191.RHEL7_64.20141103151539]# ./install.sh --platform-override

Operations logged to /tmp/install.log.24390
Checking for existing installation...
    zimbra-ldap...FOUND zimbra-ldap-8.0.8_GA_6184
    zimbra-logger...FOUND zimbra-logger-8.0.8_GA_6184
    zimbra-mta...FOUND zimbra-mta-8.0.8_GA_6184
    zimbra-snmp...FOUND zimbra-snmp-8.0.8_GA_6184
    zimbra-store...FOUND zimbra-store-8.0.8_GA_6184
    zimbra-apache...FOUND zimbra-apache-8.0.8_GA_6184
    zimbra-spell...FOUND zimbra-spell-8.0.8_GA_6184
    zimbra-convertd...NOT FOUND
    zimbra-memcached...NOT FOUND
    zimbra-proxy...NOT FOUND
    zimbra-archiving...NOT FOUND
    zimbra-cluster...NOT FOUND
    zimbra-core...FOUND zimbra-core-8.0.8_GA_6184
ZCS upgrade from 8.0.8 to 8.0.9 will be performed.

Saving existing configuration file to /opt/zimbra/.saveconfig


PLEASE READ THIS AGREEMENT CAREFULLY BEFORE USING THE SOFTWARE.
ZIMBRA, INC. ("ZIMBRA") 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 the Zimbra Collaboration Suite:
  http://www.zimbra.com/license/zimbra-public-eula-2-5.html



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


..
..

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

Checking for prerequisites...
     FOUND: NPTL
     FOUND: nmap-ncat-6.40-4
     FOUND: sudo-1.8.6p7-11
     FOUND: libidn-1.28-3
     FOUND: gmp-5.1.1-5
     FOUND: libaio-0.3.109-12
     FOUND: libstdc++-4.8.2-16.2
     FOUND: unzip-6.0-13
     FOUND: perl-core-5.16.3-283

Checking for suggested prerequisites...
     FOUND: perl-5.16.3
     FOUND: sysstat
     FOUND: sqlite
Prerequisite check complete.
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.
mysqld is alive
No errors found

Checking for installable packages

Found zimbra-core
Found zimbra-ldap
Found zimbra-logger
Found zimbra-mta
Found zimbra-snmp
Found zimbra-store
Found zimbra-apache
Found zimbra-spell
Found zimbra-memcached
Found zimbra-proxy


The Zimbra Collaboration Server appears already to be installed.
It can be upgraded with no effect on existing accounts,
or the current installation can be completely removed prior
to installation for a clean install.

Do you wish to upgrade? [Y] y

Select the packages to install
    Upgrading zimbra-core
    Upgrading zimbra-ldap
    Upgrading zimbra-logger
    Upgrading zimbra-mta
    Upgrading zimbra-snmp
    Upgrading zimbra-store
    Upgrading zimbra-apache
    Upgrading zimbra-spell

Install zimbra-memcached [N]

Install zimbra-proxy [N]
Checking required space for zimbra-core
Checking space for zimbra-store

Installing:
    zimbra-core
    zimbra-ldap
    zimbra-logger
    zimbra-mta
    zimbra-snmp
    zimbra-store
    zimbra-apache
    zimbra-spell

The system will be modified.  Continue? [N] y

Shutting down zimbra mail

Backing up the ldap database...done.

Removing existing packages

   zimbra-ldap...done
   zimbra-logger...done
   zimbra-mta...done
   zimbra-snmp...done
   zimbra-store...done
   zimbra-spell...done
   zimbra-apache...done
   zimbra-core...done

Removing deployed webapp directories
Installing packages

    zimbra-core......zimbra-core-8.0.9_GA_6191.RHEL7_64-20141103151539.x86_64.rpm...done
    zimbra-ldap......zimbra-ldap-8.0.9_GA_6191.RHEL7_64-20141103151539.x86_64.rpm...done
    zimbra-logger......zimbra-logger-8.0.9_GA_6191.RHEL7_64-20141103151539.x86_64.rpm...done
    zimbra-mta......zimbra-mta-8.0.9_GA_6191.RHEL7_64-20141103151539.x86_64.rpm...done
    zimbra-snmp......zimbra-snmp-8.0.9_GA_6191.RHEL7_64-20141103151539.x86_64.rpm...done
    zimbra-store......zimbra-store-8.0.9_GA_6191.RHEL7_64-20141103151539.x86_64.rpm...done
    zimbra-apache......zimbra-apache-8.0.9_GA_6191.RHEL7_64-20141103151539.x86_64.rpm...done
    zimbra-spell......zimbra-spell-8.0.9_GA_6191.RHEL7_64-20141103151539.x86_64.rpm...done

Setting defaults from saved config in /opt/zimbra/.saveconfig/config.save
   HOSTNAME=mail.example.local
   LDAPHOST=mail.example.local
   LDAPPORT=389
   SNMPTRAPHOST=mail.example.local
   SMTPSOURCE=admin@example.local
   SMTPDEST=admin@example.local
   SNMPNOTIFY=yes
   SMTPNOTIFY=yes
   LDAPROOTPW=XIaxHi57on
   LDAPZIMBRAPW=XIaxHi57on
   LDAPPOSTPW=XIaxHi57on
   LDAPREPPW=XIaxHi57on
   LDAPAMAVISPW=XIaxHi57on
   LDAPNGINXPW=XIaxHi57on
Restoring existing configuration file from /opt/zimbra/.saveconfig/localconfig.xml...done
Operations logged to /tmp/zmsetup.11152014-152654.log
Upgrading from 8.0.8_GA_6184 to 8.0.9_GA_6191
Stopping zimbra services...done.
This appears to be 8.0.8_GA
Starting mysql...done.
Checking ldap status...not running.
Running zmldapapplyldif...done.
Checking ldap status...not running.
Starting ldap...done.
Stopping mysql...done.
Updating from 8.0.9_GA
Updating global config and COS's with attributes introduced after 8.0.8_GA...done.
Stopping ldap...done.
Upgrade complete.

Running zmldapapplyldif...done.
Checking ldap status....not running.
Starting ldap...done.
Setting defaults...done.
Setting defaults from existing config...done.
Checking for port conflicts
Setting defaults from ldap...done.
Saving config in /opt/zimbra/config.5230...done.
Operations logged to /tmp/zmsetup.11152014-152654.log
Setting local config values...done.
Initializing core config...Setting up CA...done.
Deploying CA to /opt/zimbra/conf/ca ...done.
Setting replication password...done.
Setting Postfix password...done.
Setting amavis password...done.
Setting nginx password...done.
Creating server entry for mail.example.local...already exists.
Setting Zimbra IP Mode...done.
Saving CA in ldap ...done.
Saving SSL Certificate in ldap ...done.
Setting spell check URL...done.
Setting service ports on mail.example.local...done.
Adding mail.example.local to zimbraMailHostPool in default COS...done.
Setting Keyboard Shortcut Preferences...done.
Setting zimbraFeatureTasksEnabled=TRUE...done.
Setting zimbraFeatureBriefcasesEnabled=FALSE...done.
Setting MTA auth host...done.
Setting TimeZone Preference...done.
Initializing mta config...done.
Setting services on mail.example.local...done.
Creating user spam.zuum3_i3g@example.local...already exists.
Creating user ham.sblunut9k@example.local...already exists.
Creating user virus-quarantine.60bpggjwr@example.local...already exists.
Setting spam training and Anti-virus quarantine accounts...done.
Configuring SNMP...done.
Setting up syslog.conf...done.
Starting servers...done.
Checking for deprecated zimlets...done.
Checking for network zimlets in LDAP...done.
Removing network zimlets...
Finished removing network zimlets.
Installing common zimlets...
        com_zimbra_proxy_config...done.
        com_zimbra_attachmail...done.
        com_zimbra_url...done.
        com_zimbra_phone...done.
        com_zimbra_date...done.
        com_zimbra_ymemoticons...done.
        com_zimbra_clientuploader...done.
        com_zimbra_srchhighlighter...done.
        com_zimbra_tooltip...done.
        com_zimbra_webex...done.
        com_zimbra_bulkprovision...done.
        com_zimbra_email...done.
        com_zimbra_adminversioncheck...done.
        com_zimbra_cert_manager...done.
        com_zimbra_viewmail...done.
        com_zimbra_attachcontacts...done.
Finished installing common zimlets.
Getting list of all zimlets...done.
Updating non-standard zimlets...
Finished updating non-standard zimlets.
Restarting mailboxd...done.
Skipping creation of default domain GAL sync account - existing install detected.

You have the option of notifying Zimbra of your installation.
This helps us to track the uptake of the Zimbra Collaboration Server.
The only information that will be transmitted is:
        The VERSION of zcs installed (8.0.9_GA_6191_RHEL7_64)
        The ADMIN EMAIL ADDRESS created (admin@example.local)

Notify Zimbra of your installation? [Yes] no
Notification skipped
Setting up zimbra crontab...done.


Moving /tmp/zmsetup.11152014-152654.log to /opt/zimbra/log


Configuration complete - press return to exit

4. When Configuration complete – press return to exit displays, press Enter. The upgrade is complete.

5. Start Zimbra service :

[root@centos7 ~]# su - zimbra
[zimbra@centos7 ~]$ zmcontrol restart

6. Check zimbra version :

[zimbra@centos7 ~]$ zmcontrol -v
Release 8.0.9_GA_6191.RHEL7_64_20141103151539 RHEL7_64 FOSS edition.

Thats all..