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

Go Back   LiteSpeed Support Forums > LiteSpeed Web Server > Bug Reports > 4.1.12 broken

Reply
 
Thread Tools Display Modes
  #11  
Old 04-19-2012, 07:58 PM
raphidae raphidae is offline
Senior Member
 
Join Date: Apr 2008
Posts: 59
Quote:
Originally Posted by webizen View Post
not seen /tmp/secret/lscgid.sock file in our lab following your upgrade path (4.1.10 -> 4.1.12 -> 4.1.11). try full stop/start and see if that clears.
That doesn't help.

I'm venturing a guess that only the location of the file is weird then, since the stderr.log entries specifically refer to it. also my other servers have the file as well, but instead of in /tmp it's somewhere below /usr/local/lsws/admin.

can you explain the purpose of this file please? without knowing what it's for I cannot assess required security, and the whole 'secret' part makes me think it has to do with (internal) password/key exchange or the like and then it would need to be secure.

Not knowing the purpose of a 'secret' file makes me nervous, especially since lsws is proprietary software.

Also, id like to note that I pay (substantially) for support, but that I rather receive it here, on the forums -where it might benefit others later- instead of in private email. Please send me a message if you need confirmation of my support contracts. Thanks.

Last edited by raphidae; 04-19-2012 at 08:25 PM..
Reply With Quote
  #12  
Old 04-19-2012, 08:21 PM
raphidae raphidae is offline
Senior Member
 
Join Date: Apr 2008
Posts: 59
Quote:
Originally Posted by priestjim View Post
I get extremely high loads on 4.1.12. The error log says:

2012-04-10 13:15:44.416 [WARN] Remove looping fd: 50, event: 1
2012-04-10 13:15:44.465 [WARN] Remove looping fd: 797, event: 1
[snip]
And strace-ing the litespeed process gives out A LOT of:

mincore(0x7ff7b9ac5000, 443819, 0x7fffc0296aa0) = -1 ENOMEM (Cannot allocate memory)
Respectfully: please don't hijack my thread, your issue does not seem related and is better placed in it's own thread.
Reply With Quote
  #13  
Old 04-23-2012, 10:42 AM
bloodyman bloodyman is offline
New Member
 
Join Date: Mar 2012
Posts: 9
Please tell me when 4.1.12 will became available without errors in Autoupdate?
Reply With Quote
  #14  
Old 04-24-2012, 10:42 AM
webizen webizen is offline
LiteSpeed Staff
 
Join Date: Oct 2010
Posts: 2,338
Quote:
Originally Posted by bloodyman View Post
Please tell me when 4.1.12 will became available without errors in Autoupdate?
later this week if no more issues reported.
Reply With Quote
  #15  
Old 04-27-2012, 04:59 PM
webizen webizen is offline
LiteSpeed Staff
 
Join Date: Oct 2010
Posts: 2,338
Quote:
Originally Posted by raphidae View Post
I upgraded a server from 4.1.10 to 4.1.12 today and it completely broke php and the web console.

All php scripts result in 503, as does accessing the web console.

there are numerous unhelpful errors in stderr.log:


and some more in my admin error log:



Reverting to 4.1.10 solved all problems instantly.

Additionally, since upgrading I've noticed a new file: /tmp/secret/lscgid.sock

I can't find any references to this file in any of the config files, so I'm unsure of the purpose. Other servers that still run 4.1.10 don't have this file.

I tried deleting it, but that results in:



Reverting back to 4.1.10 did not remove the need for this file for some reason.
4.1.12 is ready. Please do force reinstall.
Reply With Quote
  #16  
Old 04-27-2012, 05:09 PM
webizen webizen is offline
LiteSpeed Staff
 
Join Date: Oct 2010
Posts: 2,338
Quote:
Originally Posted by raphidae View Post
...
can you explain the purpose of this file please? without knowing what it's for I cannot assess required security, and the whole 'secret' part makes me think it has to do with (internal) password/key exchange or the like and then it would need to be secure.

Not knowing the purpose of a 'secret' file makes me nervous, especially since lsws is proprietary software.

...
the "/usr/local/lsws/admin/cgid/secret" folder (not file) is for internal secure communication (lscgid.sock) of admin console. only root user has access to it.

Quote:
drwx------ 2 root wheel 512 Apr 27 19:43 secret
Reply With Quote
  #17  
Old 05-05-2012, 04:56 PM
raphidae raphidae is offline
Senior Member
 
