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

Go Back   LiteSpeed Support Forums > LiteSpeed Web Server > LSWS 4.1 Release > lsapi+ruby+rails=some errors in error.log

Reply
 
Thread Tools Display Modes
  #1  
Old 01-18-2010, 11:29 AM
kramer kramer is offline
New Member
 
Join Date: Jan 2010
Posts: 4
Default lsapi+ruby+rails=some errors in error.log

Hi,

nice work - I mean LSHTTP. Anyway works great with lsapi. Only I'm wondering, why in HTTP server error log I have lines like below:

2009-11-20 18:42:20.779 [INFO] [95.49.180.126:48829-0#offshoregate.pl] File not found [/opt/offshoregate.pl/html/public/site

Need to mention, that Ruby application works ok, and of course I have controler site. Enough to see offshoregte.pl/site - works ok , so why errors occurs ? Will look forward some input from you guys.

Regards from Poland,
Darek
Reply With Quote
  #2  
Old 01-18-2010, 03:02 PM
mistwang mistwang is offline
LiteSpeed Staff
 
Join Date: May 2003
Location: New Jersey
Posts: 7,590
Check your configuration and access log, any where mentions "site" .
Reply With Quote
  #3  
Old 01-19-2010, 12:53 AM
kramer kramer is offline
New Member
 
Join Date: Jan 2010
Posts: 4
Default cd..

hello mistwang,

thanks for a quick reply. the problem is not only with site contoller. it is also for all other ruby controllers ie forum, topics, categories as per ruby app.
controlers created and works fine. server is on debian 5 openvz slice.
our lshttpd vhost config is like:

<?xml version="1.0" encoding="UTF-8"?>
<virtualHostConfig>
<docRoot>/opt/offshoregate.pl/html/public</docRoot>
<adminEmails>postmaster@offshoregate.pl</adminEmails>
<enableGzip>1</enableGzip>
<enableIpGeo></enableIpGeo>
<logging>
<log>
<useServer>0</useServer>
<fileName>$VH_ROOT/logs/error.log</fileName>
<logLevel>DEBUG</logLevel>
<rollingSize></rollingSize>
</log>
<accessLog>
<useServer>0</useServer>
<fileName>$VH_ROOT/logs/access.log</fileName>
<pipedLogger></pipedLogger>
<logFormat></logFormat>
<logHeaders>7</logHeaders>
<rollingSize></rollingSize>
<keepDays></keepDays>
<bytesLog></bytesLog>
<compressArchive>0</compressArchive>
</accessLog>
</logging>
<customErrorPages>
<errorPage>
<errCode>404</errCode>
<rem_for_forum>/dispatch.lsapi</rem_for_forum>
<note></note>
</errorPage>
</customErrorPages>
<htAccess>
<allowOverride>0</allowOverride>
<accessFileName></accessFileName>
</htAccess>
<extProcessorList>
<extProcessor>
<type>lsapi</type>
<name>offshoregate.pl</name>
<address>uds://tmp/lshttpd/offshoregate.pl.sock</address>
<note></note>
<maxConns>100</maxConns>
<env>RAILS_ENV=production</env>
<env>LSAPI_CHILDREN=100</env>
<initTimeout>10</initTimeout>
<retryTimeout>30</retryTimeout>
<persistConn></persistConn>
<pcKeepAliveTimeout></pcKeepAliveTimeout>
<respBuffer>0</respBuffer>
<autoStart>1</autoStart>
<path>/opt/offshoregate.pl/html/public/dispatch.lsapi</path>
<backlog></backlog>
<instances></instances>
<extUser></extUser>
<extGroup></extGroup>
<runOnStartUp>1</runOnStartUp>
<extMaxIdleTime></extMaxIdleTime>
<priority></priority>
<memSoftLimit></memSoftLimit>
<memHardLimit></memHardLimit>
<procSoftLimit></procSoftLimit>
<procHardLimit></procHardLimit>
</extProcessor>
</extProcessorList>
<contextList>
<context>
<type>lsapi</type>
<uri>/dispatch.lsapi</uri>
<handler>offshoregate.pl</handler>
<note></note>
<extraHeaders></extraHeaders>
<allowOverride></allowOverride>
<realm></realm>
<authName></authName>
<required></required>
<accessControl>
<allow></allow>
<deny></deny>
</accessControl>
<authorizer></authorizer>
<addDefaultCharset>off</addDefaultCharset>
<defaultCharsetCustomized></defaultCharsetCustomized>
<cachePolicy>
<enableCache></enableCache>
<expireInSeconds></expireInSeconds>
<reqCookieCache></reqCookieCache>
<respCookieCache></respCookieCache>
<ignoreReqCacheCtrl></ignoreReqCacheCtrl>
<ignoreRespCacheCtrl></ignoreRespCacheCtrl>
</cachePolicy>
<enableIpGeo></enableIpGeo>
</context>
</contextList>
</virtualHostConfig>


i don't understand why errors occurs, because dispatch.lsapi taking over and
in public folder no such files like site or topics - they inside ../app/controllers. any help much appreciated.
before i sent you a extract from error.log - below line from access.log refereing to word site:

83.4.47.115 - - [19/Jan/2010:07:58:58 +0000] "GET /images/border2.png HTTP/1.1" 200 183 "offshoregate.pl/site" "Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US) AppleWebKit/532.0 (KHTML, like Gecko) Chrome/3.0.195.38 Safari/532.0" "offshoregate.pl"



regards,
darek
Reply With Quote
  #4  
Old 01-19-2010, 11:48 AM
mistwang mistwang is offline
LiteSpeed Staff
 
Join Date: May 2003
Location: New Jersey
Posts: 7,590
Are you using a old version of LSWS? should upgrade to the latest.
And, you are not using the easy rails context configure, but configured the rails dispatcher app manually, that's the reason you get 404 error in log file, but it does not hurt anything, you are using a 404 handler to dispatch request to Rails.
switch to easy rails context will suppress that message.
Reply With Quote
  #5  
Old 01-19-2010, 01:50 PM
kramer kramer is offline
New Member
 
Join Date: Jan 2010
Posts: 4
Default ...

hello,

i'm using v4.0.12
with rails tried to configure in many ways, but only present works fine.
i understand no harm in 404 in logs, but like to keep my system tidy.
do you have a pointer to install lsws+ruby+rails in other way to migrate vhost in order to make a better installation ? what you mean: "switch to easy rails context" ??

regards
darek
Reply With Quote
  #6  
Old 01-19-2010, 02:29 PM
mistwang mistwang is offline
LiteSpeed Staff
 
Join Date: May 2003
Location: New Jersey
Posts: 7,590
http://www.litespeedtech.com/support...uby_rails_easy
Reply With Quote
  #7  
Old 01-20-2010, 07:11 AM
kramer kramer is offline
New Member
 
Join Date: Jan 2010
Posts: 4
Default ..

hi,

i tried this way but with no luck. will try later on again to create another vhost and start from scratch. thanks for all answers. case closed.

regards,
dariusz
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 09:32 AM.



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