reopen 408282
reassign 408282 apache2.2-common
retitle 408282 apache2.2-common: missing dep on procps
reassign 398535 apache2.2-common
forcemerge 408282 398535
thanks

On 24/01/07 at 21:36 -0800, Jurij Smakov wrote:
> Hi,
> 
> torrus-apache2 dependencies guarantee that at least one working 
> apache2 server will be configured and started. Current apache2.2-common
> package provides an initialization script /etc/init.d/apache2, which 
> creates an empty http.conf file, if one does not exist:
> 
> [...]
> case $1 in
>         start)
>                 [ -f /etc/apache2/httpd.conf ] || touch 
> /etc/apache2/httpd.conf
>                 [ -d /var/run/apache2 ] || mkdir -p /var/run/apache2
> [...]
> 
> I have tried reproducing the bug, but when installing either 
> torrus-apache2 or apache2-mpm-worker, the apache2 server was properly 
> configured and started using that script, creating an empty 
> /etc/apache2/httpd.conf in the process. The torrus-apache2 
> configuration succeeded after that too. As I don't see any evidence of 
> a problem with torrus-apache2, I'm closing the bug. If you still think 
> something is wrong with it, feel free to reopen with more information 
> on how to reproduce it (in particular, part of the installation log 
> describing the configuration and starting of apache2 server), and I'd 
> be glad to look into it.

Hi,

I investigated it further. See a full installation log below.

The problem belongs to apache2.2-common. In its postinst, it checks if
something is already listening to port 80 using netstat, but doesn't
depend on procps (so netstat is not available). If something else is
already listening on port 80, or if it fails to test (that's the case
here), it sets NO_START=1 in /etc/default/apache2. And if NO_START=1,
the apache2 init script doesn't create /etc/apache2/httpd.conf.

