Hi everyone
After countless hours of troubleshooting I decided to ask here. My LibreNMS instance (running on debian 11) was working just fine until I decided to upgrade PHP from 8.1 to 8.2. Now I am getting a lot of errors like these:
"Exception: Undefined variable $int_link" // app/Providers/ErrorReportingProvider.php:63
Here’s the validate.php output:
librenms@galvatron:~$ ./validate.php
===========================================
Component | Version
--------- | -------
LibreNMS | 23.7.0-67-g53874840d (2023-08-09T14:16:25-04:00)
DB Schema | 2023_08_02_120455_vendor_ouis_unique_index (255)
PHP | 8.2.8
Python | 3.9.2
Database | MariaDB 10.5.19-MariaDB-0+deb11u2
RRDTool | 1.7.2
SNMP | 5.9
===========================================
[OK] Composer Version: 2.5.8
[OK] Dependencies up-to-date.
"Exception: Using ${var} in strings is deprecated, use {$var} instead" // app/Providers/ErrorReportingProvider.php:63
"/opt/librenms/LibreNMS/Validations/Database/CheckSchemaStructure.php:267" // app/Providers/ErrorReportingProvider.php:63
"Exception: Using ${var} in strings is deprecated, use {$var} instead" // app/Providers/ErrorReportingProvider.php:63
"/opt/librenms/LibreNMS/Validations/Database/CheckSchemaStructure.php:277" // app/Providers/ErrorReportingProvider.php:63
[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
[WARN] Using database for locking, you should set CACHE_DRIVER=redis
[OK] rrdtool version ok
[OK] Connected to rrdcached
I tried reinstalling, upgrading the OS, reinstalling the libreNMS dependencies and so on, but these errors won’t dissapear.
It looks like the code is obsolete but the daily.sh script has no updates available
Any help would be highly appreciated