Ubuntu 20.04 to 22.04 upgrade with Maldua's Zimbra FOSS Builds
Ubuntu 20.04 to 22.04 upgrade with Maldua's Zimbra FOSS Builds
I've Ubuntu 20.04 server with s zimbra 10.1.4 (Maldua's Zimbra FOSS Build). I've to upgrade OS to Ubuntu 22.04 but I can't find a way to do it "in place" (without installing another server and migrating data). In the past It was quite easy: during do-release-upgrade you have to enable disabled zimbra repository and fix distro name and upgrade went smoothly.
Now (on test server) I've ended up with uninstalled zimbra, installing packages from version zcs-10.1.4_GA_4200000.UBUNTU22_64 after ubuntu upgrade leads to not working zimbra.
WEBGUI and WEBADMINGUI is not working
Does anyone managed to do such upgrade?
Now (on test server) I've ended up with uninstalled zimbra, installing packages from version zcs-10.1.4_GA_4200000.UBUNTU22_64 after ubuntu upgrade leads to not working zimbra.
WEBGUI and WEBADMINGUI is not working
Does anyone managed to do such upgrade?
-
- Posts: 9
- Joined: Fri Jan 17, 2025 1:18 pm
Re: Ubuntu 20.04 to 22.04 upgrade with Maldua's Zimbra FOSS Builds
Same problem here but with network version, i'll keep an eye on this post to see if anyone has a solution, but in my case if we update from 20 to 22 with Z10.1.3 it ends up uninstalled, even if we unmount the disks where zimbra is located 

