Bug#230419: apache: will not install unless /etc/init.d/apache pre-exists

2004-01-31 Thread David Morse
Linux abu 2.4.22 #1 Sun Sep 21 16:07:44 EDT 2003 i686 unknown.
Woody with gnome 2 backport.
A few months ago I had apt-got apache before...maybe the uninstall then 
wasn't clean, because ever since I've been getting mail from Cron:

  /etc/cron.daily/logrotate:
  error: error accessing /var/log/apache: No such file or directory
  error: apache:1 glob failed for /var/log/apache/*.log
  run-parts: /etc/cron.daily/logrotate exited with return code 1
Does this help?
Hey, can you mail me the default /etc/init.d/apache ?
Fabio Massimo Di Nitto wrote:
tags 230419 woody
tags 230419 unreproducible
tags 230419 moreinfo
stop
quit
Hi David,
i cannot reproduce this bug at all. Perhaps if you can provide a
description of your environment would be more helpful.
bin/bash-2.05a# dpkg -i apache-common_1.3.26-0woody3_i386.deb
Selecting previously deselected package apache-common.
(Reading database ... 14490 files and directories currently installed.)
Unpacking apache-common (from apache-common_1.3.26-0woody3_i386.deb) ...
Setting up apache-common (1.3.26-0woody3) ...
bin/bash-2.05a# dpkg -i apache_1.3.26-0woody3_i386.deb
(Reading database ... 14896 files and directories currently installed.)
Preparing to replace apache 1.3.26-0woody3 (using
apache_1.3.26-0woody3_i386.deb) ...
Unpacking replacement apache ...
Setting up apache (1.3.26-0woody3) ...
Initializing apache config for immediate operation.
[SNIP]
Fabio




Bug#230419: apache: will not install unless /etc/init.d/apache pre-exists

2004-01-31 Thread David Morse
Fabio Massimo Di Nitto wrote:
Hi David,
On Sat, 31 Jan 2004, David Morse wrote:

Linux abu 2.4.22 #1 Sun Sep 21 16:07:44 EDT 2003 i686 unknown.
Woody with gnome 2 backport.
A few months ago I had apt-got apache before...maybe the uninstall then
wasn't clean, because ever since I've been getting mail from Cron:
  /etc/cron.daily/logrotate:
  error: error accessing /var/log/apache: No such file or directory
  error: apache:1 glob failed for /var/log/apache/*.log
  run-parts: /etc/cron.daily/logrotate exited with return code 1
Does this help?

It clearly shows that there was a previous installation of apache that has
not been purged correctly and I am not sure if that can create the problem
you are facing.
Maybe I apt-get remove'd apache, but forgot apache-common.  I'm pretty 
sure I didn't use a non-apt-get technique to remove.


Hey, can you mail me the default /etc/init.d/apache ?

It is inside the .deb. Just unpack it with dpkg. But i would suggest you
to use apt-get to remove/install packages other than dpkg.
Since you are installing try this:
apt-get --purge remove apache-common
apt-get install apache
and let me know if this will solve the problem
No, it didn't, but on the other hand, extracting /etc/init.d/apache 
helped, so at least I'm rolling.

Another potentially wierd thing in this setup, is that roxen2 is already 
running, and sitting on port 80.  (I intend to run apache on 8080, 
eventually).

If you would like, you can get ssh access to the machine and poke around.




Bug#230419: apache: will not install unless /etc/init.d/apache pre-exists

2004-01-30 Thread David Morse
Package: apache
Version: 1.3.26-0woody3
Severity: important

Lets install apache

  abu:/var/cache/apt/archives# dpkg -i apache_1.3.26-0woody3_i386.deb
  (Reading database ... 92942 files and directories currently installed.)
  Preparing to replace apache 1.3.26-0woody3 (using 
apache_1.3.26-0woody3_i386.deb) ...
  Unpacking replacement apache ...
  Setting up apache (1.3.26-0woody3) ...
  update-rc.d: /etc/init.d/apache: file does not exist
  dpkg: error processing apache (--install):
   subprocess post-installation script returned error exit status 1
  Errors were encountered while processing:
   apache

Can't do it.  Hm.  Well lets touch this initscript:


  abu:/var/cache/apt/archives# touch /etc/init.d/apache ; chmod 777 
/etc/init.d/apache

Now it goes through!:

  abu:/var/cache/apt/archives# dpkg -i apache_1.3.26-0woody3_i386.deb (Reading 
database ... 92942 files and directories currently installed.)
  Preparing to replace apache 1.3.26-0woody3 (using 
apache_1.3.26-0woody3_i386.deb) ...
  Unpacking replacement apache ...
  Setting up apache (1.3.26-0woody3) ...

But unfortunately (for me) doesn't clobber the initscript.

  abu:/var/cache/apt/archives# cat /etc/init.d/apache
  abu:/var/cache/apt/archives#


-- System Information
Debian Release: 3.0
Architecture: i386
Kernel: Linux abu 2.4.22 #1 Sun Sep 21 16:07:44 EDT 2003 i686
Locale: LANG=C, LC_CTYPE=C

Versions of packages apache depends on:
ii  apache-common 1.3.26-0woody3 Support files for all Apache webse
ii  dpkg  1.9.21 Package maintenance system for Deb
ii  libc6 2.2.5-11.5 GNU C Library: Shared libraries an
ii  libdb22:2.7.7.0-7The Berkeley database routines (ru
ii  libexpat1 1.95.2-6   XML parsing C library - runtime li
ii  logrotate 3.5.9-8Log rotation utility
ii  mime-support  3.18-1.3   MIME files 'mime.types'  'mailcap
ii  perl  5.6.1-8.3  Larry Wall's Practical Extraction 
ii  perl [perl5]  5.6.1-8.3  Larry Wall's Practical Extraction