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

Bug#215150: marked as done (apache: Fails to start after upgrade)



Your message dated Mon, 13 Oct 2003 11:53:04 +0200 (CEST)
with message-id <Pine.LNX.4.58.0310131151280.28226@trider-g7.ext.fabbione.net>
and subject line Bug#215150: apache: Fails to start after upgrade
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; 10 Oct 2003 18:23:32 +0000
>From maulkin@halon.org.uk Fri Oct 10 13:18:26 2003
Return-path: <maulkin@halon.org.uk>
Received: from 82-38-203-77.cable.ubr05.shef.blueyonder.co.uk (vivacia.halon.org.uk) [82.38.203.77] 
	by master.debian.org with esmtp (Exim 3.35 1 (Debian))
	id 1A81qM-0007ei-00; Fri, 10 Oct 2003 13:18:26 -0500
Received: by vivacia.halon.org.uk (Postfix, from userid 1000)
	id 551333E550; Fri, 10 Oct 2003 19:18:25 +0100 (BST)
Content-Type: text/plain; charset="us-ascii"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
From: Neil McGovern <maulkin@halon.org.uk>
To: Debian Bug Tracking System <submit@bugs.debian.org>
Subject: apache: Fails to start after upgrade
X-Mailer: reportbug 2.34
Date: Fri, 10 Oct 2003 19:18:25 +0100
Message-Id: <[🔎] 20031010181825.551333E550@vivacia.halon.org.uk>
Delivered-To: submit@bugs.debian.org
X-Spam-Status: No, hits=-6.5 required=4.0
	tests=BAYES_01,HAS_PACKAGE
	version=2.53-bugs.debian.org_2003_10_09
X-Spam-Level: 
X-Spam-Checker-Version: SpamAssassin 2.53-bugs.debian.org_2003_10_09 (1.174.2.15-2003-03-30-exp)

Package: apache
Version: 1.3.28-2
Severity: grave
Tags: sid
Justification: renders package unusable

The following error occurs during upgrade:
[...]
Configuration syntax error detected. Not reloading.

Syntax error on line 275 of /etc/apache/httpd.conf:
ServerName takes one argument, The hostname of the server
invoke-rc.d: initscript apache, action "start" failed.
dpkg: error processing apache (--configure):
 subprocess post-installation script returned error exit status 1
Errors were encountered while processing:
 apache
E: Sub-process /usr/bin/dpkg returned an error code (1)
[...]

Before attempting the upgrade, /etc/apache/httpd.conf (275) reads:
ServerName vivacia

Afterwards it reads:
ServerName vivacia vivacia

This is also a violation of Debian Policy 10.7.3 :
[...]
Configuration file handling must conform to the following behavior:

    * local changes must be preserved during a package upgrade, and
[...]

Many thanks,
Neil McGovern
-- System Information:
Debian Release: testing/unstable
Architecture: i386
Kernel: Linux vivacia 2.4.20-3-k7 #1 Sun Jul 27 21:10:39 EST 2003 i686
Locale: LANG=en_GB, LC_CTYPE=en_GB

