Icinga Director Daemon with DB configuration is not valid error

I’am seeing this problem in the icingaweb2 board after Director installation.

I followed this installation documentation:

https://icinga.com/docs/icinga-director/latest/doc/75-Background-Daemon/

This is exception using icingacli:

DB configuration is not valid

This is my Director database settings:

How to fix this problem?

  • Director version (System - About): 1.10.2
  • Icinga Web 2 version and modules (System - About): 2.11.2
  • Icinga 2 version (icinga2 --version): r2.13.6-1
  • Operating System and version: Ubuntu 22.04.1 LTS (Jammy Jellyfish)
  • Webserver, PHP versions: Apache/2.4.52 (Ubuntu) / PHP 8.1.2

Good day,

have you imported the mysql schema?

If you add the director resource and then test the connection through the Icingaweb.

Do you get back there as feedback that the connection was successful?
Does the command systemctl status icinga-director.service give any more hints?

have you imported the mysql schema?

Yes, I’m used the migrate command

icingacli director migration run

The following command tells me everything is ok

icingacli director migration pending

output: There are no pending migrations

If you add the director resource and then test the connection through the Icingaweb.

Yes, I did, it’s in the print of the topic body

Does the command systemctl status icinga-director.service give any more hints?

output:

● icinga-director.service - Icinga Director - Monitoring Configuration
     Loaded: loaded (/etc/systemd/system/icinga-director.service; enabled; vendor preset: enab>
     Active: active (running) since Tue 2022-12-20 17:12:26 UTC; 1 day 22h ago
       Docs: https://icinga.com/docs/director/latest/
   Main PID: 301908 (icingacli)
     Status: "running, db: no configuration"
      Tasks: 1 (limit: 2258)
     Memory: 9.8M
        CPU: 14.667s
     CGroup: /system.slice/icinga-director.service
             └─301908 "icinga::director: running, db: no configuration" "" "" "" ""

Dec 20 17:12:26 icinga.xxxx.com systemd[1]: Starting Icinga Director - Monitoring Config>
Dec 20 17:12:26 icinga.xxxx.com systemd[1]: Started Icinga Director - Monitoring Configu>
Dec 20 17:12:26 icinga.xxxx.com icingadirector[301908]: DB configuration is not valid

Hello,

you probably can’t do the kickstart in the director either, can you?

I found another older problem in the forum. Maybe this will help you too. Unfortunately, I have no other ideas at the moment :frowning:

kickstart in the director is set