Errormessage after installing icingaweb2

Hello together,

i have finally installed icinga2 and icingaweb2 on an Ubuntu 20 Server (following this manual https://techexpert.tips/de/icinga2-de/icinga2-installation-auf-ubuntu-linux/). It all works fine, not Errors and all seems to be ok.

But after generating the “setup token” i tried to open the Website but get this error-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/>

I am not realy into linux und icinga, but i have to install this… :wink:

Anyone can help with that? What should i do, to get the Icinga-Web-Installation-Page to finisch the installation?

Thank you very much for the help.

Hey, welcome
Maybe you want to follow the official docs? https://icinga.com/docs/icingaweb2/latest/

Maybe i should do this… :upside_down_face:

Thought there might be a quick and easy solution to the problem.

Thanx anyway…

You seem to have installed an old version of Icinga Web 2. Ubuntu 20 ships PHP 7.4 with which anything below Icinga Web 2 2.8 is not compatible.

Install v2.8 and this error should not appear.

Hi! :slight_smile:
I’m on a fresh install of Ubuntu LTS 20.04.02 and keep getting this error. I followed the Icinga2 installation guide as well as the Icingaweb2 guide.

This is the output of icinga2 --version

Summary
icinga2 --version
icinga2 - The Icinga 2 network monitoring daemon (version: r2.11.2-1)

Copyright (c) 2012-2021 Icinga GmbH (https://icinga.com/)
License GPLv2+: GNU GPL version 2 or later <http://gnu.org/licenses/gpl2.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.

System information:
  Platform: Ubuntu
  Platform version: 20.04.2 LTS (Focal Fossa)
  Kernel: Linux
  Kernel version: 5.4.0-71-generic
  Architecture: x86_64

Build information:
  Compiler: GNU 9.2.1
  Build host: lcy01-amd64-022

Application information:

General paths:
  Config directory: /etc/icinga2
  Data directory: /var/lib/icinga2
  Log directory: /var/log/icinga2
  Cache directory: /var/cache/icinga2
  Spool directory: /var/spool/icinga2
  Run directory: /run/icinga2

Old paths (deprecated):
  Installation root: /usr
  Sysconf directory: /etc
  Run directory (base): /run
  Local state directory: /var

Internal paths:
  Package data directory: /usr/share/icinga2
  State path: /var/lib/icinga2/icinga2.state
  Modified attributes path: /var/lib/icinga2/modified-attributes.conf
  Objects path: /var/cache/icinga2/icinga2.debug
  Vars path: /var/cache/icinga2/icinga2.vars
  PID path: /run/icinga2/icinga2.pid

I cant seem to upgrade to the latest icingaweb2 version. I found this ticket, which I think describes the issue I’m having, but I’m stuck. Any help is greatly appreciated :slight_smile:

These are the commands I executed on my new VM:

Commands
1  apt-get update && apt-get upgrade
2  do-release-upgrade -d
3  apt-get update && apt-get upgrade
4  reboot
5  apt-get update && apt-get upgrade
6  apt full-upgrade
7  reboot
8  apt-get update && apt-get upgrade
9  apt-get -y install apt-transport-https wget gnupg
10  apt-get install icinga2
11  apt-get install mysql-server mysql-client
12  apt-get install monitoring-plugins
13  mysql_secure_installation
14  apt-get install icinga2-ido-mysql
15  icinga2 feature enable ido-mysql
16  icinga2 api setup
17  service icinga2 restart
18  apt-get install icingaweb2 libapache2-mod-php icingacli
19  icingacli setup token create

It is recommended to use the official icinga repo.

Please refer to the installation instructions:
https://icinga.com/docs/icinga-web-2/latest/doc/02-Installation/

I have followed the instructions there.

Just hit this. Whoever shipped that PHP+IW2 combination in Ubuntu 20 should be fired.

1 Like

This basically means you cannot install icinga2 at raspberry pi on ubuntu 20.04.

I also hit the same issue that’s how I found this error page.
However following official installation steps and even using official repos doesn’t help at all.

  1. the official repo for ubuntu 20.04 has that broken dependency mentioned above.
  2. if/when I use the official icinga2 repository, it cannot find the package for arm64 architecture
    N: Skipping acquire of configured file ‘main/binary-arm64/Packages’ as repository ‘Index of /ubuntu icinga-focal InRelease’ doesn’t support architecture ‘arm64’

it seems the only way to install icinga2 at raspberry is to use ubuntu 18.04 (that is already 4 years old)
OR trying to get icingaweb2 from some other distro and somehow install it on raspberry? I hope icingaweb2 doesn’t have any arch-dependant binaries and it’s cross-platform PHP?

it turned out to be the simple workaround though:

just downgraded php to 7.2. there are plenty of resources around describing the steps.