Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Bug#473982: apache2-mpm-prefork: Logrotate complains about APACHE_PID_FILE

62 views
Skip to first unread message

Claire Boussard

unread,
Apr 2, 2008, 9:40:13 AM4/2/08
to
Package: apache2-mpm-prefork
Version: 2.2.8-1
Severity: normal


The log rotation does'nt go well. apache2
continued to write in /var/log/apache2/error.log.1 until I
restart it.
I have received this mail from root :

> From ro...@arachne3.grenoble.iufm.fr Tue Mar 25 16:18:48 2008
> Envelope-to: ro...@arachne3.grenoble.iufm.fr
> Delivery-date: Tue, 25 Mar 2008 16:18:48 +0100
> From: Anacron <ro...@arachne3.grenoble.iufm.fr>
> To: ro...@arachne3.grenoble.iufm.fr
> Subject: Anacron job 'cron.daily' on arachne3
> Date: Tue, 25 Mar 2008 16:18:48 +0100

> /etc/cron.daily/logrotate:
> ERROR: APACHE_PID_FILE needs to be defined in /etc/apache2/envvars
> error: error running shared postrotate script for /var/log/apache2/*.log
> run-parts: /etc/cron.daily/logrotate exited with return code 1

I have done what is suggested i.e. edit /etc/apache2/envvars adding

APACHE_PID_FILE=/var/run/apache2.pid
export APACHE_PID_FILE

I must wait now a week for the change to take an effect.

-- Package-specific info:
List of enabled modules from 'apache2 -M':
alias auth_basic authn_file authz_default authz_groupfile
authz_host authz_user autoindex cgi dir env mime negotiation php5
setenvif status

-- System Information:
Debian Release: lenny/sid
APT prefers testing
APT policy: (500, 'testing')
Architecture: i386 (i686)

Kernel: Linux 2.6.24-1-686 (SMP w/2 CPU cores)
Locale: LANG=fr_FR.UTF-8, LC_CTYPE=fr_FR.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/bash

Versions of packages apache2-mpm-prefork depends on:
ii apache2.2-common 2.2.8-1 Next generation, scalable, extenda
ii libapr1 1.2.11-1 The Apache Portable Runtime Librar
ii libaprutil1 1.2.12+dfsg-3 The Apache Portable Runtime Utilit
ii libc6 2.7-6 GNU C Library: Shared libraries
ii libpcre3 7.4-1+lenny1 Perl 5 Compatible Regular Expressi

apache2-mpm-prefork recommends no packages.

-- no debconf information

--
To UNSUBSCRIBE, email to debian-bugs-...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listm...@lists.debian.org

Stefan Fritsch

unread,
Apr 3, 2008, 5:00:17 PM4/3/08
to
On Wednesday 02 April 2008, Claire Boussard wrote:
> > /etc/cron.daily/logrotate:
> > ERROR: APACHE_PID_FILE needs to be defined in
> > /etc/apache2/envvars error: error running shared postrotate
> > script for /var/log/apache2/*.log run-parts:
> > /etc/cron.daily/logrotate exited with return code 1
>
> I have done what is suggested i.e. edit /etc/apache2/envvars adding

You probably refused to update /etc/apache2/envvars. The new version
should be in /etc/apache2/envvars.dpkg-new .

But a test in the init script that gives a warning if the variables
are not set might be a good idea.

Cheers,
Stefan

Claire Boussard

unread,
Apr 4, 2008, 3:50:09 AM4/4/08
to
Stefan Fritsch a écrit :

>
> You probably refused to update /etc/apache2/envvars. The new version
> should be in /etc/apache2/envvars.dpkg-new .
>

I have now apache2-mpm-prefork version 2.2.8-3 and the file
envvars.dpkg-new does'nt exist. During the upgrade I must edit
the file envvars, adding APACHE_RUN_USER and APACHE_RUN_GROUP

Cheers,
Claire.

claire_boussard.vcf

Stefan Fritsch

unread,
Apr 5, 2008, 11:00:17 AM4/5/08
to
On Friday 04 April 2008, Claire Boussard wrote:
> > You probably refused to update /etc/apache2/envvars. The new
> > version should be in /etc/apache2/envvars.dpkg-new .
>
> I have now apache2-mpm-prefork version 2.2.8-3 and the file
> envvars.dpkg-new does'nt exist. During the upgrade I must edit
> the file envvars, adding APACHE_RUN_USER and APACHE_RUN_GROUP

Is there any other /etc/apache2/envvars.dpkg-* file lying around? You
should have been asked by about replacing envvars when you upgraded
to a version >= 2.2.8-1.

0 new messages