Hello,
I’m trying to start the Icinga-director service. I did all steps mentioned in the docs.
But when I try to start the Service with “systemctl start icinga-director” I get the following error.
Jul 12 14:23:23 si0vmc1697 icingadirector[214520]: PHP Fatal error: Uncaught Error: Call to a member function translate() on null in /usr/share/php/Icinga/Application/functions.php:35
Jul 12 14:23:23 si0vmc1697 icingadirector[214520]: Stack trace:
Jul 12 14:23:23 si0vmc1697 icingadirector[214520]: #0 /usr/share/php/Icinga/Application/Config.php(328): t()
Jul 12 14:23:23 si0vmc1697 icingadirector[214520]: #1 /usr/share/php/Icinga/Application/Config.php(397): Icinga\Application\Config::fromIni()
Jul 12 14:23:23 si0vmc1697 icingadirector[214520]: #2 /usr/share/php/Icinga/Application/ApplicationBootstrap.php(578): Icinga\Application\Config::app()
Jul 12 14:23:23 si0vmc1697 icingadirector[214520]: #3 /usr/share/php/Icinga/Application/Cli.php(42): Icinga\Application\ApplicationBootstrap->loadConfig()
Jul 12 14:23:23 si0vmc1697 icingadirector[214520]: #4 /usr/share/php/Icinga/Application/ApplicationBootstrap.php(416): Icinga\Application\Cli->bootstrap()
Jul 12 14:23:23 si0vmc1697 icingadirector[214520]: #5 /usr/bin/icingacli(7): Icinga\Application\ApplicationBootstrap::start()
Jul 12 14:23:23 si0vmc1697 icingadirector[214520]: #6 {main}
Jul 12 14:23:23 si0vmc1697 icingadirector[214520]: thrown in /usr/share/php/Icinga/Application/functions.php on line 35
Jul 12 14:23:23 si0vmc1697 icingadirector[214520]: Fatal error: Uncaught Error: Call to a member function translate() on null in /usr/share/php/Icinga/Application/functions.php:35
Jul 12 14:23:23 si0vmc1697 icingadirector[214520]: Stack trace:
Jul 12 14:23:23 si0vmc1697 icingadirector[214520]: #0 /usr/share/php/Icinga/Application/Config.php(328): t()
Jul 12 14:23:23 si0vmc1697 icingadirector[214520]: #1 /usr/share/php/Icinga/Application/Config.php(397): Icinga\Application\Config::fromIni()
Jul 12 14:23:23 si0vmc1697 icingadirector[214520]: #2 /usr/share/php/Icinga/Application/ApplicationBootstrap.php(578): Icinga\Application\Config::app()
Jul 12 14:23:23 si0vmc1697 icingadirector[214520]: #3 /usr/share/php/Icinga/Application/Cli.php(42): Icinga\Application\ApplicationBootstrap->loadConfig()
Jul 12 14:23:23 si0vmc1697 icingadirector[214520]: #4 /usr/share/php/Icinga/Application/ApplicationBootstrap.php(416): Icinga\Application\Cli->bootstrap()
Jul 12 14:23:23 si0vmc1697 icingadirector[214520]: #5 /usr/bin/icingacli(7): Icinga\Application\ApplicationBootstrap::start()
Jul 12 14:23:23 si0vmc1697 icingadirector[214520]: #6 {main}
Jul 12 14:23:23 si0vmc1697 icingadirector[214520]: thrown in /usr/share/php/Icinga/Application/functions.php on line 35
Jul 12 14:23:23 si0vmc1697 systemd[1]: icinga-director.service: Main process exited, code=exited, status=255/EXCEPTION
looking in the forum I found some similar threads where they tell to set permissions at “/etc/icingaweb2” correct.
I checked that:
I checked also the user:
I’m running Icinga on RedHat so I have to take user “apache” instead of “www-data”.
Icinga Web 2 version : 2.11.4-2.el9
Used modules and their versions (System - About)
Web browser : Firefox
Icinga 2 version used (icinga2 --version) version: r2.13.6-1
PHP version used (php --version) PHP 8.1.14
Server operating system and version: RHEL9
Any Tips or hints are welcome
regards, Dirk