Icinga web2 not working on ubuntu 20.04

I am trying to get icinga working on my server but it keeps failing tryed many howto’s

But all result with corupt css files if i have a look at icinga.min.css it contains this including a stack dump:

Operation on an invalid type
#0 /usr/share/icingaweb2/library/vendor/lessphp/lib/Less/Tree/Expression.php(51): Less_Tree_Operation->compile()
#1 /usr/share/icingaweb2/library/vendor/lessphp/lib/Less/Tree/Call.php(44): Less_Tree_Expression->compile()
#2 /usr/share/icingaweb2/library/vendor/lessphp/lib/Less/Tree/Expression.php(51): Less_Tree_Call->compile()
#3 /usr/share/icingaweb2/library/vendor/lessphp/lib/Less/Tree/Value.php(26): Less_Tree_Expression->compile()
#4 /usr/share/icingaweb2/library/vendor/lessphp/lib/Less/Tree/Rule.php(73): Less_Tree_Value->compile()
#5 /usr/share/icingaweb2/library/vendor/lessphp/lib/Less/Tree/Ruleset.php(91): Less_Tree_Rule->compile()
#6 /usr/share/icingaweb2/library/vendor/lessphp/lib/Less/Tree/Ruleset.php(91): Less_Tree_Ruleset->compile()
#7 /usr/share/icingaweb2/library/vendor/lessphp/lib/Less/Parser.php(185): Less_Tree_Ruleset->compile()
#8 /usr/share/icingaweb2/library/vendor/lessphp/lessc.inc.php(130): Less_Parser->getCss()
#9 /usr/share/php/Icinga/Web/LessCompiler.php(230): lessc->compile()
#10 /usr/share/php/Icinga/Web/StyleSheet.php(218): Icinga\Web\LessCompiler->render()
#11 /usr/share/php/Icinga/Web/StyleSheet.php(258): Icinga\Web\StyleSheet->render()
#12 /usr/share/php/Icinga/Application/webrouter.php(64): 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); }

Give as much information as you can, e.g.

  • Icinga Web 2 version 2.10.1-1.focal
  • Used modules and their versions (System - About)
  • Web browser used chrome
  • Icinga 2 version used (icinga2 --version)
  • PHP version used (php --version) 8.0.20
  • Server operating system and version ubuntu 20.04

Same issue here. It actually happens when upgrading icinga-php-library to 0.9.0-1.focal.

Workaround I found is to downgrade the package: sudo apt upgrade icinga-php-library=0.8.1-1.focal

It is not a real solution though, any additional help is welcome.

Thanks that solved the issue, and your right its more a workaround.

Did you reported it as an bug ?

Same issue here
after upgrade of icinga-php-library icinga-php-thirdparty this morning CSS is broken
Tryin to disable module / theme but no luck
In dev console we can see

Erreur dans les liens source : Error: request failed with status 404
URL de la ressource : https://exemple.tld/icingaweb2/js/icinga.min.js
URL du lien source : jquery-3.4.1.min.map


We downgrade both

apt install --reinstall icinga-php-library=0.8.1-1.buster && apt install --reinstall icinga-php-thirdparty=0.10.0-2.buster

Please wait with the upgrade to newer versions right now. We’re in the process of releasing multiple updates today. It’s better to wait until tomorrow or next week.

For the meantime, just downgrade icinga-php-library.

1 Like

Old issue, unfortunately. See Support for PHP 8.1 · Issue #4609 · Icinga/icingaweb2 · GitHub https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=1000474

I resolved the isue by upgrading to ubuntu 22.04 with php8.0 as default