These are the steps that need to be done when doing an in-place Ubuntu upgrade on a LibreNMS system using do-release-upgrade.
Running daily.sh in /opt/librenms should give you most of the errors you need to fix that we will go through in this guide. Most commands here will assume you are running as root or sudo.
cd /opt/librenms ./daily.sh
Install PHP packages since PHP 7.4 was removed in favor of PHP 8.1.
apt install php-curl php-gd php-xml php-dom php-fpm php-mysql php-mbstring
Run daily.sh, you should get an output that looks like the screenshot below.
Run validate.php to fix more errors.
su librenms php validate.php
Add your timezone to /etc/php/8.1/cli/php.ini and /etc/php/8.1/fpm/php.ini as shown below.
cp /etc/php/8.1/fpm/pool.d/www.conf /etc/php/8.1/fpm/pool.d/librenms.conf nano /etc/php/8.1/fpm/pool.d/librenms.conf
Change [www] to [librenms]
group to “librenms”.
Change the value of listen to match your nginx value at /etc/nginx/conf.d/librenms.conf.
Restart nginx and PHP-FPM
systemctl restart nginx.service systemctl restart php8.1-fpm.service