[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: 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


Reply to: