Re: apache-ssl restart fails after monthly logrotate
On Fri, Apr 11, 2003 at 10:26:57AM -0600, David Wilk wrote:
> Howdy folks,
>
> I've been admining debian servers for a few years now and this problem
> is a new one on me. I have the standard apache-ssl setup with logrotate
> handling standard logrotation of about 115 virtual hosts in
> /var/log/httpd/. for the first 3 months or so everything went fine at
> the monthly log rotation, however for the last 2 months apache-ssl has
> failed to restart after logrotation.
>
> The last time this happened, I found the apache parent gone, with
> several children straggling around. I couldn't just issue an
> /etc/init.d/apache-ssl start, but had to manually kill the children
> first. There is simply nothing in the logs (well, nothing in
> /var/log/apache-ssl logs and the most active virtual host, but I did not
> check all virtual host logs)
>
> has anyone seen this before?
>
I've got several servers too and saw this once or twice on some servers
with apache-ssl (and woody of course). A friend showed this too one
time on one of his servers. The only way that seems to work actualy is
to replace "reload" in logrotate.d/apache-ssl with "restart"!!! But can
you really do this, it depends of your server use. I think it's a
problem with direct logging to file. Probably using a pipe too a
programm will be better, but debian doesn't come with such a solution in
standard, and I haven't time to try something like this (restart is not
really a problem for me). Maybe we will need to have a look on
rotatelogs program which come with apache.
Please keep us informed if you find a good issue.
PS: each time there was lines like this in apache logs:
accept_mutex_on: Identifier removed
[alert] Child 4968 returned a Fatal error...
Apache is exiting!
At logrotate time, and apache died some minutes/hour afters (it
depends).
--
Emmanuel Lacour ------------------------------------ Easter-eggs
44-46 rue de l'Ouest - 75014 Paris - France - Métro Gaité
Phone: +33 (0) 1 43 35 00 37 - Fax: +33 (0) 1 41 35 00 76
mailto:elacour@easter-eggs.com - http://www.easter-eggs.com
Reply to: