Linux - SoftwareThis forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
I have setup a script to email me apache error logs everyday.
Apart from "File does not exist" errors, I see logs of following nature practically every day.
Code:
[Tue Jun 16 02:35:05 2009] [notice] SIGHUP received. Attempting to restart
[Tue Jun 16 02:36:00 2009] [notice] Apache/2.2.11 (Unix) mod_ssl/2.2.11 OpenSSL/0.9.8e-fips-rhel5 mod_bwlimited/1.4 PHP/5.2.9 configured -- resuming normal operations
[Tue Jun 16 03:35:09 2009] [notice] SIGHUP received. Attempting to restart
[Tue Jun 16 03:35:56 2009] [notice] Apache/2.2.11 (Unix) mod_ssl/2.2.11 OpenSSL/0.9.8e-fips-rhel5 mod_bwlimited/1.4 PHP/5.2.9 configured -- resuming normal operations
[Tue Jun 16 03:40:03 2009] [notice] SIGHUP received. Attempting to restart
[Tue Jun 16 03:40:05 2009] [notice] Apache/2.2.11 (Unix) mod_ssl/2.2.11 OpenSSL/0.9.8e-fips-rhel5 mod_bwlimited/1.4 PHP/5.2.9 configured -- resuming normal operations
[Tue Jun 16 04:05:05 2009] [warn] child process 30019 still did not exit, sending a SIGTERM
[Tue Jun 16 04:05:07 2009] [warn] child process 30025 still did not exit, sending a SIGTERM
[Tue Jun 16 04:05:07 2009] [warn] child process 30031 still did not exit, sending a SIGTERM
[Tue Jun 16 04:05:07 2009] [warn] child process 30034 still did not exit, sending a SIGTERM
[Tue Jun 16 04:05:07 2009] [warn] child process 30036 still did not exit, sending a SIGTERM
[Tue Jun 16 04:05:07 2009] [warn] child process 32083 still did not exit, sending a SIGTERM
[Tue Jun 16 04:05:07 2009] [warn] child process 1705 still did not exit, sending a SIGTERM
[Tue Jun 16 04:05:08 2009] [notice] SIGHUP received. Attempting to restart
[Tue Jun 16 04:05:58 2009] [notice] Apache/2.2.11 (Unix) mod_ssl/2.2.11 OpenSSL/0.9.8e-fips-rhel5 mod_bwlimited/1.4 PHP/5.2.9 configured -- resuming normal operations
[Tue Jun 16 04:11:14 2009] [error] [client 59.182.2.133] File does not exist: /home/ramshyam/public_html/kb, referer: http://www.ramshyam.com/newcc/
[Tue Jun 16 04:15:48 2009] [error] [client 216.129.119.41] script '/home/ramshyam/public_html/links/blog.php' not found or unable to stat
[Tue Jun 16 04:55:20 2009] [warn] child process 22063 still did not exit, sending a SIGTERM
[Tue Jun 16 04:55:26 2009] [notice] SIGHUP received. Attempting to restart
[Tue Jun 16 04:57:00 2009] [notice] Apache/2.2.11 (Unix) mod_ssl/2.2.11 OpenSSL/0.9.8e-fips-rhel5 mod_bwlimited/1.4 PHP/5.2.9 configured -- resuming normal operations
[Tue Jun 16 05:00:05 2009] [notice] SIGHUP received. Attempting to restart
[Tue Jun 16 05:00:09 2009] [notice] Apache/2.2.11 (Unix) mod_ssl/2.2.11 OpenSSL/0.9.8e-fips-rhel5 mod_bwlimited/1.4 PHP/5.2.9 configured -- resuming normal operations
[Tue Jun 16 05:05:06 2009] [notice] SIGHUP received. Attempting to restart
[Tue Jun 16 05:05:08 2009] [notice] Apache/2.2.11 (Unix) mod_ssl/2.2.11 OpenSSL/0.9.8e-fips-rhel5 mod_bwlimited/1.4 PHP/5.2.9 configured -- resuming normal operations
[Tue Jun 16 05:20:06 2009] [warn] child process 20256 still did not exit, sending a SIGTERM
[Tue Jun 16 05:20:07 2009] [warn] child process 20262 still did not exit, sending a SIGTERM
[Tue Jun 16 05:20:07 2009] [warn] child process 20265 still did not exit, sending a SIGTERM
[Tue Jun 16 05:20:07 2009] [warn] child process 20267 still did not exit, sending a SIGTERM
[Tue Jun 16 05:20:07 2009] [warn] child process 20326 still did not exit, sending a SIGTERM
[Tue Jun 16 05:20:09 2009] [notice] SIGHUP received. Attempting to restart
[Tue Jun 16 05:20:20 2009] [notice] Apache/2.2.11 (Unix) mod_ssl/2.2.11 OpenSSL/0.9.8e-fips-rhel5 mod_bwlimited/1.4 PHP/5.2.9 configured -- resuming normal operations
I have tried googling around, but not much help.
Why are these logs generated, should I be worried ?
A quick google turned up some similar problems for mod_python users. Are you using mod_python perchance?
The bottom line is httpd processes aren't dying as quickly as Apache thinks they should be. From your logs, it looks like you're gracefully restarting. And the child processes just aren't dying... (Do you have a high traffic server?)
This is a Hosted VPS server which are generally pre-configured with the basic requirements.
Tried httpd -M
Did not find mod_python in the list.
Got this error again in today's email of error_logs
Quote:
[Thu Jun 18 03:30:08 2009] [warn] child process 9334 still did not exit, sending a SIGTERM
[Thu Jun 18 03:30:08 2009] [warn] child process 1385 still did not exit, sending a SIGTERM
[Thu Jun 18 03:30:08 2009] [warn] child process 32391 still did not exit, sending a SIGTERM
[Thu Jun 18 03:30:08 2009] [warn] child process 9344 still did not exit, sending a SIGTERM
[Thu Jun 18 03:30:08 2009] [warn] child process 11265 still did not exit, sending a SIGTERM
[Thu Jun 18 03:30:08 2009] [warn] child process 9357 still did not exit, sending a SIGTERM
[Thu Jun 18 03:30:08 2009] [warn] child process 9359 still did not exit, sending a SIGTERM
[Thu Jun 18 03:30:08 2009] [warn] child process 9360 still did not exit, sending a SIGTERM
[Thu Jun 18 03:30:08 2009] [warn] child process 9361 still did not exit, sending a SIGTERM
[Thu Jun 18 03:30:08 2009] [warn] child process 9371 still did not exit, sending a SIGTERM
[Thu Jun 18 03:30:09 2009] [notice] SIGHUP received. Attempting to restart
[Thu Jun 18 03:31:12 2009] [notice] Apache/2.2.11 (Unix) mod_ssl/2.2.11 OpenSSL/0.9.8e-fips-rhel5 mod_bwlimited/1.4 PHP/5.2.9 configured -- resuming normal operations
[Thu Jun 18 03:35:09 2009] [notice] SIGHUP received. Attempting to restart
[Thu Jun 18 03:35:10 2009] [notice] Apache/2.2.11 (Unix) mod_ssl/2.2.11 OpenSSL/0.9.8e-fips-rhel5 mod_bwlimited/1.4 PHP/5.2.9 configured -- resuming normal operations
[Thu Jun 18 03:40:03 2009] [notice] SIGHUP received. Attempting to restart
[Thu Jun 18 03:40:12 2009] [notice] Apache/2.2.11 (Unix) mod_ssl/2.2.11 OpenSSL/0.9.8e-fips-rhel5 mod_bwlimited/1.4 PHP/5.2.9 configured -- resuming normal operations
[Thu Jun 18 04:05:07 2009] [warn] child process 26132 still did not exit, sending a SIGTERM
[Thu Jun 18 04:05:07 2009] [warn] child process 26141 still did not exit, sending a SIGTERM
[Thu Jun 18 04:05:07 2009] [warn] child process 26169 still did not exit, sending a SIGTERM
[Thu Jun 18 04:05:07 2009] [warn] child process 26179 still did not exit, sending a SIGTERM
[Thu Jun 18 04:05:07 2009] [warn] child process 26185 still did not exit, sending a SIGTERM
[Thu Jun 18 04:05:07 2009] [warn] child process 3241 still did not exit, sending a SIGTERM
[Thu Jun 18 04:05:07 2009] [warn] child process 17970 still did not exit, sending a SIGTERM
[Thu Jun 18 04:05:09 2009] [warn] child process 26132 still did not exit, sending a SIGTERM
[Thu Jun 18 04:05:09 2009] [warn] child process 26141 still did not exit, sending a SIGTERM
[Thu Jun 18 04:05:09 2009] [warn] child process 26169 still did not exit, sending a SIGTERM
[Thu Jun 18 04:05:09 2009] [warn] child process 26179 still did not exit, sending a SIGTERM
[Thu Jun 18 04:05:09 2009] [warn] child process 26185 still did not exit, sending a SIGTERM
[Thu Jun 18 04:05:09 2009] [warn] child process 3241 still did not exit, sending a SIGTERM
[Thu Jun 18 04:05:09 2009] [warn] child process 17970 still did not exit, sending a SIGTERM
[Thu Jun 18 04:05:11 2009] [notice] SIGHUP received. Attempting to restart
[Thu Jun 18 04:05:37 2009] [notice] Apache/2.2.11 (Unix) mod_ssl/2.2.11 OpenSSL/0.9.8e-fips-rhel5 mod_bwlimited/1.4 PHP/5.2.9 configured -- resuming normal operations
What else should I check.
Need to get this error corrected.
One approach that might yield results: set the LogLevel debug directive in your Apache config. Then restart httpd and keep an eye on the error_log. (You may be able to get more detailed info about what is going wrong.)
@vaibhavs: Actually, you appear to be running into issues when you try to perform a graceful restart. So keep the debug logging in place, and issue:
# apachectl -k graceful
Then you will need to wait for Apache to get tired of waiting and kill its children processes forcefully. (That takes 25 minutes or so based on the looks of your logs.) Keep an eye out for any potentially useful messages that are appearing around the time the children processes are killed with SIGTERM.
Following lines from the error logs recd this morning.
I have extracted lines which are in the neighbourhood of "Sigterm".
I could not make anything out of it.
Quote:
[Sat Jun 20 03:34:00 2009] [debug] proxy_util.c(1801): proxy: grabbed scoreboard slot 0 in child 22517 for worker proxy:reverse
[Sat Jun 20 03:34:00 2009] [debug] proxy_util.c(1820): proxy: worker proxy:reverse already initialized
[Sat Jun 20 03:34:00 2009] [debug] proxy_util.c(1914): proxy: initialized single connection worker 0 in child 22517 for (*)
[Sat Jun 20 04:33:57 2009] [info] [client 208.122.4.142] (104)Connection reset by peer: core_output_filter: writing data to the network
[Sat Jun 20 04:33:57 2009] [info] [client 208.122.4.142] (32)Broken pipe: core_output_filter: writing data to the network
[Sat Jun 20 04:38:14 2009] [info] [client 112.198.129.179] (104)Connection reset by peer: core_output_filter: writing data to the network
[Sat Jun 20 05:09:15 2009] [debug] proxy_util.c(1801): proxy: grabbed scoreboard slot 0 in child 23753 for worker proxy:reverse
[Sat Jun 20 05:09:15 2009] [debug] proxy_util.c(1820): proxy: worker proxy:reverse already initialized
[Sat Jun 20 05:09:15 2009] [debug] proxy_util.c(1914): proxy: initialized single connection worker 0 in child 23753 for (*)
[Sat Jun 20 05:20:03 2009] [notice] SIGHUP received. Attempting to restart
[Sat Jun 20 05:20:36 2009] [info] Init: Seeding PRNG with 136 bytes of entropy
[Sat Jun 20 05:20:36 2009] [info] Init: Generating temporary RSA private keys (512/1024 bits)
[Sat Jun 20 05:20:36 2009] [info] Init: Generating temporary DH parameters (512/1024 bits)
[Sat Jun 20 05:20:36 2009] [debug] ssl_scache_dbm.c(409): Inter-Process Session Cache (DBM) Expiry: old: 0, new: 0, removed: 0
[Sat Jun 20 05:20:36 2009] [info] Init: Initializing (virtual) servers for SSL
[Sat Jun 20 05:20:36 2009] [info] mod_ssl/2.2.11 compiled against Server: Apache/2.2.11, Library: OpenSSL/0.9.8e-fips-rhel5
[Sat Jun 20 05:20:43 2009] [debug] proxy_util.c(1801): proxy: grabbed scoreboard slot 0 in child 13658 for worker proxy:reverse
[Sat Jun 20 05:20:43 2009] [debug] proxy_util.c(1914): proxy: initialized single connection worker 0 in child 13658 for (*)
[Sat Jun 20 05:20:43 2009] [debug] proxy_util.c(1801): proxy: grabbed scoreboard slot 0 in child 13659 for worker proxy:reverse
[Sat Jun 20 05:20:43 2009] [debug] proxy_util.c(1820): proxy: worker proxy:reverse already initialized
[Sat Jun 20 05:20:43 2009] [debug] proxy_util.c(1914): proxy: initialized single connection worker 0 in child 13659 for (*)
[Sat Jun 20 05:20:43 2009] [debug] proxy_util.c(1801): proxy: grabbed scoreboard slot 0 in child 13663 for worker proxy:reverse
[Sat Jun 20 05:20:43 2009] [debug] proxy_util.c(1820): proxy: worker proxy:reverse already initialized
[Sat Jun 20 05:20:43 2009] [debug] proxy_util.c(1914): proxy: initialized single connection worker 0 in child 13663 for (*)
[Sat Jun 20 05:20:43 2009] [debug] proxy_util.c(1801): proxy: grabbed scoreboard slot 0 in child 13664 for worker proxy:reverse
[Sat Jun 20 05:20:43 2009] [debug] proxy_util.c(1820): proxy: worker proxy:reverse already initialized
[Sat Jun 20 05:20:43 2009] [debug] proxy_util.c(1914): proxy: initialized single connection worker 0 in child 13664 for (*)
[Sat Jun 20 05:20:43 2009] [notice] Apache/2.2.11 (Unix) mod_ssl/2.2.11 OpenSSL/0.9.8e-fips-rhel5 mod_bwlimited/1.4 PHP/5.2.9 configured -- resuming normal operations
[Sat Jun 20 05:20:43 2009] [info] Server built: Jun 9 2009 09:46:20
[Sat Jun 20 05:20:43 2009] [debug] prefork.c(1009): AcceptMutex: sysvsem (default: sysvsem)
[Sat Jun 20 05:20:43 2009] [debug] proxy_util.c(1801): proxy: grabbed scoreboard slot 0 in child 13665 for worker proxy:reverse
[Sat Jun 20 05:20:43 2009] [debug] proxy_util.c(1820): proxy: worker proxy:reverse already initialized
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.