Issues while upgrading from 2.9.5-1 to 2.11.1-1

Hi,

I’m having issues while upgrading Icinga2 packages from 2.9.5 to 2.11.1 version

OS → Debian Buster
Runnning versions:
icingaweb2 → 2.9.5-1.buster
icingaweb2-module-doc → 2.9.5-1.buster
icingaweb2-module-monitoring → 2.9.5-1.buster

Icinga Web 2 version → r2.13.2-1
OpenSSL version → OpenSSL 1.1.1n 15 Mar 2022
PHP version → PHP 7.3.31-1~deb10u1

Upgrade command

USER@SERVER:~# apt install icinga-php-thirdparty icingacli icingaweb2 icingaweb2-common icingaweb2-module-doc icingaweb2-module-monitoring php-icinga
Reading package lists... Done
Building dependency tree       
Reading state information... Done
The following additional packages will be installed:
  icinga-php-library
The following packages will be upgraded:
  icinga-php-library icinga-php-thirdparty icingacli icingaweb2 icingaweb2-common icingaweb2-module-doc icingaweb2-module-monitoring php-icinga
8 upgraded, 0 newly installed, 0 to remove and 6 not upgraded.
Need to get 10.7 MB of archives.
After this operation, 4785 kB of additional disk space will be used.
Do you want to continue? [Y/n] Y
Get:1 https://packages.icinga.com/debian icinga-buster/main amd64 icinga-php-thirdparty amd64 0.11.0-1.buster [526 kB]
Get:2 https://packages.icinga.com/debian icinga-buster/main amd64 icinga-php-library amd64 0.10.0-1+debian10 [1324 kB]
Get:3 https://packages.icinga.com/debian icinga-buster/main amd64 icingaweb2-module-monitoring all 2.11.1-1.buster [576 kB]
Get:4 https://packages.icinga.com/debian icinga-buster/main amd64 icingaweb2-module-doc all 2.11.1-1.buster [53.8 kB]
Get:5 https://packages.icinga.com/debian icinga-buster/main amd64 icingacli all 2.11.1-1.buster [40.4 kB]
Get:6 https://packages.icinga.com/debian icinga-buster/main amd64 icingaweb2-common all 2.11.1-1.buster [263 kB]
Get:7 https://packages.icinga.com/debian icinga-buster/main amd64 icingaweb2 all 2.11.1-1.buster [7125 kB]
Get:8 https://packages.icinga.com/debian icinga-buster/main amd64 php-icinga all 2.11.1-1.buster [786 kB]
Fetched 10.7 MB in 0s (50.9 MB/s)
Reading changelogs... Done
(Reading database ... 67858 files and directories currently installed.)
Preparing to unpack .../0-icinga-php-thirdparty_0.11.0-1.buster_amd64.deb ...
Unpacking icinga-php-thirdparty (0.11.0-1.buster) over (0.10.0-2.buster) ...
Preparing to unpack .../1-icinga-php-library_0.10.0-1+debian10_amd64.deb ...
Unpacking icinga-php-library (0.10.0-1+debian10) over (0.8.1-1.buster) ...
Preparing to unpack .../2-icingaweb2-module-monitoring_2.11.1-1.buster_all.deb ...
Unpacking icingaweb2-module-monitoring (2.11.1-1.buster) over (2.9.5-1.buster) ...
Preparing to unpack .../3-icingaweb2-module-doc_2.11.1-1.buster_all.deb ...
Unpacking icingaweb2-module-doc (2.11.1-1.buster) over (2.9.5-1.buster) ...
Preparing to unpack .../4-icingacli_2.11.1-1.buster_all.deb ...
Unpacking icingacli (2.11.1-1.buster) over (2.9.5-1.buster) ...
Preparing to unpack .../5-icingaweb2-common_2.11.1-1.buster_all.deb ...
Unpacking icingaweb2-common (2.11.1-1.buster) over (2.9.5-1.buster) ...
Preparing to unpack .../6-icingaweb2_2.11.1-1.buster_all.deb ...
Unpacking icingaweb2 (2.11.1-1.buster) over (2.9.5-1.buster) ...
disabling Apache2 configuration ...
apache2_invoke icingaweb2 postrm: No action required
Preparing to unpack .../7-php-icinga_2.11.1-1.buster_all.deb ...
Unpacking php-icinga (2.11.1-1.buster) over (2.9.5-1.buster) ...
Setting up icinga-php-thirdparty (0.11.0-1.buster) ...
Setting up php-icinga (2.11.1-1.buster) ...
Setting up icinga-php-library (0.10.0-1+debian10) ...
Setting up icingaweb2-common (2.11.1-1.buster) ...
Setting up icingaweb2 (2.11.1-1.buster) ...
apache2_invoke rewrite: already enabled
dpkg: error processing package icingaweb2 (--configure):
 installed icingaweb2 package post-installation script subprocess returned error exit status 1
