Icinga Director Offset Error


#1

After doing a director upgrade, I seem to be getting an offset 3 error and it will not let me deploy.

Undefined offset: 3

#0 /usr/share/icingaweb2/modules/director/library/Director/Resolver/TemplateTree.php(202): Icinga\Application\ApplicationBootstrap->Icinga\Application{closure}(Integer, String, String, Integer, Array) #1 /usr/share/icingaweb2/modules/director/library/Director/Resolver/TemplateTree.php(127): Icinga\Module\Director\Resolver\TemplateTree->getParentsById(String) #2 /usr/share/icingaweb2/modules/director/library/Director/Resolver/TemplateTree.php(104): Icinga\Module\Director\Resolver\TemplateTree->getParentsFor(Object(Icinga\Module\Director\Objects\IcingaServiceSet)) #3 /usr/share/icingaweb2/modules/director/library/Director/Repository/IcingaTemplateRepository.php(41): Icinga\Module\Director\Resolver\TemplateTree->listParentIdsFor(Object(Icinga\Module\Director\Objects\IcingaServiceSet)) #4 /usr/share/icingaweb2/modules/director/library/Director/Repository/IcingaTemplateRepository.php(82): Icinga\Module\Director\Repository\IcingaTemplateRepository->getTemplatesFor(Object(Icinga\Module\Director\Objects\IcingaServiceSet), Boolean) #5 /usr/share/icingaweb2/modules/director/library/Director/Objects/IcingaObjectImports.php(292): Icinga\Module\Director\Repository\IcingaTemplateRepository->getTemplatesIndexedByNameFor(Object(Icinga\Module\Director\Objects\IcingaServiceSet)) #6 /usr/share/icingaweb2/modules/director/library/Director/Objects/IcingaObjectImports.php(366): Icinga\Module\Director\Objects\IcingaObjectImports->loadFromDb() #7 /usr/share/icingaweb2/modules/director/library/Director/Objects/IcingaObject.php(921): Icinga\Module\Director\Objects\IcingaObjectImports::loadForStoredObject(Object(Icinga\Module\Director\Objects\IcingaServiceSet)) #8 /usr/share/icingaweb2/modules/director/library/Director/Objects/IcingaServiceSet.php(80): Icinga\Module\Director\Objects\IcingaObject->imports() #9 /usr/share/icingaweb2/modules/director/library/Director/Objects/IcingaServiceSet.php(277): Icinga\Module\Director\Objects\IcingaServiceSet->getServiceObjects() #10 /usr/share/icingaweb2/modules/director/library/Director/IcingaConfig/IcingaConfig.php(714): Icinga\Module\Director\Objects\IcingaServiceSet->renderToConfig(Object(Icinga\Module\Director\IcingaConfig\IcingaConfig)) #11 /usr/share/icingaweb2/modules/director/library/Director/IcingaConfig/IcingaConfig.php(692): Icinga\Module\Director\IcingaConfig\IcingaConfig->createFileForObjects(String, Array) #12 /usr/share/icingaweb2/modules/director/library/Director/IcingaConfig/IcingaConfig.php(468): Icinga\Module\Director\IcingaConfig\IcingaConfig->createFileFromDb(String) #13 /usr/share/icingaweb2/modules/director/library/Director/IcingaConfig/IcingaConfig.php(268): Icinga\Module\Director\IcingaConfig\IcingaConfig->generateFromDb() #14 /usr/share/icingaweb2/modules/director/library/Director/IcingaConfig/IcingaConfig.php(304): Icinga\Module\Director\IcingaConfig\IcingaConfig->hasBeenModified() #15 /usr/share/icingaweb2/modules/director/library/Director/IcingaConfig/IcingaConfig.php(257): Icinga\Module\Director\IcingaConfig\IcingaConfig->storeIfModified() #16 /usr/share/icingaweb2/modules/director/application/controllers/ConfigController.php(316): Icinga\Module\Director\IcingaConfig\IcingaConfig::generate(Object(Icinga\Module\Director\Db)) #17 /usr/share/icingaweb2/library/vendor/Zend/Controller/Action.php(507): Icinga\Module\Director\Controllers\ConfigController->storeAction() #18 /usr/share/php/Icinga/Web/Controller/Dispatcher.php(76): Zend_Controller_Action->dispatch(String) #19 /usr/share/icingaweb2/library/vendor/Zend/Controller/Front.php(937): Icinga\Web\Controller\Dispatcher->dispatch(Object(Icinga\Web\Request), Object(Icinga\Web\Response)) #20 /usr/share/php/Icinga/Application/Web.php(407): Zend_Controller_Front->dispatch(Object(Icinga\Web\Request), Object(Icinga\Web\Response)) #21 /usr/share/php/Icinga/Application/webrouter.php(104): Icinga\Application\Web->dispatch() #22 /usr/share/icingaweb2/public/index.php(4): require_once(String) #23 {main}


#2

I was able to solve this by this ticket.