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

Go Back   LiteSpeed Support Forums > External Applications > Ruby/Rails > Rails Logging problem

Reply
 
Thread Tools Display Modes
  #1  
Old 09-25-2006, 12:42 PM
andreas andreas is offline
Senior Member
 
Join Date: Aug 2006
Posts: 91
Default Rails Logging problem

Hi,

all Rails requests are logged with 404 status. Isn't it possible to log the real status code?

Andreas
Reply With Quote
  #2  
Old 09-25-2006, 01:34 PM
mistwang mistwang is offline
LiteSpeed Staff
 
Join Date: May 2003
Location: New Jersey
Posts: 7,583
Which log file do you refer to?

The real status code has been logged into access log. There might be "File not found" logged in error log, but you can safely ignore that.
Reply With Quote
  #3  
Old 09-25-2006, 01:45 PM
andreas andreas is offline
Senior Member
 
Join Date: Aug 2006
Posts: 91
Sorry, wrong description of the problem.

The problem is that I get a lot of "File not found" and "Index file is not available" messages in the server log viewer in the web interface that don't make a lot of sense.
Reply With Quote
  #4  
Old 09-25-2006, 02:07 PM
mistwang mistwang is offline
LiteSpeed Staff
 
Join Date: May 2003
Location: New Jersey
Posts: 7,583
You can safely ignore them since Rails are invoked by 404 handler.
We will address this issue in next release.
Reply With Quote
  #5  
Old 09-25-2006, 02:09 PM
andreas andreas is offline
Senior Member
 
Join Date: Aug 2006
Posts: 91
Thanks. .
Reply With Quote
  #6  
Old 09-25-2006, 03:23 PM
xing xing is offline
LiteSpeed Staff
 
Join Date: Oct 2003
Location: Los Angeles, California
Posts: 380
You can get rid of those message but upping the default error log level from "info" to "notice". Llitespeed use 404 internal redirect for rail requests, that's why you are seeing them.
Reply With Quote
  #7  
Old 10-12-2006, 07:34 AM
andreas andreas is offline
Senior Member
 
Join Date: Aug 2006
Posts: 91
There IS some kind of bug. I often see status 404 logged in my access log where a 404 could not have happened:
66.249.65.232 - - [12/Oct/2006:16:13:39 +0200] "GET /topic/13442 HTTP/1.1" 404 - "-" "Mediapartners-Google/2.1" "www.mikrocontroller.net"
84.162.95.20 - - [12/Oct/2006:16:16:55 +0200] "GET /forum/3 HTTP/1.1" 404 - "http://www.mikrocontroller.net/forum/7" "Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1; .NET CLR 1.1.4322)" "www.mikrocontroller.net"

I could reproduce the problem once:
88.65.114.42 - - [12/Oct/2006:16:27:14 +0200] "GET /forum/7 HTTP/1.0" 404 - "-" "ApacheBench/1.3d" "www.mikrocontroller.net"

ApacheBench didn't report a 404.

LSWS 2.2.2, LSAPI 1.11
Reply With Quote
  #8  
Old 10-12-2006, 08:26 AM
mistwang mistwang is offline
LiteSpeed Staff
 
Join Date: May 2003
Location: New Jersey
Posts: 7,583
This could happen when a reqest was cancel before it being processed by the backend rails engine.

Maybe we could void logging canceled requests.
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


All times are GMT -7. The time now is 11:25 AM.



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