orty

Well-Known Member
Jun 29, 2004
109
0
166
Bend, Oregon
cPanel Access Level
Root Administrator
Every night or two, I get an email roughly like so:

Code:
SUBJ:httpd on myserver.net status: failed
MSG:httpd failed @ Tue Mar  6 01:46:17 2012. A restart was attempted automagically.

Service Check Method:  [socket connect]

Reason: Timeout while trying to connect to service: Died at /usr/local/cpanel/Cpanel/TailWatch/ChkServd.pm line 561.


Number of Restart Attempts: 1
Apache comes backup just fine, but I'd like to figure out why it's dying in the first place.

Looking at the Apache Error logs, I'm seeing this around that time:

Code:
[Tue Mar 06 01:47:07 2012] [warn] child process 25013 still did not exit, sending a SIGTERM
[snip some RSA common name certificate stuff]
[Tue Mar 06 01:47:20 2012] [notice] suEXEC mechanism enabled (wrapper: /usr/local/apache/bin/suexec)
[Tue Mar 06 01:47:20 2012] [notice] ModSecurity for Apache/2.6.3 (http://www.modsecurity.org/) configured.
[Tue Mar 06 01:47:20 2012] [notice] ModSecurity: APR compiled version="1.4.5"; loaded version="1.4.5"
[Tue Mar 06 01:47:20 2012] [notice] ModSecurity: PCRE compiled version="8.21"; loaded version="8.21 2011-12-12"
[Tue Mar 06 01:47:20 2012] [notice] ModSecurity: LUA compiled version="Lua 5.1"
[Tue Mar 06 01:47:20 2012] [notice] ModSecurity: LIBXML compiled version="2.7.8"
[Tue Mar 06 01:47:20 2012] [notice] Original server signature: Apache
[snip some RSA common name certificate stuff]
[Tue Mar 06 01:47:25 2012] [notice] Apache/2.2.22 (Unix) mod_ssl/2.2.22 OpenSSL/0.9.8e-fips-rhel5 DAV/2 mod_bwlimited/1.4 PHP/5.2.17 Apache configured -- resuming normal operations
Any ideas or other places I should look?

-Jake
 

orty

Well-Known Member
Jun 29, 2004
109
0
166
Bend, Oregon
cPanel Access Level
Root Administrator
Oooh...piped logs. Must have missed that in the change logs. I'll give that a whirl and see if that helps. That was the only thing I didn't already have checked (as my logs are all rotating properly, so nothing's getting too large).

Thanks!