Making apache2.2-common depend on procps would probably solve that
problem (I haven't checked). procps is priority:required, so I have no
objection to those bugs being etch-ignored if the release team decides
it.

I've also merged #398535 with this bug. I'm not sure if creating
/etc/apache2/httpd.conf in the init script is really a nice solution
though....

Thank you,
-------------------------------------------
Setting up net-tools (1.60-17) ...
Setting up ifupdown (0.6.8) ...
ifupdown.postinst: Warning: No 'iface lo' definition found in
/etc/network/interfaces
ifupdown.postinst: Warning: No 'auto lo' statement found in
/etc/network/interfaces

Setting up iputils-ping (20020927-4) ...
Setting up libnewt0.52 (0.52.2-9) ...

Setting up libpopt0 (1.10-3) ...

Setting up libssl0.9.8 (0.9.8c-4) ...

Setting up libwrap0 (7.6.dbs-12) ...

Setting up update-inetd (4.27-0.2) ...

Setting up tcpd (7.6.dbs-12) ...

Setting up openbsd-inetd (0.20050402-4) ...
* Not starting internet superserver: no services enabled.

Setting up netbase (4.28) ...

Setting up whiptail (0.52.2-9) ...
Setting up libmagic1 (4.17-5) ...

Setting up file (4.17-5) ...
Setting up libkrb53 (1.4.4-6) ...

Setting up libpcre3 (6.7-1) ...

Setting up mime-support (3.39-1) ...

Setting up libapr1 (1.2.7-8.2) ...

Setting up libexpat1 (1.95.8-3.3) ...

Setting up libpq4 (8.1.5-2) ...

Setting up libsqlite3-0 (3.3.8-1) ...

Setting up libaprutil1 (1.2.7+dfsg-2) ...

Setting up apache2-utils (2.2.3-3.2) ...
Setting up apache2.2-common (2.2.3-3.2) ...
Setting Apache2 not to start, as something else appears to be using Port
80. To allow apache2 to start, set NO_START to 0 in
/etc/default/apache2. Apache2 has been set to listen on port 80 by
default, so please edit /etc/apache2/ports.conf as desired. Note that
the Port directive no longer works.
Module alias installed; run /etc/init.d/apache2 force-reload to enable.
Module autoindex installed; run /etc/init.d/apache2 force-reload to
enable.
Module dir installed; run /etc/init.d/apache2 force-reload to enable.
Module env installed; run /etc/init.d/apache2 force-reload to enable.
Module mime installed; run /etc/init.d/apache2 force-reload to enable.
Module negotiation installed; run /etc/init.d/apache2 force-reload to
enable.
Module setenvif installed; run /etc/init.d/apache2 force-reload to
enable.
Module status installed; run /etc/init.d/apache2 force-reload to enable.
Module auth_basic installed; run /etc/init.d/apache2 force-reload to
enable.
Module authz_default installed; run /etc/init.d/apache2 force-reload to
enable.
Module authz_user installed; run /etc/init.d/apache2 force-reload to
enable.
Module authz_groupfile installed; run /etc/init.d/apache2 force-reload
to enable.
Module authn_file installed; run /etc/init.d/apache2 force-reload to
enable.
Module authz_host installed; run /etc/init.d/apache2 force-reload to
enable.

Setting up apache2-mpm-worker (2.2.3-3.2) ...

Setting up defoma (0.11.10) ...

Setting up libapache-session-perl (1.81-1) ...
Setting up libapreq2 (2.08-4) ...
Setting up libapache2-mod-apreq2 (2.08-4) ...
Setting up liburi-perl (1.35-2) ...
Setting up libhtml-tagset-perl (3.10-2) ...
Setting up libhtml-parser-perl (3.55-1) ...
Setting up libhtml-tree-perl (3.19.01-2) ...
Setting up libwww-perl (5.805-1) ...
Setting up libdevel-symdump-perl (2.03-3) ...
Setting up libperl5.8 (5.8.8-7) ...

Setting up libapache2-mod-perl2 (2.0.2-2.3) ...
Module perl installed; run /etc/init.d/apache2 force-reload to enable.

Setting up libapache2-request-perl (2.08-4) ...
Setting up libappconfig-perl (1.56-2) ...
Setting up libart-2.0-2 (2.3.17-1) ...

Setting up libberkeleydb-perl (0.31-1) ...
Setting up libfreetype6 (2.2.1-5) ...

Setting up libnet-snmp-perl (5.2.0-1) ...
Setting up libpng12-0 (1.2.15~beta5-1) ...

Setting up libproc-daemon-perl (0.03-2) ...
Setting up ttf-dejavu (2.13-1) ...

Setting up librrd2 (1.2.15-0.3) ...

Setting up libtemplate-perl (2.14-1) ...
Setting up libtimedate-perl (1.1600-5) ...
Setting up libxml-libxml-common-perl (0.13-5) ...
Setting up libxml-namespacesupport-perl (1.09-3) ...
Setting up libxml-sax-perl (0.12-5) ...

Setting up libxml2 (2.6.27.dfsg-1) ...

Setting up libxml-libxml-perl (1.59-2) ...
update-perl-sax-parsers: Adding Perl SAX parser module info file of
XML::LibXML::SAX::Parser...
update-perl-sax-parsers: Adding Perl SAX parser module info file of
XML::LibXML::SAX...
update-perl-sax-parsers: Updating overall Perl SAX parser modules info
file...

Setting up librrds-perl (1.2.15-0.3) ...
Setting up rrdtool (1.2.15-0.3) ...
Setting up torrus-common (1.0.4-1) ...
Not starting Torrus collector daemons as no configured trees found.
Not starting Torrus monitor daemons as no configured trees found.

Setting up torrus-apache2 (1.0.4-1) ...
dpkg: error processing torrus-apache2 (--configure):
 subprocess post-installation script returned error exit status 4
Errors were encountered while processing:
 torrus-apache2
E: Sub-process /usr/bin/dpkg returned an error code (1)
-- 
| Lucas Nussbaum
| [EMAIL PROTECTED]   http://www.lucas-nussbaum.net/ |
| jabber: [EMAIL PROTECTED]             GPG: 1024D/023B3F4F |


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

Reply via email to