Versions of packages apache depends on:
ii  apache-common                 1.3.28-2   Support files for all Apache webse
ii  debconf                       1.3.14     Debian configuration management sy
ii  dpkg                          1.10.15    Package maintenance system for Deb
ii  libc6                         2.3.2-8    GNU C Library: Shared libraries an
ii  libdb4.1                      4.1.25-9   Berkeley v4.1 Database Libraries [
ii  libexpat1                     1.95.6-6   XML parsing C library - runtime li
ii  libmagic1                     4.04-1     File type determination library us
ii  logrotate                     3.6.5-2    Log rotation utility
ii  mime-support                  3.23-1     MIME files 'mime.types' & 'mailcap
ii  perl [perl5]                  5.8.1-2    Larry Wall's Practical Extraction 

-- debconf information:
  apache/server-name: vivacia vivacia
  apache/document-root: /var/www
* apache/enable-suexec: true
  apache/server-port: 80
  apache/server-admin: webmaster@halon.org.uk
  apache/init: true


---------------------------------------
Received: (at 215150-done) by bugs.debian.org; 13 Oct 2003 09:53:13 +0000
>From fabbione@fabbione.net Mon Oct 13 04:53:10 2003
Return-path: <fabbione@fabbione.net>
Received: from port5.ds1-sby.adsl.cybercity.dk (trider-g7.fabbione.net) [212.242.169.198] 
	by master.debian.org with esmtp (Exim 3.35 1 (Debian))
	id 1A8zNz-0002SW-00; Mon, 13 Oct 2003 04:53:08 -0500
Received: from trider-g7.ext.fabbione.net (port5.ds1-sby.adsl.cybercity.dk [212.242.169.198])
	by trider-g7.fabbione.net (Postfix) with ESMTP id EA27335;
	Mon, 13 Oct 2003 11:53:06 +0200 (CEST)
Date: Mon, 13 Oct 2003 11:53:04 +0200 (CEST)
From: Fabio Massimo Di Nitto <fabbione@fabbione.net>
Sender: fabbione@trider-g7.ext.fabbione.net
To: Steve Langasek <vorlon@netexpress.net>,
	215150-done@bugs.debian.org
Subject: Re: Bug#215150: apache: Fails to start after upgrade
In-Reply-To: <[🔎] 20031011181637.GB22429@quetzlcoatl.dodds.net>
Message-ID: <Pine.LNX.4.58.0310131151280.28226@trider-g7.ext.fabbione.net>
References: <[🔎] 20031011181637.GB22429@quetzlcoatl.dodds.net>
MIME-Version: 1.0
Content-Type: TEXT/PLAIN; charset=US-ASCII
Delivered-To: 215150-done@bugs.debian.org
X-Spam-Status: No, hits=-5.7 required=4.0
	tests=EMAIL_ATTRIBUTION,QUOTED_EMAIL_TEXT
	version=2.53-bugs.debian.org_2003_10_09
X-Spam-Level: 
X-Spam-Checker-Version: SpamAssassin 2.53-bugs.debian.org_2003_10_09 (1.174.2.15-2003-03-30-exp)


This bug is referring to -2 of apache. -3 already fix this problem.

Fabio

PS the port stuff is already known to be broken and we are working on a
fix

On Sat, 11 Oct 2003, Steve Langasek wrote:

> The apache.config script assumes that there will only be *one* matching
> line in the existing httpd.conf for the pattern '^ServerName'.  If there
> is more than one such line, the values of each will be concatenated, and
> the combination will be substituted into the config file everywhere a
> ServerName was previously listed.
>
> This code will ensure that you only grab one server name from the
> config:
>
>     SERNAME=`grep ^ServerName /etc/apache/httpd.conf | head -n 1 | awk '{print $NF}'`
>
> but it would be far better to check whether you get multiple matches,
> and *not* make any changes to the config file at all if so, since this
> debconf handling will wreak serious havoc with any http.conf containing
> multiple virtual hosts.  I would suggest adding a check to the config
> script that checks the values of SERNAME, SERADMIN, DOCROOT, and PORT,
> and if *any* of them return a value > 1 when passed to wc -w, set a
> debconf flag telling the postinst not to make any changes, and don't ask
> the user any questions about httpd.conf.
>
> Also, I noticed this check in do_debconf_configs() from postinst.common:
>
>     if [ ! "`grep -q ^ServerName /etc/$pkg/httpd.conf`" ]; then
>
> Well, 'grep -q' will always output 0 bytes.  I think the check you want
> here is simply
>
>     if ! grep -q ^ServerName /etc/$pkg/httpd.conf; then
>
> Let me know if you would like me to work up a patch for these problems.
>
> Thanks,
>

-- 
Our mission: make IPv6 the default IP protocol
"We are on a mission from God" - Elwood Blues

http://www.itojun.org/paper/itojun-nanog-200210-ipv6isp/mgp00004.html



Reply to: