I need help with this error: Unable to detect your Icinga 2 Core version (DeployFormsBug7530.php:71)
How can I fix it?
Here is my icinga2 --version output:
icinga2 - The Icinga 2 network monitoring daemon (version: r2.6.0-1)
Copyright (c) 2012-2016 Icinga Development Team (https://www.icinga.org/)
License GPLv2+: GNU GPL version 2 or later <http://gnu.org/licenses/gpl2.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.
Application information:
Installation root: /usr
Sysconf directory: /etc
Run directory: /run
Local state directory: /var
Package data directory: /usr/share/icinga2
State path: /var/lib/icinga2/icinga2.state
Modified attributes path: /var/lib/icinga2/modified-attributes.conf
Objects path: /var/cache/icinga2/icinga2.debug
Vars path: /var/cache/icinga2/icinga2.vars
PID path: /run/icinga2/icinga2.pid
System information:
Platform: Debian GNU/Linux
Platform version: 9 (stretch)
Kernel: Linux
Kernel version: 4.9.0-12-amd64
Architecture: x86_64
Build information:
Compiler: GNU 6.3.0
Build host: x86-ubc-01
You are using a pretty old version of icinga2 which is completely outdated and unsupported. The only way to fix your issue is to install newer version directly from packages.icinga.com (as debian will not update its repository according to their policy).
I can“t upgrade to new version of Icinga2 because the package with Icinga2 is broken.
root@vps-d03436bb:/etc/apt/sources.list.d# apt upgrade icinga2
Reading package lists... Done
Building dependency tree
Reading state information... Done
Calculating upgrade... Done
Some packages could not be installed. This may mean that you have
requested an impossible situation or if you are using the unstable
distribution that some required packages have not yet been created
or been moved out of Incoming.
The following information may help to resolve the situation:
The following packages have unmet dependencies:
icinga2 : Depends: icinga2-bin (= 2.11.4-1.stretch) but 2.6.0-2+deb9u1 is to be installed
Depends: icinga2-common (= 2.11.4-1.stretch) but 2.6.0-2+deb9u1 is to be installed
E: Broken packages
root@vps-d03436bb:/etc/apt/sources.list.d# apt update
Hit:1 http://packages.icinga.com/debian icinga-stretch InRelease
Ign:2 http://deb.debian.org/debian stretch InRelease
Hit:3 http://deb.debian.org/debian stretch-updates InRelease
Hit:4 http://security.debian.org stretch/updates InRelease
Hit:5 http://deb.debian.org/debian stretch Release
Hit:6 https://deb.debian.org/debian stretch-backports InRelease
Hit:7 https://packages.sury.org/php stretch InRelease
Reading package lists... Done
Building dependency tree
Reading state information... Done
5 packages can be upgraded. Run 'apt list --upgradable' to see them.
W: Target Sources (main/source/Sources) is configured multiple times in /etc/apt/sources.list.d/icinga2.list:2 and /etc/apt/sources.list.d/stretch-icinga.list:2
W: Target Packages (main/binary-amd64/Packages) is configured multiple times in /etc/apt/sources.list.d/icinga2.list:1 and /etc/apt/sources.list.d/stretch-icinga.list:1
W: Target Packages (main/binary-all/Packages) is configured multiple times in /etc/apt/sources.list.d/icinga2.list:1 and /etc/apt/sources.list.d/stretch-icinga.list:1
W: Target Translations (main/i18n/Translation-en_US) is configured multiple times in /etc/apt/sources.list.d/icinga2.list:1 and /etc/apt/sources.list.d/stretch-icinga.list:1
W: Target Translations (main/i18n/Translation-en) is configured multiple times in /etc/apt/sources.list.d/icinga2.list:1 and /etc/apt/sources.list.d/stretch-icinga.list:1
W: Target Sources (main/source/Sources) is configured multiple times in /etc/apt/sources.list.d/icinga2.list:2 and /etc/apt/sources.list.d/stretch-icinga.list:2
W: Target Packages (main/binary-amd64/Packages) is configured multiple times in /etc/apt/sources.list.d/icinga2.list:1 and /etc/apt/sources.list.d/stretch-icinga.list:1
W: Target Packages (main/binary-all/Packages) is configured multiple times in /etc/apt/sources.list.d/icinga2.list:1 and /etc/apt/sources.list.d/stretch-icinga.list:1
W: Target Translations (main/i18n/Translation-en_US) is configured multiple times in /etc/apt/sources.list.d/icinga2.list:1 and /etc/apt/sources.list.d/stretch-icinga.list:1
W: Target Translations (main/i18n/Translation-en) is configured multiple times in /etc/apt/sources.list.d/icinga2.list:1 and /etc/apt/sources.list.d/stretch-icinga.list:1
root@vps-d03436bb:/etc/apt/sources.list.d#
You have duplicate entries in /etc/apt/sources.list.d/icinga2.list and /etc/apt/sources.list.d/stretch-icinga.list. Iād recommend to delete /etc/apt/sources.list.d/stretch-icinga.list
root@vps-d03436bb:~# apt update
Hit:1 http://security.debian.org stretch/updates InRelease
Ign:2 http://deb.debian.org/debian stretch InRelease
Hit:3 http://deb.debian.org/debian stretch-updates InRelease
Hit:4 http://packages.icinga.com/debian icinga-stretch InRelease
Hit:5 http://deb.debian.org/debian stretch Release
Hit:6 https://deb.debian.org/debian stretch-backports InRelease
Hit:7 https://packages.sury.org/php stretch InRelease
Reading package lists... Done
Building dependency tree
Reading state information... Done
5 packages can be upgraded. Run 'apt list --upgradable' to see them.
root@vps-d03436bb:~# apt upgrade
Reading package lists... Done
Building dependency tree
Reading state information... Done
Calculating upgrade... Done
The following packages have been kept back:
icinga2 icinga2-bin icinga2-common icinga2-ido-mysql libicinga2
0 upgraded, 0 newly installed, 0 to remove and 5 not upgraded.
Thanks! I updated it. But now everything running (icinga2 and icinga was online), but web icinga tell me: Monitoring backend āicingaā is not running..
No, thatās fine. Donāt delete it. It looks like your ido is not working. Is it enabled? Please check with icinga2 feature list. If so, please check your /etc/icinga2/features-available/ido-mysql.conf if it is configured correctly e.g. try to login using the credentials configured in that file.
[2020-07-02 11:52:09 +0000] critical/IdoMysqlConnection: Exception during database operation: Verify that your database is operational!
[2020-07-02 11:52:19 +0000] information/WorkQueue: #5 (IdoMysqlConnection, ido-mysql) items: 1, rate: 2.98333/s (179/min 933/5min 1969/15min);
[2020-07-02 11:52:19 +0000] critical/IdoMysqlConnection: Schema version '1.14.2' does not match the required version '1.14.3' (or newer)! Please check the upgrade documentation at https://icinga.com/docs/icinga2/latest/doc/16-upgrading-icinga-2/#upgrading-mysql-db
Context:
(0) Reconnecting to MySQL IDO database 'ido-mysql'