Setting up icingacli (2.11.1-1.buster) ...
dpkg: dependency problems prevent configuration of icingaweb2-module-doc:
 icingaweb2-module-doc depends on icingaweb2 (= 2.11.1-1.buster); however:
  Package icingaweb2 is not configured yet.

dpkg: error processing package icingaweb2-module-doc (--configure):
 dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of icingaweb2-module-monitoring:
 icingaweb2-module-monitoring depends on icingaweb2 (= 2.11.1-1.buster); however:
  Package icingaweb2 is not configured yet.

dpkg: error processing package icingaweb2-module-monitoring (--configure):
 dependency problems - leaving unconfigured
Errors were encountered while processing:
 icingaweb2
 icingaweb2-module-doc
 icingaweb2-module-monitoring
E: Sub-process /usr/bin/dpkg returned an error code (1)

Any hints?

Thanks in advance!

Best,
Salva

apache2_invoke rewrite: already enabled

That’s the problem I guess. Try disabling the rewrite apache module and then try the installation again.

If it succeeds, please open an issue about this. This needs probably a fix in the package.

Didn’t work,

now the output is

Reading changelogs... Done
(Reading database ... 67870 files and directories currently installed.)
Preparing to unpack .../0-icingaweb2-module-monitoring_2.11.1-1.buster_all.deb ...
Unpacking icingaweb2-module-monitoring (2.11.1-1.buster) over (2.9.5-1.buster) ...
Preparing to unpack .../1-icingaweb2-module-doc_2.11.1-1.buster_all.deb ...
Unpacking icingaweb2-module-doc (2.11.1-1.buster) over (2.9.5-1.buster) ...
Preparing to unpack .../2-icingacli_2.11.1-1.buster_all.deb ...
Unpacking icingacli (2.11.1-1.buster) over (2.9.5-1.buster) ...
Preparing to unpack .../3-icingaweb2-common_2.11.1-1.buster_all.deb ...
Unpacking icingaweb2-common (2.11.1-1.buster) over (2.9.5-1.buster) ...
Preparing to unpack .../4-icingaweb2_2.11.1-1.buster_all.deb ...
Unpacking icingaweb2 (2.11.1-1.buster) over (2.9.5-1.buster) ...
disabling Apache2 configuration ...
apache2_invoke icingaweb2 postrm: No action required
Preparing to unpack .../5-php-icinga_2.11.1-1.buster_all.deb ...
Unpacking php-icinga (2.11.1-1.buster) over (2.9.5-1.buster) ...
Preparing to unpack .../6-icinga-php-thirdparty_0.11.0-1.buster_amd64.deb ...
Unpacking icinga-php-thirdparty (0.11.0-1.buster) over (0.10.0-2.buster) ...
Setting up icinga-php-thirdparty (0.11.0-1.buster) ...
Setting up php-icinga (2.11.1-1.buster) ...
Setting up icingaweb2-common (2.11.1-1.buster) ...
Setting up icingaweb2 (2.11.1-1.buster) ...
apache2_invoke rewrite: no action - module was disabled by local admin
dpkg: error processing package icingaweb2 (--configure):
 installed icingaweb2 package post-installation script subprocess returned error exit status 1
Setting up icingacli (2.11.1-1.buster) ...
dpkg: dependency problems prevent configuration of icingaweb2-module-doc:
 icingaweb2-module-doc depends on icingaweb2 (= 2.11.1-1.buster); however:
  Package icingaweb2 is not configured yet.

dpkg: error processing package icingaweb2-module-doc (--configure):
 dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of icingaweb2-module-monitoring:
 icingaweb2-module-monitoring depends on icingaweb2 (= 2.11.1-1.buster); however:
  Package icingaweb2 is not configured yet.

dpkg: error processing package icingaweb2-module-monitoring (--configure):
 dependency problems - leaving unconfigured