Icingaweb2 pages (CSS) will not load properly

Icingaweb2 was upgraded from 2.8.5 to 2.9.0. After upgrade the UI web pages won’t properly anymore.

# ls -alF /usr/share/icingaweb2/modules
total 60
drwxr-xr-x 15 root   root       4096 Jul 12  2021 ./
drwxr-xr-x  8 root   root       4096 Jul 12  2021 ../
drwxr-xr-x  9 root   root       4096 Nov  2  2019 businessprocess/
drwxr-xr-x 10 root   root       4096 Apr 29  2022 director/
drwxr-xr-x  6 root   root       4096 May  6 13:25 doc/
drwxr-xr-x  9 root   root       4096 Dec 25  2019 grafana/
drwxr-sr-x  9 apache icingaweb2 4096 Aug 27  2019 graphite/
drwxr-xr-x  5 root   root       4096 Oct 28  2022 incubator/
drwxr-xr-x  5 root   root       4096 Mar 25  2022 ipl/
drwxr-xr-x  7 root   root       4096 May  6 13:26 monitoring/
drwxr-xr-x  4 root   root       4096 Mar 25  2022 reactbundle/
drwxr-xr-x  5 root   root       4096 May  6 13:26 setup/
drwxr-xr-x  5 root   root       4096 May  6 13:26 translation/
drwxr-xr-x 10 root   root       4096 Oct 28  2022 vspheredb/
drwxr-xr-x 11 root   root       4096 Nov  2  2019 x509/

# icingacli module list installed --verbose
MODULE         VERSION   STATE     DIRECTORY
businessprocess 2.2.0     disabled   /mnt/usr/share/icingaweb2/modules/businessprocess
Launching the run script /mnt/usr/share/icingaweb2/modules/director/run.php for module director failed with the following exception: Missing dependencies, please check
director       1.8.1     disabled   /mnt/usr/share/icingaweb2/modules/director
doc            2.9.0     disabled   /mnt/usr/share/icingaweb2/modules/doc
grafana        1.3.6     disabled   /mnt/usr/share/icingaweb2/modules/grafana
graphite       1.1.0     disabled   /mnt/usr/share/icingaweb2/modules/graphite
incubator      0.19.0    disabled   /mnt/usr/share/icingaweb2/modules/incubator
ipl            v0.5.0    disabled   /mnt/usr/share/icingaweb2/modules/ipl
monitoring     2.9.0     enabled    /mnt/usr/share/icingaweb2/modules/monitoring
reactbundle    0.9.0     disabled   /mnt/usr/share/icingaweb2/modules/reactbundle
setup          2.9.0     disabled   /mnt/usr/share/icingaweb2/modules/setup
translation    2.9.0     disabled   /mnt/usr/share/icingaweb2/modules/translation
Launching the run script /mnt/usr/share/icingaweb2/modules/vspheredb/run.php for module vspheredb failed with the following exception: Missing dependencies, please check
vspheredb      1.5.0     disabled   /mnt/usr/share/icingaweb2/modules/vspheredb
x509           1.0.0     disabled   /mnt/usr/share/icingaweb2/modules/x509

/icingaweb2/css/icinga.css gives this error

Fatal error: Uncaught Less_Exception_Compiler: Operation on an invalid type in /usr/share/icinga-php/ipl/vendor/wikimedia/less.php/lib/Less/Tree/Operation.php:40 Stack trace: #0 /usr/share/icinga-php/ipl/vendor/wikimedia/less.php/lib/Less/Tree/Expression.php(46): Less_Tree_Operation->compile(Object(Less_Environment)) #1 /usr/share/icinga-php/ipl/vendor/wikimedia/less.php/lib/Less/Tree/Call.php(40): Less_Tree_Expression->compile(Object(Less_Environment)) #2 /usr/share/icinga-php/ipl/vendor/wikimedia/less.php/lib/Less/Tree/Expression.php(46): Less_Tree_Call->compile(Object(Less_Environment)) #3 /usr/share/icinga-php/ipl/vendor/wikimedia/less.php/lib/Less/Tree/Value.php(25): Less_Tree_Expression->compile(Object(Less_Environment)) #4 /usr/share/icinga-php/ipl/vendor/wikimedia/less.php/lib/Less/Tree/Rule.php(76): Less_Tree_Value->compile(Object(Less_Environment)) #5 /usr/share/icinga-php/ipl/vendor/wikimedia/less.php/lib/Less/Tree/Ruleset.php(95): Less_Tree_Rule->compile(Object(Less_Environment)) #6 /usr/share/icinga-php/ipl/v in /usr/share/icinga-php/ipl/vendor/wikimedia/less.php/lib/Less/Tree/Operation.php on line 40


you need to update again to 2.9.7 or higher

also did that actually help? =>

Currently icinga-php-library 0.13.2 is installed. Would updating to 2.9.7 help with this issue?

Thanks

most likely… or you downgrade icinga-php-library to something older…
why do you install icingaweb2 2.9.0 anyway?

Well I want to upgrade it to the latest version, I’m supposed to follow the upgrade path as suggested in the documentation.

I wish the documentation provide the compatibility information about Icinga2 core, and other related components which go with Icingaweb2 ( each version ) .

There actually is compatibility information, under the installation section in the docs for each product:

For Icingaweb2: From Source - Icinga Web
For the Business Process module: From Source - Business Process Modeling

Installing via packages is usually easier though, since it saves you from these kinds of headaches :slight_smile:

Yes, I did install using packages , followed the documentation and ended up with this issue. Going to try updating to 2.9.7.

Upgraded to 2.9.7 and the issue was resolved.