Join Date: Apr 2008
Posts: 59
Quote:
Originally Posted by webizen View Post
4.1.12 is ready. Please do force reinstall.
Obviously you did not test this, since it doesn't work from the session manager:

Error: Failed to download release 4.1.12! Please try upgrade manually.

Quote:
2012-05-06 01:45:25.305 [NOTICE] [xx.xx.172.93:49481-1#_AdminVHost] [STDERR] PHP Warning: file_get_contents(http://download.litespeedtech.com/pa...freebsd.tar.gz) [<a href='function.file-get-contents'>function.file-get-contents</a>]: failed to open stream: HTTP request failed! HTTP/1.0 404 Not Found
in /usr/local/lsws/admin/html.4.1.12/classes/ws/Service.php on line 607
I tried upgrading manually, but this doesn't completely fix the problem. There's still an intermittent problem with php throwing 503's, around 1 in 10. Version of PHP doesn't matter, and even reverting to 4.1.10 doesn't fix it.

4.1.12 seems to have permanently broken something, possibly related to the weird location of the secret dir, which is in /tmp/:

Quote:
[root@virasena /tmp/secret]# ls -la
total 26
drwx------ 2 root wheel 512 May 6 01:54 .
drwxrwxrwt 10 root wheel 21504 May 6 01:54 ..
-rw------- 1 root wheel 16 May 6 01:54 lscgid.sock.305
Code:
2012-05-06 01:56:50.381 [NOTICE] Loading LiteSpeed/4.1.12 Enterprise ...
2012-05-06 01:56:50.382 [NOTICE] [ADMIN] server socket: uds://usr/local/lsws/admin/tmp/admin.sock.7144
2012-05-06 01:56:50.383 [NOTICE] Loading configuration from /usr/local/lsws/conf/httpd_config.xml ...
2012-05-06 01:56:50.384 [NOTICE] [config] chroot is disabled.
2012-05-06 01:56:50.385 [INFO] old priority: 0, new priority: 0
2012-05-06 01:56:50.385 [INFO] [config:server:basic] For better obscurity, server version number is hidden in the response header.
2012-05-06 01:56:50.387 [NOTICE] [PID: 25237]: start cgid: 25241, /usr/local/lsws/bin/httpd
2012-05-06 01:56:50.389 [NOTICE] The maximum number of file descriptor limit is set to 115891.
2012-05-06 01:56:50.412 [NOTICE] litespeed (25237) is ready
2012-05-06 01:56:50.412 [NOTICE] [AutoRestarter] new child process with pid=25243 is forked!
2012-05-06 01:56:50.413 [NOTICE] [AutoRestarter] new child process with pid=25244 is forked!
2012-05-06 01:56:50.413 [NOTICE] [AutoRestarter] new child process with pid=25245 is forked!
2012-05-06 01:56:50.414 [INFO] Stop listener 217.195.117.160:280.
2012-05-06 01:56:50.414 [NOTICE] [AutoRestarter] new child process with pid=25246 is forked!
2012-05-06 01:56:50.414 [NOTICE] Core dump is enabled.
2012-05-06 01:56:50.414 [NOTICE] [child: 25243] Successfully change current user to www
2012-05-06 01:56:50.414 [INFO] Stop listener 217.195.117.160:280.
2012-05-06 01:56:50.414 [NOTICE] Core dump is enabled.
2012-05-06 01:56:50.414 [NOTICE] [child: 25244] Successfully change current user to www
2012-05-06 01:56:50.414 [NOTICE] [Child: 25243] Setup swapping space...
2012-05-06 01:56:50.414 [INFO] Stop listener 217.195.117.160:280.
2012-05-06 01:56:50.414 [NOTICE] Core dump is enabled.
2012-05-06 01:56:50.414 [NOTICE] [child: 25245] Successfully change current user to www
2012-05-06 01:56:50.415 [NOTICE] [Child: 25243] LiteSpeed/4.1.12 Enterprise starts successfully!
2012-05-06 01:56:50.415 [NOTICE] [Child: 25244] Setup swapping space...
2012-05-06 01:56:50.415 [NOTICE] [Child: 25245] Setup swapping space...
2012-05-06 01:56:50.415 [NOTICE] [Child: 25244] LiteSpeed/4.1.12 Enterprise starts successfully!
2012-05-06 01:56:50.415 [NOTICE] Core dump is enabled.
2012-05-06 01:56:50.415 [NOTICE] [child: 25246] Successfully change current user to www
2012-05-06 01:56:50.415 [NOTICE] [Child: 25245] LiteSpeed/4.1.12 Enterprise starts successfully!
2012-05-06 01:56:50.415 [NOTICE] [Child: 25246] Setup swapping space...
2012-05-06 01:56:50.415 [NOTICE] [Child: 25246] LiteSpeed/4.1.12 Enterprise starts successfully!
2012-05-06 01:56:51.448 [NOTICE] [AutoUpdate] Checking for new releases..., pid=25247
2012-05-06 01:56:51.457 [NOTICE] Start to clean up cache directory, pid=25248
2012-05-06 01:56:51.775 [INFO] [AutoUpdate] No new update.
2012-05-06 01:56:54.127 [INFO] [uds://tmp/lsphp5-ra.phid.ae.sock] Connection refused, restart!
2012-05-06 01:56:54.128 [NOTICE] Graceful stop process group lead by pid: 25308
2012-05-06 01:56:54.143 [INFO] [uds://tmp/lsphp5-ra.phid.ae.sock] Connection refused, restart!
2012-05-06 01:56:54.143 [NOTICE] Graceful stop process group lead by pid: 25310
2012-05-06 01:56:54.149 [INFO] [uds://tmp/lsphp5-ra.phid.ae.sock] Connection refused, restart!
2012-05-06 01:56:54.152 [INFO] [uds://tmp/lsphp5-ra.phid.ae.sock] Connection refused, restart!
2012-05-06 01:56:54.152 [INFO] [uds://tmp/lsphp5-ra.phid.ae.sock] Connection refused, restart!
2012-05-06 01:56:54.152 [NOTICE] [xx.xx.172.93:49846-0#ra.phid.ae] Max retries has been reached, 503!
2012-05-06 01:56:54.152 [NOTICE] [xx.xx.172.93:49846-0#ra.phid.ae] oops! 503 Service Unavailable
2012-05-06 01:56:54.152 [NOTICE] [xx.xx.172.93:49846-0#ra.phid.ae] Content len: 0, Request line: 'GET /gallery/d/4992-9/08-10-31.jpg HTTP/1.1'
2012-05-06 01:56:54.152 [NOTICE] [xx.xx.172.93:49846-0#ra.phid.ae] Redirect: #1, URL: /gallery/main.php
2012-05-06 01:56:54.725 [INFO] [uds://tmp/lsphp5-ra.phid.ae.sock] Connection refused, restart!
2012-05-06 01:56:54.725 [INFO] [uds://tmp/lsphp5-ra.phid.ae.sock] Connection refused, restart!
2012-05-06 01:56:54.725 [INFO] [uds://tmp/lsphp5-ra.phid.ae.sock] Connection refused, restart!
2012-05-06 01:56:54.725 [NOTICE] [xx.xx.172.93:49867-0#ra.phid.ae] Max retries has been reached, 503!
2012-05-06 01:56:54.725 [NOTICE] [xx.xx.172.93:49867-0#ra.phid.ae] oops! 503 Service Unavailable
2012-05-06 01:56:54.725 [NOTICE] [xx.xx.172.93:49867-0#ra.phid.ae] Content len: 0, Request line: 'GET /gallery/v/party2k8/ HTTP/1.1'
2012-05-06 01:56:54.725 [NOTICE] [xx.xx.172.93:49867-0#ra.phid.ae] Redirect: #1, URL: /gallery/main.php
2012-05-06 01:57:00.097 [NOTICE] All pending requests are finished, stop process group lead by pid: 25310
2012-05-06 01:57:00.098 [NOTICE] All pending requests are finished, stop process group lead by pid: 25308
2012-05-06 01:57:00.248 [INFO] [CLEANUP] Clean up child process with pid: 25308
2012-05-06 01:57:00.352 [INFO] [CLEANUP] Clean up child process with pid: 25310
in stderr.log:

Code:
2012-05-06 02:02:48.057 [STDERR] lscgid: recv_fd() failed: Unknown error: 0
2012-05-06 02:05:15.468 [STDERR] No $home variable set.
2012-05-06 02:05:15.469 [STDERR] "~/.mailrc": No match.
2012-05-06 02:10:15.470 [STDERR] No $home variable set.
2012-05-06 02:10:15.470 [STDERR] "~/.mailrc": No match.

Last edited by raphidae; 05-05-2012 at 05:13 PM..
Reply With Quote
  #18  
Old 05-05-2012, 05:24 PM
raphidae raphidae is offline
Senior Member
 
Join Date: Apr 2008
Posts: 59
OK so I thought it'd be a good idea to start over from scratch.

-moved /usr/local/lsws to /usr/local/lsws.old

-reinstalled 4.1.12

-webadmin is completely broken

Code:
2012-05-06 02:19:54.520 [NOTICE] Free software update of your owned license will expire in 39 days.
2012-05-06 02:19:54.520 [NOTICE] Loading LiteSpeed/4.1.12 Enterprise ...
2012-05-06 02:19:54.522 [NOTICE] [ADMIN] server socket: uds://usr/local/lsws/admin/tmp/admin.sock.7032
2012-05-06 02:19:54.522 [NOTICE] Loading configuration from /usr/local/lsws/conf/httpd_config.xml ...
2012-05-06 02:19:54.524 [NOTICE] [config] chroot is disabled.
2012-05-06 02:19:54.524 [INFO] old priority: 0, new priority: -19
2012-05-06 02:19:54.524 [INFO] [config:server:basic] For better obscurity, server version number is hidden in the response header.
2012-05-06 02:19:54.527 [NOTICE] [PID: 28015]: start cgid: 28019, /usr/local/lsws/bin/httpd
2012-05-06 02:19:54.528 [NOTICE] The maximum number of file descriptor limit is set to 115891.
2012-05-06 02:19:54.532 [NOTICE] litespeed (28015) is ready
2012-05-06 02:19:54.532 [NOTICE] [AutoRestarter] new child process with pid=28021 is forked!
2012-05-06 02:19:54.533 [NOTICE] [AutoRestarter] new child process with pid=28022 is forked!
2012-05-06 02:19:54.533 [NOTICE] [AutoRestarter] new child process with pid=28023 is forked!
2012-05-06 02:19:54.533 [INFO] Stop listener *:280.
2012-05-06 02:19:54.533 [NOTICE] Core dump is enabled.
2012-05-06 02:19:54.534 [NOTICE] [child: 28021] Successfully change current user to www
2012-05-06 02:19:54.533 [NOTICE] [AutoRestarter] new child process with pid=28024 is forked!
2012-05-06 02:19:54.534 [NOTICE] Core dump is enabled.
2012-05-06 02:19:54.534 [NOTICE] [child: 28022] Successfully change current user to www
2012-05-06 02:19:54.534 [INFO] Stop listener *:280.
2012-05-06 02:19:54.534 [NOTICE] Core dump is enabled.
2012-05-06 02:19:54.534 [NOTICE] [child: 28023] Successfully change current user to www
2012-05-06 02:19:54.534 [INFO] Stop listener *:280.
2012-05-06 02:19:54.534 [NOTICE] Core dump is enabled.
2012-05-06 02:19:54.534 [NOTICE] [child: 28024] Successfully change current user to www
2012-05-06 02:19:54.545 [NOTICE] [AutoRestarter] cleanup children processes and unix sockets of process with pid=28023 !
2012-05-06 02:19:54.545 [NOTICE] [AutoRestarter] child process with pid=28023 exited with status=1!
2012-05-06 02:19:54.545 [NOTICE] [AutoRestarter] cleanup children processes and unix sockets of process with pid=28022 !
2012-05-06 02:19:54.545 [NOTICE] [AutoRestarter] child process with pid=28022 exited with status=1!
2012-05-06 02:19:54.545 [NOTICE] [AutoRestarter] cleanup children processes and unix sockets of process with pid=28024 !
2012-05-06 02:19:54.649 [NOTICE] [AutoRestarter] child process with pid=28024 exited with status=1!
2012-05-06 02:19:54.649 [NOTICE] [AutoRestarter] cleanup children processes and unix sockets of process with pid=28021 !
2012-05-06 02:19:54.754 [NOTICE] [AutoRestarter] child process with pid=28021 exited with status=1!
2012-05-06 02:19:54.755 [NOTICE] [AutoRestarter] new child process with pid=28025 is forked!
2012-05-06 02:19:54.755 [NOTICE] [AutoRestarter] new child process with pid=28026 is forked!
2012-05-06 02:19:54.756 [NOTICE] [AutoRestarter] new child process with pid=28027 is forked!
2012-05-06 02:19:54.756 [INFO] Stop listener *:280.
2012-05-06 02:19:54.756 [NOTICE] Core dump is enabled.
2012-05-06 02:19:54.756 [NOTICE] [child: 28025] Successfully change current user to www
2012-05-06 02:19:54.756 [NOTICE] [AutoRestarter] new child process with pid=28028 is forked!
2012-05-06 02:19:54.756 [NOTICE] Core dump is enabled.
2012-05-06 02:19:54.756 [NOTICE] [child: 28026] Successfully change current user to www
2012-05-06 02:19:54.756 [INFO] Stop listener *:280.
2012-05-06 02:19:54.757 [NOTICE] Core dump is enabled.
2012-05-06 02:19:54.757 [NOTICE] [child: 28027] Successfully change current user to www
2012-05-06 02:19:54.757 [INFO] Stop listener *:280.
2012-05-06 02:19:54.757 [NOTICE] Core dump is enabled.
2012-05-06 02:19:54.757 [NOTICE] [child: 28028] Successfully change current user to www
2012-05-06 02:19:54.758 [NOTICE] [AutoRestarter] cleanup children processes and unix sockets of process with pid=28025 !
2012-05-06 02:19:54.759 [NOTICE] [AutoRestarter] child process with pid=28025 exited with status=1!
2012-05-06 02:19:54.759 [NOTICE] [AutoRestarter] cleanup children processes and unix sockets of process with pid=28026 !
2012-05-06 02:19:54.759 [NOTICE] [AutoRestarter] child process with pid=28026 exited with status=1!
2012-05-06 02:19:54.759 [NOTICE] [AutoRestarter] cleanup children processes and unix sockets of process with pid=28027 !
2012-05-06 02:19:54.760 [NOTICE] [AutoRestarter] child process with pid=28027 exited with status=1!
2012-05-06 02:19:54.760 [NOTICE] [AutoRestarter] cleanup children processes and unix sockets of process with pid=28028 !
2012-05-06 02:19:54.864 [NOTICE] [AutoRestarter] child process with pid=28028 exited with status=1!
2012-05-06 02:19:54.865 [NOTICE] [AutoRestarter] new child process with pid=28029 is forked!
2012-05-06 02:19:54.866 [NOTICE] [AutoRestarter] new child process with pid=28030 is forked!
2012-05-06 02:19:54.866 [NOTICE] [AutoRestarter] new child process with pid=28031 is forked!
2012-05-06 02:19:54.866 [NOTICE] Core dump is enabled.
2012-05-06 02:19:54.866 [NOTICE] [child: 28029] Successfully change current user to www
2012-05-06 02:19:54.866 [INFO] Stop listener *:280.
2012-05-06 02:19:54.866 [NOTICE] [AutoRestarter] new child process with pid=28032 is forked!
2012-05-06 02:19:54.867 [NOTICE] Core dump is enabled.
2012-05-06 02:19:54.867 [NOTICE] [child: 28030] Successfully change current user to www
2012-05-06 02:19:54.867 [INFO] Stop listener *:280.
2012-05-06 02:19:54.867 [NOTICE] Core dump is enabled.
2012-05-06 02:19:54.867 [NOTICE] [child: 28031] Successfully change current user to www
2012-05-06 02:19:54.867 [INFO] Stop listener *:280.
2012-05-06 02:19:54.867 [NOTICE] Core dump is enabled.
2012-05-06 02:19:54.867 [NOTICE] [child: 28032] Successfully change current user to www
[etc]
2012-05-06 02:20:57.999 [WARN] [AutoRestarter] forking too frequently, suspend for a while!
Reply With Quote
  #19  
Old 05-06-2012, 05:41 AM
raphidae raphidae is offline
Senior Member
 
Join Date: Apr 2008
Posts: 59
I've updated and recompiled everything on the server, kernel, world, ports. Problem is still there. Problem is also there on a clean install + updates of FreeBSD 8.3.

"FreeBSD virasena.mediamonks.net 8.3-STABLE FreeBSD 8.3-STABLE #0: Sun May 6 02:31:53 CEST 2012 terrence@virasena.mediamonks.net:/usr/obj/usr/src/sys/VIRASENA-SMP amd64"

Last edited by raphidae; 05-06-2012 at 06:07 AM..
Reply With Quote
  #20  
Old 05-27-2012, 11:38 AM
raphidae raphidae is offline
Senior Member
 
Join Date: Apr 2008
Posts: 59
Are you working on this or what?
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 09:26 PM.



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