Icinga / icinga2

The core of our monitoring platform with a powerful configuration language and REST API.
https://icinga.com/docs/icinga2/latest
GNU General Public License v2.0
2.03k stars 579 forks source link

Error on Updating Icinga from 2.12.0rc1-1 to 2.12.0-1 / 2.12.1-1 #8311

Closed ChristianMoritz closed 4 years ago

ChristianMoritz commented 4 years ago

Describe the bug

When i upgrade the icinga enviroment to the latest Version it always crashes itself.

root@smon:/# apt list --upgradeable Listing... Done icinga2/icinga-bionic 2.12.0-1.bionic amd64 [upgradable from: 2.12.0~rc1-1.xenial] icinga2-bin/icinga-bionic 2.12.0-1.bionic amd64 [upgradable from: 2.12.0~rc1-1.xenial] icinga2-common/icinga-bionic,icinga-bionic 2.12.0-1.bionic all [upgradable from: 2.12.0~rc1-1.xenial] icinga2-ido-mysql/icinga-bionic 2.12.0-1.bionic amd64 [upgradable from: 2.12.0~rc1-1.xenial] root@smon:/#

To Reproduce

during upgrading these 4 modules the icinga2-common crashes...

root@smon:/# sudo apt-get --only-upgrade install icinga2-ido-mysql Reading package lists... Done Building dependency tree Reading state information... Done The following packages were automatically installed and are no longer required: linux-headers-4.15.0-112 linux-headers-4.15.0-112-generic linux-image-4.15.0-112-generic linux-modules-4.15.0-112-generic linux-modules-extra-4.15.0-112-generic Use 'sudo apt autoremove' to remove them. The following additional packages will be installed: icinga2 icinga2-bin icinga2-common Recommended packages: icinga2-doc The following packages will be upgraded: icinga2 icinga2-bin icinga2-common icinga2-ido-mysql 4 upgraded, 0 newly installed, 0 to remove and 0 not upgraded. Need to get 3,691 kB of archives. After this operation, 1,302 kB of additional disk space will be used. Do you want to continue? [Y/n] y Get:1 https://packages.icinga.com/ubuntu icinga-bionic/main amd64 icinga2 amd64 2.12.0-1.bionic [112 kB] Get:2 https://packages.icinga.com/ubuntu icinga-bionic/main amd64 icinga2-ido-mysql amd64 2.12.0-1.bionic [24.9 kB] Get:3 https://packages.icinga.com/ubuntu icinga-bionic/main amd64 icinga2-bin amd64 2.12.0-1.bionic [3,487 kB] Get:4 https://packages.icinga.com/ubuntu icinga-bionic/main amd64 icinga2-common all 2.12.0-1.bionic [66.4 kB] Fetched 3,691 kB in 0s (10.1 MB/s) Preconfiguring packages ... Determining localhost credentials from /etc/mysql/debian.cnf: succeeded. (Reading database ... 225029 files and directories currently installed.) Preparing to unpack .../icinga2_2.12.0-1.bionic_amd64.deb ... Unpacking icinga2 (2.12.0-1.bionic) over (2.12.0~rc1-1.xenial) ... Preparing to unpack .../icinga2-ido-mysql_2.12.0-1.bionic_amd64.deb ... Determining localhost credentials from /etc/mysql/debian.cnf: succeeded. Unpacking icinga2-ido-mysql (2.12.0-1.bionic) over (2.12.0~rc1-1.xenial) ... Preparing to unpack .../icinga2-bin_2.12.0-1.bionic_amd64.deb ... Unpacking icinga2-bin (2.12.0-1.bionic) over (2.12.0~rc1-1.xenial) ... Preparing to unpack .../icinga2-common_2.12.0-1.bionic_all.deb ... Unpacking icinga2-common (2.12.0-1.bionic) over (2.12.0~rc1-1.xenial) ... Setting up icinga2-common (2.12.0-1.bionic) ... Job for icinga2.service failed because the control process exited with error code. See "systemctl status icinga2.service" and "journalctl -xe" for details. invoke-rc.d: initscript icinga2, action "start" failed. ● icinga2.service - Icinga host/service/network monitoring system Loaded: loaded (/lib/systemd/system/icinga2.service; enabled; vendor preset: enabled) Drop-In: /etc/systemd/system/icinga2.service.d └─limits.conf Active: failed (Result: exit-code) since Mon 2020-10-05 16:33:58 CEST; 9ms ago Process: 30994 ExecStart=/usr/sbin/icinga2 daemon --close-stdio -e ${ICINGA2_ERROR_LOG} (code=exited, status=127) Process: 30989 ExecStartPre=/usr/lib/icinga2/prepare-dirs /etc/default/icinga2 (code=exited, status=0/SUCCESS) Main PID: 30994 (code=exited, status=127)

