Bug#734865: libapache2-mpm-itk: fails to install: subprocess installed post-installation script returned error exit status 1
It's currently not possible to reinstall (or, when a new release comes along, upgrade to a newer version) because postinst is doing, as Eric pointed out, (essentially) an a2enmod mpm_itk--and this call fails if mpm_itk is already enabled. The problem belongs to apache2, however: /etc/apache2/mods-available/mpm_prefork.load declares: # Conflicts: mpm_event mpm_worker mpm_itk but mpm_itk.load (as of the latest version) depends on mpm_prefork: # Depends: mpm_prefork a2enmod considers the dependency satisfied the very first time an 'a2enmod mpm_itk' happens, because, at that time, mpm_itk isn't active yet, so the mpm_prefork dependency is satisfied. If mpm_itk is already enabled, `a2enmod mpm_itk' fails because its mpm_prefork dependency now fails because the mpm_prefork dependency can't be enabled: # a2enmod mpm_itk WARNING: MPM_ITK is a third party module that is not part of the official Apache HTTPD. It has seen less testing than the official MPM modules.Considering dependency mpm_prefork for mpm_itk: Considering conflict mpm_event for mpm_prefork: Considering conflict mpm_worker for mpm_prefork: Considering conflict mpm_itk for mpm_prefork: ERROR: Module mpm_itk is enabled - cannot proceed due to conflicts. It needs to be disabled first! ERROR: Could not enable dependency mpm_prefork for mpm_itk, aborting Long story short: apache2 needs to remove the conflict with mpm_itk from mpm_prefork.load. -- Jason Rhinelander -- To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org
Bug#734865: libapache2-mpm-itk: fails to install: subprocess installed post-installation script returned error exit status 1
Control: severity -1 serious On 2014-02-03 20:55, Steinar H. Gunderson wrote: I am completely unable to reproduce this. I purged everything *apache* from my sid machine, installed libapache2-mpm-itk with apt-get, and it installed without a hitch. So, whether this is a bug or not, it's certainly not RC. That being said, it probably _is_ a bug, so I'd be happy if you could supply instructions on how to actually reproduce it. There is some module conflict ... After adding set -x to libapache2-mpm-itk.postinst: # dpkg --configure --pending Setting up libapache2-mpm-itk (2.4.6-01-1) ... + set -e + true + [ -e /usr/share/apache2/apache2-maintscript-helper ] + . /usr/share/apache2/apache2-maintscript-helper + [ -n ] + EXPORT_APACHE2_MAINTSCRIPT_HELPER=1 + [ -n ] + [ -e /etc/apache2/envvars ] + . /etc/apache2/envvars + unset HOME + [ != ] + SUFFIX= + export APACHE_RUN_USER=www-data + export APACHE_RUN_GROUP=www-data + export APACHE_PID_FILE=/var/run/apache2/apache2.pid + export APACHE_RUN_DIR=/var/run/apache2 + export APACHE_LOCK_DIR=/var/lock/apache2 + export APACHE_LOG_DIR=/var/log/apache2 + export LANG=C + export LANG + echo + APACHE2_MAINTSCRIPT_DEBUG= + [ -n ] + [ -z configure ] + APACHE2_MAINTSCRIPT_NAME=postinst + [ postinst ] + APACHE2_MAINTSCRIPT_PACKAGE=libapache2-mpm-itk + [ -z libapache2-mpm-itk ] + [ -z ] + APACHE2_MAINTSCRIPT_METHOD=configure + [ -z ] + APACHE2_MAINTSCRIPT_ARGUMENT= + apache2_invoke enmod mpm_itk + local CMD=enmod + local CONF=mpm_itk + local RCD_ACTION= + local invoke_rcd=0 + local check_switch= + local invoke_string= + [ -x /usr/sbin/a2enmod ] + [ -x /usr/sbin/a2query ] + check_switch=-m + invoke_string=module + rcd_action=restart + local a2query_ret=0 + a2query -m mpm_itk + a2query_ret=1 + [ 1 -eq 0 ] + [ 1 -eq 32 ] + APACHE2_NEED_ACTION=1 + a2enmod -m -q mpm_itk + return 1 + exit 1 dpkg: error processing package libapache2-mpm-itk (--configure): subprocess installed post-installation script returned error exit status 1 dpkg: dependency problems prevent configuration of piuparts-depends-dummy: piuparts-depends-dummy depends on libapache2-mpm-itk; however: Package libapache2-mpm-itk is not configured yet. dpkg: error processing package piuparts-depends-dummy (--configure): dependency problems - leaving unconfigured Errors were encountered while processing: libapache2-mpm-itk OK, let's to the failing command more verbose: # LC_ALL=C a2enmod -m mpm_itk WARNING: MPM_ITK is a third party module that is not part of the official Apache HTTPD. It has seen less testing than the official MPM modules.Considering dependency mpm_prefork for mpm_itk: Considering conflict mpm_event for mpm_prefork: ERROR: Module mpm_event is enabled - cannot proceed due to conflicts. It needs to be disabled first! Considering conflict mpm_worker for mpm_prefork: Considering conflict mpm_itk for mpm_prefork: ERROR: Could not enable dependency mpm_prefork for mpm_itk, aborting # ls -la /etc/apache2/mods-enabled total 0 drwxr-xr-x 2 root root 580 Feb 7 21:17 . drwxr-xr-x 8 root root 240 Feb 7 21:17 .. lrwxrwxrwx 1 root root 36 Feb 7 21:17 access_compat.load - ../mods-available/access_compat.load lrwxrwxrwx 1 root root 28 Feb 7 21:17 alias.conf - ../mods-available/alias.conf lrwxrwxrwx 1 root root 28 Feb 7 21:17 alias.load - ../mods-available/alias.load lrwxrwxrwx 1 root root 33 Feb 7 21:17 auth_basic.load - ../mods-available/auth_basic.load lrwxrwxrwx 1 root root 33 Feb 7 21:17 authn_core.load - ../mods-available/authn_core.load lrwxrwxrwx 1 root root 33 Feb 7 21:17 authn_file.load - ../mods-available/authn_file.load lrwxrwxrwx 1 root root 33 Feb 7 21:17 authz_core.load - ../mods-available/authz_core.load lrwxrwxrwx 1 root root 33 Feb 7 21:17 authz_host.load - ../mods-available/authz_host.load lrwxrwxrwx 1 root root 33 Feb 7 21:17 authz_user.load - ../mods-available/authz_user.load lrwxrwxrwx 1 root root 32 Feb 7 21:17 autoindex.conf - ../mods-available/autoindex.conf lrwxrwxrwx 1 root root 32 Feb 7 21:17 autoindex.load - ../mods-available/autoindex.load lrwxrwxrwx 1 root root 30 Feb 7 21:17 deflate.conf - ../mods-available/deflate.conf lrwxrwxrwx 1 root root 30 Feb 7 21:17 deflate.load - ../mods-available/deflate.load lrwxrwxrwx 1 root root 26 Feb 7 21:17 dir.conf - ../mods-available/dir.conf lrwxrwxrwx 1 root root 26 Feb 7 21:17 dir.load - ../mods-available/dir.load lrwxrwxrwx 1 root root 26 Feb 7 21:17 env.load - ../mods-available/env.load lrwxrwxrwx 1 root root 29 Feb 7 21:17 filter.load - ../mods-available/filter.load lrwxrwxrwx 1 root root 27 Feb 7 21:17 mime.conf - ../mods-available/mime.conf lrwxrwxrwx 1 root root 27 Feb 7 21:17 mime.load - ../mods-available/mime.load lrwxrwxrwx 1 root root 32 Feb 7 21:17 mpm_event.conf - ../mods-available/mpm_event.conf lrwxrwxrwx 1 root root 32 Feb 7 21:17 mpm_event.load - ../mods-available/mpm_event.load lrwxrwxrwx 1 root root 34 Feb 7 21:17 negotiation.conf -
Bug#734865: libapache2-mpm-itk: fails to install: subprocess installed post-installation script returned error exit status 1
reassign 734865 apache2,libapache2-mpm-itk thanks On Fri, Feb 07, 2014 at 10:35:51PM +0100, Andreas Beckmann wrote: There is some module conflict ... Jason Rhinelander debugged this earlier today; it seems like mpm_prefork declares a conflict with mpm_itk. But I guess the issue of mpm_event is a separate one? I don't know how to set the severity for this correctly; it might be RC for mpm-itk (although I'm still not 100% convinced), but it's not RC for apache2. /* Steinar */ -- Homepage: http://www.sesse.net/ -- To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org
Bug#734865: libapache2-mpm-itk: fails to install: subprocess installed post-installation script returned error exit status 1
severity 734865 normal thanks On Fri, Jan 10, 2014 at 02:49:12PM +0100, Andreas Beckmann wrote: 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. Hi, I am completely unable to reproduce this. I purged everything *apache* from my sid machine, installed libapache2-mpm-itk with apt-get, and it installed without a hitch. So, whether this is a bug or not, it's certainly not RC. That being said, it probably _is_ a bug, so I'd be happy if you could supply instructions on how to actually reproduce it. /* Steinar */ -- Homepage: http://www.sesse.net/ -- To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org
Bug#734865: libapache2-mpm-itk: fails to install: subprocess installed post-installation script returned error exit status 1
On 2014-02-03 20:55, Steinar H. Gunderson wrote: I am completely unable to reproduce this. I purged everything *apache* from my sid machine, installed libapache2-mpm-itk with apt-get, and it installed without a hitch. The logfile has the piuparts command line used for the test at the top, you may have to adjust paths etc. My piuparts test machine is currently offline, so I cannot check in detail. I assume it is related to (one or more of) setting DEBIAN_FRONTEND=noninteractive, stdin being redirected from /dev/null and policy-rc.d forbidding to start services, and everything happening in a minimal chroot. Andreas -- To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org
Bug#734865: libapache2-mpm-itk: fails to install: subprocess installed post-installation script returned error exit status 1
I encountered this bug as well. The postinstall script ends up calling: a2enmod -m -q mpm_itk which prints: WARNING: MPM_ITK is a third party module that is not part of the official Apache HTTPD. It has seen less testing than the official MPM modules. ERROR: Module mpm_event is enabled - cannot proceed due to conflicts. It needs to be disabled first! ERROR: Could not enable dependency mpm_prefork for mpm_itk, aborting by disabling mpm_event with # a2dismod mpm_event the installation appears to proceed normally. -eric -- To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org
Bug#734865: libapache2-mpm-itk: fails to install: subprocess installed post-installation script returned error exit status 1
On Thu, Jan 16, 2014 at 08:05:10PM -, Eric Messick wrote: I encountered this bug as well. The postinstall script ends up calling: a2enmod -m -q mpm_itk which prints: WARNING: MPM_ITK is a third party module that is not part of the official Apache HTTPD. It has seen less testing than the official MPM modules. ERROR: Module mpm_event is enabled - cannot proceed due to conflicts. It needs to be disabled first! ERROR: Could not enable dependency mpm_prefork for mpm_itk, aborting by disabling mpm_event with # a2dismod mpm_event the installation appears to proceed normally. I think this is a separate issue; it was discussed when we split out mpm-itk as a separate package, and the general sentiment was that it will work for wheezy - jessie, but not necessarily sid - sid (the latter is not strictly supported). Looping debian-apache into the bug; unfortunately I don't really have a working Debian laptop right now, so this has taken longer than I really want :-/ /* Steinar */ -- Homepage: http://www.sesse.net/ -- To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org
Bug#734865: libapache2-mpm-itk: fails to install: subprocess installed post-installation script returned error exit status 1
Hi Steinar, On 16.01.2014 21:22, Steinar H. Gunderson wrote: I think this is a separate issue; it was discussed when we split out mpm-itk as a separate package, and the general sentiment was that it will work for wheezy - jessie, but not necessarily sid - sid (the latter is not strictly supported). however, we support an upgrade sid-sid - unless there is a (unrelated) bug - in such, that the update won't error out. Sid users will be warned, but the related postinst code is not supposed to fail in that case. Please check if your maintainer scripts work as expected, as the issue seems to be, that you enable the itk module, before disabling the current (default) mpm. See [1] for properly switchting MPMs in maintainer scripts. On a side note, Andreas would it be possible to do piuparts checks related to Apache and its modules with APACHE2_MAINTSCRIPT_DEBUG=true defined in the environment? That would make the logs more useful. [1] http://anonscm.debian.org/gitweb/?p=pkg-apache/apache2.git;a=blob;f=debian/PACKAGING;h=0bbb06c48d628cd7c3b6037a0118574a722f2184;hb=HEAD#l317 -- with kind regards, Arno Töll IRC: daemonkeeper on Freenode/OFTC GnuPG Key-ID: 0x9D80F36D signature.asc Description: OpenPGP digital signature
Bug#734865: libapache2-mpm-itk: fails to install: subprocess installed post-installation script returned error exit status 1
Package: libapache2-mpm-itk Version: 2.4.7-1 Severity: serious User: debian...@lists.debian.org Usertags: piuparts Control: affects -1 + apache2-mpm-itk 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. From the attached log (scroll to the bottom...): Setting up libapache2-mpm-itk (2.4.6-01-1) ... dpkg: error processing package libapache2-mpm-itk (--configure): subprocess installed post-installation script returned error exit status 1 dpkg: dependency problems prevent configuration of piuparts-depends-dummy: piuparts-depends-dummy depends on libapache2-mpm-itk; however: Package libapache2-mpm-itk is not configured yet. dpkg: error processing package piuparts-depends-dummy (--configure): dependency problems - leaving unconfigured Processing triggers for libc-bin (2.17-97) ... Errors were encountered while processing: libapache2-mpm-itk piuparts-depends-dummy cheers, Andreas apache2-mpm-itk_2.4.7-1.log.gz Description: GNU Zip compressed data
Bug#734865: libapache2-mpm-itk: fails to install: subprocess installed post-installation script returned error exit status 1
On Fri, Jan 10, 2014 at 02:49:12PM +0100, Andreas Beckmann wrote: 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. Is this really legit? From the log: invoke-rc.d: policy-rc.d denied execution of start. Setting up libapache2-mpm-itk (2.4.6-01-1) ... dpkg: error processing package libapache2-mpm-itk (--configure): subprocess installed post-installation script returned error exit status 1 If you block starting Apache, is it really RC that the package fails to configure? /* Steinar */ -- Homepage: http://www.sesse.net/ -- To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org
Bug#734865: libapache2-mpm-itk: fails to install: subprocess installed post-installation script returned error exit status 1
On 2014-01-10 15:15, Steinar H. Gunderson wrote: On Fri, Jan 10, 2014 at 02:49:12PM +0100, Andreas Beckmann wrote: 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. Is this really legit? From the log: invoke-rc.d: policy-rc.d denied execution of start. That is just a disgnostic emitted while configuring apache2 or something else, not a failure. Setting up libapache2-mpm-itk (2.4.6-01-1) ... dpkg: error processing package libapache2-mpm-itk (--configure): subprocess installed post-installation script returned error exit status 1 I didn't dig into libapache2-mpm-itk.postinst to see where it fails silently ... If you block starting Apache, is it really RC that the package fails to configure? That would be the very first package requiring a running apache instance for successful installation ... so you really have to convince me that this is actually needed and the package cannot be installed while bootstrapping a chroot or virtualized installation or ... with debootstrap and friends that set up policy-rc.d similarly to piuparts. Andreas -- To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org