"Uncaught TypeError" after upgrade to IcingaWeb 2.9 using IcingaDB

After updating icingaweb to 2.9.0 on Debian buster the following PHP error is shown, e.g.

PHP Fatal error:  Uncaught TypeError: Argument 1 passed to ipl\\Orm\\Compat\\FilterProcessor::apply() must be an instance of ipl\\Stdlib\\Filter\\Rule, instance of Icinga\\Data\\Filter\\FilterAnd given, called in /usr/share/icingaweb2/modules/icingadb/library/Icingadb/Web/Controller.php on line 247 and defined in /usr/share/icinga-php/ipl/vendor/ipl/orm/src/Compat/FilterProcessor.php:33\nStack trace:\n#0 /usr/share/icingaweb2/modules/icingadb/library/Icingadb/Web/Controller.php(247): ipl\\Orm\\Compat\\FilterProcessor::apply(Object(Icinga\\Data\\Filter\\FilterAnd), Object(ipl\\Orm\\Query))\n#1 /usr/share/icingaweb2/modules/icingadb/library/Icingadb/Web/Controller.php(229): Icinga\\Module\\Icingadb\\Web\\Controller->applyMonitoringRestriction(Object(ipl\\Orm\\Query))\n#2 /usr/share/icingaweb2/modules/icingadb/application/controllers/HostsController.php(58): Icinga\\Module\\Icingadb\\Web\\Controller->filter(Object(ipl\\Orm\\Query))\n#3 /usr/share/icingaweb2/modules/icingadb/library/Icingadb/Web/Controller.php(202): Icinga\\Module\\Icingadb\\Controllers\\HostsControll in /usr/share/icinga-php/ipl/vendor/ipl/orm/src/Compat/FilterProcessor.php on line 33, referer: https://HOSTNAME/icingaweb2/dashboard?pane=Current%20Issues

Package versions:

$ dpkg -l | grep icingaweb
ii  icingaweb2                           2.9.0-1.buster                       all          simple and responsive web interface for Icinga
ii  icingaweb2-common                    2.9.0-1.buster                       all          simple and responsive web interface for Icinga - common files
ii  icingaweb2-module-doc                2.9.0-1.buster                       all          simple and responsive web interface for Icinga - documentation module
ii  icingaweb2-module-monitoring         2.9.0-1.buster                       all          simple and responsive web interface for Icinga - monitoring module
$ dpkg -l | grep icinga-php
ii  icinga-php-common                    1.0.0-1.buster                       all          Icinga PHP Common for Icinga Web 2
ii  icinga-php-library                   0.6.0-1.buster                       all          Icinga PHP Library for Icinga Web 2
ii  icinga-php-thirdparty                0.10.0-1.buster                      all          Icinga PHP Thirdparty for Icinga Web 2
$ dpkg -l | grep icingadb
ii  icingadb                             1.0.0~rc1-2.buster                   amd64        database connector for Icinga 2
ii  icingadb-redis                       1.0.0~rc1-2.buster                   amd64        Redis service for Icinga DB
$ dpkg -l | grep icinga2
ii  icinga2                              2.12.5-1.buster                      amd64        host and network monitoring system
ii  icinga2-bin                          2.12.5-1.buster                      amd64        host and network monitoring system - daemon
ii  icinga2-common                       2.12.5-1.buster                      all          host and network monitoring system - common files
ii  icinga2-dbg                          2.12.5-1.buster                      amd64        host and network monitoring system - debug symbols
ii  icinga2-doc                          2.12.5-1.buster                      all          host and network monitoring system - documentation
ii  icinga2-ido-mysql                    2.12.5-1.buster                      amd64        host and network monitoring system - MySQL support

Hi,

Icinga DB Web RC1 is not compatible with Icinga Web 2 Version 2.9.0. You should either disable the module, or use the current master as this is the only state that’s compatible.

OK, thanks for the fast answer!

I need to use the commit before Parse normalized perfdata for visualization · Icinga/icingadb-web@adf1811 · GitHub because this does not work. Maybe I’m missing something.

Oh yes, latest master of Icinga DB Web requires the latest master of Icinga DB (plus schema changes) and the latest master of Icinga DB requires the latest master of Icinga 2.

Not that much user-friendly anymore now :roll_eyes:, but will be easier once Icinga v2.13 is out and Icinga DB :wink:

No problem.
One issue I have with this constellation is that submitting passive check results does not work also I get the log in icinga2.log:

[2021-07-23 07:26:25 +0000] information/HttpServerConnection: Request: POST /v1/actions/process-check-result (from [127.0.0.1]:54764), user: icingaweb2, agent: GuzzleHttp/6.5.5 curl/7.64.0 PHP/7.3.29-1~deb10u1, status: OK).

But e.g. icingaweb2 is not showing the Processing check result... message and the “Plugin Output” is not updated.

Yep, something’s wrong here. I also get no notification but the state/output is properly updated.