[Pkg-nagios-devel] Bug#728245: icinga-cgi: fails to install: subprocess installed post-installation script returned error exit status 1

Arno Töll arno at toell.net
Mon Feb 17 10:17:08 UTC 2014


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 at 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 at build:/build/apache#
(work-amd64)root at build:/build/apache# a2query -m cgi
No module matches cgi
(work-amd64)root at build:/build/apache# a2query -m cgid
cgid (enabled by site administrator)
(work-amd64)root at build:/build/apache# a2dismod cgid
Module cgid disabled.
To activate the new configuration, you need to run:
  service apache2 restart
(work-amd64)root at 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

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 897 bytes
Desc: OpenPGP digital signature
URL: <http://lists.alioth.debian.org/pipermail/pkg-nagios-devel/attachments/20140217/8722b6a4/attachment.sig>


More information about the Pkg-nagios-devel mailing list