Closed mzac closed 5 years ago
I had a similar problem on Debian 9. Since the installation I changed form a local database to a clustered one. I changed /etc/dbconfig-common/icinga2-ido-mysql.conf to the new values via dpkg-reconfigure but dbc_dbadmin= is useless without matching password for the remote dbc_dbserver.
In the end I skipped the schema upgrade in dpkg-reconfigure and did it by hand.
Possible points to improve the package:
Given all the problems we had in the past years with dbconfig-common
, I'd opt for retiring this for future database integrations and letting admins handle the database stuff on their own. It already is very well documented everywhere.
For the IDO packages, we'll have to stick with dbconfig-common. Future iterations with IcingaDB will use a different method to do updates, or even move this into the admin's responsibility again.
Describe the bug
Did an upgrade from 2.10.5-1.bionic -> 2.11.0 and I got an error that it could not upgrade the 'icinga2' database, however my database is called 'icinga'. Why was it trying to find 'icinga2' ?
To Reproduce
Provide a link to a live example, or an unambiguous set of steps to reproduce this bug. Include configuration, logs, etc. to reproduce, if relevant.
Expected behavior
It should determine the correct database stored in /etc/icinga2/features-enabled/ido-mysql.conf
Your Environment
Include as many relevant details about the environment you experienced the problem in
icinga2 --version
): 2.10.5-1.bionic -> 2.11.0icinga2 feature list
): Ubuntu 18.04.3 LTSicinga2 daemon -C
): No errorsAdditional context
I had a similar issue back on the 2.11 beta Icinga/icinga2#7393 could this be related?
Note that this upgrade I just did was not on the same system that I referenced in Icinga/icinga2#7393.
I was able to upgrade the database manually with the commands in the docs.
https://icinga.com/docs/icinga2/latest/doc/16-upgrading-icinga-2/#upgrading-mysql-db