# Director background service not starting after switching to new database server

**URL:** <https://community.icinga.com/t/director-background-service-not-starting-after-switching-to-new-database-server/14526>\
**Category:** Icinga DB\
**Tags:** icingaweb2, director\
**Created:** [January 30, 2025, 2:07pm UTC](https://community.icinga.com/t/director-background-service-not-starting-after-switching-to-new-database-server/14526 "2025-01-30T14:07:52Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![AKOCH975](https://community.icinga.com/letter_avatar_proxy/v4/letter/a/51bf81/32.png) [@AKOCH975](https://community.icinga.com/u/AKOCH975)\
**Post date:** [January 30, 2025, 2:07pm UTC](https://community.icinga.com/t/director-background-service-not-starting-after-switching-to-new-database-server/14526/1 "2025-01-30T14:07:52Z")

</div>

I am running icinga version: r2.14.3-1

Actually i have a issue with the background service.  
After relocating my icinga databases to a new mariadb server my director background service stopped.  
Reinstalling the service didn’t fix the problem.  
Switching back to the old databases didn’t work either.  
As director names a PID, is there an other method as [Background-Daemon](https://icinga.com/docs/icinga-director/latest/doc/75-Background-Daemon/)  
to revive the background service.

* * *

## icinga2 feature list Disabled features: compatlog debuglog elasticsearch gelf icingadb influxdb influxdb2 journald opentsdb syslog Enabled features: api checker command graphite ido-mysql livestatus mainlog notification perfdata

---

<div class="post-metadata">

**Author:** ![bberg](https://community.icinga.com/letter_avatar_proxy/v4/letter/b/b782af/32.png) [@bberg](https://community.icinga.com/u/bberg)\
**Post date:** [January 30, 2025, 2:10pm UTC](https://community.icinga.com/t/director-background-service-not-starting-after-switching-to-new-database-server/14526/2 "2025-01-30T14:10:34Z")

</div>

Can you just start the director background service with this?

```auto
systemctl enable --now icinga-director

```

afterwards you might want to verify the status:

```auto
systemctl status icinga-director

```

---

<div class="post-metadata">

**Author:** ![AKOCH975](https://community.icinga.com/letter_avatar_proxy/v4/letter/a/51bf81/32.png) [@AKOCH975](https://community.icinga.com/u/AKOCH975)\
**Post date:** [January 30, 2025, 2:24pm UTC](https://community.icinga.com/t/director-background-service-not-starting-after-switching-to-new-database-server/14526/3 "2025-01-30T14:24:51Z")

</div>

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.

## – Unit icinga-director.service has begun starting up. Jan 30 15:24:11 [chv-m001-ic01.chv-intern.de](http://chv-m001-ic01.chv-intern.de) icingadirector[36170]: PHP Fatal error: Uncaught Error: Call to a member function translate() on null in /usr/share/php/Icinga/Application/functions.php:35 Jan 30 15:24:11 [chv-m001-ic01.chv-intern.de](http://chv-m001-ic01.chv-intern.de) icingadirector[36170]: Stack trace: Jan 30 15:24:11 [chv-m001-ic01.chv-intern.de](http://chv-m001-ic01.chv-intern.de) icingadirector[36170]: #0 /usr/share/php/Icinga/Application/Config.php(329): t(‘Cannot read con…’) Jan 30 15:24:11 [chv-m001-ic01.chv-intern.de](http://chv-m001-ic01.chv-intern.de) icingadirector[36170]: #1 /usr/share/php/Icinga/Application/Config.php(398): Icinga\Application\Config::fromIni(‘/etc/icingaweb2…’) Jan 30 15:24:11 [chv-m001-ic01.chv-intern.de](http://chv-m001-ic01.chv-intern.de) icingadirector[36170]: #2 /usr/share/php/Icinga/Application/ApplicationBootstrap.php(555): Icinga\Application\Config::app() Jan 30 15:24:11 [chv-m001-ic01.chv-intern.de](http://chv-m001-ic01.chv-intern.de) icingadirector[36170]: #3 /usr/share/php/Icinga/Application/Cli.php(42): Icinga\Application\ApplicationBootstrap-\>loadConfig() Jan 30 15:24:11 [chv-m001-ic01.chv-intern.de](http://chv-m001-ic01.chv-intern.de) icingadirector[36170]: #4 /usr/share/php/Icinga/Application/ApplicationBootstrap.php(388): Icinga\Application\Cli-\>bootstrap() Jan 30 15:24:11 [chv-m001-ic01.chv-intern.de](http://chv-m001-ic01.chv-intern.de) icingadirector[36170]: #5 /usr/bin/icingacli(7): Icinga\Application\ApplicationBootstrap::start(‘/usr/share/icin…’) Jan 30 15:24:11 [chv-m001-ic01.chv-intern.de](http://chv-m001-ic01.chv-intern.de) icingadirector[36170]: #6 {main} Jan 30 15:24:11 [chv-m001-ic01.chv-intern.de](http://chv-m001-ic01.chv-intern.de) icingadirector[36170]: thrown in /usr/share/php/Icinga/Application/functions.php on line 35 Jan 30 15:24:11 [chv-m001-ic01.chv-intern.de](http://chv-m001-ic01.chv-intern.de) icingadirector[36170]: Fatal error: Uncaught Error: Call to a member function translate() on null in /usr/share/php/Icinga/Application/functions.php:35 Jan 30 15:24:11 [chv-m001-ic01.chv-intern.de](http://chv-m001-ic01.chv-intern.de) icingadirector[36170]: Stack trace: Jan 30 15:24:11 [chv-m001-ic01.chv-intern.de](http://chv-m001-ic01.chv-intern.de) icingadirector[36170]: #0 /usr/share/php/Icinga/Application/Config.php(329): t(‘Cannot read con…’) Jan 30 15:24:11 [chv-m001-ic01.chv-intern.de](http://chv-m001-ic01.chv-intern.de) icingadirector[36170]: #1 /usr/share/php/Icinga/Application/Config.php(398): Icinga\Application\Config::fromIni(‘/etc/icingaweb2…’) Jan 30 15:24:11 [chv-m001-ic01.chv-intern.de](http://chv-m001-ic01.chv-intern.de) icingadirector[36170]: #2 /usr/share/php/Icinga/Application/ApplicationBootstrap.php(555): Icinga\Application\Config::app() Jan 30 15:24:11 [chv-m001-ic01.chv-intern.de](http://chv-m001-ic01.chv-intern.de) icingadirector[36170]: #3 /usr/share/php/Icinga/Application/Cli.php(42): Icinga\Application\ApplicationBootstrap-\>loadConfig() Jan 30 15:24:11 [chv-m001-ic01.chv-intern.de](http://chv-m001-ic01.chv-intern.de) icingadirector[36170]: #4 /usr/share/php/Icinga/Application/ApplicationBootstrap.php(388): Icinga\Application\Cli-\>bootstrap() Jan 30 15:24:11 [chv-m001-ic01.chv-intern.de](http://chv-m001-ic01.chv-intern.de) icingadirector[36170]: #5 /usr/bin/icingacli(7): Icinga\Application\ApplicationBootstrap::start(‘/usr/share/icin…’) Jan 30 15:24:11 [chv-m001-ic01.chv-intern.de](http://chv-m001-ic01.chv-intern.de) icingadirector[36170]: #6 {main} Jan 30 15:24:11 [chv-m001-ic01.chv-intern.de](http://chv-m001-ic01.chv-intern.de) icingadirector[36170]: thrown in /usr/share/php/Icinga/Application/functions.php on line 35 Jan 30 15:24:11 [chv-m001-ic01.chv-intern.de](http://chv-m001-ic01.chv-intern.de) systemd[1]: icinga-director.service: main process exited, code=exited, status=255/n/a Jan 30 15:24:11 [chv-m001-ic01.chv-intern.de](http://chv-m001-ic01.chv-intern.de) systemd[1]: Failed to start Icinga Director - Monitoring Configuration. – Subject: Unit icinga-director.service has failed – Defined-By: systemd – Support: [systemd-devel Info Page](http://lists.freedesktop.org/mailman/listinfo/systemd-devel)

## – Unit icinga-director.service has failed.

– The result is failed.  
Jan 30 15:24:11 [chv-m001-ic01.chv-intern.de](http://chv-m001-ic01.chv-intern.de) systemd[1]: Unit icinga-director.service entered failed state.  
Jan 30 15:24:11 [chv-m001-ic01.chv-intern.de](http://chv-m001-ic01.chv-intern.de) systemd[1]: icinga-director.service failed.  
Jan 30 15:24:20 [chv-m001-ic01.chv-intern.de](http://chv-m001-ic01.chv-intern.de) icingaweb2[10329]: Failed to load pending migrations: UnexpectedValueException in /usr/share/php/Icinga/Application/Hook/DbMigrationHook.php:306 with message: DirectoryItera  
lines 1555-1600/1600 (END)

---

<div class="post-metadata">

**Author:** ![AKOCH975](https://community.icinga.com/letter_avatar_proxy/v4/letter/a/51bf81/32.png) [@AKOCH975](https://community.icinga.com/u/AKOCH975)\
**Post date:** [January 30, 2025, 2:26pm UTC](https://community.icinga.com/t/director-background-service-not-starting-after-switching-to-new-database-server/14526/4 "2025-01-30T14:26:02Z")

</div>

> [@bberg](#):
>
> `systemctl status icinga-director`

● 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 Do 2025-01-30 15:25:12 CET; 14s ago  
Docs: [Introduction - Icinga Director](https://icinga.com/docs/director/latest/)  
Process: 36723 ExecStart=/usr/bin/icingacli director daemon run (code=exited, status=255)  
Main PID: 36723 (code=exited, status=255)  
CGroup: /system.slice/icinga-director.service

Jan 30 15:25:12 [chv-m001-ic01.chv-intern.de](http://chv-m001-ic01.chv-intern.de) systemd[1]: Failed to start Icinga Director - Monitoring Configuration.  
Jan 30 15:25:12 [chv-m001-ic01.chv-intern.de](http://chv-m001-ic01.chv-intern.de) systemd[1]: Unit icinga-director.service entered failed state.  
Jan 30 15:25:12 [chv-m001-ic01.chv-intern.de](http://chv-m001-ic01.chv-intern.de) systemd[1]: icinga-director.service failed.
