Fresh install - blank WebUI

Hello
Fresh install from ova. I added 5 devices and everything looks ok. Next day (after daily update?) I have blank page from WebUI.

Validate install:

root@librenms:~# sudo /opt/librenms/validate.php

In PackageManifest.php line 122:

Undefined index: name

====================================

> Component Version
LibreNMS 1.63-57-g0040f38d1
DB Schema Not Connected (0)
PHP 7.2.24-0ubuntu0.18.04.7
Python 3.6.9
MySQL ?
RRDTool 1.7.0
SNMP NET-SNMP 5.7.3
====================================

[OK] Composer Version: 2.0.2
[OK] Dependencies up-to-date.
root@librenms:~#

Daily update from cli:

librenms@librenms:~$ ./daily.sh

In PackageManifest.php line 122:
Undefined index: name
Updating SQL-Schema OK
Cleaning up DB OK
In PackageManifest.php line 122:
Undefined index: name
librenms@librenms:~$

I tried update system, but this dosen’t help. Any ideas?

SK

I reinstall all once again. After deploy LibreNMS works ok. I update operating system and still ok. After ./daily.sh a have blank screen on web.

librenms@librenms:~$ ./daily.sh
Updating to latest release OK
Python 3 dependencies missing, switched to php71-python2 branch. OK
Updating Composer packages OK

In PackageManifest.php line 122:

Undefined index: name

In PackageManifest.php line 122:

Undefined index: name

Updated from 1.63 to 1.68 OK

In PackageManifest.php line 122:

Undefined index: name

Updating SQL-Schema OK
Updating submodules OK
Cleaning up DB OK
Fetching notifications OK
Caching PeeringDB data OK
librenms@librenms:~$

I think PHP 7.1 is not supported anymore. Try to switch to 7.4

I installed PHP 7.4 with all required packages - still the same problem.

Any errors in the Webserver log?

Finally, I found a solution - you need to update PHP before running ./daily.php. Below are the steps to follow:

Update system
	apt update
	apt upgrade
	reboot

Add PHP Repository
	sudo apt-get update
	sudo apt -y install software-properties-common
	sudo add-apt-repository ppa:ondrej/php
	sudo apt-get update
	
Install PHP 7.4
	sudo apt -y install php7.4
	
Install required packages
	sudo apt install acl curl composer fping git graphviz imagemagick mariadb-client mariadb-server mtr-tiny nginx-full nmap php7.4-cli php7.4-curl php7.4-fpm php7.4-gd php7.4-json php7.4-mbstring php7.4-mysql php7.4-snmp php7.4-xml php7.4-zip rrdtool snmp snmpd whois unzip python3-pymysql python3-dotenv python3-redis python3-setuptools

Set timezone for php...	
	sudo vi /etc/php/7.4/fpm/php.ini
	sudo vi /etc/php/7.4/cli/php.ini

...and system:
	sudo timedatectl set-timezone Europe/Warsaw
	
Update LibreNMS nginix conf file	
sudo vi /etc/nginx/conf.d/librenms.conf
	fastcgi_pass unix:/var/run/php/php7.4-fpm.sock;

Restart services
	sudo systemctl restart mariadb
	sudo systemctl restart nginx
	sudo service php7.4-fpm  restart

Looks like the system is working. Passes ./validate.php and updates ./daily.php without errors.

librenms@librenms:~$ ./validate.php
====================================
Component | Version
--------- | -------
LibreNMS  | 1.68
DB Schema | 2020_09_22_172321_add_alert_log_index (174)
PHP       | 7.4.11
Python    | 3.6.9
MySQL     | 10.1.47-MariaDB-0ubuntu0.18.04.1
RRDTool   | 1.7.0
SNMP      | NET-SNMP 5.7.3
====================================

[OK]    Composer Version: 2.0.3
[OK]    Dependencies up-to-date.
[OK]    Database connection successful
[OK]    Database schema correct

I think it’s time to create a new VM :wink:

Thanks Jarod2801 for the hint.

SK

You’re welcome