Page 1 of 1

is there any issues upgrading from ubuntu 20.04 to 22.04?

Posted: Fri Jan 27, 2023 6:13 am
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?

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

Posted: Fri Jan 27, 2023 11:49 am
by JasonBorn
I did it. Zoneminder wasnt after the update not reachable.

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

Posted: Fri Jan 27, 2023 12:53 pm
by iconnor
You will have to re-enable ppa and re-install zoneminder. It will get removed during update.

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

Posted: Fri Jan 27, 2023 3:00 pm
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.

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

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

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

Posted: Fri Jan 27, 2023 6:20 pm
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.

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

Posted: Fri Jan 27, 2023 8:46 pm
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?

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

Posted: Fri Jan 27, 2023 9:09 pm
by Magic919
I’m not recommending the upgrade, but you’d just back up the DB as a safeguard.

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

Posted: Sat Jan 28, 2023 8:47 am
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.