MySQL Error after Downgrade

Hey,

i got following error after I “downgraded” the director module from git-master to Version 1.4.3:

#0 /usr/share/icingaweb2/modules/director/library/Director/Data/Db/DbObject.php(624): Icinga\Module\Director\Data\Db\DbObject->setDbProperties(Object(stdClass))
#1 /usr/share/icingaweb2/modules/director/library/Director/Data/Db/DbObject.php(1101): Icinga\Module\Director\Data\Db\DbObject->loadFromDb()
#2 /usr/share/icingaweb2/modules/director/library/Director/Objects/IcingaObject.php(2338): Icinga\Module\Director\Data\Db\DbObject::load(String, Object(Icinga\Module\Director\Db))
#3 /usr/share/icingaweb2/modules/director/library/Director/Web/Controller/ObjectController.php(345): Icinga\Module\Director\Objects\IcingaObject::loadByType(String, String, Object(Icinga\Module\Director\Db))
#4 /usr/share/icingaweb2/modules/director/library/Director/Web/Controller/ObjectController.php(328): Icinga\Module\Director\Web\Controller\ObjectController->loadObject()
#5 /usr/share/icingaweb2/modules/director/library/Director/Web/Controller/ObjectController.php(62): Icinga\Module\Director\Web\Controller\ObjectController->eventuallyLoadObject()
#6 /usr/share/php/Icinga/Web/Controller/ActionController.php(152): Icinga\Module\Director\Web\Controller\ObjectController->init()
#7 /usr/share/php/Icinga/Web/Controller/Dispatcher.php(59): Icinga\Web\Controller\ActionController->__construct(Object(Icinga\Web\Request), Object(Icinga\Web\Response), Array)
#8 /usr/share/icingaweb2/library/vendor/Zend/Controller/Front.php(937): Icinga\Web\Controller\Dispatcher->dispatch(Object(Icinga\Web\Request), Object(Icinga\Web\Response))
#9 /usr/share/php/Icinga/Application/Web.php(409): Zend_Controller_Front->dispatch(Object(Icinga\Web\Request), Object(Icinga\Web\Response))
#10 /usr/share/php/Icinga/Application/webrouter.php(104): Icinga\Application\Web->dispatch()
#11 /usr/share/icingaweb2/public/index.php(4): require_once(String)
#12 {main}

Is there a procedure how to fall back from master to official release or is ist just not possible?

Display Fatal Error

Fatal error: Uncaught ErrorException: Uncaught ErrorException: Creating default object from empty value in /usr/share/php/Icinga/Web/Controller/ActionController.php:127 Stack trace: #0 /usr/share/php/Icinga/Web/Controller/ActionController.php(127): Icinga\Application\ApplicationBootstrap->Icinga\Application\{closure}(2, 'Creating defaul...', '/usr/share/php/...', 127, Array) #1 /usr/share/php/Icinga/Web/Controller/Dispatcher.php(59): Icinga\Web\Controller\ActionController->__construct(Object(Icinga\Web\Request), Object(Icinga\Web\Response), Array) #2 /usr/share/icingaweb2/library/vendor/Zend/Controller/Front.php(937): Icinga\Web\Controller\Dispatcher->dispatch(Object(Icinga\Web\Request), Object(Icinga\Web\Response)) #3 /usr/share/php/Icinga/Application/Web.php(409): Zend_Controller_Front->dispatch(Object(Icinga\Web\Request), Object(Icinga\Web\Response)) #4 /usr/share/php/Icinga/Application/webrouter.php(104): Icinga\Application\Web->dispatch() #5 /usr/share/icingaweb2/public/index.php(4): require_once('/usr/share/php/...' in /usr/share/icingaweb2/library/vendor/Zend/Controller/Plugin/Broker.php on line 259

Systeminfo

Ubuntu 16.04.4 LTS
Icinga 2.5.3
Icingaweb2 2.5.3
Director 1.4.3

Kind regards,
Leon

this is not possible as the master is a development branch that may have a differenct sql schema. You will need to recreate the DB

Hey @KevinHonka,

thanks for your fast reply. :+1:

However, creating a new database has no influence on my created hosts/templates, does it?
These can be imported again or have I mixed up something now…? The setup of the last Icinga2 instance happened a while ago, sorry :sweat_smile:

if you create a new DB with a new name, you can use the old director db to import them via SQL statements. The currently running config will be kept

2 Likes