Stack trace on history page

Hi.

After last update calling the history-pagelet of a service or host always shows a stack:

Uncaught ValueError: func_get_arg(): Argument #1 ($position) must be less than the number of the arguments passed to the currently executed function in /usr/share/icingaweb2/modules/monitoring/library/Monitoring/Backend/Ido/Query/HostdowntimestarthistoryQuery.php:99
Stack trace:
#0 /usr/share/icingaweb2/modules/monitoring/library/Monitoring/Backend/Ido/Query/HostdowntimestarthistoryQuery.php(99): func_get_arg()
#1 /usr/share/icingaweb2/modules/monitoring/library/Monitoring/Backend/Ido/Query/IdoQuery.php(944): Icinga\Module\Monitoring\Backend\Ido\Query\HostdowntimestarthistoryQuery->joinBaseTables()
#2 /usr/share/php/Icinga/Data/SimpleQuery.php(129): Icinga\Module\Monitoring\Backend\Ido\Query\IdoQuery->init()
#3 /usr/share/icingaweb2/modules/monitoring/library/Monitoring/Backend/Ido/Query/IdoQuery.php(1294): Icinga\Data\SimpleQuery->__construct()
#4 /usr/share/icingaweb2/modules/monitoring/library/Monitoring/Backend/Ido/Query/DowntimestarthistoryQuery.php(114): Icinga\Module\Monitoring\Backend\Ido\Query\IdoQuery->createSubQuery()
#5 /usr/share/icingaweb2/modules/monitoring/library/Monitoring/Backend/Ido/Query/IdoQuery.php(1119): Icinga\Module\Monitoring\Backend\Ido\Query\DowntimestarthistoryQuery->joinHosts()
#6 /usr/share/icingaweb2/modules/monitoring/library/Monitoring/Backend/Ido/Query/IdoQuery.php(1078): Icinga\Module\Monitoring\Backend\Ido\Query\IdoQuery->joinVirtualTable()
#7 /usr/share/icingaweb2/modules/monitoring/library/Monitoring/Backend/Ido/Query/DowntimestarthistoryQuery.php(96): Icinga\Module\Monitoring\Backend\Ido\Query\IdoQuery->requireVirtualTable()
#8 /usr/share/icingaweb2/modules/monitoring/library/Monitoring/Backend/Ido/Query/IdoQuery.php(1119): Icinga\Module\Monitoring\Backend\Ido\Query\DowntimestarthistoryQuery->joinHistory()
#9 /usr/share/icingaweb2/modules/monitoring/library/Monitoring/Backend/Ido/Query/IdoQuery.php(1078): Icinga\Module\Monitoring\Backend\Ido\Query\IdoQuery->joinVirtualTable()
#10 /usr/share/icingaweb2/modules/monitoring/library/Monitoring/Backend/Ido/Query/IdoQuery.php(1039): Icinga\Module\Monitoring\Backend\Ido\Query\IdoQuery->requireVirtualTable()
#11 /usr/share/icingaweb2/modules/monitoring/library/Monitoring/Backend/Ido/Query/IdoQuery.php(995): Icinga\Module\Monitoring\Backend\Ido\Query\IdoQuery->requireColumn()
#12 /usr/share/icingaweb2/modules/monitoring/library/Monitoring/Backend/Ido/Query/IdoQuery.php(1308): Icinga\Module\Monitoring\Backend\Ido\Query\IdoQuery->resolveColumns()
#13 /usr/share/php/Icinga/Data/SimpleQuery.php(131): Icinga\Module\Monitoring\Backend\Ido\Query\IdoQuery->columns()
#14 /usr/share/icingaweb2/modules/monitoring/library/Monitoring/Backend/Ido/Query/IdoQuery.php(1294): Icinga\Data\SimpleQuery->__construct()
#15 /usr/share/icingaweb2/modules/monitoring/library/Monitoring/Backend/Ido/Query/EventhistoryQuery.php(64): Icinga\Module\Monitoring\Backend\Ido\Query\IdoQuery->createSubQuery()
#16 /usr/share/icingaweb2/modules/monitoring/library/Monitoring/Backend/Ido/Query/IdoQuery.php(944): Icinga\Module\Monitoring\Backend\Ido\Query\EventhistoryQuery->joinBaseTables()
#17 /usr/share/php/Icinga/Data/SimpleQuery.php(129): Icinga\Module\Monitoring\Backend\Ido\Query\IdoQuery->init()
#18 /usr/share/icingaweb2/modules/monitoring/library/Monitoring/Backend/MonitoringBackend.php(300): Icinga\Data\SimpleQuery->__construct()
#19 /usr/share/icingaweb2/modules/monitoring/library/Monitoring/DataView/DataView.php(53): Icinga\Module\Monitoring\Backend\MonitoringBackend->query()
#20 /usr/share/icingaweb2/modules/monitoring/library/Monitoring/Backend/MonitoringBackend.php(255): Icinga\Module\Monitoring\DataView\DataView->__construct()
#21 /usr/share/icingaweb2/modules/monitoring/library/Monitoring/Object/MonitoredObject.php(606): Icinga\Module\Monitoring\Backend\MonitoringBackend->from()
#22 /usr/share/icingaweb2/modules/monitoring/library/Monitoring/Web/Controller/MonitoredObjectController.php(119): Icinga\Module\Monitoring\Object\MonitoredObject->fetchEventhistory()
#23 /usr/share/icingaweb2/library/vendor/Zend/Controller/Action.php(507): Icinga\Module\Monitoring\Web\Controller\MonitoredObjectController->historyAction()
#24 /usr/share/php/Icinga/Web/Controller/Dispatcher.php(76): Zend_Controller_Action->dispatch()
#25 /usr/share/icingaweb2/library/vendor/Zend/Controller/Front.php(937): Icinga\Web\Controller\Dispatcher->dispatch()
#26 /usr/share/php/Icinga/Application/Web.php(300): Zend_Controller_Front->dispatch()
#27 /usr/share/php/Icinga/Application/webrouter.php(99): Icinga\Application\Web->dispatch()
#28 /usr/share/icingaweb2/public/index.php(4): require_once(‘…’)
#29 {main}
thrown

Is it only us? What could we do to repair this?

Our configuration:

  • 2.8.2-1.buster
  • Loaded modules
    |Name|Version|
    | — | — |
    |director|master|
    |incubator|0.6.0|
    |ipl|v0.5.0|
    |monitoring|2.8.2|
    |reactbundle|0.8.0|
  • Safari
  • Icinga 2 version: r2.12.3-1
  • PHP 8.0.2 (cli) (built: Feb 12 2021 14:51:01) ( NTS )
  • Debian 10 (buster)

Icinga Web 2 is not yet compatible with PHP 8. You’ll need to install PHP 7 for this to work.

1 Like