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

Bug#339323: marked as done (apache2-common: /etc/init.d/apache2 throws away error information [patch])



Your message dated Mon, 16 Jan 2006 04:32:05 -0800
with message-id <E1EyTWn-0003Im-4o@spohr.debian.org>
and subject line Bug#339323: fixed in apache2 2.0.55-4
has caused the attached Bug report to be marked as done.

This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.

(NB: If you are a system administrator and have no idea what I am
talking about this indicates a serious mail system misconfiguration
somewhere.  Please contact me immediately.)

Debian bug tracking system administrator
(administrator, Debian Bugs database)

--------------------------------------
Received: (at submit) by bugs.debian.org; 15 Nov 2005 14:14:37 +0000
>From adrian@smop.co.uk Tue Nov 15 06:14:37 2005
Return-path: <adrian@smop.co.uk>
Received: from [81.5.177.201] (helo=hades.smop.co.uk)
	by spohr.debian.org with esmtp (Exim 4.50)
	id 1Ec1a0-0008Aj-QF
	for submit@bugs.debian.org; Tue, 15 Nov 2005 06:14:37 -0800
Received: from wyvern.smop.co.uk ([192.168.8.2])
	by hades.smop.co.uk with esmtp (Exim 4.52)
	id 1Ec1a1-0004Mb-Tj
	for submit@bugs.debian.org; Tue, 15 Nov 2005 14:14:37 +0000
