Cara Upgrade Zimbra Mail Server 8.0.3 ke 8.7 OSE

Cara Upgrade Zimbra Mail Server 8.0.3 ke 8.7 OSE

Pada kasus ini pada versi zimbra 8.0.3 tidak terinstall services proxy dan memcached dari zimbra, sedangkan untuk upgrade ke versi 8.7 diharuskan terinstall kedua services tersebut, jika tidak terinstall maka tidak akan bisa melanjutkan proses upgrade dan akan keluar error seperti ini

 ……. zimbra-archiving…NOT FOUND zimbra-core…FOUND zimbra-core-8.0.3.GA.5664.UBUNTU12.64 ZCS upgrade from 8.0.3 to 8.7.0 will be performed. Checking for existing proxy service in your environment Error: proxy not enabled Error: No proxy detected in your environment. Proxy is required for ZCS 8.7+. See https://wiki.zimbra.com/wiki/EnablingZimbraProxy for details on installing proxy. Checking for existing memcached service in your environment Error: memcached not enabled Error: No memcached detected in your environment. Memcached is required for ZCS 8.7+. See https://wiki.zimbra.com/wiki/EnablingZimbraMemcached for details on installing memcached. Proxy and Memcached services must exist. Exiting…

Maka langkah pertama yang dilakukan yakni mendownload kedua services tersebut, dan packages untuk services tersebut bisa di download di link bawah ini :

Tetapi mohon maaf, saya hanya menyediakan untuk sistem operasi Ubuntu Server 12.04, untuk sistem operasi lain bisa dicari di google hehe, atau jika tidak menemukannya, bisa download lagi file zimbranya di website official zimbra. 

Cara Upgrade Zimbra Mail Server 8.0.3 ke 8.7 OSE

Kemudian setelah di download, extract file tersebut, dan di dalam file tersebut ada directory yang bernama packages, nah di dalam directory tersebut ada packages semua services pada zimbra termasuk proxy dan memcached. Dan silahkan upload kedua file tersebut ke server zimbranya

Atau juga bisa langsung di download langsung dari  dengan cara

wget https://fauzanooor.id/c/zimbra-proxy8.0.3.GA.5664.UBUNTU12.64amd64.deb \ –no-check-certificate wget https://fauzanooor.id/c/zimbra-memcached8.0.3.GA.5664.UBUNTU12.64amd64.deb \ –no-check-certificate

STEP 2 – Install Packages

Install kedua services packages tersebut, dengan cara

dpkg -i zimbra-proxy8.0.3.GA.5664.UBUNTU12.64amd64.deb dpkg -i zimbra-memcached8.0.3.GA.5664.UBUNTU12.64amd64.deb

STEP 3 – Install Services

Setelah di install packages tersebut, sekarang kita install services tersebut, dengan cara masuk ke user zimbra terlebih dahulu dan install

su – zimbra zmprov ms $(zmhostname) +zimbraServiceInstalled memcached zmprov ms $(zmhostname) +zimbraServiceInstalled proxy

STEP 4 – Enable Services

Dan setelah di install services tersebut, lalu kita aktifkan kedua services tersebut (masih di user zimbra)

zmprov ms zmhostname +zimbraServiceEnabled memcached zmprov ms zmhostname +zimbraServiceEnabled proxy

STEP 5 – Verify Memcached & Proxy Running

Untuk mengecheck atau memverifikasi memcached dan proxy running atau tidak, bisa dengan mengetikan perintah di bawah ini (masih di user zimbra)

zmprov ms zmhostname zimbraServiceInstalled zmprov ms zmhostname zimbraServiceInstalled zmprov ms zmhostname zimbraServiceEnabled zmprov ms zmhostname zimbraServiceEnabled

Maka akan keluar seperti ini 

zimbra@zimbralab:~$ zmprov gs zmhostname zimbraServiceInstalled # name mail.zimbralab zimbraServiceInstalled: antivirus zimbraServiceInstalled: antispam zimbraServiceInstalled: logger zimbraServiceInstalled: mailbox zimbraServiceInstalled: mta zimbraServiceInstalled: stats zimbraServiceInstalled: snmp zimbraServiceInstalled: ldap zimbraServiceInstalled: spell zimbraServiceInstalled: memcached zimbraServiceInstalled: proxy zimbra@zimbralab:~$ zmprov gs zmhostname zimbraServiceEnabled # name mail.zimbralab zimbraServiceEnabled: antivirus zimbraServiceEnabled: antispam zimbraServiceEnabled: logger zimbraServiceEnabled: mailbox zimbraServiceEnabled: mta zimbraServiceEnabled: stats zimbraServiceEnabled: snmp zimbraServiceEnabled: ldap zimbraServiceEnabled: spell zimbraServiceEnabled: memcached zimbraServiceEnabled: proxy

STEP 6 – Download Zimbra Mail Server 8.7

