PDA

View Full Version : LSWS fails to start after installation (no error logs)


thbar
12-01-2007, 06:58 AM
Hi,

I'm trying to deploy LSWS 3.3.1 (package: http://www.litespeedtech.com/packages/3.0/lsws-3.3.1-std-i386-solaris.tar.gz) on Solaris (Joyent Accelerator M to be accurate). To give it a try on Solaris (I have never installed LSWS on this OS), I use a test account (not root). The installation goes smoothly until the installer try to start LSWS:

Would you like to start it right now [Y/n]? Y
[ERROR] Failed to start lshttpd!
[ERROR] Failed to start the web server. For trouble shooting information,
please refer to documents in "/home/myuser/lsws/docs/".


I have checked the troubleshootings steps (including write access to /tmp/lshttpd, presence of error log etc) and noticed that there is no file at all under lsws/logs.

Subsequent calls to lswsctrl start will lead to one line of output:

[ERROR] Failed to start lshttpd!

Do you have any idea how to diagnose the issue ?

My first idea is that my platform may be incompatible with the build. Here's the showrev output:

Release: 5.11
Kernel architecture: i86pc
Application architecture: i386
Hardware provider:
Domain:
Kernel version: SunOS 5.11 snv_62

any idea ? I hope I can find a way to install LSWS!

best regards and thanks

Thibaut

mistwang
12-02-2007, 11:49 AM
Maybe related to this problem.

http://www.litespeedtech.com/support/forum/showthread.php?t=1061

Please try "truss ./lshttpd"

thbar
12-02-2007, 12:50 PM
I just ran truss - I send you the whole output using a private message, as I'm not sure it could contain sensitive information or not.

EDIT: could not send the whole output, too big for PM

Here's the end of the output:


xstat(2, "/opt/lsws/lshttpd/", 0x08045630) Err#2 ENOENT
xstat(2, "/usr/lsws/", 0x08045630) Err#2 ENOENT
xstat(2, "/usr/lsws/lshttpd/", 0x08045630) Err#2 ENOENT
xstat(2, "/var/lsws/", 0x08045630) Err#2 ENOENT
xstat(2, "/var/lsws/lshttpd/", 0x08045630) Err#2 ENOENT
xstat(2, "/home/lsws/", 0x08045630) Err#2 ENOENT
xstat(2, "/home/lsws/lshttpd/", 0x08045630) Err#2 ENOENT
xstat(2, "/usr/share/lsws/", 0x08045630) Err#2 ENOENT
xstat(2, "/usr/share/lsws/lshttpd/", 0x08045630) Err#2 ENOENT
xstat(2, "/usr/local/share/lsws/", 0x08045630) Err#2 ENOENT
xstat(2, "/usr/local/share/lsws/lshttpd/", 0x08045630) Err#2 ENOENT
fstat64(2, 0x08044C10) = 0
write(2, "\0\0\0\0\0\0\0\0\0\0\0\0".., 18445956) Err#14 EFAULT
mmap(0x00000000, 4096, PROT_READ|PROT_WRITE|PROT_EXEC, MAP_PRIVATE|MAP_ANON, -1, 0) = 0xFECA0000
munmap(0xFECA0000, 4096) = 0
_exit(1)


I don't understand the exit reason though, I'll have to google more. Can I otherwise help in any way ?

best

Thibaut

mistwang
12-02-2007, 12:53 PM
If you install LSWS to your home directory, you need to have LSWS run as your user account. looks like it is a directory permission problem. lshttpd cannot locate the installation directory.

thbar
12-02-2007, 01:05 PM
I untared the package to /home/mydomain.com/test-lsws/lsws-3.3.1, and choose to install it to /home/mydomain.com/lsws. Both folders are accessible by the user mydomain.com, and I run lswsctrl from the command line, as mydomain.com.

After verifying this, I went back to the truss output, and noticed this:


readlink("/home", 0x08044501, 4094) Err#22 EINVAL
xstat(2, "/home/mydomain.comlsws/", 0x08045630) Err#2 ENOENT
xstat(2, "/home/mydomain.comlsws/lshttpd/", 0x08045630) Err#2 ENOENT


Isn't there a missing slash between mydomain.com and lsws ? Could it be some string concatenation which lead to an erroneous path ?

mistwang
12-02-2007, 01:35 PM
That's could be the problem. please try set LSWS_HOME envrionment variable to /home/mydomain.com/lsws/ , see if help.

thbar
12-02-2007, 01:52 PM
That's could be the problem. please try set LSWS_HOME envrionment variable to /home/mydomain.com/lsws/ , see if help.

Done. I still get a failure. The new truss output is slightly different (here's the affected part):


readlink("/home", 0x080444D1, 4094) Err#22 EINVAL
getcwd("/home/mydomain.com/lsws/bin", 512) = 0
xstat(2, "/home/mydomain.com/lsws/", 0x08045860) = 0
access("/home/mydomain.com/lsws/conf/httpd_config.xml", R_OK) = 0
readlink("/home", 0x080444D1, 4094) Err#22 EINVAL
xstat(2, "/home/mydomain.comlsws/", 0x08045600) Err#2 ENOENT


I understand that LSWS manages to find its config file here, but then for some reason it keeps on looking at other folders, then it exit...

mistwang
12-02-2007, 02:59 PM
We will take a look at it tomorrow.

thbar
12-02-2007, 03:06 PM
Thanks ! Please note there is nothing urgent here, and don't hesitate to drop a line here if you need it and think I can help in any way (tests on my server, etc.)

I'm going to read more about Solaris before going root as well.

cheers

Thibaut

mistwang
12-04-2007, 02:22 PM
This is caused by a bug in Solaris earlier than build 67, reference:
http://www.opensolaris.org/jive/thread.jspa?messageID=129976

either upgrade Solaris or have to use our enterprise release build for x86_64 on Solaris 10.

thbar
12-05-2007, 12:47 AM
Hi George,

thanks for your reply. I'll see if I can upgrade my Solaris container first.

best,

Thibaut