Oct 05 16:33:58 smon systemd[1]: Starting Icinga host/service/network monitoring system... Oct 05 16:33:58 smon icinga2[30994]: /usr/lib/x86_64-linux-gnu/icinga2/sbin/icinga2: symbol lookup error: /usr/lib/x86_64-linux-gnu/icinga2/sbin/icinga2: undefined symbol: _ZNK5boost16re_detail_10670031cpp_regex_traitsimplementationIcE9transformB5cxx11EPKcS4 Oct 05 16:33:58 smon systemd[1]: icinga2.service: Main process exited, code=exited, status=127/n/a Oct 05 16:33:58 smon systemd[1]: icinga2.service: Failed with result 'exit-code'. Oct 05 16:33:58 smon systemd[1]: Failed to start Icinga host/service/network monitoring system. dpkg: error processing package icinga2-common (--configure): installed icinga2-common package post-installation script subprocess returned error exit status 1 dpkg: dependency problems prevent configuration of icinga2-bin: icinga2-bin depends on icinga2-common (= 2.12.0-1.bionic); however: Package icinga2-common is not configured yet.

dpkg: error processing package icinga2-bin (--configure): dependency problems - leaving unconfigured dpkg: dependency problems prevent configuration of icinga2: icinga2 depends on icinga2-bin (= 2.12.0-1.bionic); however: Package icinga2-bin is not configured yet. icinga2 depends on icinga2-common (= 2.12.0-1.bionic); however: Package icinga2-common is not configured yet.

dpkg: error processing package icinga2 (--configure): dependency problems - leaving unconfigured dpkg: dependency problems prevent configuration of icinga2-ido-mysql: icinga2-ido-mysql depends on icinga2-bin (= 2.12.0-1.bionic); however: Package icinga2-bin is not configured yet. icinga2-ido-mysql depends on icinga2-common (= 2.12.0-1.bionic); however: Package icinga2-common is not configured yet.

dpkg: error processing package icinga2-ido-mysql (--configure): dependency problems - leaving unconfigured Processing triggers for man-db (2.8.3-2ubuntu0.1) ... Processing triggers for ureadahead (0.100.0-21) ... Processing triggers for systemd (237-3ubuntu10.42) ... Errors were encountered while processing: icinga2-common icinga2-bin icinga2 icinga2-ido-mysql E: Sub-process /usr/bin/dpkg returned an error code (1) root@smon:/#

Your Environment

Include as many relevant details about the environment you experienced the problem in

icinga2 - The Icinga 2 network monitoring daemon (version: r2.12.0-rc1-1)

System information: Platform version: 18.04.5 LTS (Bionic Beaver) Kernel version: 4.15.0-117-generic Architecture: x86_64

Build information: Compiler: GNU 5.4.0 OpenSSL version: OpenSSL 1.0.2n 7 Dec 2017

audit | 1.0.1 director | 1.7.2 fileshipper | 1.1.0 graphite | 1.1.0 incubator | 0.5.0 ipl | v0.5.0 monitoring | 2.8.2 reactbundle | 0.7.0 reporting | 0.9.1 vsphere | 1.1.0 vspheredb | 1.1.0 x509 | 1.0.0

Additional context

Al2Klimov commented 4 years ago

Note: Installed rc1+IDO, upgraded to 2.12. Works for me.

ChristianMoritz commented 4 years ago

ive even tried the update to 2.12.1-1...

result was the same.. error on updateing the icinga2-common

ive attached the update log.. errorlog.txt

ChristianMoritz commented 4 years ago

i found a similar old issue like this.. https://github.com/Icinga/icinga2/issues/7580

but the downgrading for the boost libary doesnt resolves my problem.

ive try now an upgrade from ubuntu 18.4 to 20.4 and then recheck the boost & icinga2-common packages...

ChristianMoritz commented 4 years ago

i found the sollutution.. (more or less) ive upgraded the ubuntu from 18 to 20 and after this the icinga2 update works fine...