Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Refusing to render the configuration, your DB layer corrupts binary data. You might be affected by Zend Framework bug #655 #86

Closed
donnib opened this issue Mar 20, 2017 · 3 comments

Comments

@donnib
Copy link

donnib commented Mar 20, 2017

Hi,
I get this when i try to deploy in Icinga Director, any ideas what is causing this ?

#0 /etc/icingaweb2/modules/director/library/Director/IcingaConfig/IcingaConfig.php(149): Icinga\Module\Director\IcingaConfig\IcingaConfig->generateFromDb()
#1 /etc/icingaweb2/modules/director/library/Director/IcingaConfig/IcingaConfig.php(185): Icinga\Module\Director\IcingaConfig\IcingaConfig->hasBeenModified()
#2 /etc/icingaweb2/modules/director/library/Director/IcingaConfig/IcingaConfig.php(138): Icinga\Module\Director\IcingaConfig\IcingaConfig->storeIfModified()
#3 /etc/icingaweb2/modules/director/application/controllers/ConfigController.php(57): Icinga\Module\Director\IcingaConfig\IcingaConfig::generate(Object(Icinga\Module\Director\Db))
#4 /usr/share/php/Zend/Controller/Action.php(516): Icinga\Module\Director\Controllers\ConfigController->deployAction()
#5 /usr/share/php/Icinga/Web/Controller/Dispatcher.php(76): Zend_Controller_Action->dispatch('deployAction')
#6 /usr/share/php/Zend/Controller/Front.php(954): Icinga\Web\Controller\Dispatcher->dispatch(Object(Icinga\Web\Request), Object(Icinga\Web\Response))
#7 /usr/share/php/Icinga/Application/Web.php(384): Zend_Controller_Front->dispatch(Object(Icinga\Web\Request), Object(Icinga\Web\Response))
#8 /usr/share/php/Icinga/Application/webrouter.php(109): Icinga\Application\Web->dispatch()
#9 /usr/share/icingaweb2/public/index.php(4): require_once('/usr/share/php/...')
#10 {main}

donnib

@bebehei
Copy link
Contributor

bebehei commented Mar 20, 2017

Thank you for the bug report.

The related bug (zendframework/zf1#655) should have been fixed, see here: https://github.com/Icinga/icingaweb2-module-director/blob/master/doc/80-FAQ.md#binary-data-corruption-with-zf-1126-and-11217

I'm Currently researching this, why the icingaweb2-package is still invalid.

Could you please verify, that you're using the latest docker image?

@bebehei
Copy link
Contributor

bebehei commented Mar 20, 2017

Ok, I see the trouble:

In #67 we updated a bunch of stuff. One bit of the change was moving the modules from /etc/icingaweb2/modules to a folder inside the container and not in the volume.

Could you please remove the modules director, doc, graphite, monitoring in your /etc/icingaweb2/modules volume?

This should fix it, because then the latest icingaweb2 director will be used.

@donnib
Copy link
Author

donnib commented Mar 21, 2017

I solved my problem by using the latest docker image.

@donnib donnib closed this as completed Mar 21, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants