LSWS and cPanel 11.25 disaster

ffeingol

Well-Known Member
#1
At lest on our servers there seems to be a major issue between LSWS and the 11.25 version of cPanel. cPanel is restarting LSWS as often as every 15 minutes. This is turning into a major issue. When cPanel issues these restarts (as many as 3 times in a very short time span) LSWS sometimes fails to restart. From what we can see in the logs it looks like the LSWS admin has not released the port and then the new one dies.

In digging through /usr/local/cpanel/logs/stats_log it looks like the cPanel log process is parsing for something and not liking what it finds. We see things like:

[Thu Jan 14 20:43:04 2010] [notice] Apache/#.#.# (Unix) configured -- resuming normal operations[2010-01-14 20:43:15 -0600] safeapacherestart exited with value 1
[2010-01-14 20:43:16 -0600] [sepxferlog]
[2010-01-14 20:43:16 -0600] [sepxferlog] complete
==> Loaded RRDs: version #.####
[2010-01-14 20:51:36 -0600] Processing bandwidth.
==> Loaded RRDs: version #.####
Apache restarted, but pid file does not match process list pids.
safeapacherestart is a binay, so we can't see what it's doing.

Any help / thoughts from the LSWS staff would be appreciated. Is anyone else running cPanel seeing similar things?
 

ffeingol

Well-Known Member
#3
We're running the latest 3.x. So far we've resisted upgrading to 4.x because it simply did not seem stable. Yes, we are running Apache to handle SSI.
 

ffeingol

Well-Known Member
#4
Is no one else having this issue (frequent restarts and LSWS failing to start sometimes) or has everyone else upgraded to 4.x? I'm really interested in hearing from others running LSWS and cPanel.
 

ffeingol

Well-Known Member
#6
Yea, we put the servers on manual update and watched the forums etc. for issues. Nothing popped up, so we upgraded. Then we found out about the issues :D
 

mistwang

LiteSpeed Staff
#7
We run 4.x and also do not run cPanel 11.25 in fear of all the frequent restarts like you're experiencing.
Tony, are you experiencing the same issue with 11.25 ? I thought it was because running Apache parallel to LiteSpeed.
The cPanel box in our lab is 11.25, does not show anything like what Frank posted.
 

ffeingol

Well-Known Member
#9
mistwang,

In your lab are you on Release? Have you updated to 11.25? How many sites etc. are on the server. How often are stats/bandwidth set to run (funny that I'm asking you all these questions).

I'll compare our various boxes with LSWS and see if they are all having similar issues. I believe they all are, however, as we get a LSWS restarted message about every 15 minutes.
 

sux0r

Well-Known Member
#12
Im on cPanel 11.25.0-E42552 - WHM 11.25.0 -
The latest EDGE build and use Litespeed 4.0.12.

I dnt get crashes, but litespeed does restart a little bit often sumtimes.
Very few times do i see the uptime more than 1 hour.
As it restarts gracefully i dnt find it as a problem :)


EDIT:
These are the only things tht shows up regularly on the logs.

2010-01-16 22:25:52.399 ERROR [config] rewrite: unknown server variable while parsing: XML:/*
2010-01-16 22:25:52.400 WARN /usr/local/apache/conf/httpd.conf:127: Directive 'TypesConfig' is not allowed in current context.
 

mistwang

LiteSpeed Staff
#13
We fixed the TypesConfig issue and add tuned the Apache to LSWS adapter script a little in the updated 4.0.12 release package. You can login to LSWS admin console client "force reinstall" to update it under version management page.
 

sux0r

Well-Known Member
#14
Tried to force an update from the admin console and got the error.

"Error: Failed to download release 4.0.12!"

~THanks :)

EDIT:
I found in error_log

2010-01-18 02:14:37.201 [NOTICE] [123.231.99.122:61375-3#_AdminVHost] [STDERR] PHP Warning: file_get_contents() [<a href='function.file-get-contents'>function.file-get-contents</a>]: URL file-access is disabled in the server configuration in /usr/local/lsws/admin/html.4.0.12/classes/ws/Service.php on line 537

2010-01-18 02:14:37.201 [NOTICE] [123.231.99.122:61375-3#_AdminVHost] [STDERR] PHP Warning: file_get_contents(http://download.litespeedtech.com/packages/latest/lsws-4.0.12-ent-i386-linux.tar.gz) [<a href='function.file-get-contents'>function.file-get-contents</a>]: failed to open stream: no suitable wrapper could be found in /usr/local/lsws/admin/html.4.0.12/classes/ws/Service.php on line 537
 
Last edited:

mistwang

LiteSpeed Staff
#17
after the change, you need to do "killall admin_php" to apply the change in php.ini .
If you need get it, you need to download and upgrade manually, should be addressed in the latest build.
 
Top