Debian 12 - icingaweb2 (2.12.0-1+debian12) post installation fails on fresh install

Hello,

I setup a physical server with a fresh installation of Debian 12.1.
If I reach the point to install icingaweb2 the post processing fails.

Installed Icinga packages:

# dpkg -l | grep icinga
ii  icinga-l10n                          1.3.0-1+debian12                        all          Icinga localization
ii  icinga-php-library                   0.13.0-1+debian12                       all          Icinga PHP Library - IPL
ii  icinga-php-thirdparty                0.12.0-1+debian12                       all          Icinga 3rd party PHP libraries
ii  icinga2                              2.14.0-1+debian12                       amd64        host and network monitoring system
ii  icinga2-bin                          2.14.0-1+debian12                       amd64        host and network monitoring system - daemon
ii  icinga2-common                       2.14.0-1+debian12                       all          host and network monitoring system - common files
ii  icinga2-doc                          2.14.0-1+debian12                       all          host and network monitoring system - documentation
ii  icinga2-ido-mysql                    2.14.0-1+debian12                       amd64        host and network monitoring system - MySQL support
ii  icingacli                            2.12.0-1+debian12                       all          Icinga CLI
iF  icingaweb2                           2.12.0-1+debian12                       all          Icinga Web
ii  icingaweb2-common                    2.12.0-1+debian12                       all          Common files for Icinga Web and the Icinga CLI
ii  php-icinga                           2.12.0-1+debian12                       all          Icinga Web PHP library

Output of installation of icingaweb2:

# apt-get install -y icingaweb2
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
icingaweb2 is already the newest version (2.12.0-1+debian12).
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
1 not fully installed or removed.
After this operation, 0 B of additional disk space will be used.
Setting up icingaweb2 (2.12.0-1+debian12) ...
dpkg: error processing package icingaweb2 (--configure):
 installed icingaweb2 package post-installation script subprocess returned error exit status 1
Errors were encountered while processing:
 icingaweb2

Files have been created in /usr/share/icingaweb2/ … but there is no complete content dir /etc/icingaweb2/

# ls -l  /usr/share/icingaweb2 /etc/icingaweb2 /var/log/icingaweb2
/etc/icingaweb2:
total 8
drwxrws--- 2 root icingaweb2 4096 Sep 22 12:32 enabledModules
drwxrws--- 2 root icingaweb2 4096 Sep 22 12:32 modules

/usr/share/icingaweb2:
total 24
drwxr-xr-x 8 root root 4096 Sep 29 14:02 application
drwxr-xr-x 5 root root 4096 Sep 29 14:02 doc
drwxr-xr-x 7 root root 4096 Sep 29 14:02 modules
drwxr-xr-x 6 root root 4096 Sep 29 14:02 public
drwxr-xr-x 4 root root 4096 Sep 29 14:02 schema
-rw-r--r-- 1 root root    8 Sep 21 16:40 VERSION

/var/log/icingaweb2:
total 0

Removing icingaweb2 + obsolete packages and reinstall icingaweb2 did not help - I get the same result.

I know that the generation of config fails. But I don’t know where to find further details for the error of the process of config generation. If somebody has a hint to find out more details.

Thanks!

Kind regards,
Axel

UPDATE:
The config files in /etc/icingaweb/ are correct.

cd /var/cache/apt/archives/ 
dpkg -i --debug=77777  icingaweb2_2.12.0-1+debian12_all.deb 2>&1 | less

There I found the lines that the package icingaweb2-common will be extracted, which contains 2 subdirs.
The failing post action must be somewhere else.
In the debug output I found the reference to the post script: /var/lib/dpkg/info/icingaweb2.postinst - I will continue the investigation there - someting in the modification for apache httpd was not successful.

I removed apache2 package with --purge.

# apt-get --purge remove apache2
# rm -rf /etc/apache2

Afterwards the installation of icingaweb was fine.

Closing this thread.