is there any issues upgrading from ubuntu 20.04 to 22.04?

Discussions related to the 1.36.x series of ZoneMinder
Post Reply
aarons6
Posts: 38
Joined: Mon Feb 08, 2016 12:13 pm

is there any issues upgrading from ubuntu 20.04 to 22.04?

Post by aarons6 »

say i want to upgrade to 22.04, i can just to a sudo apt do-release-upgrade.
would this break zoneminder?

has anyone done this before without reinstalling everything?
JasonBorn
Posts: 37
Joined: Fri Jan 08, 2021 5:31 pm

Re: is there any issues upgrading from ubuntu 20.04 to 22.04?

Post by JasonBorn »

I did it. Zoneminder wasnt after the update not reachable.
User avatar
iconnor
Posts: 2881
Joined: Fri Oct 29, 2010 1:43 am
Location: Toronto
Contact:

Re: is there any issues upgrading from ubuntu 20.04 to 22.04?

Post by iconnor »

You will have to re-enable ppa and re-install zoneminder. It will get removed during update.
pat2
Posts: 156
Joined: Fri Sep 16, 2016 6:35 pm

Re: is there any issues upgrading from ubuntu 20.04 to 22.04?

Post by pat2 »

currently my production running on 16.04.
I tried to install ZM/LAMP from scratch on 20.04 and from scratch on 22.04.
Working perfect both, But from scratch, not upgrading the Ubuntu release.
Each time I tried to upgrade the ubuntu release with sudo apt do-release-upgrade there is a surprise. :-) something does not work...so, I do not recommend

I recommend to use 22.04 (instead of 20.04): I found that the ZM setup use lower system resources (*) on 22.04 than 20.04 on my board: I think not related to ZM itself, but to Mysql, Apache, PHP.


(*): that's the reason my production is still on 16.04. My board does not have too much system resources (memory especially) and on 16.04 the ZM setup (again not related to ZM, but to LAMP) is not asking too much resources.
Hope Isaac will continue to maintain ZM for 16.04.
---------------------------------------------------------------------------
ZM 1.36.34 - 14 cameras on Orange Pi 5 (arm64) - Ubuntu Jammy 22.04
User avatar
iconnor
Posts: 2881
Joined: Fri Oct 29, 2010 1:43 am
Location: Toronto
Contact:

Re: is there any issues upgrading from ubuntu 20.04 to 22.04?

Post by iconnor »

1.36 will be the last version for 16.04.
pat2
Posts: 156
Joined: Fri Sep 16, 2016 6:35 pm

Re: is there any issues upgrading from ubuntu 20.04 to 22.04?

Post by pat2 »

iconnor wrote: Fri Jan 27, 2023 5:16 pm 1.36 will be the last version for 16.04.

uuuuhh, I'm sad :( ...my board has only 2G for mem (DRAM). My Odroid XU4 board is a sort of raspberry, but more powerful in terms of CPU power (4+4+1 cpus). With low dimension, low power consumption and low cost (53$) I have near professional surveillance system!

On 16.04 used mem is about 1G of 2G. and runs fine.
I tried to pass to 20.04 or 22.04, but mem usage increases to 1.7G of 2G. the system becomes heavy and not responsive.

I have to change board: Odroid M1 (8GB mem) or Odroid N2+ (4GB).

Thanks for the insight, Isaac.
---------------------------------------------------------------------------
ZM 1.36.34 - 14 cameras on Orange Pi 5 (arm64) - Ubuntu Jammy 22.04
tinymouse
Posts: 23
Joined: Sat Apr 02, 2022 11:36 pm

Re: is there any issues upgrading from ubuntu 20.04 to 22.04?

Post by tinymouse »

If ZoneMinder gets removed when upgrading to 22.04 (from 20.04) and has to be re-installed, what about the configuration setting for all the monitors? Do we need to redo all the monitor definition also?
Magic919
Posts: 1381
Joined: Wed Sep 18, 2013 6:56 am

Re: is there any issues upgrading from ubuntu 20.04 to 22.04?

Post by Magic919 »

I’m not recommending the upgrade, but you’d just back up the DB as a safeguard.
-
pat2
Posts: 156
Joined: Fri Sep 16, 2016 6:35 pm

Re: is there any issues upgrading from ubuntu 20.04 to 22.04?

Post by pat2 »

tinymouse wrote: Fri Jan 27, 2023 8:46 pm If ZoneMinder gets removed when upgrading to 22.04 (from 20.04) and has to be re-installed, what about the configuration setting for all the monitors? Do we need to redo all the monitor definition also?
If you do an OS release upgrade, ZM does not get removed. After upgrading -if the OS release upgrade goes well and the system runs fine- you will find the ZM configuration as it was before OS release upgrading. But, again, personally I'm not recommending.

If you start from scratch (with a fresh OS installation), you could use a saved ZM backup db as Magic is suggesting. It works: I used this method for my 'experiments' from scratch for 20.04 and 22.04.
Having a ZM db backup is a good idea in any case. To avoid to configure ZM again. Yes, It's boring...

Backup
======================================================================
sudo service zoneminder stop
mysqldump -uroot -p zm > zm.sql (then move zm.sql in a safe device)
sudo service zoneminder start
======================================================================

Restore
======================================================================
installation of all the LAMP stack and ZM (without configure anything in ZM)
sudo service zoneminder stop
(then move back zm.sql from the safe device)
mysql -uroot -p zm < zm.sql
sudo service zoneminder start
======================================================================

So, in the new system you will have the exact ZM configuration (monitor and so on) as the old one.
---------------------------------------------------------------------------
ZM 1.36.34 - 14 cameras on Orange Pi 5 (arm64) - Ubuntu Jammy 22.04
Post Reply