Download zimbra bisa di link https://www.zimbra.com/downloads/zimbra-collaboration-open-source/

Tetapi diharuskan untuk mengisi form informasi tentang diri anda. Lalu setelah mengisi akan ada pilihan downloadnya.

Cara Upgrade Zimbra Mail Server 8.0.3 ke 8.7 OSE

STEP 7 – Copy File Zimbra ke Server Zimbra

Setelah di download, maka kita pindahkan file tersebut ke server zimbra, bisa dengan aplikasi winscp *(windows) atau dengan *scp (linux). 

STEP 8 – Upgrade Zimbra Mail Server 8.7

Extract file zimbra

root@zimbralab:/home/noor#* tar -xzvf zcs-8.7.0_GA_1659.** …. zcs-8.7.0GA1659.UBUNTU1264.20160628202549/util/utilfunc.sh zcs-8.7.0GA1659.UBUNTU1264.20160628202549/readmesourceenUS.txt zcs-8.7.0GA1659.UBUNTU1264.20160628202549/readmebinaryenUS.txt zcs-8.7.0GA1659.UBUNTU1264.20160628202549/install.sh zcs-8.7.0GA1659.UBUNTU12_64.20160628202549/README.txt root@zimbralab:/home/noor#

Masuk ke directory yang baru saja di extract, dan install