Re: Ubuntu 20.04 to 22.04 upgrade with Maldua's Zimbra FOSS Builds
OK, I've managed to solve problem. It look's that in case of OS version change some passwords from backup are NOT copied.
I will describe my in place upgrade procedure (based on https://wiki.zimbra.com/wiki/Ubuntu_Upgrades).
Initial state
- OS - Ubuntu 20.04
- Zimbra 10.1.4 (Maldua’s Zimbra Foss Build)
Final state:
- OS - Ubuntu 22.04
- Zimbra 10.1.4 (Maldua’s Zimbra Foss Build)
Steps to make you happy:
Stop Zimbra
Get install package for Ubuntu 22.04
Find these passwords in /opt/zimbra/conf/localconfig.xml and set it (admin password is missing in backup you should know it)
Apply configuration and script should end with success BUT zimbra still will NOT work:
I will describe my in place upgrade procedure (based on https://wiki.zimbra.com/wiki/Ubuntu_Upgrades).
Initial state
- OS - Ubuntu 20.04
- Zimbra 10.1.4 (Maldua’s Zimbra Foss Build)
Final state:
- OS - Ubuntu 22.04
- Zimbra 10.1.4 (Maldua’s Zimbra Foss Build)
Steps to make you happy:
Stop Zimbra
Make z backupsu - zimbra -c 'zmcontrol stop'
Disable zimbra start on OS startupmkdir -p /opt/{zimbra_backup/.saveconfig,ldap_backup}
chown zimbra:zimbra /opt/{zimbra_backup,ldap_backup} -R
cp -pvr /opt/zimbra/.install_history /opt/zimbra_backup/.saveconfig/.install_history
cp -pvr /opt/zimbra/conf/localconfig.xml /opt/zimbra_backup/.saveconfig/localconfig.xml
apt list --installed | grep -i 'zimbra-' | cut -d'/' -f1 > /opt/zimbra_backup/.saveconfig/.installedPackages
su - zimbra
/opt/zimbra/libexec/zmslapcat -c /opt/ldap_backup/
/opt/zimbra/libexec/zmslapcat -a /opt/ldap_backup/
/opt/zimbra/libexec/zmslapcat /opt/ldap_backup/
OS Upgradesystemctl disable zimbra.service
You can answer Yes on all upgrade suggestions (even on delete obsolete packages)apt-get update && apt-get dist-upgrade
do-release-upgrade
Get install package for Ubuntu 22.04
Install Zimbra packages for Ubuntu 22.04. You can chose default answer for all questions BUT remember to NOT delete /opt/zimbra directory and than Yes to allow system modificationwget https://github.com/maldua/zimbra-foss-b ... 171952.tgz
tar xvfz zcs-10.1.4_GA_4200000.UBUNTU22_64.20241224171952.tgz
cd zcs-10.1.4_GA_4200000.UBUNTU22_64.20241224171952
Restore zimbra backuped config:./install.sh -s --skip-activation-check
Run "/opt/zimbra/libexec/zmsetup.pl" to complete configuration part, this step will take only few minutes to complete configuration.cp -pvr /opt/zimbra_backup/.saveconfig/.install_history /opt/zimbra/.install_history
cp -pvr /opt/zimbra_backup/.saveconfig/localconfig.xml /opt/zimbra/conf/localconfig.xml
Now tricky part: zmsetup.pl will complain about Unset/Not verified passwords./opt/zimbra/libexec/zmsetup.pl
Find these passwords in /opt/zimbra/conf/localconfig.xml and set it (admin password is missing in backup you should know it)
Apply configuration and script should end with success BUT zimbra still will NOT work:
Now starts MAGIC: get mailboxd_keystore_password from /opt/zimbra/conf/localconfig.xml and set it:su - zimbra -c 'zmcontrol status'
Host xxxxx
amavis Running
antispam Running
antivirus Running
dnscache Running
ldap Running
logger Running
mailbox Stopped
zmmailboxdctl is not running.
memcached Running
mta Running
opendkim Running
proxy Running
service webapp Stopped
zmmailboxdctl is not running.
snmp Running
spell Running
stats Running
zimbra webapp Stopped
zmmailboxdctl is not running.
zimbraAdmin webapp Stopped
zmmailboxdctl is not running.
zimlet webapp Stopped
zmmailboxdctl is not running.
zmconfigd Running
Restart zimbra:su zimbra -c '/opt/zimbra/bin/zmlocalconfig -e mailboxd_keystore_password=XXXXX'
Be proud an happy owner of upgraded in place Zimbra on Ubuntu 22.04:su - zimbra -c 'zmcontrol restart'
Enable zimbra start on OS startup:su - zimbra -c 'zmcontrol status'
Host xxxxx
amavis Running
antispam Running
antivirus Running
dnscache Running
ldap Running
logger Running
mailbox Running
memcached Running
mta Running
opendkim Running
proxy Running
service webapp Running
snmp Running
spell Running
stats Running
zimbra webapp Running
zimbraAdmin webapp Running
zimlet webapp Running
zmconfigd Running
systemctl enable zimbra.service
- adrian.gibanel.btactic
- Outstanding Member
- Posts: 234
- Joined: Thu Jan 30, 2014 11:13 am
Re: Ubuntu 20.04 to 22.04 upgrade with Maldua's Zimbra FOSS Builds
That's not a good piece of advice. That page makes things more difficult than they should be.bilbolodz wrote: ↑Thu Jan 23, 2025 12:32 pm OK, I've managed to solve problem. It look's that in case of OS version change some passwords from backup are NOT copied.
I will describe my in place upgrade procedure (based on https://wiki.zimbra.com/wiki/Ubuntu_Upgrades).
Initial state
Last edited by adrian.gibanel.btactic on Thu Jan 23, 2025 4:48 pm, edited 1 time in total.
- adrian.gibanel.btactic
- Outstanding Member
- Posts: 234
- Joined: Thu Jan 30, 2014 11:13 am
Re: Ubuntu 20.04 to 22.04 upgrade with Maldua's Zimbra FOSS Builds
This is the third time that I have to reply in the forums regarding Ubuntu upgrades having problems.
As I don't like to repeat myself I have created a wiki page that explains how to upgrade from one Ubuntu version to a newer Ubuntu version while keeping your Zimbra ZCS installation intact.
That way anyone can copy and paste the url when this question arises again.
Zimbra ZCS - Ubuntu Upgrade (based on third-party repo)
As I don't like to repeat myself I have created a wiki page that explains how to upgrade from one Ubuntu version to a newer Ubuntu version while keeping your Zimbra ZCS installation intact.
That way anyone can copy and paste the url when this question arises again.
Zimbra ZCS - Ubuntu Upgrade (based on third-party repo)
Re: Ubuntu 20.04 to 22.04 upgrade with Maldua's Zimbra FOSS Builds
@bilbolodz and @adrian.gibanel.btactic great work! Thanks for sharing!
-
- Posts: 9
- Joined: Fri Jan 17, 2025 1:18 pm
Re: Ubuntu 20.04 to 22.04 upgrade with Maldua's Zimbra FOSS Builds
I tried the procedure you linked and it worked perfectly, no errors, no problems, everything working smooth and fine.adrian.gibanel.btactic wrote: ↑Thu Jan 23, 2025 4:48 pm This is the third time that I have to reply in the forums regarding Ubuntu upgrades having problems.
As I don't like to repeat myself I have created a wiki page that explains how to upgrade from one Ubuntu version to a newer Ubuntu version while keeping your Zimbra ZCS installation intact.
That way anyone can copy and paste the url when this question arises again.
Zimbra ZCS - Ubuntu Upgrade (based on third-party repo)
We did it on 2 different servers with U20 and Z10.1.2 and it updated both Ubuntu and Zimbra to the latest version available.
Thanks a lot!!!!!
Re: Ubuntu 20.04 to 22.04 upgrade with Maldua's Zimbra FOSS Builds
@adrian.gibanel.btactic I've tried and your way is working fine and indeed is much simpler and user friendly. Thank you very much.
-
- Posts: 22
- Joined: Wed Jan 03, 2018 8:39 am
Re: Ubuntu 20.04 to 22.04 upgrade with Maldua's Zimbra FOSS Builds
I was fearing doing this upgrade, thank you!!