Can't start Director Background Daemon

Hello, here I can’t start “Director Background Daemon” and it’s reporting “activating” status. And when try manually start the daemon by “icingacli director daemon run --trace --debug”, also reply some php warning. Can anyone support this and give some suggestions? thanks.

icinga:/etc # systemctl status icinga-director.service 
● icinga-director.service - Icinga Director - Monitoring Configuration
     Loaded: loaded (/etc/systemd/system/icinga-director.service; enabled; vendor preset: disabled)
     Active: activating (auto-restart) (Result: exit-code) since Sat 2021-08-14 10:38:55 CST; 13s ago
       Docs: https://icinga.com/docs/director/latest/
    Process: 12202 ExecStart=/usr/bin/icingacli director daemon run (code=exited, status=1/FAILURE)
   Main PID: 12202 (code=exited, status=1/FAILURE)

icinga:/etc # icingacli director daemon run --trace --debug

PHP Fatal error: Uncaught ErrorException: Undefined index: args in /usr/share/php/Icinga/Cli/Loader.php:359

Stack trace:

#0 /usr/share/php/Icinga/Cli/Loader.php(359): Icinga\Application\ApplicationBootstrap->Icinga\Application\{closure}()

#1 /usr/share/php/Icinga/Cli/Loader.php(268): Icinga\Cli\Loader->formatTrace()

#2 /usr/share/php/Icinga/Application/Cli.php(162): Icinga\Cli\Loader->dispatch()

#3 /usr/share/php/Icinga/Application/Cli.php(152): Icinga\Application\Cli->dispatchOnce()

#4 /usr/bin/icingacli(7): Icinga\Application\Cli->dispatch()

#5 {main}

thrown in /usr/share/php/Icinga/Cli/Loader.php on line 359

Fatal error: Uncaught ErrorException: Undefined index: args in /usr/share/php/Icinga/Cli/Loader.php:359

Stack trace:

#0 /usr/share/php/Icinga/Cli/Loader.php(359): Icinga\Application\ApplicationBootstrap->Icinga\Application\{closure}()

#1 /usr/share/php/Icinga/Cli/Loader.php(268): Icinga\Cli\Loader->formatTrace()

#2 /usr/share/php/Icinga/Application/Cli.php(162): Icinga\Cli\Loader->dispatch()

#3 /usr/share/php/Icinga/Application/Cli.php(152): Icinga\Application\Cli->dispatchOnce()

#4 /usr/bin/icingacli(7): Icinga\Application\Cli->dispatch()

#5 {main}

thrown in /usr/share/php/Icinga/Cli/Loader.php on line 359
  • Director version (System - About): 1.8.1
  • Icinga Web 2 version and modules (System - About):2.8.4
  • Icinga 2 version (icinga2 --version):v2.13.0-13-g852d674ec
  • Operating System and version: suse15 sp3
  • Webserver, PHP versions: apache2-2.4.43-3.22.1.x86_64/php7-7.4.6-3.22.1.x86_64

1 Like

First thing I would try is making sure you have all of the PHP deps for the director package:

https://icinga.com/docs/icinga-director/latest/doc/02-Installation/

ipl incubator and reactbundle could be missed, but also make sure that the php-* packages match your version of PHP

Second thing I would check, make sure you don’t have the master branch checked out for the director. git checkout v1.8.1

PS you can format your code with triple back-ticks. See this post for some formatting tips

Hello, I follow the KB Installation - Icinga Director to deploy Icinga Director. ill incubator and reactbundle modules have been imported by git and active in Inciga Web Front console. Currently just the related daemon doesn’t active.
![截屏2021-08-14 15.10.44|608x500](upload://GZ


2Ik34nPx9YH3N0NQnzCAtt37.jpeg)

Hello, anyone can provide any suggestion about my issue met? Thx.

I am not familiar with suse linux.
Please check if the following php packages are installable, as I don’t see them in your list (they might be integrated the general php package, though)

  • php-pcntl
  • php-sockets

If those are installed maybe retry the Daemon Installation part of the docs.
Other than that I am out of ideas

2 Likes

Hello, very thinks for your helpful info. I found in SuSE 15, your list missing packages are marked as “php7-pcntl” and “php7-sockets”. After I manually install them, now I can start Icinga-director services. So thanks.

1 Like