I recently installed LibreNMS (fresh) on a new Ubuntu installation and have started to populate it.
I was able to run validate from the GUI but recently it has stopped working, after a reboot I think.
When I run validate from the GUI I get the following error message:
If I run the command from the terminal I get an ‘OK’ response for everything:
===========================================
Component | Version
--------- | -------
LibreNMS | 23.2.0-32-gca8b78049 (2023-03-14T17:42:45+00:00)
DB Schema | 2023_03_14_130653_migrate_empty_user_funcs_to_null (249)
PHP | 8.1.2-1ubuntu2.11
Python | 3.10.6
Database | MariaDB 10.6.12-MariaDB-0ubuntu0.22.04.1
RRDTool | 1.7.2
SNMP | 5.9.1
===========================================
[OK] Composer Version: 2.5.4
[OK] Dependencies up-to-date.
[OK] Database connection successful
[OK] Database Schema is current
[OK] SQL Server meets minimum requirements
[OK] lower_case_table_names is enabled
[OK] MySQL engine is optimal
[OK] Database and column collations are correct
[OK] Database schema correct
[OK] MySQl and PHP time match
[OK] Active pollers found
[OK] Dispatcher Service not detected
[OK] Locks are functional
[OK] Python poller wrapper is polling
[OK] Redis is unavailable
[OK] rrdtool version ok
[OK] Connected to rrdcached
All services look happy. I can’t find anything in the log files and I have tried installing the requirements as per this page:
My browser is the latest version of Brave (v1.49.120), running on Windows 11.
Is there anything obvious that I might have missed?
No, you already provided the php version the cli uses in you validate.
The possible problem is the php version your web server utilities as validate via browser fails.
As there’s no webserver hosting the files in the default WWW folder for NGINX I created the check php file in the LibreNMS WWW folder and ran it.
It came back with the same version number as the client.
If it works on the cli but not in the browser and you have the same php version in both then your problem is in the setting for the php variant as you probably have two under /etc/php/ one for the cli and one for the web. If the problem isn’t there it is most likely in the nginx config.
Also have a look into the logs that are configured in the above mentioned configs.
Is this pointing to a balance between time out and machine performance? (it’s an old ‘server’ that we’re using for this).
Should I report this as a “bug”?
I don’t think that reporting this as a bug is necessary if your server is especially old and slow.
But then again, why not run it on a raspberry pi an save a lot of energy costs.
Yes, it’s a balance between time out and machine performance and also a protection against denial of service attacks.
On a internal server that doesn’t have hundreds of requests per hour, you can safely set this to minutes.