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

Undefined offset: 1 (TemplateTree.php:186) #1323

Closed jschoone closed 6 years ago

jschoone commented 6 years ago

We updated our Icinga Director and now we aren't able to deploy new config. The error Undefined offset: 1 (TemplateTree.php:186) comes up. It is possible to redeploy. The database schema is the newest.

The error also comes up if I execute # icingacli director config render ERROR: ErrorException in /usr/share/icingaweb2/modules/director/library/Director/Resolver/TemplateTree.php:186 with message: Undefined offset: 1

I saw some related issues related to database problems, but I don't get what to fix on the database.

Your Environment

Thomas-Gelf commented 6 years ago

Problem used to be a wrong Service Set relation in the database, probably created by a former version of Director. v1.4.x comes with more strictness when it comes to inheritance and therefor threw above (not very meaningful) Exception. As we solved this through a dedicated support issue, I'll close this one. In case you're still facing related problems please let me know.