logrotate with lighttpd graceful shutdown and restart failed.

Bug #74458 reported by BlueT - Matthew Lien - 練喆明
10
Affects Status Importance Assigned to Milestone
lighttpd (Debian)
Fix Released
Unknown
lighttpd (Ubuntu)
Fix Released
Undecided
Unassigned
Dapper
Fix Released
Undecided
Unassigned

Bug Description

Binary package hint: lighttpd

Sometimes don't but sometimes lighttpd graceful shutdown at 6:25am and never wake up until you do /etc/init.d/lighttpd start.

This bug will make web server admin crazy bcoz you will never know if lighttpd will be still running tomorrow!

LOG: /var/log/lighttpd/error.log
2006-12-05 06:25:33: (server.c.1216) [note] graceful shutdown started
2006-12-05 06:31:25: (server.c.1126) NOTE: a request for /AdView/avi/MuchCard.avi timed out after writing 57920 bytes. We waited 360 second
s. If this a problem increase server.max-write-idle
2006-12-05 06:31:25: (log.c.135) server stopped
2006-12-05 09:47:07: (log.c.75) server started

To fix the bug, edit /etc/logrotate.d/lighttpd:
replace the following lines:
           if [ -f /var/run/lighttpd.pid ]; then \
             if [ -x /usr/sbin/invoke-rc.d ]; then \
                invoke-rc.d lighttpd reload > /dev/null; \
             else \
                /etc/init.d/lighttpd reload > /dev/null; \
             fi; \
           fi;
by:
        if [ -f /var/run/lighttpd.pid ]; then \
                kill -HUP $(</var/run/lighttpd.pid) ; \
        fi;

The solution's by darix in #lighttpd on Freenode.

Revision history for this message
BlueT - Matthew Lien - 練喆明 (bluet) wrote :

BTW, this bug's on both Debian and Ubuntu.

Changed in lighttpd:
status: Unknown → Fix Released
Revision history for this message
BlueT - Matthew Lien - 練喆明 (bluet) wrote :

Debian had the same bug, but fixed soon.
http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=380080

Revision history for this message
Soren Hansen (soren) wrote :

We've merged with Debian, so this should be fixed now.

Changed in lighttpd:
status: Unconfirmed → Fix Released
Revision history for this message
BlueT - Matthew Lien - 練喆明 (bluet) wrote :

Nope, Soren.
There's No updates for lighttpd in Dapper 6.06.1 LTS. :-S

the package "lighttpd" is still a broken package, crash-able.
I don't know if there's any updates in Edgy. @_@

Changed in lighttpd:
status: Fix Released → Fix Committed
Revision history for this message
Lukas Fittl (lfittl) wrote :

please test with the lighttpd update available from dapper-proposed.

Changed in lighttpd:
status: Fix Committed → Fix Released
status: Unconfirmed → Fix Committed
Revision history for this message
William Grant (wgrant) wrote : Security fix uploaded to dapper-proposed

I've uploaded the security fix for 1.4.11-3ubuntu3.1 to dapper-proposed.

Revision history for this message
Daniel Hahler (blueyed) wrote :

I've just added the verification-needed tag as per https://wiki.ubuntu.com/StableReleaseUpdates.

Revision history for this message
Andreas Påhlsson (andreas-pahlsson-xcerion) wrote :

The following bug may or may not be related to this bug.

https://bugs.launchpad.net/ubuntu/+source/dpkg/+bug/184777

The bug is still present in lighttpd 1.4.11-3ubuntu3.5

JC Hulce (soaringsky)
Changed in lighttpd (Ubuntu Dapper):
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.