Everything was running fine until it was time to upgrade php from 7.2 to 7.4. I was tired of the deprecation warnings.
I upgraded php to 7.4 and found out I had to upgrade mariadb too. I had a few issues with the migration but in the end, it worked.
Then I started to get ‘SWITCH DOWN’ alerts with no host information. Just blank template emails. We’re talking thousands. I only have about 400 devices in librenms.
Then I would see “Problem with backend” in my dashboards. I would tail the librenms.log and it happens right after this error:
[2021-06-18 11:25:15] production.ERROR: Cannot use object of type stdClass as array {“exception”:"[object] (Error(code: 0): Cannot use object of type stdClass as array at /opt/librenms/poller.php:133)
[stacktrace]
#0 {main}
"}
Is my database corrupted? What gives?
./validate.php
====================================
Component | Version
--------- | -------
LibreNMS | 21.5.1-28-g69397ea70
DB Schema | 2021_25_01_0127_create_isis_adjacencies_table (209)
PHP | 7.4.20
Python | 3.6.9
MySQL | 10.3.29-MariaDB-1:10.3.29+maria~bionic
RRDTool | 1.7.0
SNMP | NET-SNMP 5.7.3
====================================
[OK] Composer Version: 2.1.3
[OK] Dependencies up-to-date.
[OK] Database connection successful
[OK] Database schema correct
./daily.sh
Updating to latest codebase OK
Updating Composer packages OK
Updating SQL-Schema OK
Updating submodules OK
Cleaning up DB OK
Fetching notifications OK
Caching PeeringDB data OK
Caching Mac OUI data OK