Apache2 doesn't start

Bug #7167 reported by Debian Bug Importer
6
Affects Status Importance Assigned to Milestone
apache2 (Debian)
Fix Released
Unknown
apache2 (Ubuntu)
Fix Released
High
Thom May

Bug Description

Automatically imported from Debian bug report #261558 http://bugs.debian.org/261558

Revision history for this message
In , Matt Zimmerman (mdz) wrote : retitle

retitle 261558 Apache2 doesn't start when environment variables contain newlines
thanks

Severity: grave is probably not justified, given that this is rather a
corner case.

Anyway, env's output cannot be reliably parsed, given that the values of
environment variables may contain newlines and other nastiness. The
simplest way to get a clean environment (for a subprocess) would be "env
-i".

--
 - mdz

Revision history for this message
Debian Bug Importer (debzilla) wrote :

Automatically imported from Debian bug report #261558 http://bugs.debian.org/261558

Revision history for this message
Debian Bug Importer (debzilla) wrote :

Message-ID: <email address hidden>
Date: Mon, 26 Jul 2004 20:19:47 +0200
From: "Joerg Hoh" <email address hidden>
To: <email address hidden>
Subject: Apache2 doesn't start

Package: apache2
Version: 2.0.50-5
Severity: grave

Apache2 doesn't start:

