Closed ChristianMoritz closed 4 years ago
Note: Installed rc1+IDO, upgraded to 2.12. Works for me.
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
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...
i found the sollutution.. (more or less) ive upgraded the ubuntu from 18 to 20 and after this the icinga2 update works fine...
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 --version
):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
Enabled features (
icinga2 feature list
): root@smon:/# icinga2 feature list Disabled features: compatlog debuglog elasticsearch gelf grafana livestatus opentsdb statusdata syslog Enabled features: api checker command graphite icingadb ido-mysql influxdb mainlog notification perfdata root@smon:/#Icinga Web 2 version and modules (System - About):
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
icinga2 daemon -C
): root@smon:/# icinga2 daemon -C [2020-10-05 16:43:29 +0200] information/cli: Icinga application loader (version: r2.12.0-rc1-1) [2020-10-05 16:43:29 +0200] information/cli: Loading configuration file(s). [2020-10-05 16:43:29 +0200] information/ConfigItem: Committing config item(s). [2020-10-05 16:43:29 +0200] information/ApiListener: My API identity: smon [2020-10-05 16:43:32 +0200] information/ConfigItem: Instantiated 1 GraphiteWriter. [2020-10-05 16:43:32 +0200] information/ConfigItem: Instantiated 1 NotificationComponent. [2020-10-05 16:43:32 +0200] information/ConfigItem: Instantiated 8 NotificationCommands. [2020-10-05 16:43:32 +0200] information/ConfigItem: Instantiated 1 FileLogger. [2020-10-05 16:43:32 +0200] information/ConfigItem: Instantiated 1 CheckerComponent. [2020-10-05 16:43:32 +0200] information/ConfigItem: Instantiated 6851 Notifications. [2020-10-05 16:43:32 +0200] information/ConfigItem: Instantiated 1 PerfdataWriter. [2020-10-05 16:43:32 +0200] information/ConfigItem: Instantiated 1 IcingaApplication. [2020-10-05 16:43:32 +0200] information/ConfigItem: Instantiated 16 HostGroups. [2020-10-05 16:43:32 +0200] information/ConfigItem: Instantiated 566 Hosts. [2020-10-05 16:43:32 +0200] information/ConfigItem: Instantiated 1 IcingaDB. [2020-10-05 16:43:32 +0200] information/ConfigItem: Instantiated 37 Downtimes. [2020-10-05 16:43:32 +0200] information/ConfigItem: Instantiated 1 ApiListener. [2020-10-05 16:43:32 +0200] information/ConfigItem: Instantiated 10 Comments. [2020-10-05 16:43:32 +0200] information/ConfigItem: Instantiated 190 Zones. [2020-10-05 16:43:32 +0200] information/ConfigItem: Instantiated 1 ExternalCommandListener. [2020-10-05 16:43:32 +0200] information/ConfigItem: Instantiated 188 Endpoints. [2020-10-05 16:43:32 +0200] information/ConfigItem: Instantiated 1 IdoMysqlConnection. [2020-10-05 16:43:32 +0200] information/ConfigItem: Instantiated 2 ApiUsers. [2020-10-05 16:43:32 +0200] information/ConfigItem: Instantiated 2 Users. [2020-10-05 16:43:32 +0200] information/ConfigItem: Instantiated 273 CheckCommands. [2020-10-05 16:43:32 +0200] information/ConfigItem: Instantiated 1 InfluxdbWriter. [2020-10-05 16:43:32 +0200] information/ConfigItem: Instantiated 4 UserGroups. [2020-10-05 16:43:32 +0200] information/ConfigItem: Instantiated 5 ServiceGroups. [2020-10-05 16:43:32 +0200] information/ConfigItem: Instantiated 5 TimePeriods. [2020-10-05 16:43:32 +0200] information/ConfigItem: Instantiated 3445 Services. [2020-10-05 16:43:32 +0200] information/ConfigItem: Instantiated 1 ScheduledDowntime. [2020-10-05 16:43:32 +0200] information/ScriptGlobal: Dumping variables to file '/var/cache/icinga2/icinga2.vars' [2020-10-05 16:43:32 +0200] information/cli: Finished validating the configuration file(s). root@smon:/#Additional context