Icinga2 not working after apt update & upgrade

Hello together,

I am facing an issue with my Icinga2 after
apt update and apt upgrade

I cant start any Icinga service anymore and when I try to install or update only icinga2 package i get this error.
Any Ideas on this?

Error message
dpkg: error processing package icinga2-bin (–configure):
dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of icinga2-ido-mysql:
icinga2-ido-mysql depends on icinga2-bin (= 2.14.0-1+ubuntu20.04); however:
Package icinga2-bin is not configured yet.
icinga2-ido-mysql depends on icinga2-common (= 2.14.0-1+ubuntu20.04); however:
Package icinga2-common is not configured yet.

dpkg: error processing package icinga2-ido-mysql (–configure):
dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of icinga2:
icinga2 depends on icinga2-bin (= 2.14.0-1+ubuntu20.04); however:
Package icinga2-bin is not configured yet.No apport report written because the error message indicates its a followup error from a previous failure.
No apport report written because the error message indicates its a followup error from a previous failure.

icinga2 depends on icinga2-common (= 2.14.0-1+ubuntu20.04); however:
Package icinga2-common is not configured yet.

dpkg: error processing package icinga2 (–configure):
dependency problems - leaving unconfigured
No apport report written because MaxReports is reached already
Errors were encountered while processing:
icinga2-common
icinga2-bin
icinga2-ido-mysql
icinga2
E: Sub-process /usr/bin/dpkg returned an error code (1)

1 Like

More Informations about the machine:

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

Copyright (c) 2012-2023 Icinga GmbH (https://icinga.com/)
License GPLv2+: GNU GPL version 2 or later https://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.

System information:
Platform: Ubuntu
Platform version: 20.04.6 LTS (Focal Fossa)
Kernel: Linux
Kernel version: 5.15.0-1042-azure
Architecture: x86_64

Build information:
Compiler: GNU 9.4.0
Build host: runner-hh8q3bz2-project-575-concurrent-0
OpenSSL version: OpenSSL 1.1.1f 31 Mar 2020

Application information:

General paths:
Config directory: /etc/icinga2
Data directory: /var/lib/icinga2
Log directory: /var/log/icinga2
Cache directory: /var/cache/icinga2
Spool directory: /var/spool/icinga2
Run directory: /run/icinga2

Old paths (deprecated):
Installation root: /usr
Sysconf directory: /etc
Run directory (base): /run
Local state directory: /var

Internal paths:
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

Same problem. I am still researching. I think the new blogpost is interesting.

1 Like

Would it help to reinstall icinga?
Im really under pressure to make the system run again and I cant find any solution on this.

A new installation did nothing for me. My solution, since it is critical to the company, is to restore your backup. I am currently testing the fix in my Icinga2 test environment.

Sadly I dont have any backup, because I am in Test Environment.
But I think It would help to install and older Version of icinga2 to not face this issue.

apt-get install icinga2=2.13.7-1
1 Like

Worked for me with

apt-get install icinga2-common=2.13.7-1+ubuntu20.04
apt-get install icinga2-bin=2.13.7-1+ubuntu20.04
apt-get install icinga2=2.13.7-1+ubuntu20.04
1 Like

If the issue was a circular dependency in the config then your system is already broken, you just may not know it yet. 2.14 does us a nice favor by detecting that and rejecting the config.