Skip to content

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

Description

@R-Sommer

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

  • Icinga DB Web version (System - About): 2.11.4
  • Web browser: Google Chrome Version 110.0.5481.178 (Official Build) (64-bit)
  • Icinga 2 version (icinga2 --version): r2.13.7-1
  • Icinga DB version (icingadb --version): v1.1.0
  • PHP version used (php --version): 7.4.33
  • Server operating system and version: Debian 11

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions