[Pkg-nagios-devel] Bug#960701: php-icinga: Uncaught ErrorException \Icinga\Web\ViewStream::stream_set_option is not implemented!

Stephane Bortzmeyer stephane at sources.org
Fri May 15 15:44:25 BST 2020


Package: php-icinga
Version: 2.7.3-1
Severity: grave
Justification: renders package unusable

Dear Maintainer,

   * What led up to the situation?

I had a working Icinga Web setup. nginx as a frontend, redirecting to
Icinga:

location ~ ^/icingaweb2/index\.php(.*)$ {
    fastcgi_pass unix:/var/run/php/php-fpm.sock;
      fastcgi_index index.php;
        include fastcgi_params;
	  fastcgi_param SCRIPT_FILENAME /usr/share/icingaweb2/public/index.php;
	    fastcgi_param ICINGAWEB_CONFIGDIR /etc/icingaweb2;
	      fastcgi_param REMOTE_USER $remote_user;
	      }

location ~ ^/icingaweb2(.+)? {
  alias /usr/share/icingaweb2/public;
    index index.php;
      try_files $1 $uri $uri/ /icingaweb2/index.php$is_args$args;
      }
}


   * What exactly did you do (or not do) that was effective (or
     ineffective)?

I just upgraded my "sid" machine. Trying to access the Icinga Web page
of my installation no longer works.

   * What was the outcome of this action?

In the browser (Firefox), just this message:

Fatal error: Uncaught ErrorException: Uncaught ErrorException: include(): \Icinga\Web\ViewStream::stream_set_option is not implemented! in /usr/share/php/Icinga/Web/View.php:262 Stack trace: #0 /usr/share/php/Icinga/Web/View.php(262): Icinga\Application\ApplicationBootstrap->Icinga\Application\{closure}() #1 /usr/share/php/Icinga/Web/View.php(262): include() #2 /usr/share/icingaweb2/library/vendor/Zend/View/Abstract.php(877): Icinga\Web\View->_run() #3 /usr/share/icingaweb2/library/vendor/Zend/Controller/Action/Helper/ViewRenderer.php(904): Zend_View_Abstract->render() #4 /usr/share/icingaweb2/library/vendor/Zend/Controller/Action/Helper/ViewRenderer.php(925): Zend_Controller_Action_Helper_ViewRenderer->renderScript() #5 /usr/share/icingaweb2/library/vendor/Zend/Controller/Action/Helper/ViewRenderer.php(964): Zend_Controller_Action_Helper_ViewRenderer->render() #6 /usr/share/icingaweb2/library/vendor/Zend/Controller/Action/HelperBroker.php(272): Zend_Controller_Action_Helper_ViewRenderer->postDispatch() #7 /usr/share/icin in /usr/share/icingaweb2/library/vendor/Zend/Controller/Plugin/Broker.php on line 259

   * What outcome did you expect instead?

Ordinary Icinga Web page.


I also tried with the package in experimental,
php-icinga_2.8.0~rc1-1~exp2_all.deb. I got a different problem: the
CSS does not load and nginx logs:

2020/05/15 14:33:17 [error] 21559#21559: *65 FastCGI sent in stderr: "PHP message: PHP Fatal error:  Uncaught ErrorException: file_get_contents(): Filename cannot be empty in /usr/share/php/Icinga/Web/LessCompiler.php:172
Stack trace:
#0 [internal function]: Icinga\Application\ApplicationBootstrap->Icinga\Application\{closure}()
#1 /usr/share/php/Icinga/Web/LessCompiler.php(172): file_get_contents()
#2 /usr/share/php/Icinga/Web/StyleSheet.php(172): Icinga\Web\LessCompiler->render()
#3 /usr/share/php/Icinga/Web/StyleSheet.php(210): Icinga\Web\StyleSheet->render()
#4 /usr/share/php/Icinga/Application/webrouter.php(61): Icinga\Web\StyleSheet::send()
#5 /usr/share/icingaweb2/public/index.php(4): require_once('/usr/share/php/...')
#6 {main}
  thrown in /usr/share/php/Icinga/Web/LessCompiler.php on line 172" while reading response header from upstream, client: 192.168.2.1, server: _, request: "GET /icingaweb2/css/icinga.min.css HTTP/2.0", upstream: "fastcgi://unix:/var/run/php/php-fpm.sock:", host: "icinga2.nic.example", referrer: "https://icinga2.nic.example/icingaweb2/dashboard"
2020/05/15 14:33:17 [error] 21559#21559: *65 FastCGI sent in stderr: "PHP message: PHP Fatal error:  Uncaught ErrorException: file_get_contents(/usr/share/icingaweb2/public/js/icinga/behavior/modal.js): failed to open stream: No such file or directory in /usr/share/php/Icinga/Web/JavaScript.php:126
Stack trace:
#0 [internal function]: Icinga\Application\ApplicationBootstrap->Icinga\Application\{closure}()
#1 /usr/share/php/Icinga/Web/JavaScript.php(126): file_get_contents()
#2 /usr/share/php/Icinga/Web/JavaScript.php(50): Icinga\Web\JavaScript::send()
#3 /usr/share/php/Icinga/Application/webrouter.php(69): Icinga\Web\JavaScript::sendMinified()
#4 /usr/share/icingaweb2/public/index.php(4): require_once('/usr/share/php/...')
#5 {main}
  thrown in /usr/share/php/Icinga/Web/JavaScript.php on line 126" while reading response header from upstream, client: 192.168.2.1, server: _, request: "GET /icingaweb2/js/icinga.min.js HTTP/2.0", upstream: "fastcgi://unix:/var/run/php/php-fpm.sock:", host: "icinga2.nic.example", referrer: "https://icinga2.nic.example/icingaweb2/dashboard"


-- System Information:
Debian Release: bullseye/sid
  APT prefers unstable
  APT policy: (500, 'unstable')
Architecture: armhf (armv7l)

Kernel: Linux 4.4.199-a890a5a94ebb621f8f1720c24d12fef1-0 (SMP w/2 CPU cores)
Locale: LANG=C, LC_CTYPE=fr_FR.utf8 (charmap=UTF-8), LANGUAGE=C (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Init: systemd (via /run/systemd/system)

Versions of packages php-icinga depends on:
ii  php           2:7.4+76
ii  php7.4 [php]  7.4.5-1

Versions of packages php-icinga recommends:
ii  php-mysql               2:7.4+76
ii  php7.4-json [php-json]  7.4.5-1

php-icinga suggests no packages.

-- no debconf information



More information about the Pkg-nagios-devel mailing list