Bug#728245: icinga-cgi: fails to install: subprocess installed post-installation script returned error exit status 1
Hi, + APACHE2_NEED_ACTION=1 + a2enmod -m -q cgi + return 1 dpkg: error processing package icinga-cgi (--configure): this is the actual problem. The maintscript-helper could not enable the CGI module and thus fails out. So far that's correct behavior. Now, the underlying question ist _why_ it fails. I cannot reproduce this in a default installation of Apache 2.4 and a clean chroot either. However, note that a2enmod selects cgid over cgi when a threaded MPM was found. Thus, a2enmod cgi will actually enable cgid when the event/worker MPM is used. Either way this is handled correctly I think: (work-amd64)root@build:/build/apache# a2enmod cgi ; echo $? Your MPM seems to be threaded. Selecting cgid instead of cgi. Enabling module cgid. To activate the new configuration, you need to run: service apache2 restart 0 (work-amd64)root@build:/build/apache# (work-amd64)root@build:/build/apache# a2query -m cgi No module matches cgi (work-amd64)root@build:/build/apache# a2query -m cgid cgid (enabled by site administrator) (work-amd64)root@build:/build/apache# a2dismod cgid Module cgid disabled. To activate the new configuration, you need to run: service apache2 restart (work-amd64)root@build:/build/apache# a2enmod -m -q cgi ; echo $? Your MPM seems to be threaded. Selecting cgid instead of cgi. Enabling module cgid. 0 What's special in your environment Andreas making this fail? -- mit freundlichen Grüßen, Arno Töll GnuPG Key-ID: 0x9D80F36D signature.asc Description: OpenPGP digital signature
Bug#728245: icinga-cgi: fails to install: subprocess installed post-installation script returned error exit status 1
On 2014-02-17 07:28, Alexander Wirt wrote: On Sun, 16 Feb 2014, Andreas Beckmann wrote: On 2014-02-16 14:09, Alexander Wirt wrote: I did several installation with fresh vms and I wasn't able to reproduce the problem. piuparts runs the installation with DEBIAN_FRONTEND=noninteractive and stdin = /dev/null I rebuilt icinga with an additional set -x in icinga-cgi.postrm and got this additional output: Setting up icinga-cgi (1.10.3-1.1) ... + set -e + en=/etc/icinga + enc=/etc/icinga/objects/ + usn=/usr/share/icinga + . /usr/share/debconf/confmodule ++ '[' '!' '' ']' ++ PERL_DL_NONLAZY=1 ++ export PERL_DL_NONLAZY ++ '[' '' ']' ++ exec /usr/share/debconf/frontend /var/lib/dpkg/info/icinga-cgi.postinst configure '' + set -e + en=/etc/icinga + enc=/etc/icinga/objects/ + usn=/usr/share/icinga + . /usr/share/debconf/confmodule ++ '[' '!' 1 ']' ++ '[' -z '' ']' ++ exec ++ '[' '' ']' ++ exec ++ DEBCONF_REDIR=1 ++ export DEBCONF_REDIR + '[' -n '' ']' + apacheconf=/etc/icinga/apache2.conf + htpw=/etc/icinga/htpasswd.users + case $1 in + getent passwd nagios + db_get icinga/adminpassword + _db_cmd 'GET icinga/adminpassword' + _db_internal_IFS=' ' + IFS=' ' + printf '%s\n' 'GET icinga/adminpassword' + IFS=' ' + IFS=' ' + read -r _db_internal_line + RET= + case ${_db_internal_line%%[ ]*} in + return 0 + admpass= + ucf --debconf-ok /usr/share/icinga/apache2.conf /etc/icinga/apache2.conf Creating config file /etc/icinga/apache2.conf with new version ++ dpkg-query -f '${Status}' -W apache2.2-common ++ awk '{print $3}' + COMMON_STATE=not-installed + '[' -e /usr/share/apache2/apache2-maintscript-helper ']' + . /usr/share/apache2/apache2-maintscript-helper ++ '[' -n '' ']' ++ EXPORT_APACHE2_MAINTSCRIPT_HELPER=1 ++ '[' -n '' ']' ++ '[' -e /etc/apache2/envvars ']' ++ '[' -z configure ']' ++ APACHE2_MAINTSCRIPT_NAME=postinst ++ '[' postinst ']' ++ case $APACHE2_MAINTSCRIPT_NAME in ++ APACHE2_MAINTSCRIPT_PACKAGE=icinga-cgi ++ '[' -z icinga-cgi ']' ++ '[' -z '' ']' ++ APACHE2_MAINTSCRIPT_METHOD=configure ++ case $APACHE2_MAINTSCRIPT_METHOD in ++ '[' -z '' ']' ++ APACHE2_MAINTSCRIPT_ARGUMENT= + apache2_invoke enmod cgi + local CMD=enmod + local CONF=cgi + local RCD_ACTION= + local invoke_rcd=0 + local check_switch= + local invoke_string= + '[' -x /usr/sbin/a2enmod ']' + '[' -x /usr/sbin/a2query ']' + case ${RCD_ACTION:-} in + case $CMD in + check_switch=-m + invoke_string=module + rcd_action=restart + case $CMD in + local a2query_ret=0 + a2query -m cgi + a2query_ret=1 + '[' 1 -eq 0 ']' + '[' 1 -eq 32 ']' + APACHE2_NEED_ACTION=1 + a2enmod -m -q cgi + return 1 dpkg: error processing package icinga-cgi (--configure): subprocess installed post-installation script returned error exit status 1 Setting up icinga-core (1.10.3-1.1) ... this is the apache2-maintscript-helper and it is used like recommended from https://wiki.debian.org/Apache/PackagingFor24 so I would say it is a bug in the apache package, do you agree here? Yes. Adding the apache2 maintainers to Cc:. Andreas -- To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org
Bug#728245: icinga-cgi: fails to install: subprocess installed post-installation script returned error exit status 1
On Sun, 10 Nov 2013, Andreas Beckmann wrote: Followup-For: Bug #728245 Control: found -1 1.10.1-1 Hi, the problem is still reproducible. Note that this requires the installation of icinga with --install-recommends to show up, icinga-cgi itself works fine, but in combination with all the Recommends from icinga it blows up. Setting up icinga-cgi (1.10.1-1) ... Creating config file /etc/icinga/apache2.conf with new version dpkg: error processing icinga-cgi (--configure): subprocess installed post-installation script returned error exit status 1 Andreas I did several installation with fresh vms and I wasn't able to reproduce the problem. Alex -- To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org
Bug#728245: icinga-cgi: fails to install: subprocess installed post-installation script returned error exit status 1
On 2014-02-16 14:09, Alexander Wirt wrote: I did several installation with fresh vms and I wasn't able to reproduce the problem. piuparts runs the installation with DEBIAN_FRONTEND=noninteractive and stdin = /dev/null I rebuilt icinga with an additional set -x in icinga-cgi.postrm and got this additional output: Setting up icinga-cgi (1.10.3-1.1) ... + set -e + en=/etc/icinga + enc=/etc/icinga/objects/ + usn=/usr/share/icinga + . /usr/share/debconf/confmodule ++ '[' '!' '' ']' ++ PERL_DL_NONLAZY=1 ++ export PERL_DL_NONLAZY ++ '[' '' ']' ++ exec /usr/share/debconf/frontend /var/lib/dpkg/info/icinga-cgi.postinst configure '' + set -e + en=/etc/icinga + enc=/etc/icinga/objects/ + usn=/usr/share/icinga + . /usr/share/debconf/confmodule ++ '[' '!' 1 ']' ++ '[' -z '' ']' ++ exec ++ '[' '' ']' ++ exec ++ DEBCONF_REDIR=1 ++ export DEBCONF_REDIR + '[' -n '' ']' + apacheconf=/etc/icinga/apache2.conf + htpw=/etc/icinga/htpasswd.users + case $1 in + getent passwd nagios + db_get icinga/adminpassword + _db_cmd 'GET icinga/adminpassword' + _db_internal_IFS=' ' + IFS=' ' + printf '%s\n' 'GET icinga/adminpassword' + IFS=' ' + IFS=' ' + read -r _db_internal_line + RET= + case ${_db_internal_line%%[ ]*} in + return 0 + admpass= + ucf --debconf-ok /usr/share/icinga/apache2.conf /etc/icinga/apache2.conf Creating config file /etc/icinga/apache2.conf with new version ++ dpkg-query -f '${Status}' -W apache2.2-common ++ awk '{print $3}' + COMMON_STATE=not-installed + '[' -e /usr/share/apache2/apache2-maintscript-helper ']' + . /usr/share/apache2/apache2-maintscript-helper ++ '[' -n '' ']' ++ EXPORT_APACHE2_MAINTSCRIPT_HELPER=1 ++ '[' -n '' ']' ++ '[' -e /etc/apache2/envvars ']' ++ '[' -z configure ']' ++ APACHE2_MAINTSCRIPT_NAME=postinst ++ '[' postinst ']' ++ case $APACHE2_MAINTSCRIPT_NAME in ++ APACHE2_MAINTSCRIPT_PACKAGE=icinga-cgi ++ '[' -z icinga-cgi ']' ++ '[' -z '' ']' ++ APACHE2_MAINTSCRIPT_METHOD=configure ++ case $APACHE2_MAINTSCRIPT_METHOD in ++ '[' -z '' ']' ++ APACHE2_MAINTSCRIPT_ARGUMENT= + apache2_invoke enmod cgi + local CMD=enmod + local CONF=cgi + local RCD_ACTION= + local invoke_rcd=0 + local check_switch= + local invoke_string= + '[' -x /usr/sbin/a2enmod ']' + '[' -x /usr/sbin/a2query ']' + case ${RCD_ACTION:-} in + case $CMD in + check_switch=-m + invoke_string=module + rcd_action=restart + case $CMD in + local a2query_ret=0 + a2query -m cgi + a2query_ret=1 + '[' 1 -eq 0 ']' + '[' 1 -eq 32 ']' + APACHE2_NEED_ACTION=1 + a2enmod -m -q cgi + return 1 dpkg: error processing package icinga-cgi (--configure): subprocess installed post-installation script returned error exit status 1 Setting up icinga-core (1.10.3-1.1) ... Andreas -- To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org
Bug#728245: icinga-cgi: fails to install: subprocess installed post-installation script returned error exit status 1
On Sun, 16 Feb 2014, Andreas Beckmann wrote: On 2014-02-16 14:09, Alexander Wirt wrote: I did several installation with fresh vms and I wasn't able to reproduce the problem. piuparts runs the installation with DEBIAN_FRONTEND=noninteractive and stdin = /dev/null I rebuilt icinga with an additional set -x in icinga-cgi.postrm and got this additional output: Setting up icinga-cgi (1.10.3-1.1) ... + set -e + en=/etc/icinga + enc=/etc/icinga/objects/ + usn=/usr/share/icinga + . /usr/share/debconf/confmodule ++ '[' '!' '' ']' ++ PERL_DL_NONLAZY=1 ++ export PERL_DL_NONLAZY ++ '[' '' ']' ++ exec /usr/share/debconf/frontend /var/lib/dpkg/info/icinga-cgi.postinst configure '' + set -e + en=/etc/icinga + enc=/etc/icinga/objects/ + usn=/usr/share/icinga + . /usr/share/debconf/confmodule ++ '[' '!' 1 ']' ++ '[' -z '' ']' ++ exec ++ '[' '' ']' ++ exec ++ DEBCONF_REDIR=1 ++ export DEBCONF_REDIR + '[' -n '' ']' + apacheconf=/etc/icinga/apache2.conf + htpw=/etc/icinga/htpasswd.users + case $1 in + getent passwd nagios + db_get icinga/adminpassword + _db_cmd 'GET icinga/adminpassword' + _db_internal_IFS=' ' + IFS=' ' + printf '%s\n' 'GET icinga/adminpassword' + IFS=' ' + IFS=' ' + read -r _db_internal_line + RET= + case ${_db_internal_line%%[ ]*} in + return 0 + admpass= + ucf --debconf-ok /usr/share/icinga/apache2.conf /etc/icinga/apache2.conf Creating config file /etc/icinga/apache2.conf with new version ++ dpkg-query -f '${Status}' -W apache2.2-common ++ awk '{print $3}' + COMMON_STATE=not-installed + '[' -e /usr/share/apache2/apache2-maintscript-helper ']' + . /usr/share/apache2/apache2-maintscript-helper ++ '[' -n '' ']' ++ EXPORT_APACHE2_MAINTSCRIPT_HELPER=1 ++ '[' -n '' ']' ++ '[' -e /etc/apache2/envvars ']' ++ '[' -z configure ']' ++ APACHE2_MAINTSCRIPT_NAME=postinst ++ '[' postinst ']' ++ case $APACHE2_MAINTSCRIPT_NAME in ++ APACHE2_MAINTSCRIPT_PACKAGE=icinga-cgi ++ '[' -z icinga-cgi ']' ++ '[' -z '' ']' ++ APACHE2_MAINTSCRIPT_METHOD=configure ++ case $APACHE2_MAINTSCRIPT_METHOD in ++ '[' -z '' ']' ++ APACHE2_MAINTSCRIPT_ARGUMENT= + apache2_invoke enmod cgi + local CMD=enmod + local CONF=cgi + local RCD_ACTION= + local invoke_rcd=0 + local check_switch= + local invoke_string= + '[' -x /usr/sbin/a2enmod ']' + '[' -x /usr/sbin/a2query ']' + case ${RCD_ACTION:-} in + case $CMD in + check_switch=-m + invoke_string=module + rcd_action=restart + case $CMD in + local a2query_ret=0 + a2query -m cgi + a2query_ret=1 + '[' 1 -eq 0 ']' + '[' 1 -eq 32 ']' + APACHE2_NEED_ACTION=1 + a2enmod -m -q cgi + return 1 dpkg: error processing package icinga-cgi (--configure): subprocess installed post-installation script returned error exit status 1 Setting up icinga-core (1.10.3-1.1) ... this is the apache2-maintscript-helper and it is used like recommended from https://wiki.debian.org/Apache/PackagingFor24 so I would say it is a bug in the apache package, do you agree here? Alex -- To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org
Bug#728245: icinga-cgi: fails to install: subprocess installed post-installation script returned error exit status 1
Followup-For: Bug #728245 Control: found -1 1.10.1-1 Hi, the problem is still reproducible. Note that this requires the installation of icinga with --install-recommends to show up, icinga-cgi itself works fine, but in combination with all the Recommends from icinga it blows up. Setting up icinga-cgi (1.10.1-1) ... Creating config file /etc/icinga/apache2.conf with new version dpkg: error processing icinga-cgi (--configure): subprocess installed post-installation script returned error exit status 1 Andreas icinga_1.10.1-1.log.gz Description: GNU Zip compressed data
Bug#728245: icinga-cgi: fails to install: subprocess installed post-installation script returned error exit status 1
Package: icinga-cgi Version: 1.10.0-1 Severity: serious User: debian...@lists.debian.org Usertags: piuparts Control: affects -1 + icinga Hi, during a test with piuparts I noticed your package failed to install. As per definition of the release team this makes the package too buggy for a release, thus the severity. This problem was observed during an install test of icinga with installation of Recommends being *enabled*. From the attached log (scroll to the bottom...): Setting up icinga-cgi (1.10.0-1) ... Creating config file /etc/icinga/apache2.conf with new version dpkg: error processing icinga-cgi (--configure): subprocess installed post-installation script returned error exit status 1 cheers, Andreas icinga_1.10.0-1.log.gz Description: GNU Zip compressed data