Ubuntu 18.04 upgrade sequence?

Ask questions about your setup or get help installing ZCS server (ZD section below).
User avatar
dbayer
Advanced member
Advanced member
Posts: 52
Joined: Thu Oct 09, 2014 9:10 am
Location: Maine
ZCS/ZD Version: Zimbra 8.8.15
Contact:

Ubuntu 18.04 upgrade sequence?

Postby dbayer » Mon Nov 25, 2019 4:36 pm

Hello,

We are currently running Zimbra Network 8.7.11 fully patched on Ubuntu 16.04. We would like to upgrade Zimbra to 8.8 and Ubuntu to 18.04. Is the proper sequence to upgrade Zimbra with the install script and once complete, then upgrade Ubuntu?

Thanks for any help,
Daniel


User avatar
dbayer
Advanced member
Advanced member
Posts: 52
Joined: Thu Oct 09, 2014 9:10 am
Location: Maine
ZCS/ZD Version: Zimbra 8.8.15
Contact:

Re: Ubuntu 18.04 upgrade sequence?

Postby dbayer » Mon Nov 25, 2019 10:11 pm

Just in case anyone else needs an answer to this. The Zimbra Wiki has very detailed upgrade instructions for Ubuntu.

https://wiki.zimbra.com/wiki/Ubuntu_Upgrades
vchong68
Posts: 22
Joined: Sat Apr 30, 2016 4:45 am
Location: Singapore
ZCS/ZD Version: Release 8.7.11.GA.1854.UBUNTU16.64

Re: Ubuntu 18.04 upgrade sequence?

Postby vchong68 » Tue Nov 26, 2019 9:42 am

The method provided at https://wiki.zimbra.com/wiki/Ubuntu_Upgrades didn't work for me.

I have successfully done the upgrade from Ubuntu 16.04 to Ubuntu 18.04 after many tries.

I was on 8.8.15 FOSS / Ubuntu 16.04 and intended to upgrade to Ubuntu 18.04. Here was the easiest method:

1. Backup / Snapshot
2. do_release_upgrade
There will be a prompt message says that 3rd party repo will be disable.
3 Open another ssh session to edit /etc/apt/source.list.d/zimbra.list
You will notice the these 3 lines has been commented:
#deb [arch=amd64] https://repo.zimbra.com/apt/87 xenial zimbra
#deb [arch=amd64] https://repo.zimbra.com/apt/8815 xenial zimbra
#deb-src [arch=amd64] https://repo.zimbra.com/apt/87 xenial zimbra
4. Uncomment all 3 lines.
5. Close the 2nd ssd session and proceed with the upgrade screen until the os upgade has done.
6. When rebooted, everything was done nicely.

I think you have to upgrade zimbra first because 18.04 is supported by 8.8.15.
User avatar
adrian.gibanel.btactic
Advanced member
Advanced member
Posts: 65
Joined: Thu Jan 30, 2014 11:13 am

Re: Ubuntu 18.04 upgrade sequence?

Postby adrian.gibanel.btactic » Tue Nov 26, 2019 7:09 pm

I have not tested these instructions but I'm pretty sure they should work. Feedback is welcome.
I recycle and update them from: Bug 107436 -- do-release-upgrade breaks zimbra installation for the Ubuntu 16.04 to Ubuntu 18.04 upgrade.

Upgrade from ZCS-8.8.15-16.04 to ZCS-8.8.15-18.04

0.A) If needed make sure proxy and memcached are enabled:
https://wiki.zimbra.com/wiki/Enabling_Zimbra_Proxy_and_memcached
Note: You can skip the proxy and memcached check on ZCS 8.8.X and newer Zimbra versions.

0.B) Make sure to have ZCS-8.8.15 on 16.04 prior to upgrade. Trying to upgrade from ZCS-8.7.X-16.04 to ZCS-8.8.15-18.04 will probably fail to some missing packages.


1) Make sure to run on the last version of Ubuntu packages

Code: Select all

sudo apt-get update
sudo apt-get dist-upgrade

# Reboot your system

2) Allow Third party package repos

Create:

Code: Select all

/etc/update-manager/release-upgrades.d/allow-thirdparty.cfg
file with the following content:

Code: Select all

[Sources]
AllowThirdParty=yes


3) Upgrade from Ubuntu 16.04 to Ubuntu 18.04

Code: Select all

sudo apt-get update
sudo do-release-upgrade

# This will finally reboot your system

4) Optional packages version check

