Icinga / icingaweb2

A lightweight and extensible web interface to keep an eye on your environment. Analyse problems and act on them.
https://icinga.com/get-started/
GNU General Public License v2.0
811 stars 282 forks source link

Cannot update icingaweb2 to release 2.6.2-2 #3715

Closed redbob365 closed 5 years ago

redbob365 commented 5 years ago

I followed instructions at issue #2893 to upgrade icingaweb2. However, this release is able just for Ubuntu 19.04 (cosmic) not yet released.

So, I spinned icingaweb2 package and it uninstalled icingaweb2 and reinstalled icingacli, generating broken dependency.

I had to download all packages and install it one-by-one, as follows:

fonts-dejavu-extra_2.37-1_all.deb
php-icinga_2.6.2-2_all.deb
icingaweb2-common_2.6.2-2_all.deb
icingaweb2_2.6.2-2_all.deb
icingacli_2.6.1-1_all.deb

Now, when I try to open Web Interface (server/icingaweb2/authentication), it's giving me this error at browser:

Fatal error: Uncaught Error: Undefined class constant 'MYSQL_ATTR_INIT_COMMAND' in /usr/share/php/Icinga/Data/Db/DbConnection.php:196 Stack trace: #0 /usr/share/php/Icinga/Data/Db/DbConnection.php(76): Icinga\Data\Db\DbConnection->connect() #1 /usr/share/php/Icinga/Data/ResourceFactory.php(103): Icinga\Data\Db\DbConnection->__construct(Object(Icinga\Data\ConfigObject)) #2 /usr/share/php/Icinga/Data/ResourceFactory.php(136): Icinga\Data\ResourceFactory::createResource(Object(Icinga\Data\ConfigObject)) #3 /usr/share/php/Icinga/Authentication/User/UserBackend.php(210): Icinga\Data\ResourceFactory::create('icingaweb_db') #4 /usr/share/php/Icinga/Authentication/AuthChain.php(241): Icinga\Authentication\User\UserBackend::create('icingaweb2', Object(Icinga\Data\ConfigObject)) #5 /usr/share/php/Icinga/Authentication/Auth.php(272): Icinga\Authentication\AuthChain->valid() #6 /usr/share/php/Icinga/Authentication/Auth.php(93): Icinga\Authentication\Auth->authExternal() #7 /usr/share/php/Icinga/Authentication/Auth.php(348): Icinga\Au in /usr/share/php/Icinga/Data/Db/DbConnection.php on line 196

Any ideas to solve this?

Your Environment

redbob365 commented 5 years ago

I already solved this issue, following these paths:

After that, everything is running and icingaweb2 is now updated to 2.6.2