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

Go Back   LiteSpeed Support Forums > External Applications > Ruby/Rails > Index file not found?

Reply
 
Thread Tools Display Modes
  #1  
Old 09-09-2006, 08:25 PM
alaithea alaithea is offline
New Member
 
Join Date: May 2006
Posts: 8
Default Index file not found?

I can run my application via mongrel, but when I try to get it running through LiteSpeed via the EasyRailsWithSuExec template (instantiated so I can change the vhost directory to work with a Capistrano-ized setup), I get this error in the log when I try to access my app.

[24.22.57.11:53249-0#gallery4222] Index file is not available in [/home/alison/sites/gallery4222/releases/20060626060409/public/]

Any ideas?
Reply With Quote
  #2  
Old 09-09-2006, 11:05 PM
xing xing is offline
LiteSpeed Staff
 
Join Date: Oct 2003
Location: Los Angeles, California
Posts: 380
This normal behavior. The easy rails config is using 404 internally. It will look for the requested file in the public folder and if not found, route request to ruby. This way, litespeed can intercept/offload any static content created in public folder.

The "file not found" for rails are [info] level log type. You can change your server level error logging from [info] to [notice] and you won't see those 404 messages.
Reply With Quote
  #3  
Old 09-10-2006, 12:19 AM
alaithea alaithea is offline
New Member
 
Join Date: May 2006
Posts: 8
But my application won't run. When I try and load it through the browser, it waits for a while and then returns a 503 Service Unavailable error. I'm not sure how to debug this, since things work fine if I run the app with mongrel, and LiteSpeed isn't telling me anything's wrong with my setup. My app logs are also not registering any requests coming in through LiteSpeed. My /public directory is owned by LiteSpeed's user.
Reply With Quote
  #4  
Old 09-10-2006, 05:31 PM
mistwang mistwang is offline
LiteSpeed Staff
 
Join Date: May 2003
Location: New Jersey
Posts: 7,585
Please check lsws/logs/error.log and lsws/logs/stderr.log, shoud be some clue there.
My guess is the process limit has been set too low.
Reply With Quote
  #5  
Old 09-10-2006, 09:18 PM
alaithea alaithea is offline
New Member
 
Join Date: May 2006
Posts: 8
Thanks for the reminder about the error logs. (It'd be nice to be able to access them from the web interface -- is there a way?)

Turns out that when I updated my RailsRunner.rb as was suggested in some other threads, a typo got into it. Fixed the typo, and my app is running great!

Thanks again.
Reply With Quote
  #6  
Old 09-20-2006, 12:48 PM
amalik amalik is offline
Member
 
Join Date: Aug 2006
Posts: 18
Quote:
Originally Posted by alaithea View Post
Thanks for the reminder about the error logs. (It'd be nice to be able to access them from the web interface -- is there a way?)

Turns out that when I updated my RailsRunner.rb as was suggested in some other threads, a typo got into it. Fixed the typo, and my app is running great!

Thanks again.
alaithea, I used this method:
  • click on Server configuraton button from "home"
  • Click on the "Server" tab handle on the left hand side (it is already selected actually)
  • the "General" tab should be already selected. scroll down about half way and you'll see the Server Log and Error Log sections. Click on "Edit" for the section you want to change and you're golden.

here is the link (set localhost to the actual host : port in the uri below:
Code:
http://127.0.0.1:7080/admin/config/confMgr.php?m=serv&p=general&t=SERV_ACLOG&a=e
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
Uploading files / tmp file creation BuhBompus PHP 10 12-07-2006 08:49 AM
Problem installing LiteSpeed 2.2.1 Standard on UNIX perezsy Install/Configuration 17 09-22-2006 09:53 AM
Random 404s matt Bug Reports 28 12-29-2005 01:19 AM
Parsing of index file and PHP_SELF chief Bug Reports 1 10-09-2005 04:30 PM
Generating the user password file for .htaccess usage... dnebing Install/Configuration 2 03-15-2004 09:52 AM


All times are GMT -7. The time now is 05:47 AM.



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