Capistrano 2.3 causes LS to core dump on cap restart

subBlue

Active Member
#1
Since upgrading to the latest capistrano we're finding everytime we call:
Code:
sudo "/usr/local/lsws/bin/lswsctrl restart"
in out cap restart task that we get the email saying:

Code:
web server with pid=5712 received unexpected signal=6, a core file is created. A new instance of web server will be started automatically!
Server: LiteSpeed/3.3.11 Enterprise
OS: Linux
Release: 2.6.18-53.1.14.el5
Version: #1 SMP Wed Mar 5 11:37:38 EST 2008
Machine: x86_64
One thing that has changed in the new Capistrano release is that the actual command called is:
Code:
sudo /bin/sh -c /usr/local/lsws/bin/lswsctrl restart
Previously it didn't use the /bin/sh -c command IFAIK

Any ideas?
 

mistwang

LiteSpeed Staff
#2
You can try the same command from command line see what happen. then try
"sudo /usr/local/lsws/bin/lswsctrl restart"

If there is a core file under /tmp/lshttpd, please check it with GDB.

gdb lshttpd core_file

bt
 
Top