Checking for MIB Cache can cause crashes #4458
Labels
bug
Undesired behaviour
poller
Data Collection related issue
resolved
A fixed issue
unverified
Some days we don't have a clue
Milestone
Upon upgrading from php-7.4 to php-8.0.12 I am now seeing the following backtrace printed on each poller run:
06/Nov/2021 21:20:28 - CMDPHP PHP ERROR Backtrace: (CactiShutdownHandler())
06/Nov/2021 21:20:28 - ERROR PHP ERROR: Uncaught TypeError: Unsupported operand types: array & bool in /var/www/cacti/htdocs/lib/mib_cache.php:359 Stack trace: #0 /var/www/cacti/htdocs/lib/snmpagent.php(471): MibCache->update() #1 /var/www/cacti/htdocs/poller.php(822): snmpagent_poller_bottom() #2 {main} thrown in file: /var/www/cacti/htdocs/lib/mib_cache.php on line: 359
06/Nov/2021 21:20:28 - SYSTEM STATS: Time:26.2622 Method:cmd.php Processes:1 Threads:1 Hosts:26 HostsPerProcess:26 DataSources:418 RRDsProcessed:249
This is with git - following the 1.2.x branch and fully up to date as of now on a Gentoo Linux amd64 system.
The text was updated successfully, but these errors were encountered: