Project

General

Profile

Lighttpd dead but pid file exists

Added by ittec over 15 years ago

Os: CentOS 5
Lighttpd: lighttpd-1.4.20 (ssl)

Hi again,

I have noticed strange issue on two servers running with lighttpd. On both, without errors or any kind of another problems, the lighttpd suddenly stops. And I can't turn on it later, the error is

Lighttpd dead but pid file exists

I started lighttpd with -Df /var/log/lighttpd/error.log but no helpful info appears. The only common thing on both servers was that, the last log on error.log was something about server.max-write-idle

2008-12-21 15:36:44: (server.c.1247) NOTE: a request for /gfx/partners2/mini/cab-bg-mini.jpg timed out after writing 13068 bytes. We waited 360 seconds. If this a problem increase server.max-write-idle

I don't know what to do :/

Thanks.


Replies (1)

RE: Lighttpd dead but pid file exists - Added by cmanns over 15 years ago

I don't use pid, since I started using lighttpd I've had the process disappear randomly. My solution was to create a script or process that will watch lighttpd (and php-fcgi) to make sure they're online. You need to strace lighttpd so you know when it's crashing. I never did because it can be a week to months that lighty will die, differen't revisions different time periods. Doesn't really bother me if lighty dies after 2 months.

    (1-1/1)