root@zimbralab:/home/noor# cd zcs-8.7.0GA1659.UBUNTU1264.20160628202549 root@zimbralab:/home/noor/zcs-8.7.0GA1659.UBUNTU1264.20160628202549# ./install.sh Operations logged to /tmp/install.log.E5OCiXmj Checking for existing installation… ….. zimbra-proxy…FOUND zimbra-proxy-8.0.3.GA.5664.UBUNTU12.64 zimbra-archiving…NOT FOUND zimbra-core…FOUND zimbra-core-8.0.3.GA.5664.UBUNTU12.64 ZCS upgrade from 8.0.3 to 8.7.0 will be performed. Checking for existing proxy service in your environment Checking for existing memcached service in your environment 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] 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-dnscache Found zimbra-snmp Found zimbra-store Found zimbra-apache Found zimbra-spell Found zimbra-memcached Found zimbra-proxy Use Zimbra’s package repository [Y] Y Importing Zimbra GPG key Configuring package repository The Zimbra Collaboration Server appears to already 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 Scanning for any new or additional packages available for installation Existing packages will be upgraded Upgrading zimbra-core Upgrading zimbra-ldap Upgrading zimbra-logger Upgrading zimbra-mta Install zimbra-dnscache [N] N Upgrading zimbra-snmp Upgrading zimbra-store Upgrading zimbra-apache Upgrading zimbra-spell Upgrading zimbra-memcached Upgrading zimbra-proxy Checking required space for zimbra-core Checking space for zimbra-store Checking required packages for zimbra-store zimbra-store package check complete. Installing: zimbra-core zimbra-ldap zimbra-logger zimbra-mta zimbra-snmp zimbra-store zimbra-apache zimbra-spell zimbra-memcached zimbra-proxy The system will be modified. Continue? [N] Y Saving existing configuration file to /opt/zimbra/.saveconfig 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-memcached…done zimbra-proxy…done zimbra-apache…done zimbra-core…done Removing deployed webapp directories Installing packages Local packages zimbra-core zimbra-ldap zimbra-logger zimbra-mta zimbra-snmp zimbra-store zimbra-apache zimbra-spell zimbra-proxy selected f or installation Monitor /tmp/install.log.E5OCiXmj for package installation progress Remote package installation started Installing zimbra-core-components zimbra-ldap-components zimbra-mta-components zimbra-snmp-components zimbra-store-components zimbra-apache -components zimbra-spell-components zimbra-memcached zimbra-proxy-components…. Local package installation started Installing zimbra-core zimbra-ldap zimbra-logger zimbra-mta zimbra-dnscache zimbra-snmp zimbra-store zimbra-apache zimbra-spell zimbra-proxy…done Setting defaults from saved config in /opt/zimbra/.saveconfig/config.save HOSTNAME=zimbralab.fauzan.id LDAPHOST=zimbralab.fauzan.id LDAPPORT=389 SNMPTRAPHOST=zimbralab.fauzan.id SMTPSOURCE=admin@mail.fauzan.id SMTPDEST=admin@mail.fauzan.id SNMPNOTIFY=yes SMTPNOTIFY=yes LDAPROOTPW=* LDAPZIMBRAPW=* LDAPPOSTPW=* LDAPREPPW=* LDAPAMAVISPW=* LDAPNGINXPW=* Operations logged to /tmp/zmsetup.20161105-053908.log Installing LDAP configuration database…done. Upgrading from 8.0.3GA5664 to 8.7.0GA1659 Stopping zimbra services…done. This appears to be 8.0.3GA Starting mysql…done. Checking ldap status…not running. Checking ldap status…not running. Starting ldap…done. Checking ldap status…already running. Running mysqlupgrade…done. Schema upgrade required from version 92 to 103. Running /opt/zimbra/libexec/scripts/migrate20161002alwayson.pl Wed Nov 2 23:30:44 2016: Verified schema version 92. Wed Nov 2 23:30:47 2016: Verified schema version 92. Wed Nov 2 23:30:47 2016: Updating DB schema version from 92 to 100. Running /opt/zimbra/libexec/scripts/migrate20140319-MailItemPrevFolders.pl Wed Nov 2 23:30:53 2016: Verified schema version 100. Wed Nov 2 23:30:54 2016: Migrating mboxgroup1. This can take a substantial amount of time… Wed Nov 2 23:30:59 2016: done. Wed Nov 2 23:30:59 2016: Migrating mboxgroup2. This can take a substantial amount of time… Wed Nov 2 23:31:02 2016: done. Wed Nov 2 23:31:02 2016: Migrating mboxgroup3. This can take a substantial amount of time… Wed Nov 2 23:31:05 2016: done. Wed Nov 2 23:31:05 2016: Migrating mboxgroup4. This can take a substantial amount of time… Wed Nov 2 23:31:09 2016: done. Wed Nov 2 23:31:09 2016: Migrating mboxgroup5. This can take a substantial amount of time… Wed Nov 2 23:31:12 2016: done. Wed Nov 2 23:31:13 2016: Verified schema version 100. Wed Nov 2 23:31:13 2016: Updating DB schema version from 100 to 101. Running /opt/zimbra/libexec/scripts/migrate20140328-EnforceTableCharset.pl Wed Nov 2 23:31:19 2016: Verified schema version 101. Wed Nov 2 23:31:37 2016: Verified schema version 101. Wed Nov 2 23:31:37 2016: Updating DB schema version from 101 to 102. Running /opt/zimbra/libexec/scripts/migrate20140624-DropMysqlIndexes.pl Wed Nov 2 23:31:43 2016: Verified schema version 102. Wed Nov 2 23:31:54 2016: Verified schema version 102. Wed Nov 2 23:31:54 2016: Updating DB schema version from 102 to 103. Stopping mysql…done. Updating from 8.0.4GA Updating from 8.7.0BETA1 Updating from 8.7.0BETA2 Updating from 8.7.0RC1 Updating global config and COS’s with attributes introduced after 8.6.0GA…done. Stopping ldap…done. Upgrade complete. 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.31153…done. Operations logged to /tmp/zmsetup10022016-232935.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 zimbralab.fauzan.id…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 zimbralab.fauzan.id…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 zimbralab.fauzan.id…done. Adding zimbralab.fauzan.id to zimbraMailHostPool in default COS…done. Creating user spam.wc5ohhoylp@zimbralab.fauzan.id…already exists. Creating user ham.ypxiyleoyj@zimbralab.fauzan.id…already exists. Creating user virus-quarantine.kl6ejsnmd@zimbralab.fauzan.id…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… comzimbrawebex…done. comzimbradate…done. comzimbraadminversioncheck…done. comzimbracertmanager…done. comzimbratooltip…done. comzimbraproxyconfig…done. comzimbraattachcontacts…done. comzimbraviewmail…done. comzimbrabulkprovision…done. comzimbraclientuploader…done. comzimbralinkedinimage…done. comzimbraphone…done. comzimbraattachmail…done. comzimbraymemoticons…done. comzimbrasrchhighlighter…done. comzimbramailarchive…done. comzimbraurl…done. comzimbraemail…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.7.0GA1659.UBUNTU12_64) The ADMIN EMAIL ADDRESS created (admin@mail.fauzan.id) Notify Zimbra of your installation? [Yes] no Notification skipped Setting up zimbra crontab…done. Moving /tmp/zmsetup10022016-222155.log to /opt/zimbra/log Configuration complete – press return to exit

Dan ketika sudah selesai, bisa kita check services yang running

zimbra@zimbralab:~$ zmcontrol status Host zimbralab.fauzan.id antispam Running antivirus Running zmamavisdctl Running zmclamdctl Running zmfreshclamctl Running ldap Running logger Running zmlogswatchctl Running mailbox Running mysql.server Running memcached Running mta Running zmsaslauthdctl Running postfix Running proxy Running snmp Running pell Running stats Running zmconfigd Running

Cara Upgrade Zimbra Mail Server 8.0.3 ke 8.7 OSE

Pada kasus ini pada versi zimbra 8.0.3 tidak terinstall services proxy dan memcached dari zimbra, sedangkan untuk upgrade ke versi 8.7 diharuskan terinstall kedua services tersebut, jika tidak terinstall maka tidak akan bisa melanjutkan proses upgrade dan akan keluar error seperti ini  ……. zimbra-archiving…NOT FOUND zimbra-core…FOUND zimbra-core-8.0.3.GA.5664.UBUNTU12.64 ZCS upgrade from…