Upgrading to php 8.1 broke my install - what could be wrong?

I have these messages, can’t find the reason for them:

image

[email protected]:/opt/librenms$ ./validate.php

Component Version
LibreNMS 22.9.0
DB Schema 2022_09_03_091314_update_ports_adsl_table_with_defaults (246)
PHP 8.1.11
Python 3.8.10
Database MariaDB 10.5.17-MariaDB-1:10.5.17+maria~ubu1804
RRDTool 1.7.2
SNMP 5.8
====================================

[OK] Composer Version: 2.4.2
[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]
[OK] Database schema correct
[OK] MySQl and PHP time match
[FAIL] No active polling method detected
[OK] Dispatcher Service not detected
[OK] Locks are functional
[FAIL] No active python wrapper pollers found
[OK] Redis is unavailable
[WARN] Could not check Python dependencies because this script is not running as librenms
[FIX]:
The install docs show how this is done on a new install: Installing LibreNMS - LibreNMS Docs
[OK] rrdtool version ok
[OK] Connected to rrdcached
warning: Not a git repository. Use --no-index to compare two paths outside a working tree
usage: git diff --no-index []

I have the same problem!

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

Component Version
LibreNMS 22.9.0-20-ga0316f4b9
DB Schema 2022_09_03_091314_update_ports_adsl_table_with_defaults (246)
PHP 8.1.11
Python 3.6.8
Database MariaDB 10.3.28-MariaDB
RRDTool 1.7.0
SNMP 5.8

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

[OK] Composer Version: 2.4.2
[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]
[OK] Database schema correct
[OK] MySQl and PHP time match
[FAIL] No active polling method detected
[OK] Dispatcher Service not detected
[OK] Locks are functional
[FAIL] No active python wrapper pollers found
[OK] Redis is unavailable
[OK] rrd_dir is writable
[OK] rrdtool version ok

Please let me know if you get it working. I am still struggling.

It says you have no pollers enabled.

Check the cron file is installed and working if you are using the python wrapper
or check the dispatcher service is running if you are using that.

Can you give us some pointers on where to start to look? Not too familiar with the internals

The CLI validate you posted is not running as the librenms user - try that again to see if any different.

Follow through the install doco to check your cron entries are as required: Installing LibreNMS - LibreNMS Docs

The dispatcher service if you’re using that (you’d probably know if you were) is here: Dispatcher Service (RC) - LibreNMS Docs

I do not make use of any pollers, but did do some testing with it, so had ones that was no longer being used. When I removed my unused pollers it solved the problem for me.

So my suggestion would be is to delete your pollers that is not being used.

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.