Icinga / icingaweb2

A lightweight and extensible web interface to keep an eye on your environment. Analyse problems and act on them.
https://icinga.com/get-started/
GNU General Public License v2.0
809 stars 282 forks source link

Update to 2.11.3 throws errors #4966

Closed mzac closed 1 year ago

mzac commented 1 year ago

Describe the bug

Upgraded to 2.11.3 and can no longer access the UI. Getting errors in apache logs

To Reproduce

Provide a link to a live example, or an unambiguous set of steps to reproduce this issue. Include configuration, logs, etc. to reproduce, if relevant.

  1. Upgrade to 2.11.3
  2. Login to web interface

Expected behavior

It should work and not throw an error

Screenshots

image

Log

==> icingaweb2-error.log <==
[Wed Dec 14 10:48:19.682854 2022] [proxy_fcgi:error] [pid 1596893] [client 192.168.0.1:52656] AH01071: Got error 'PHP message: PHP Fatal error:  Uncaught ErrorException: require_once(lessphp/lessc.inc.php): Failed to open stream: No such file or directory in /usr/share/php/Icinga/Util/LessParser.php:9\nStack trace:\n#0 /usr/share/php/Icinga/Util/LessParser.php(9): Icinga\\Application\\ApplicationBootstrap->Icinga\\Application\\{closure}()\n#1 /usr/share/php/Icinga/Util/LessParser.php(9): require_once()\n#2 /usr/share/php/Icinga/Application/ClassLoader.php(303): require('...')\n#3 /usr/share/php/Icinga/Web/LessCompiler.php(64): Icinga\\Application\\ClassLoader->loadClass()\n#4 /usr/share/php/Icinga/Web/StyleSheet.php(117): Icinga\\Web\\LessCompiler->__construct()\n#5 /usr/share/php/Icinga/Web/StyleSheet.php(251): Icinga\\Web\\StyleSheet->__construct()\n#6 /usr/share/php/Icinga/Application/webrouter.php(62): Icinga\\Web\\StyleSheet::send()\n#7 /usr/share/icingaweb2/public/index.php(4): require_once('...')\n#8 {main}\n  thrown in /usr/share/php/Icinga/Util/LessParser.php on line 9', referer: https://icinga.home.local/icingadb/hosts?host.state.is_problem=y&host.state.is_handled=n&sort=host.state.last_state_change%20desc

Your Environment

Include as many relevant details about the environment you experienced the problem in

lippserd commented 1 year ago

Yeah, I screwed that up badly 🙅.

Can you try this quickfix please?

mv /usr/share/icingaweb2/library/vendor/vendor/* /usr/share/icingaweb2/library/vendor

mzac commented 1 year ago

@lippserd Zend is already present in the parent dir and won't let me move it.

root@mon1:/var/log/apache2# mv /usr/share/icingaweb2/library/vendor/vendor/* /usr/share/icingaweb2/library/vendor
mv: cannot move '/usr/share/icingaweb2/library/vendor/vendor/Zend' to '/usr/share/icingaweb2/library/vendor/Zend': Directory not empty
mzac commented 1 year ago

Hmm, even though it threw an error it seems the gui is fixed now. But this still probably needs a new release to fix it.

lippserd commented 1 year ago

Hmm, even though it threw an error it seems the gui is fixed now. But this still probably needs a new release to fix it.

Yeah sure!

lippserd commented 1 year ago

There is a new revision for each version released that should fix the problem.