[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#301702: Apache2 and logrotate



I just ran into this issue on one server where apache2 started to mysteriously 
die weekly in late February. I could not properly isolate the problem, but 
noticed the following things that might be helpful.

When the server was running apache2 version 2.2.3-3.1, the problematic command 
in the logrotate script produced the following output:

$ sudo /etc/init.d/apache2 restart > /dev/null
(98)Address already in use: make_sock: could not bind to address 0.0.0.0:80
no listening sockets available, shutting down
Unable to open logs

And apache2 was no longer running. But using invoke-rc.d as in

$ sudo invoke-rc.d apache2 restart

lead to fully successful restart. After upgrading apache2 to 2.2.3-3.3 (which 
pulled in some related updates, like mediawiki1.7 1.7.1-3 -> 1.7.1-9) both

$ sudo /etc/init.d/apache2 restart > /dev/null
and
$ sudo invoke-rc.d apache2 restart

seem to be restarting apache2 cleanly.

The server in question is unfortunately running a mixture of packages from 
Sarge, Etch and versions between them, so this may have something to do with 
the problem as well.

Harri



Reply to: