Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Checking for MIB Cache can cause crashes #4458

Closed
reubenfarrelly opened this issue Nov 6, 2021 · 1 comment
Closed

Checking for MIB Cache can cause crashes #4458

reubenfarrelly opened this issue Nov 6, 2021 · 1 comment
Labels
bug Undesired behaviour poller Data Collection related issue resolved A fixed issue unverified Some days we don't have a clue
Milestone

Comments

@reubenfarrelly
Copy link

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.

@reubenfarrelly reubenfarrelly added bug Undesired behaviour unverified Some days we don't have a clue labels Nov 6, 2021
@reubenfarrelly reubenfarrelly changed the title Backtrace with php-8.0 Backtrace in CactiShutdownHandler() with php-8.0 on Poller Run Nov 6, 2021
@netniV netniV changed the title Backtrace in CactiShutdownHandler() with php-8.0 on Poller Run MIB Cache crashes under PHP 8.x Nov 7, 2021
@netniV
Copy link
Member

netniV commented Nov 7, 2021

@reubenfarrelly if you aren't using the SNMP Agent facilities, you can disable this in the system settings. We will take a look at the error and try to identify the issue.

@netniV netniV changed the title MIB Cache crashes under PHP 8.x MIB Cache column check causes poller crash under PHP 8.x Nov 7, 2021
@netniV netniV added poller Data Collection related issue resolved A fixed issue unverified Some days we don't have a clue and removed unverified Some days we don't have a clue labels Nov 7, 2021
@netniV netniV added this to the v1.2.20 milestone Nov 7, 2021
@netniV netniV closed this as completed Nov 7, 2021
@github-actions github-actions bot locked and limited conversation to collaborators Feb 6, 2022
@netniV netniV changed the title MIB Cache column check causes poller crash under PHP 8.x Checking for MIB Cache can cause crashes Apr 3, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
bug Undesired behaviour poller Data Collection related issue resolved A fixed issue unverified Some days we don't have a clue
Projects
None yet
Development

No branches or pull requests

2 participants