[Solved] 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: 84
Joined: Thu Oct 09, 2014 9:10 am
Location: Maine
ZCS/ZD Version: Zimbra 10.0.5
Contact:

[Solved] Ubuntu 18.04 upgrade sequence?

Post by dbayer »

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: 84
Joined: Thu Oct 09, 2014 9:10 am
Location: Maine
ZCS/ZD Version: Zimbra 10.0.5
Contact:

Re: Ubuntu 18.04 upgrade sequence?

Post by dbayer »

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: 23
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?

Post by vchong68 »

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: 124
Joined: Thu Jan 30, 2014 11:13 am

Re: Ubuntu 18.04 upgrade sequence?

Post by adrian.gibanel.btactic »

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_Z ... _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: 124
Joined: Thu Jan 30, 2014 11:13 am

Re: Ubuntu 18.04 upgrade sequence?

Post by adrian.gibanel.btactic »

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 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: 15
Joined: Tue Sep 25, 2018 11:46 am

Re: Ubuntu 18.04 upgrade sequence?

Post by protelit »

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: 124
Joined: Thu Jan 30, 2014 11:13 am

Re: Ubuntu 18.04 upgrade sequence?

Post by adrian.gibanel.btactic »

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: 2
Joined: Mon Dec 30, 2019 6:56 am

Re: Ubuntu 18.04 upgrade sequence?

Post by StefanPalm »

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: 124
Joined: Thu Jan 30, 2014 11:13 am

Re: Ubuntu 18.04 upgrade sequence?

Post by adrian.gibanel.btactic »

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.
jamov
Posts: 1
Joined: Thu Dec 24, 2020 9:25 pm

Re: Ubuntu 18.04 upgrade sequence?

Post by jamov »

Wanted to confirm that Adrian's instructions worked for me on multiple servers.

I had first tried the upgrade steps on the Zimbra upgrade wiki page, but those had let me with a broken system.
I had to rollback to the snapshot I took before starting.

I searched and found this thread and had no issues with Adrian's steps.
They worked flawlessly.

THANKS Adrian! :D
Post Reply