first time poster here. I was a bit overwhelmed by the search results trying to find out what could go wrong and how-to update my Debian 11 old LibreNMS installation.
Could maybe someone push me in the right direction?
TIA for any hints to links/tutorials.
Version 22.9.0-3-g06c361c2b - Thu Sep 29 2022 06:32:10 GMT+0200
Database Schema 2022_09_03_091314_update_ports_adsl_table_with_defaults (246)
Web Server Apache/2.4.54 (Debian)
PHP 7.4.33
Python 3.9.2
Database MariaDB 10.5.15-MariaDB-0+deb11u1
Laravel 8.83.23
RRDtool 1.7.2
root@NMS:~# lsb_release --all
No LSB modules are available.
Distributor ID: Debian
Description: Debian GNU/Linux 11 (bullseye)
Release: 11
Codename: bullseye
Challenging I would say. Challenging because the saved DB won’t have the right structure (being so old) so you’ll have a lot (and I mean it) of manual actions to get the migration scripts running on the DB after reimport to make it right.
I think normal upgrade will be easier.
Actually, I would also agree to do an upgrade/ new installation, but I would like to keep all the SNMP devices that have already been entered. History of those devices would not be that important to me.
Hi @Tubeling
You can then extract all the details from the devices table in the database. That will include device (hostname/ip, snmp settings, etc etc) and create a small script to reimport them in your new install. That would indeed be simpler and faster, and you would start for sure on a clean base.
Don’t forget to keep auto-update enabled as this is the best way to keep your setup … well … up to date
This time I will definitely keep the auto-update enabled!
But unfortunately, I am not able to extract the data from the dump/database myself or write a script to do so. Is there perhaps already such a script somewhere that can be customised by me?
I am running into the following error after upgrading to Debian 12 including all your mentioned steps above and following the current LibreNMS install docs: