LSWS fails to start after installation (no error logs)

thbar

Active Member
#1
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:

Code:
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:

Code:
[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:

Code:
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
 
Last edited:

thbar

Active Member
#3
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:

Code:
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
 
Last edited:

mistwang

LiteSpeed Staff
#4
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

Active Member
#5
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:

Code:
readlink("/home", 0x08044501, 4094)             Err#22 EINVAL
xstat(2, "/home/[B]mydomain.comlsws[/B]/", 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 ?
 

thbar

Active Member
#7
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):

Code:
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...
 

thbar

Active Member
#9
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
 
Top