atlas:/var/lib/dpkg# /etc/init.d/apache2 start
/etc/init.d/apache2: line 8: unset: `:DO': not a valid identifier

atlas:/etc/apache2/sites-available# uname -a
Linux atlas 2.6.7 #4 Mon Jul 19 01:41:45 CEST 2004 alpha GNU/Linux

Extracting the line from the start-script and running it on a root-console
(within screen) revealed:

atlas:/etc/apache2/sites-available# env| grep -v "\s+:" | cut -d'=' -f1
SHELL
TERM
SSH_CLIENT
OLDPWD
SSH_TTY
USER
TERMCAP
        :DO
        :cd
        :do
        :le
        :li#24:co#117:am:xn:xv:LP:sr
        :cs
        :im
        :ke
        :ti
        :se
        :Co#8:pa#64:AF
        :vb
        :ac
        :po
        :k4
        :k9
        :F4
        :F9
        :*4
        :%c
        :kH
        :ku
PATH
MAIL
STY
PWD
PS1
HOME
SHLVL
LOGNAME
WINDOW
SSH_CONNECTION
_

Joerg

--
Fachbegriffe der Informatik (Nr 168): Computer
- Ein Computer ein hochkomplexes System ist, in dem alles M�che und
Undurchschaubare geschieht, so da�es an ein Wunder grenzt, wenn ab und zu
tats�lich das passiert, was passieren soll.
 Stefan Nobis

Revision history for this message
Debian Bug Importer (debzilla) wrote :

Message-ID: <email address hidden>
Date: Mon, 26 Jul 2004 12:08:26 -0700
From: Matt Zimmerman <email address hidden>
To: <email address hidden>
Subject: retitle

retitle 261558 Apache2 doesn't start when environment variables contain newlines
thanks

Severity: grave is probably not justified, given that this is rather a
corner case.

Anyway, env's output cannot be reliably parsed, given that the values of
environment variables may contain newlines and other nastiness. The
simplest way to get a clean environment (for a subprocess) would be "env
-i".

--
 - mdz

Revision history for this message
In , Thom May (thombot) wrote :

tags 261558 pending

Revision history for this message
Debian Bug Importer (debzilla) wrote :

Message-Id: <email address hidden>
Date: Tue, 27 Jul 2004 10:42:29 +0100 (BST)
From: <email address hidden> (Thom May)
To: undisclosed-recipients: ;

tags 261558 pending

Revision history for this message
In , Thom May (thombot) wrote : Bug#261558: fixed in apache2 2.0.50-6
Download full text (5.3 KiB)

Source: apache2
Source-Version: 2.0.50-6

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.50-6_sparc.deb
  to pool/main/a/apache2/apache2-common_2.0.50-6_sparc.deb
apache2-doc_2.0.50-6_all.deb
  to pool/main/a/apache2/apache2-doc_2.0.50-6_all.deb
apache2-mpm-perchild_2.0.50-6_sparc.deb
  to pool/main/a/apache2/apache2-mpm-perchild_2.0.50-6_sparc.deb
apache2-mpm-prefork_2.0.50-6_sparc.deb
  to pool/main/a/apache2/apache2-mpm-prefork_2.0.50-6_sparc.deb
apache2-mpm-threadpool_2.0.50-6_sparc.deb
  to pool/main/a/apache2/apache2-mpm-threadpool_2.0.50-6_sparc.deb
apache2-mpm-worker_2.0.50-6_sparc.deb
  to pool/main/a/apache2/apache2-mpm-worker_2.0.50-6_sparc.deb
apache2-prefork-dev_2.0.50-6_all.deb
  to pool/main/a/apache2/apache2-prefork-dev_2.0.50-6_all.deb
apache2-threaded-dev_2.0.50-6_all.deb
  to pool/main/a/apache2/apache2-threaded-dev_2.0.50-6_all.deb
apache2_2.0.50-6.diff.gz
  to pool/main/a/apache2/apache2_2.0.50-6.diff.gz
apache2_2.0.50-6.dsc
  to pool/main/a/apache2/apache2_2.0.50-6.dsc
apache2_2.0.50-6_sparc.deb
  to pool/main/a/apache2/apache2_2.0.50-6_sparc.deb
libapr0-dev_2.0.50-6_sparc.deb
  to pool/main/a/apache2/libapr0-dev_2.0.50-6_sparc.deb
libapr0_2.0.50-6_sparc.deb
  to pool/main/a/apache2/libapr0_2.0.50-6_sparc.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 <email address hidden>,
and the maintainer will reopen the bug report if appropriate.

Debian distribution maintenance software
pp.
Thom May <email address hidden> (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 <email address hidden>)

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

Format: 1.7
Date: Tue, 27 Jul 2004 10:31:46 +0100
Source: apache2
Binary: apache2 apache2-prefork-dev apache2-mpm-prefork apache2-doc libapr0-dev apache2-mpm-threadpool apache2-mpm-worker libapr0 apache2-threaded-dev apache2-common apache2-mpm-perchild
Architecture: source all sparc
Version: 2.0.50-6
Distribution: unstable
Urgency: high
Maintainer: Debian Apache Maintainers <email address hidden>
Changed-By: Thom May <email address hidden>
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-threadpool - Experimental High speed thread pool 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
 libapr0 - The Apache Portable Runtime
 libapr0-dev - Development headers for libapr
Closes: 258713 259414 259693 260058 260756 261558
Changes:
 apache2 (2.0.50-6) unstable; urgency=high
 ....

Read more...

Revision history for this message
Debian Bug Importer (debzilla) wrote :
Download full text (5.5 KiB)

Message-Id: <email address hidden>
Date: Tue, 27 Jul 2004 09:17:10 -0400
From: Thom May <email address hidden>
To: <email address hidden>
Subject: Bug#261558: fixed in apache2 2.0.50-6

Source: apache2
Source-Version: 2.0.50-6

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.50-6_sparc.deb
  to pool/main/a/apache2/apache2-common_2.0.50-6_sparc.deb
apache2-doc_2.0.50-6_all.deb
  to pool/main/a/apache2/apache2-doc_2.0.50-6_all.deb
apache2-mpm-perchild_2.0.50-6_sparc.deb
  to pool/main/a/apache2/apache2-mpm-perchild_2.0.50-6_sparc.deb
apache2-mpm-prefork_2.0.50-6_sparc.deb
  to pool/main/a/apache2/apache2-mpm-prefork_2.0.50-6_sparc.deb
apache2-mpm-threadpool_2.0.50-6_sparc.deb
  to pool/main/a/apache2/apache2-mpm-threadpool_2.0.50-6_sparc.deb
apache2-mpm-worker_2.0.50-6_sparc.deb
  to pool/main/a/apache2/apache2-mpm-worker_2.0.50-6_sparc.deb
apache2-prefork-dev_2.0.50-6_all.deb
  to pool/main/a/apache2/apache2-prefork-dev_2.0.50-6_all.deb
apache2-threaded-dev_2.0.50-6_all.deb
  to pool/main/a/apache2/apache2-threaded-dev_2.0.50-6_all.deb
apache2_2.0.50-6.diff.gz
  to pool/main/a/apache2/apache2_2.0.50-6.diff.gz
apache2_2.0.50-6.dsc
  to pool/main/a/apache2/apache2_2.0.50-6.dsc
apache2_2.0.50-6_sparc.deb
  to pool/main/a/apache2/apache2_2.0.50-6_sparc.deb
libapr0-dev_2.0.50-6_sparc.deb
  to pool/main/a/apache2/libapr0-dev_2.0.50-6_sparc.deb
libapr0_2.0.50-6_sparc.deb
  to pool/main/a/apache2/libapr0_2.0.50-6_sparc.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 <email address hidden>,
and the maintainer will reopen the bug report if appropriate.

Debian distribution maintenance software
pp.
Thom May <email address hidden> (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 <email address hidden>)

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

Format: 1.7
Date: Tue, 27 Jul 2004 10:31:46 +0100
Source: apache2
Binary: apache2 apache2-prefork-dev apache2-mpm-prefork apache2-doc libapr0-dev apache2-mpm-threadpool apache2-mpm-worker libapr0 apache2-threaded-dev apache2-common apache2-mpm-perchild
Architecture: source all sparc
Version: 2.0.50-6
Distribution: unstable
Urgency: high
Maintainer: Debian Apache Maintainers <email address hidden>
Changed-By: Thom May <email address hidden>
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-threadpool - Experimental High speed thread pool model for Apache2
 apache2-mpm-worker - High speed threaded model for Apache2
 apache2-prefork-dev - Development headers for apache2
 apache2-threaded-dev - Development headers fo...

Read more...

Revision history for this message
Matt Zimmerman (mdz) wrote :

Do you intend to sync this from Debian soon?

Revision history for this message
Thom May (thombot) wrote :

The next upload to unstable is going to fix another bug which is RC for us also
(#444) so I was going to just request for that to be synced.

Revision history for this message
Matt Zimmerman (mdz) wrote :

Fixed via sync of 2.0.50-7

Changed in apache2:
status: Unknown → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.