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

Go Back   LiteSpeed Support Forums > External Applications > Ruby/Rails > Rails via Mongrel: Litespeed dies upon restart

Reply
 
Thread Tools Display Modes
  #1  
Old 05-15-2006, 10:59 AM
alaithea alaithea is offline
New Member
 
Join Date: May 2006
Posts: 8
Default Rails via Mongrel: Litespeed dies upon restart

I've tried about ten times now to follow the directions in http://www.railtie.net/articles/2006...speed-of-light, modified to fit the directions at http://weblog.techno-weenie.net/2006...d-with-mongrel. Every time I finish following the directions, the web server dies upon applying the changes and clicking graceful-restart, and can't be brought back up until I reinstall it and go through everything again, at which point it dies once again. I've even tried it with FCGI, just as described in Bob Silva's tutorial.

I have mongrel running fine, as I can access my rails app via one of the ports that mongrel is running on.

If I try to start the server after the inital failure at the command line via
Code:
/opt/lsws/bin/lswsctrl start
I get this error:

Code:
Can't determine the Home of LiteSpeed Web Server, exit!
[ERROR] Failed to start lshttpd!
If I try to start it as sudo, it will tell me it has started, but the process is subsequently nowhere to be found, and if I run the stop script, it tells me it's not running.

The error.log is not very helpful to my eyes:
Code:
2006-05-15 17:35:33.194 [NOTICE] Loading LiteSpeed/2.1.15 Standard ...
2006-05-15 17:35:33.298 [NOTICE] [ADMIN] server socket: 127.0.0.1:7923
2006-05-15 17:35:33.298 [NOTICE] Loading configuration from /opt/lsws/conf/httpd
_config.xml ...
2006-05-15 17:35:33.299 [INFO] old priority: 0, new priority: 0
2006-05-15 17:35:33.299 [INFO] [config:server:basic] For better obscurity, serve
r version number is hidden in the response header.
2006-05-15 17:35:33.302 [NOTICE] The maximum number of file descriptor limit is 
set to 1024.
2006-05-15 17:35:33.305 [NOTICE] [child: 1305] Successfully change current user 
to www-data
2006-05-15 17:35:33.305 [NOTICE] [Child: 1305] Core dump is enabled.
2006-05-15 17:35:33.305 [NOTICE] [Child: 1305] Setup swapping space...
2006-05-15 17:35:33.306 [NOTICE] [AutoRestarter] new child process with pid=1305
 is forked!
2006-05-15 17:35:33.333 [NOTICE] [Child: 1305] LiteSpeed/2.1.15 Standard starts 
successfully!
2006-05-15 17:35:34.002 [NOTICE] [AutoUpdate] Checking for new releases...
2006-05-15 17:35:38.343 [INFO] [AutoUpdate] No new update.
2006-05-15 17:37:09.548 [NOTICE] Server restart request from admin interface!
2006-05-15 17:37:09.553 [NOTICE] [Child: 1305] Start shutting down gracefully ..
.
2006-05-15 17:37:09.553 [INFO] Stop listener *:8088.
Any help you could offer would be greatly appreciated!
Reply With Quote
  #2  
Old 05-15-2006, 02:58 PM
mistwang mistwang is offline
LiteSpeed Staff
 
Join Date: May 2003
Location: New Jersey
Posts: 7,583
What platform are you on?
Reply With Quote
  #3  
Old 05-15-2006, 04:38 PM
alaithea alaithea is offline
New Member
 
Join Date: May 2006
Posts: 8
Linux: Ubuntu 6.06
Reply With Quote
  #4  
Old 05-15-2006, 04:53 PM
mistwang mistwang is offline
LiteSpeed Staff
 
Join Date: May 2003
Location: New Jersey
Posts: 7,583
I think it probably is a permission problem, should not have anything to do with Rails or Mongrel. Can you gracefully restart LSWS from web admin console right after the default installation without making any configuration changes?
Ubuntu disabled root user and uses sudo by default. Which user you were using when you install the server and using the command line script to start stop LSWS?
Reply With Quote
  #5  
Old 05-15-2006, 05:01 PM
alaithea alaithea is offline
New Member
 
Join Date: May 2006
Posts: 8
I've been using sudo to install. I just uninstalled and reinstalled, and a graceful restart (with no configuration) from the web admin worked just fine.

Last edited by alaithea; 05-15-2006 at 05:06 PM..
Reply With Quote
  #6  
Old 05-15-2006, 05:15 PM
mistwang mistwang is offline
LiteSpeed Staff
 
Join Date: May 2003
Location: New Jersey
Posts: 7,583
Good. Thanks.

Please make the configuration change as you wish and send you configuration to bug [at] litespeedtech.com once it stop working, we will try to reproduce the problem.
Reply With Quote
  #7  
Old 05-15-2006, 06:11 PM
mistwang mistwang is offline
LiteSpeed Staff
 
Join Date: May 2003
Location: New Jersey
Posts: 7,583
There is a bug in vhost access logging configuration in release 2.1.15, please change some configuration under access logging section when you add a new vhost. The bug will be fixed in 2.1.16.
Reply With Quote
  #8  
Old 05-16-2006, 09:26 AM
alaithea alaithea is offline
New Member
 
Join Date: May 2006
Posts: 8
What exactly do I need to change?
Reply With Quote
  #9  
Old 05-16-2006, 09:43 AM
mistwang mistwang is offline
LiteSpeed Staff
 
Join Date: May 2003
Location: New Jersey
Posts: 7,583
change anything in access log configuration, like "log useragent" etc.
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

Similar Threads
Thread Thread Starter Forum Replies Last Post
command line restart of individual rails apps instead of webserver? nathanc Ruby/Rails 3 01-16-2008 10:43 AM
Setup for Rails via Litespeed Ruby LSAPI Justin Ruby/Rails 2 12-08-2007 07:19 PM
litespeed plus rails memory usage Shelby Ruby/Rails 1 02-08-2007 05:53 PM
Litespeed dies on restart djsodom Ruby/Rails 1 09-05-2006 08:37 AM
Problems with Rails 1.1 and LiteSpeed marstall Ruby/Rails 2 03-29-2006 03:11 PM


All times are GMT -7. The time now is 08:48 AM.



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