Consequence of Ubun...
 
Notifications
Clear all

Consequence of Ubuntu Release Upgrade

10 Posts
4 Users
2 Reactions
100 Views
(@omiazad)
Active Member
Joined: 6 years ago
Posts: 14
Topic starter  

Hello All,

My Carbonio CE is running on Ubuntu 20.04.6 LTS and as you all know, the support for this OS is going to end on May 2025. The OS keep telling me to perform a do-release-upgrade to 22.04.5 LTS

Now is there anyone who has done if before? If I do it, what would be the challenges? Kindly point me to a conversation where I can learn what I need to do before performing the uppgrade.


   
Quote
(@sigtrap)
Eminent Member
Joined: 1 year ago
Posts: 50
 

I also have questions regarding the Carbonio guide https://docs.zextras.com/carbonio-ce/html/upgrade/os.html

It looks very simple, but @anahuac has a more detailed guide, but it is one year old: https://www.anahuac.eu/carbonio-upgrade-ubuntu-from-20-04-to-22-04/

So is it so strait forward to update Ubuntu from 20.04 to 22.04 as the Carbonio guide or should you stop Carbonio before do-release-upgrade and other cleanup tasks, e.g.

  • fix PostGreSQL repository
  • copy trusted.gpg
  • fixing other focal repositories
  • fixing permissions
  • fixing logrotate
  • reinstall unnecessary packages

Anyone that have followed the Carbonio guide for OS upgrade to Ubuntu 22.04 with Carbonio 25.03? Success or failure stories that you can share?

Thanks
//Sigtrap


   
ReplyQuote
(@omiazad)
Active Member
Joined: 6 years ago
Posts: 14
Topic starter  

@sigtrap 

These looks like a lot of work for a simple guy like me

fix PostGreSQL repository
copy trusted.gpg
fixing other focal repositories
fixing permissions
fixing logrotate
reinstall unnecessary packages

Isn't there any script to do these automatically for us?


   
ReplyQuote
(@sigtrap)
Eminent Member
Joined: 1 year ago
Posts: 50
 

Probably not. We have to wait for an official response or success stories before we upgrade. 😕 
Or do a fresh installation of Ubuntu 22.04 and do a migrate from Carbonio on 20.04...


   
ReplyQuote
(@omiazad)
Active Member
Joined: 6 years ago
Posts: 14
Topic starter  

I cannot find the migration guide. Can you please point me?


   
ReplyQuote
(@sigtrap)
Eminent Member
Joined: 1 year ago
Posts: 50
 

The user "Man Goe" has installed a CarbonioCE 25.03 on Ubuntu 20.04.6 and succeeded with the upgrade to Ubuntu 22.04 following the @anahuac guide https://www.anahuac.eu/carbonio-upgrade-ubuntu-from-20-04-to-22-04/ .

I will try to do Ubuntu upgrade this weekend or the next.

For migration the are probably several guides but I will probably use cmbackup together with Z2C if needed.

//Sigtrap


   
ReplyQuote
(@anahuac)
Joined: 2 years ago
Posts: 340
 

@omiazad This is the article about Z2C - Zimbra to Carbonio tool I did... I hope it helps.

https://www.anahuac.eu/zimbra-to-carbonio-z2c/


   
ReplyQuote
(@sharif)
Estimable Member Admin
Joined: 3 years ago
Posts: 673
 

@anahuac @sigtrap @omiazad

Hi,

We appreciate your effort to highlight a valid situation and possible workarounds until we have any official words. But at the same time we would appreciate it much more if you elaborate the discussion in the forum thread/post (including the step details) while redirecting users to external platforms, while well-intended, can limit engagement and dilute the collaborative spirit of our forum. We encourage our users to discuss/explain an issues in details as much as possible in the forum. Keeping everything here ensures that knowledge is preserved, accessible, and benefits the entire community in the long run.

We deeply respect all platforms, but for the growth of our community, we encourage discussions to stay within this space. By doing so, we foster a thriving, solution-oriented environment where ideas, workarounds, and collaboration can flourish.

Again, we are thankful to our users for their contribution but we would expect them to respect our forum guidelines for the betterment of our community.🙏

Please feel free to read the guidelines here:

Important | Forum Guidelines

Let’s work together to make our community stronger and more effective! Thank you for your understanding and continued support.

Have a good day 😊

Regards, 


   
sigtrap reacted
ReplyQuote
(@omiazad)
Active Member
Joined: 6 years ago
Posts: 14
Topic starter  

Thank you everyone for your attention. 🙏

I will give it a try. Still have some time. 🙂


   
ReplyQuote
(@sigtrap)
Eminent Member
Joined: 1 year ago
Posts: 50
 

I did the following as root after updating everything (nothing to install or remove) on my Ubuntu 20.04 that was newly rebooted:

 

  • Verified that there were no strange errors with
su - zextras -c 'zmcontrol status'
  • stopped Carbonio
su - zextras -c "zmcontrol stop"
  • Started the Ubuntu release upgrade (from server and not SSH)
do-release-upgrade
  • I answered yes to automatically restart services
  • I kept my config for sudoers, samba and sshd (no questions about config for boot or grub.conf)
  • When upgrading I didn't read messages about software-properties tool for focal in /etc/apt/sources.list.d/ files
  • I answered y when I got questions about "continue" that informed me about packages that should me removed (I had 8 packages to remove first time the installer wanted to continue and later 82 obsolete packages to remove)
  • When asked to reboot I answered y
  • After reboot I change file /etc/apt/sources.list.d/zextras.list (installer had commented out the line but changed focal to jammy) to
deb  https://repo.zextras.io/release/ubuntu  jammy main
  • Then did similar with cat /etc/apt/sources.list.d/pgdg.list (installer had just commented out the line):
deb  https://apt.postgresql.org/pub/repos/apt  jammy-pgdg main
  • As I had the file /etc/apt/trusted.gpg I copied it to /etc/apt/trusted.gpg.d/
cp /etc/apt/trusted.gpg /etc/apt/trusted.gpg.d/
  • Then I updated the repositories and I got no errors.
apt update
  • Now time to upgrade Carbonio and PostGreSQL
apt upgrade
  • I said Y to use prometheus.yml package version. I also let the upgrade restart some services as it was linked to old libraries. And after the upgrade I ran a pending-setups
pending-setups -a
  • Just to be sure (maybe not needed)
/opt/zextras/libexec/zmfixperms
  • Carbonio is not in a good state right now. So I stopped Carbonio and rebooted Ubuntu.
su - zextras -c "zmcontrol stop"
init 6
  • Verified the logs and services and everything looked ok
su - zextras -c 'zmcontrol status'
systemctl list-units carbonio*
systemctl status carbonio*

Thanks everyone!

//Sigtrap

 


   
ReplyQuote