Received: from adrian by wyvern.smop.co.uk with local (Exim 3.36 #1 (Debian))
	id 1Ec1ZL-0006dk-00
	for <submit@bugs.debian.org>; Tue, 15 Nov 2005 14:13:55 +0000
Date: Tue, 15 Nov 2005 14:13:55 +0000
To: submit@bugs.debian.org
Subject: apache2-common: /etc/init.d/apache2 throws away error information [patch]
Message-ID: <20051115141354.GA25510@wyvern.smop.co.uk>
Reply-To: adrian@smop.co.uk
MIME-Version: 1.0
Content-Type: multipart/mixed; boundary="6c2NcOVqGQ03X4Wi"
Content-Disposition: inline
User-Agent: Mutt/1.5.11
From: Adrian Bridgett <adrian@smop.co.uk>
X-smop.co.uk-MailScanner: Found to be clean
X-smop.co.uk-MailScanner-SpamCheck: not spam, SpamAssassin (score=-2.599,
	required 5, autolearn=not spam, BAYES_00 -2.60)
X-smop.co.uk-MailScanner-From: adrian@smop.co.uk
Delivered-To: submit@bugs.debian.org
X-Spam-Checker-Version: SpamAssassin 2.60-bugs.debian.org_2005_01_02 
	(1.212-2003-09-23-exp) on spohr.debian.org
X-Spam-Level: 
X-Spam-Status: No, hits=-8.0 required=4.0 tests=BAYES_00,HAS_PACKAGE 
	autolearn=no version=2.60-bugs.debian.org_2005_01_02


--6c2NcOVqGQ03X4Wi
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline

Package: apache2-common
Version: 2.0.55-3

/etc/init.d/apache2 runs "apachectl -t" to catch any errors (good!),
however it then assumes it's confused and checks pids etc.

This patch makes it print the output of apachectl -t (which in my case
told me I had the path wrong of an SSL certificate).

It also skips the pids warning unless it finds a culprit.

Thanks,

Adrian
-- 
Email: adrian@smop.co.uk  -*-  GPG key available on public key servers
Debian GNU/Linux - the maintainable distribution   -*-  www.debian.org
Avoid working with children, animals and Microsoft "operating" systems

--6c2NcOVqGQ03X4Wi
Content-Type: text/plain; charset=us-ascii
Content-Disposition: attachment; filename="apache2.diff"

--- apache2.orig	2005-10-23 05:41:08.000000000 +0100
+++ apache2	2005-11-15 14:07:49.000000000 +0000
@@ -43,7 +43,8 @@
 		fi
 	done
 	
-	if `$APACHE2 -t > /dev/null 2>&1`; then
+	errors=`$APACHE2 -t 2>&1`
+	if [ $? = 0 ]; then
 		# if the config is ok than we just stop normaly
 
 		if [ -n "$PID" ]
@@ -75,6 +76,9 @@
 		fi
 
 	else
+		echo
+	        echo  $errors
+
 		# if we are here something is broken and we need to try
 		# to exit as nice and clean as possible
 
@@ -104,7 +108,7 @@
 			#	kill $i
 			#done
 			# Except, we can't do that, because it's very, very bad
-			if [ "$VERBOSE" != "no" ]; then
+			if [ "$PIDS" ] && [ "$VERBOSE" != "no" ]; then
                                 echo " ... failed!"
 			        echo "You may still have some apache2 processes running.  There are"
  			        echo "processes named 'apache2' which do not match your pid file,"

--6c2NcOVqGQ03X4Wi--

---------------------------------------
Received: (at 339323-close) by bugs.debian.org; 16 Jan 2006 12:40:34 +0000
>From katie@ftp-master.debian.org Mon Jan 16 04:40:34 2006
Return-path: <katie@ftp-master.debian.org>
Received: from katie by spohr.debian.org with local (Exim 4.50)
	id 1EyTWn-0003Im-4o; Mon, 16 Jan 2006 04:32:05 -0800
From: Adam Conrad <adconrad@0c3.net>
To: 339323-close@bugs.debian.org
X-Katie: $Revision: 1.65 $
Subject: Bug#339323: fixed in apache2 2.0.55-4
Message-Id: <E1EyTWn-0003Im-4o@spohr.debian.org>
Sender: Archive Administrator <katie@ftp-master.debian.org>
Date: Mon, 16 Jan 2006 04:32:05 -0800
X-Spam-Checker-Version: SpamAssassin 2.60-bugs.debian.org_2005_01_02 
	(1.212-2003-09-23-exp) on spohr.debian.org
X-Spam-Level: 
X-Spam-Status: No, hits=-6.0 required=4.0 tests=BAYES_00,HAS_BUG_NUMBER 
	autolearn=no version=2.60-bugs.debian.org_2005_01_02

Source: apache2
Source-Version: 2.0.55-4

We believe that the bug you reported is fixed in the latest version of
apache2, which is due to be installed in the Debian FTP archive:

apache2-common_2.0.55-4_i386.deb
  to pool/main/a/apache2/apache2-common_2.0.55-4_i386.deb
apache2-common_2.0.55-4_powerpc.deb
  to pool/main/a/apache2/apache2-common_2.0.55-4_powerpc.deb
apache2-doc_2.0.55-4_all.deb
  to pool/main/a/apache2/apache2-doc_2.0.55-4_all.deb
apache2-mpm-perchild_2.0.55-4_i386.deb
  to pool/main/a/apache2/apache2-mpm-perchild_2.0.55-4_i386.deb
apache2-mpm-perchild_2.0.55-4_powerpc.deb
  to pool/main/a/apache2/apache2-mpm-perchild_2.0.55-4_powerpc.deb
apache2-mpm-prefork_2.0.55-4_i386.deb
  to pool/main/a/apache2/apache2-mpm-prefork_2.0.55-4_i386.deb
apache2-mpm-prefork_2.0.55-4_powerpc.deb
  to pool/main/a/apache2/apache2-mpm-prefork_2.0.55-4_powerpc.deb
apache2-mpm-worker_2.0.55-4_i386.deb
  to pool/main/a/apache2/apache2-mpm-worker_2.0.55-4_i386.deb
apache2-mpm-worker_2.0.55-4_powerpc.deb
  to pool/main/a/apache2/apache2-mpm-worker_2.0.55-4_powerpc.deb
apache2-prefork-dev_2.0.55-4_i386.deb
  to pool/main/a/apache2/apache2-prefork-dev_2.0.55-4_i386.deb
apache2-prefork-dev_2.0.55-4_powerpc.deb
  to pool/main/a/apache2/apache2-prefork-dev_2.0.55-4_powerpc.deb
apache2-threaded-dev_2.0.55-4_i386.deb
  to pool/main/a/apache2/apache2-threaded-dev_2.0.55-4_i386.deb
apache2-threaded-dev_2.0.55-4_powerpc.deb
  to pool/main/a/apache2/apache2-threaded-dev_2.0.55-4_powerpc.deb
apache2-utils_2.0.55-4_i386.deb
  to pool/main/a/apache2/apache2-utils_2.0.55-4_i386.deb
apache2-utils_2.0.55-4_powerpc.deb
  to pool/main/a/apache2/apache2-utils_2.0.55-4_powerpc.deb
apache2_2.0.55-4.diff.gz
  to pool/main/a/apache2/apache2_2.0.55-4.diff.gz
apache2_2.0.55-4.dsc
  to pool/main/a/apache2/apache2_2.0.55-4.dsc
apache2_2.0.55-4_i386.deb
  to pool/main/a/apache2/apache2_2.0.55-4_i386.deb
apache2_2.0.55-4_powerpc.deb
  to pool/main/a/apache2/apache2_2.0.55-4_powerpc.deb
libapr0-dev_2.0.55-4_i386.deb
  to pool/main/a/apache2/libapr0-dev_2.0.55-4_i386.deb
libapr0-dev_2.0.55-4_powerpc.deb
  to pool/main/a/apache2/libapr0-dev_2.0.55-4_powerpc.deb
libapr0_2.0.55-4_i386.deb
  to pool/main/a/apache2/libapr0_2.0.55-4_i386.deb
libapr0_2.0.55-4_powerpc.deb
  to pool/main/a/apache2/libapr0_2.0.55-4_powerpc.deb



A summary of the changes between this version and the previous one is
attached.

Thank you for reporting the bug, which will now be closed.  If you
have further comments please address them to 339323@bugs.debian.org,
and the maintainer will reopen the bug report if appropriate.

Debian distribution maintenance software
pp.
Adam Conrad <adconrad@0c3.net> (supplier of updated apache2 package)

(This message was generated automatically at their request; if you
believe that there is a problem with it please contact the archive
administrators by mailing ftpmaster@debian.org)


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Format: 1.7
Date: Sat, 26 Nov 2005 19:06:32 +1100
Source: apache2
Binary: apache2-utils apache2 apache2-prefork-dev apache2-mpm-prefork apache2-doc libapr0-dev apache2-mpm-worker libapr0 apache2-threaded-dev apache2-common apache2-mpm-perchild
Architecture: all i386 powerpc source 
Version: 2.0.55-4
Distribution: unstable
Urgency: low
Maintainer: Debian Apache Maintainers <debian-apache@lists.debian.org>
Changed-By: Adam Conrad <adconrad@0c3.net>
Description: 
 apache2    - next generation, scalable, extendable web server
 apache2-common - next generation, scalable, extendable web server
 apache2-doc - documentation for apache2
 apache2-mpm-perchild - experimental high speed perchild threaded model for Apache2
 apache2-mpm-prefork - traditional model for Apache2
 apache2-mpm-worker - high speed threaded model for Apache2
 apache2-prefork-dev - development headers for apache2
 apache2-threaded-dev - development headers for apache2
 apache2-utils - utility programs for webservers
 libapr0    - the Apache Portable Runtime
 libapr0-dev - development headers for libapr
Closes: 307921 330275 339323 340761 345922
Changes: 
 apache2 (2.0.55-4) unstable; urgency=low
 .
   * Add 050_mod_imap_CVE-2005-3352 to escape untrusted referer headers in
     mod_imap before outputting HTML to avoid XSS attacks; see CVE-2005-3352
   * Add 051_mod_ssl_CVE-2005-3357 to avoid a remote denial of service in
     threaded MPMs when making a non-SSL connection to an SSL-enabled port
     on a server with a custom 400 error document defined; see CVE-2005-3357
   * Clean up our use of trailing slashes on directories in debian/rules, so
     the newer, pickier, obviously very improved coreutils doesn't bite us.
   * Remove some cruft from apache2-common's postinst, dealing with upgrade
     scenarios from versions older than those released in Sarge or Warty.
   * Use "SHELL := sh -e" in debian/rules, so the build will stop on shell
     errors, instead of blundering on to later make targets (closes: #340761)
   * Recreate /var/run/apache2 and /var/lock/apache2 in our init script, in
     case the user has /var/run and /var/lock on tmpfs, which is fasionable.
   * Make our init script a /bin/bash script instead of a /bin/sh script, so
     we can abuse it with regex globbing (#348189, #347962, #340955, #342008)
   * Take patch from Adrian Bridgett to output errors from our config test
     in the init script, but only do so when we're VERBOSE (closes: #339323)
   * In the spirit of the LSB, make our init script exit 2 when called with
     incorrect arguments, and exit 4 when asked for status (closes: #330275)
   * Fix the default site to not mix configuration syntax (closes: #345922)
   * Mention apxs2 in the apache2-*-dev long descriptions (closes: #307921)
Files: 
 01501a6dd4111291920c974b0af4e5ae 806372 net optional apache2-common_2.0.55-4_i386.deb
 0656e2babab9ecbdc78d59bffe237710 214972 net optional apache2-mpm-prefork_2.0.55-4_powerpc.deb
 0d6643b5d7e227651c42df1d99964f99 170580 devel optional apache2-prefork-dev_2.0.55-4_powerpc.deb
 22e717e15276919bd68fb5bcb9bf8c41 212462 net optional apache2-mpm-worker_2.0.55-4_i386.deb
 265b56a335e9dc2234b16e577303f082 92672 net optional apache2-utils_2.0.55-4_i386.deb
 273312b083b1cb6fc903792c668b9f0c 103038 net optional apache2-utils_2.0.55-4_powerpc.deb
 2909d8aa6b57ffa0abb1846e309cc0ca 170570 devel optional apache2-prefork-dev_2.0.55-4_i386.deb
 30953595c4b56c44db9309e5093c59b3 280456 libdevel optional libapr0-dev_2.0.55-4_powerpc.deb
 317cd63f07cb37bd40fed7c6486246bc 266942 libdevel optional libapr0-dev_2.0.55-4_i386.deb
 38850ccae940e633852be1ab08efc5b4 171354 devel optional apache2-threaded-dev_2.0.55-4_i386.deb
 3a5aad7409067cca0d167b5b37d2b90a 218804 net optional apache2-mpm-worker_2.0.55-4_powerpc.deb
 3fdac5a0dd810227a6d0c6845a5faf05 219276 net optional apache2-mpm-perchild_2.0.55-4_powerpc.deb
 6e74b5b7438a011a284a35e614336afe 35392 web optional apache2_2.0.55-4_i386.deb
 88e3e55be774600ab46cbd0344f65f2a 137470 net optional libapr0_2.0.55-4_i386.deb
 897e5da766c1ee27c080b3cd43fb69eb 209030 net optional apache2-mpm-prefork_2.0.55-4_i386.deb
 8b190e18e94ceb14a02dbbfa2b90486e 2123842 doc optional apache2-doc_2.0.55-4_all.deb
 a41ec991f06a260b7d19127f06ff7d98 858630 net optional apache2-common_2.0.55-4_powerpc.deb
 a77979e4012d85d6e4058a267c7b6ab8 115301 net optional apache2_2.0.55-4.diff.gz
 c1eef4372d3e58201a55a3fe41d65c01 212866 net optional apache2-mpm-perchild_2.0.55-4_i386.deb
 bbbbaca2321dd3b7bfd5ca33fc3cbc65 1130 net optional apache2_2.0.55-4.dsc
 e52e1e75827892140511c1462177119f 171356 devel optional apache2-threaded-dev_2.0.55-4_powerpc.deb
 f0b0c2e2892763dbbf0c7a44311b88d4 140534 net optional libapr0_2.0.55-4_powerpc.deb
 f535aeec0eda0ec60716a88f6e5e11de 35398 web optional apache2_2.0.55-4_powerpc.deb

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.2 (GNU/Linux)

iD8DBQFDy4mJvjztR8bOoMkRAir9AKDsTkZ5R/zZykDgFiwjQvTlsdz8YwCgmG+B
w1HPgt5YkHBRJVhuJXhD4eg=
=+X+C
-----END PGP SIGNATURE-----



Reply to: