Icinga / icinga-packaging

Packaging documentation and issues for the official Icinga repository
https://packages.icinga.com
44 stars 15 forks source link

Fresh installation of icingadb-web fails on Debian 11 #286

Open R-Sommer opened 1 year ago

R-Sommer commented 1 year ago

Describe the bug

Fresh installation on Debian 11 fails with image

To Reproduce

  1. apt install icingadb-web
  2. icingacli setup token create
  3. open http:///icingaweb2/setup and follow steps until this error appears

Expected behavior

This error should not happen.

Root cause

File permissions are ok:

ls -l -d /etc/icingaweb2/ /var/lib/icingaweb2/
drwxrws--- 4 root icingaweb2 4096 Mar  8 13:10 /etc/icingaweb2/
drwxrws--- 2 root icingaweb2 4096 Jan 26 15:11 /var/lib/icingaweb2/

Apache runs as user www-data, hence, group assignment is ok:

grep www /etc/group
www-data:x:33:
icingaweb2:x:996:www-data

The only thing missing is to restart apache2

Solution

Add systemctl restart apache to postinst or a comment to restart apache2 at the end of the installation

Your Environment