LiteSpeed Technologies
Download Download     Blog Blog     Wiki Wiki     Forum Forum     Store     Contact Contact    

Go Back   LiteSpeed Support Forums > LiteSpeed Web Server > Bug Reports > [RESOLVED] LSWS 4.0.13 - Signal 9's gone... Signal 15's new

Reply
 
Thread Tools Display Modes
  #11  
Old 05-17-2010, 11:15 PM
Tony Tony is offline
Senior Member
 
Join Date: Dec 2008
Posts: 133
Signal 15's see the odd one. Now signal 9's get hit with those all the times and worst part being some times lsws does not even start back up yet says it did
__________________
Hawk Host
Frog Host
Reply With Quote
  #12  
Old 05-18-2010, 05:47 AM
aww aww is offline
Senior Member
 
Join Date: May 2007
Posts: 237
It's odd in that Signal 15's only a few times a day and then it stops.

At [15/May/2010:17:02:29 -0400]
At [15/May/2010:19:03:20 -0400]
At [15/May/2010:21:00:32 -0400]

At [16/May/2010:01:11:33 -0400]
At [16/May/2010:03:08:46 -0400]
At [16/May/2010:17:02:39 -0400]
At [16/May/2010:19:04:23 -0400]
At [16/May/2010:21:01:38 -0400]

At [17/May/2010:01:12:42 -0400]
At [17/May/2010:17:03:47 -0400]
At [17/May/2010:19:05:15 -0400]
At [17/May/2010:21:02:33 -0400]

At [18/May/2010:00:25:02 -0400]
At [18/May/2010:01:07:30 -0400]
At [18/May/2010:03:04:49 -0400]
At [18/May/2010:05:02:08 -0400]
At [18/May/2010:07:16:08 -0400]
Reply With Quote
  #13  
Old 05-18-2010, 03:40 PM
mistwang mistwang is offline
LiteSpeed Staff
 
Join Date: May 2003
Location: New Jersey
Posts: 7,583
Signal 9 will cause much bigger problem than signal 15, and it is the biggest headache for us. We will try to figure something out from cPanel's Apache restart script/binary. Hopefully, we can figure out a satisfactory solution soon.
Reply With Quote
  #14  
Old 05-18-2010, 09:48 PM
aww aww is offline
Senior Member
 
Join Date: May 2007
Posts: 237
Should we be complaining to cpanel?

After all, they should allow the (smooth) support of 3rd party replacements for Apache.
Reply With Quote
  #15  
Old 05-19-2010, 08:22 AM
mistwang mistwang is offline
LiteSpeed Staff
 
Join Date: May 2003
Location: New Jersey
Posts: 7,583
Let us try to make it work better first.
We got complains from cPanel manager that their support department got too much support requests related to LiteSpeed, that's why we have to add a disclaimer every where stating that we are responsible for LiteSpeed related support issues.
Reply With Quote
  #16  
Old 05-19-2010, 09:00 AM
Tony Tony is offline
Senior Member
 
Join Date: Dec 2008
Posts: 133
Quote:
Originally Posted by aww View Post
Should we be complaining to cpanel?

After all, they should allow the (smooth) support of 3rd party replacements for Apache.

Well I gave cpanel a piece of my mind on the logic they're using. Unfortunately talking to them is useless you're talking to a developer is getting you nowhere.

This file:

/usr/local/cpanel/Cpanel/HttpUtils/ApRestart.pm

It's quite a gem Line 358 and onward.

They use a regex against httpd processes ran by root or nobody.

That's how it determines pid's which if you do say "vim httpd" then leave it open for most of the day I imagine you'll get hit by a signal 9 eventually.

Now this logic is not new it's been there for quite a while. What is new is them trying to address httpd processes that do not die on Apache restarts. So now they're getting anything httpd in the cross fire. There is more logic in why it does it and it thinks lsws is not restarting sometimes I imagine.

So I guess someone could complain to them saying I run a script called httpd and cPanel issues kill 9 at it all the time. Then maybe they might re-think how they determine the pid's of Apache.
__________________
Hawk Host
Frog Host
Reply With Quote
  #17  
Old 05-19-2010, 09:54 AM
mistwang mistwang is offline
LiteSpeed Staff
 
Join Date: May 2003
Location: New Jersey
Posts: 7,583
We have to make cPanel believe our lscgid is Apache httpd, in most case, only lscgid got killed, it is a small sacrifice to give, otherwise, cPanel will start killing any process owning port 80!

that's the reason why sometimes cPanel send signal 9 and 15 to lshttpd, we have to find a way to improve our httpd simulation code to satisfy cPanel 100% of time to avoid lshttpd being killed.
Reply With Quote
  #18  
Old 05-19-2010, 04:25 PM
mistwang mistwang is offline
LiteSpeed Staff
 
Join Date: May 2003
Location: New Jersey
Posts: 7,583
Quote:
This file:

/usr/local/cpanel/Cpanel/HttpUtils/ApRestart.pm
Go through the code, looks like that as long as we make _check_ap_restart() function happy, we are good.

Looks like this script is only for restart/graceful-restart, maybe there is another piece of code for forced stop, start sequence?
Reply With Quote
  #19  
Old 05-19-2010, 05:55 PM
Tony Tony is offline
Senior Member
 
Join Date: Dec 2008
Posts: 133
Quote:
Originally Posted by mistwang View Post
Go through the code, looks like that as long as we make _check_ap_restart() function happy, we are good.

Looks like this script is only for restart/graceful-restart, maybe there is another piece of code for forced stop, start sequence?
That would appear to be the logical location for it all to start in. Although I'm sure the safeapacherestart binary has a lot of interesting aspects in it. As there is a log file /usr/local/cpanel/logs/safeapacherestart_log which only some of the log writing from ApRestart.pm others are not from it.

I think it's pretty safe to assume though it thinks lsws is not always gracefully restarting. I wish I knew why though my best guess is when multiple restarts are issued around the same time it's probably happening. As doing things that are restart heavy seem to cause it the most issues. So doing account restores in cPanel cause them in a lot of cases but normal usage you might see one every few days.
__________________
Hawk Host
Frog Host
Reply With Quote
  #20  
Old 05-28-2010, 06:22 AM
aww aww is offline
Senior Member
 
Join Date: May 2007
Posts: 237
Default [Resolved]

Any progress on this?

Every few days litespeed fails to restart entirely because of this and the web server is left dead.

Last edited by NiteWave; 06-14-2010 at 03:35 AM..
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -7. The time now is 07:32 PM.



- Archive - Top
© Copyright 2003-2011 LiteSpeed Technologies, Inc. All rights reserved. Privacy Policy.