Debian Bug report logs - #282306
apache.postinst doesn't handle include for directories

version graph

Package: apache; Maintainer for apache is (unknown);

Reported by: "George Georgalis" <george@galis.org>

Date: Sun, 21 Nov 2004 03:03:01 UTC

Severity: normal

Found in version 1.3.26-0woody6

Fixed in version 1.3.34-4.1+rm

Done: Marco Rodrigues <gothicx@sapo.pt>

Bug is archived. No further changes may be made.

Toggle useless messages

View this report as an mbox folder, status mbox, maintainer mbox


Report forwarded to debian-bugs-dist@lists.debian.org, Debian Apache Maintainers <debian-apache@lists.debian.org>:
Bug#282306; Package apache. Full text and rfc822 format available.

Acknowledgement sent to "George Georgalis" <george@galis.org>:
New Bug report received and forwarded. Copy sent to Debian Apache Maintainers <debian-apache@lists.debian.org>. Full text and rfc822 format available.

Message #5 received at submit@bugs.debian.org (full text, mbox):

From: "George Georgalis" <george@galis.org>
To: submit@bugs.debian.org
Subject: apache.postinst doesn't handle include for directories
Date: Sat, 20 Nov 2004 21:58:23 -0500
Package: apache
Version: 1.3.26-0woody6
Severity: normal

apache.postinst does some magic with "Check for log files." to warn
about adjusting logrotate if logs are outside /var/log/apache

        echo Apache has switched to using logrotate.  However, some of your logs
        echo are stored outside the /var/log/apache directory, so you should
        echo edit /etc/logrotate.d/apache to have them automatically rotated.

The awk command fails because the code assumes if there is an Include
in the httpd.conf, it must be a file. However a directory is legal there.

Include /etc/apache/vhost

is a convenient directory to put, appropriately named, per domain conf files.

Not only did awk fail but apt-get didn't notice. I do log access outside
of /var/log/apache and I do pipe errors to an external program for
processing. I don't think any of this is terribly unusual.

Also is it normal to just "rm -f /etc/cron.daily/apache"??? what if
that etc file was modified for the site? I wonder what will become of
/etc/cron.daily/apache-perl?

I removed /etc/rc*.d/*apache files, but they have been recreated for an
upgrade. Why?

(Also, though my installation is very different than a typical debian
install, it is designed to be compatible, SIGUSR1 or "apachectl
graceful" works fine, however this upgrade broke the running apache
on my test box -- just means I need to killall apache and restart.
And stop it first before I upgrade in production. Had I modified
/etc/init.d/apache who's to say it wasn't overwritten?)

All in all, the apache.postinst file seems very delicately balanced
to support (and only support) a complex set of requirements. Is the
supported spec defined anywhere? Such a spec would go a long way on
qa.debian.org.

The awk error doesn't cause me any problems but this does

   /etc/init.d/apache restart || true

please change to 

   /etc/init.d/apache reload || true

in the mean time I'll remember to "chmod 0 /etc/init.d/package" whenever
I "update -f package remove"

Here is my (sanitized) upgrade output.


Setting up apache-common (1.3.26-0woody6) ...

Setting up apache (1.3.26-0woody6) ...
awk: read error (Is a directory)
awk: read error (Is a directory)
Reloading apache modulesProcessing config directory: /etc/apache/vhost
 Processing config file: /etc/apache/vhost/dom1.conf
 Processing config file: /etc/apache/vhost/dom2.conf
 Processing config file: /etc/apache/vhost/dom3.conf
 Processing config file: /etc/apache/vhost/dom4.conf
 Processing config file: /etc/apache/vhost/dom5.conf
 Processing config file: /etc/apache/vhost/dom6.conf
 Processing config file: /etc/apache/vhost/dom7.conf
 Processing config file: /etc/apache/vhost/dom8.conf
 Processing config file: /etc/apache/vhost/dom9.conf
 Processing config file: /etc/apache/vhost/dom0.conf
 Processing config file: /etc/apache/vhost/doma.conf
 Processing config file: /etc/apache/vhost/domb.conf
 Processing config file: /etc/apache/vhost/domc.conf
.




// George

-- 
George Georgalis, systems architect, administrator Linux BSD IXOYE
http://galis.org/george/ cell:646-331-2027 mailto:george@galis.org



Reply sent to Marco Rodrigues <gothicx@sapo.pt>:
You have taken responsibility. (Wed, 16 Sep 2009 20:39:10 GMT) Full text and rfc822 format available.

Notification sent to "George Georgalis" <george@galis.org>:
Bug acknowledged by developer. (Wed, 16 Sep 2009 20:39:10 GMT) Full text and rfc822 format available.

Message #10 received at 282306-done@bugs.debian.org (full text, mbox):

From: Marco Rodrigues <gothicx@sapo.pt>
To: 282306-done@bugs.debian.org
Subject: Package apache has been removed from Debian
Date: Wed, 16 Sep 2009 20:34:05 +0100
Version: 1.3.34-4.1+rm

You filled the bug http://bugs.debian.org/282306 in Debian BTS
against the package apache. I'm closing it at *unstable*, but it will
remain open for older distributions.

For more information about this package's removal, read
http://bugs.debian.org/418266. That bug might give the reasons why
this package was removed and suggestions of possible replacements.

Don't hesitate to reply to this mail if you have any question.

Thank you for your contribution to Debian.

--
Marco Rodrigues




Reply sent to Marco Rodrigues <gothicx@sapo.pt>:
You have taken responsibility. (Wed, 16 Sep 2009 22:03:13 GMT) Full text and rfc822 format available.

Notification sent to "George Georgalis" <george@galis.org>:
Bug acknowledged by developer. (Wed, 16 Sep 2009 22:03:13 GMT) Full text and rfc822 format available.

Message #15 received at 282306-done@bugs.debian.org (full text, mbox):

From: Marco Rodrigues <gothicx@sapo.pt>
To: 282306-done@bugs.debian.org
Subject: Package apache has been removed from Debian
Date: Wed, 16 Sep 2009 21:32:47 +0100
Version: 1.3.34-4.1+rm

You filled the bug http://bugs.debian.org/282306 in Debian BTS
against the package apache. I'm closing it at *unstable*, but it will
remain open for older distributions.

For more information about this package's removal, read
http://bugs.debian.org/418266. That bug might give the reasons why
this package was removed and suggestions of possible replacements.

Don't hesitate to reply to this mail if you have any question.

Thank you for your contribution to Debian.

--
Marco Rodrigues




Bug archived. Request was from Debbugs Internal Request <owner@bugs.debian.org> to internal_control@bugs.debian.org. (Thu, 15 Oct 2009 07:29:19 GMT) Full text and rfc822 format available.

Send a report that this bug log contains spam.


Debian bug tracking system administrator <owner@bugs.debian.org>. Last modified: Thu Apr 17 15:51:43 2014; Machine Name: buxtehude.debian.org

Debian Bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.