Your message dated Sun, 10 Feb 2019 10:22:54 +0100
with message-id <[email protected]>
and subject line Re: [Pkg-nagios-devel] Bug#921723: Bug#921723: icingaweb2:
upgrading package break the database connection
has caused the Debian Bug report #921723,
regarding icingaweb2: upgrading package break the database connection
to be marked as done.
This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.
(NB: If you are a system administrator and have no idea what this
message is talking about, this may indicate a serious mail system
misconfiguration somewhere. Please contact [email protected]
immediately.)
--
921723: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=921723
Debian Bug Tracking System
Contact [email protected] with problems
--- Begin Message ---
Package: icingaweb2
Version: 2.6.2-2
Severity: important
Dear Maintainer,
after upgrade the login page show this error:
Fatal error: Uncaught error: Undefined class constant
'MYSQL_ATTR_INIT_COMMAND' in /usr/share/php/Icinga/Data/Db/DbConnection.php:196
stack trace: bla bla bla ...
the package php7.2-mysql is marked as unused and removed automatically from the
system.
I suppose is needed
thanks for support
-- System Information:
Debian Release: buster/sid
APT prefers testing
APT policy: (500, 'testing')
Architecture: amd64 (x86_64)
Kernel: Linux 4.18.0-2-amd64 (SMP w/1 CPU core)
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8),
LANGUAGE=en_US:en (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Init: systemd (via /run/systemd/system)
LSM: AppArmor: enabled
Versions of packages icingaweb2 depends on:
ii fonts-dejavu-core 2.37-1
ii fonts-dejavu-extra 2.37-1
ii icingaweb2-common 2.6.2-2
ii php-xml 2:7.3+69
ii php7.2-xml [php-xml] 7.2.9-1
ii php7.3-xml [php-xml] 7.3.1-3
Versions of packages icingaweb2 recommends:
ii apache2 [httpd] 2.4.38-2
ii icingacli 2.6.2-2
ii icingaweb2-module-doc 2.6.2-2
ii icingaweb2-module-monitoring 2.6.2-2
ii php 2:7.3+69
ii php-curl 2:7.3+69
ii php-gd 2:7.3+69
ii php-imagick 3.4.3-4
ii php-intl 2:7.3+69
ii php-ldap 2:7.3+69
ii php7.2 [php] 7.2.9-1
ii php7.2-cli [php-cli] 7.2.9-1
ii php7.2-gd [php-gd] 7.2.9-1
ii php7.2-json [php-json] 7.2.9-1
ii php7.3 [php] 7.3.1-3
ii php7.3-cli [php-cli] 7.3.1-3
ii php7.3-curl [php-curl] 7.3.1-3
ii php7.3-gd [php-gd] 7.3.1-3
ii php7.3-intl [php-intl] 7.3.1-3
ii php7.3-json [php-json] 7.3.1-3
ii php7.3-ldap [php-ldap] 7.3.1-3
icingaweb2 suggests no packages.
-- no debconf information
--- End Message ---
--- Begin Message ---
notfound 921723 icingaweb2/2.6.2-2
thanks
Hi Max,
On 2/8/19 4:09 PM, Sebastiaan Couwenberg wrote:
> On 2/8/19 1:25 PM, Max wrote:
>> after upgrade the login page show this error:
>>
>> Fatal error: Uncaught error: Undefined class constant
>> 'MYSQL_ATTR_INIT_COMMAND' in
>> /usr/share/php/Icinga/Data/Db/DbConnection.php:196
>> stack trace: bla bla bla ...
>>
>> the package php7.2-mysql is marked as unused and removed automatically from
>> the system.
>> I suppose is needed
>
> No, php7.3 is now the default, make sure that you're using that instead
> instead of 7.2.
This seems to be the issue, make sure that you have enabled the
pdo_mysql module for php7.3.
After reconfiguring my icinga2 test setup to use MySQL instead of
PostgreSQL, and enabling the pdo_mysql module for php7.3 it works just fine.
Kind Regards,
Bas
--
GPG Key ID: 4096R/6750F10AE88D4AF1
Fingerprint: 8182 DE41 7056 408D 6146 50D1 6750 F10A E88D 4AF1
--- End Message ---