Icinga / icingaweb2-module-director

The Director aims to be your new favourite Icinga config deployment tool. Director is designed for those who want to automate their configuration deployment and those who want to grant their “point & click” users easy access to the configuration.
https://icinga.com/docs/director/latest
GNU General Public License v2.0
413 stars 203 forks source link

Background daemon won't start: Event loop feature "signals" isn't supported by the "StreamSelectLoop" #2726

Open ghost opened 1 year ago

ghost commented 1 year ago

Expected Behavior

Mandatory icinga-director.service starts

Current Behavior

Starting icinga-director.service (or /usr/bin/icingacli director daemon run) will fail with the current - 0.11.0 - icinga-php-libary:

root@vasquez:~# systemctl start icinga-director.service
Job for icinga-director.service failed because the control process exited with error code.
See "systemctl status icinga-director.service" and "journalctl -xe" for details.

Mar 27 20:09:22 vasquez.internal.ypbind.de systemd[1]: Starting Icinga Director - Monitoring Configuration...
Mar 27 20:09:22 vasquez.internal.ypbind.de icingadirector[2935718]: ERROR: BadMethodCallException in /usr/share/icinga-php/vendor/vendor/react/event-loop/src/StreamSelectLoop.php:154 with message: Event loop feature "signals" isn't supported by the "StreamSelectLoop"
Mar 27 20:09:22 vasquez.internal.ypbind.de systemd[1]: icinga-director.service: Main process exited, code=exited, status=1/FAILURE
Mar 27 20:09:22 vasquez.internal.ypbind.de systemd[1]: icinga-director.service: Failed with result 'exit-code'.
Mar 27 20:09:22 vasquez.internal.ypbind.de systemd[1]: Failed to start Icinga Director - Monitoring Configuration.

The script causing this error is part of the current Icinga2 Debian repository:

root@vasquez:~# dpkg -S /usr/share/icinga-php/vendor/vendor/react/event-loop/src/StreamSelectLoop.php
icinga-php-thirdparty: /usr/share/icinga-php/vendor/vendor/react/event-loop/src/StreamSelectLoop.php
root@vasquez:~# apt policy icinga-php-thirdparty
icinga-php-thirdparty:
  Installed: 0.11.0-2.bullseye
  Candidate: 0.11.0-2.bullseye
  Version table:
 *** 0.11.0-2.bullseye 500
        500 https://packages.icinga.com/debian icinga-bullseye/main amd64 Packages
        100 /var/lib/dpkg/status
     0.11.0-1.bullseye 500
        500 https://packages.icinga.com/debian icinga-bullseye/main amd64 Packages
     0.10.0-2.bullseye 500
        500 https://packages.icinga.com/debian icinga-bullseye/main amd64 Packages
root@vasquez:~# apt show icinga-php-thirdparty
Package: icinga-php-thirdparty
Version: 0.11.0-2.bullseye
Priority: extra
Section: admin
Maintainer: Henrik Triem <henrik.triem@icinga.com>
Installed-Size: 4,337 kB
Depends: icinga-php-common
Recommends: php (>= 7.2), php (<< 8.2), php-json, php-curl, php-sockets, php-soap
Download-Size: 526 kB
APT-Manual-Installed: no
APT-Sources: https://packages.icinga.com/debian icinga-bullseye/main amd64 Packages
Description: Icinga PHP Thirdparty for Icinga Web 2
 This project bundles all 3rd party PHP libraries used by Icinga Web
 products into one piece, which can be integrated as library into Icinga Web 2.

N: There are 2 additional records. Please use the '-a' switch to see them.

Possible Solution

Steps to Reproduce (for bugs)

Your Environment

Icinga2, Icinga2web and it's icinga-php-* packages are installed from the official Debianrepo for Icinga2 -

https://packages.icinga.com/debian icinga-bullseye/main amd64 Packages

ghost commented 1 year ago

This prevents deployments, but deployment can be triggered manually by running /usr/bin/icingacli director config deploy which works as expected