IcingaWeb2 is only in HTML after enabling module businessprocess

Hello,

on icinga2 I enabled the module “businessprocess” (see: icingaweb2-module-businessprocess/02-Installation.md at master · Icinga/icingaweb2-module-businessprocess · GitHub)

Afterwards the WebUI looks very different. Even after a reboot of the Linux server or after disabling the module again, it’s still the same. Is there a way to bring CSS back?

Dependencies installed:

  • icinga-php-library.noarch 0.9.1-1.el7.icinga
  • icinga-php-thirdparty.noarch 0.11.0-1.el7.icinga
  • monitoring 2.9.6

Not installed

  • icingadb >=1.0.0 (not installed)

Icinga Web 2 Version
2.9.6
Git commit
e702d933e15b0907628091a03741baff1b6074df
PHP Version
7.3.29
Git commit date
2022-03-08
Copyright
© 2013-2022 Icinga GmbH

Loaded Libraries

|Name|Version|

|icinga/icinga-php-library|0.9.1|
|icinga/icinga-php-thirdparty|0.11.0|

Loaded Modules

Name Version
setup 2.9.6
grafana 1.4.2
monitoring 2.9.6

Screenshot of GUI

I found the solution. For some reason icinga-php-library musn’t be higher than 0.8.0

Since you didn’t mention the version of businessprocess you tried, I have to guess. Version 2.3.0 is indeed not compatible with the newest versions of the libraries, though there is v2.3.1 which is. And v2.4.0 of course.

I am using the most recent version 2.4.0.

This should not happen then. Please upgrade icinga-php-library again and show the output of /icingaweb2/css/icinga.css. There might be just an error or some CSS and the error is at the very end (scroll down).

This file does not exist…
Even if you meant /usr/share/icingaweb2

That’s a route. http://localhost/icingaweb2/...

Here it is:

Operation on an invalid type
#0 /usr/share/icingaweb2/library/vendor/lessphp/lib/Less/Tree/Expression.php(51): Less_Tree_Operation->compile(Object(Less_Environment))
#1 /usr/share/icingaweb2/library/vendor/lessphp/lib/Less/Tree/Call.php(44): Less_Tree_Expression->compile(Object(Less_Environment))
#2 /usr/share/icingaweb2/library/vendor/lessphp/lib/Less/Tree/Expression.php(51): Less_Tree_Call->compile(Object(Less_Environment))
#3 /usr/share/icingaweb2/library/vendor/lessphp/lib/Less/Tree/Value.php(26): Less_Tree_Expression->compile(Object(Less_Environment))
#4 /usr/share/icingaweb2/library/vendor/lessphp/lib/Less/Tree/Rule.php(73): Less_Tree_Value->compile(Object(Less_Environment))
#5 /usr/share/icingaweb2/library/vendor/lessphp/lib/Less/Tree/Ruleset.php(91): Less_Tree_Rule->compile(Object(Less_Environment))
#6 /usr/share/icingaweb2/library/vendor/lessphp/lib/Less/Tree/Ruleset.php(91): Less_Tree_Ruleset->compile(Object(Less_Environment))
#7 /usr/share/icingaweb2/library/vendor/lessphp/lib/Less/Parser.php(185): Less_Tree_Ruleset->compile(Object(Less_Environment))
#8 /usr/share/icingaweb2/library/vendor/lessphp/lessc.inc.php(130): Less_Parser->getCss()
#9 /usr/share/php/Icinga/Web/LessCompiler.php(274): lessc->compile('\n\n:root, :host ...')
#10 /usr/share/php/Icinga/Web/StyleSheet.php(226): Icinga\Web\LessCompiler->render()
#11 /usr/share/php/Icinga/Web/StyleSheet.php(264): Icinga\Web\StyleSheet->render(false)
#12 /usr/share/php/Icinga/Application/webrouter.php(59): Icinga\Web\StyleSheet::send()
#13 /usr/share/icingaweb2/public/index.php(4): require_once('/usr/share/php/...')
#14 {main}


.. 07143em;
     vertical-align: 0.05357em; }
   
   .fa-lg {
     font-size: 1.25em;
     line-height: 0.05em;
     vertical-align: -0.075em; }
   
   .fa-xl {
     font-size: 1.5em;
     line-height: 0.04167em;
     vertical-align: -0.125em; }
   
   .fa-2xl {
     font-size: 2em;
     line-height: 0.03125em;
     vertical-align: -0.1875em; }
   
   .fa-fw {
     text-align: center;
     width: 1.25em; }
   
   .fa-ul {
     list-style-type: none;
     margin-left: var(--fa-li-margin, 2.5em);
     padding-left: 0; }
     .fa-ul > li {
       position: relative; }
   
   .fa-li {
!!   left: calc(var(--fa-li-width, 2em) * -1);
     position: absolute;
     text-align: center;
     width: var(--fa-li-width, 2em);
     line-height: inherit; }
   
   .fa-border {
     border-color: var(--fa-border-color, #eee);
     border-radius: var(--fa-border-radius, 0.1em);
     border-style: var(--fa-border-style, solid);
     border-width: var(--fa-border-width, 0.08em);
     padding: var(--fa-border-padding, 0.2em 0.25em 0.15em); }
   
   .fa-pull-left {
     float: left;
     margin-right: var(--fa-pull-margin, 0.3em); }
   
   .fa-pull-
..


icinga_with_icinga-php-library-0.9.1-1.el7.icinga.noarch.zip (1.0 KB)

ah, you should upgrade Icinga Web to v2.9.7. Then the newest icinga-php-library works fine.