Something fresh... apache dies and wont start

Pentarh

New member
Joined
Feb 3, 2009
Messages
3
We have many servers and this problem appears only on some servers running DA. So I expect it is somehow DA related question.

Apache randomly dies due to unknown reasons. And then fails to start.

Well, yes, I read about exim-related issue. But i didn't saw port 80 used by exim when this happens. Port 80 is used by "sh" :eek: And 80-sockets are in SYN_RECV state:

Code:
# netstat -anp |grep :80
tcp        0      0 127.0.0.1:80                0.0.0.0:*                   LISTEN      7356/sh
tcp        0      0 78.140.132.5:80             0.0.0.0:*                   LISTEN      7356/sh
tcp        0      0 78.140.132.5:80             78.140.132.5:6913           SYN_RECV    -
tcp        0      0 78.140.132.5:80             78.140.132.5:34215          SYN_RECV    -
tcp        0      0 78.140.132.5:80             78.140.132.5:34268          SYN_RECV    -
tcp        0      0 78.140.132.5:80             78.140.132.5:34318          SYN_RECV    -
tcp        0      0 78.140.132.5:80             78.140.132.5:34171          SYN_RECV    -

It appears totally random and cured by server reboot.

Full log is here: http://o.102050.com/dru.txt

Any suggestions?
 
I don't see the apache error_log which is probably the only one you need to look at.

My guess is you will see something like:

cannot create semaphore No space left on device

In that case you need to run:

Code:
ipcs -s | awk ' $3 == "apache" {print $2, $3}' | awk '{ print $1}' | while read i; do ipcrm sem $i; done
 
Back
Top