After booting into your upgraded system Zimbra seems to work as expected but not everything is ok.
Unfortunately due to Zimbra not handling their own meta packages dependencies properly (I should perhaps open a bug, I'm not sure) now you still get 16.04 packages:

Code: Select all

sudo dpkg -l | grep zimbra | grep -E '16.04|16.64' | awk '{print $1 " " $2 " " $3 " " $4 " " $5 " " $6 " " $7 " " $8 " " $9}'


Code: Select all

ii zimbra-apache 8.8.15.GA.1854.UBUNTU16.64 amd64 Best email money can buy
ii zimbra-core 8.8.15.GA.1854.UBUNTU16.64 amd64 Best email money can buy
ii zimbra-ldap 8.8.15.GA.1854.UBUNTU16.64 amd64 Best email money can buy
ii zimbra-logger 8.8.15.GA.1854.UBUNTU16.64 amd64 Best email money can buy
ii zimbra-mta 8.8.15.GA.1854.UBUNTU16.64 amd64 Best email money can buy
ii zimbra-proxy 8.8.15.GA.1854.UBUNTU16.64 amd64 Best email money can buy
ii zimbra-snmp 8.8.15.GA.1854.UBUNTU16.64 amd64 Best email money can buy
ii zimbra-spell 8.8.15.GA.1854.UBUNTU16.64 amd64 Best email money can buy
ii zimbra-store 8.8.15.GA.1854.UBUNTU16.64 amd64 Best email money can buy


5) Upgrade from ZCS-8.8.15-18.04 to ZCS-8.8.15-18.04

# That's right, you are upgrading to the same installed version

Code: Select all

cd zcs-*
./install.sh

# Make sure to tell the installation you want to upgrade and not to install

6) Now we should have the same packages as a pristine ZCS-8.8.15-18.04 installation and a working Zimbra installation.
User avatar
adrian.gibanel.btactic
Advanced member
Advanced member
Posts: 65
Joined: Thu Jan 30, 2014 11:13 am

Re: Ubuntu 18.04 upgrade sequence?

Postby adrian.gibanel.btactic » Tue Nov 26, 2019 7:18 pm

dbayer wrote:Just in case anyone else needs an answer to this. The Zimbra Wiki has very detailed upgrade instructions for Ubuntu.

https://wiki.zimbra.com/wiki/Ubuntu_Upgrades


vchong68 wrote:The method provided at https://wiki.zimbra.com/wiki/Ubuntu_Upgrades didn't work for me.


Yes, please ignore that documentation.
That documentation is only useful if you have neglicted to read my instructions on https://forums.zimbra.org/posting.php?mode=reply&f=13&t=67390#pr294645 because it has some hints on how to recover your system when you find out that all of your Zimbra packages have been deleted while Ubuntu was upgraded to 18.04 (assuming you had a previous backup, of course).

Feel free to update the wiki with my step-by-step instructions (for 14.04-16.04 and for 16.04-18.04) in order to ease admin lives.
protelit
Posts: 13
Joined: Tue Sep 25, 2018 11:46 am

Re: Ubuntu 18.04 upgrade sequence?

Postby protelit » Thu Dec 12, 2019 3:32 pm

If I need/want to upgrade Ubuntu 16 to 18 AND Zimbra open source from 8.8.12 GA to 8.8.15ga,
Should I ; Upgrade Ubuntu distro, and update Zimbra 8.8.12 to the 18.04 version, then to 8.8.15
or
Update Zimbra to 8.8.15 on ubuntu 16.04, then upgrade the distro, then install 8.8.15 for ubuntu 18?

Or does it just not make any difference
User avatar
adrian.gibanel.btactic
Advanced member
Advanced member
Posts: 65
Joined: Thu Jan 30, 2014 11:13 am

Re: Ubuntu 18.04 upgrade sequence?

Postby adrian.gibanel.btactic » Mon Dec 16, 2019 3:18 pm

protelit wrote:If I need/want to upgrade Ubuntu 16 to 18 AND Zimbra open source from 8.8.12 GA to 8.8.15ga,
Should I ; Upgrade Ubuntu distro, and update Zimbra 8.8.12 to the 18.04 version, then to 8.8.15
or
Update Zimbra to 8.8.15 on ubuntu 16.04, then upgrade the distro, then install 8.8.15 for ubuntu 18?

Or does it just not make any difference


Just follow my mini-howto above where the correct order is enforced.
StefanPalm
Posts: 1
Joined: Mon Dec 30, 2019 6:56 am

Re: Ubuntu 18.04 upgrade sequence?

Postby StefanPalm » Mon Dec 30, 2019 7:02 am

Adrian's instructions (post #4) worked well for me, just a small addition.
After the upgrade Ubuntu 16->18 I had to disable "systemd-resolved" (systemctl stop systemd-resolved && systemctl disable systemd-resolved) and recreate a usable "resolv.conf" before running "install.sh".
User avatar
adrian.gibanel.btactic
Advanced member
Advanced member
Posts: 65
Joined: Thu Jan 30, 2014 11:13 am

Re: Ubuntu 18.04 upgrade sequence?

Postby adrian.gibanel.btactic » Mon Dec 30, 2019 3:49 pm

StefanPalm wrote:Adrian's instructions (post #4) worked well for me, just a small addition.
After the upgrade Ubuntu 16->18 I had to disable "systemd-resolved" (systemctl stop systemd-resolved && systemctl disable systemd-resolved) and recreate a usable "resolv.conf" before running "install.sh".


I guess the new systemd-resolved was a problem because of an split DNS setup that needed to be kept in place. Then, yes, either learn how to use systemd-resolved or just stop and disable the systemd-resolved daemon as you did.

Return to “Installation and Upgrade”

Who is online

Users browsing this forum: No registered users and 2 guests