View Single Post
  #1  
Old 05-09-2009, 10:22 AM
amaltemara amaltemara is offline
Member
 
Join Date: Dec 2007
Posts: 29
Exclamation 503 error on every initial request to a Rails site

I keep getting a 503 error the first time I pull a page from the rails app... After that, the subsequent requests pull fine with no errors..

I'm running Litespeed Web Server Enterprise: v4.0.2
Rails version: 2.2.2
ruby-lsapi gem version: 3.4


I suspect it's something to do with timeouts, and I've tried to adjust those values, and I'm not getting different results...

There is nothing in the lsws error log for that app, there's nothing in the rails logs...

The main error log file shows this (nothing unusual as far as I know):
2009-05-09 13:12:35.459 [INFO] [Rails:myrailsapp.com:/] add child process pid: 11789
2009-05-09 13:12:35.459 [INFO] [Rails:myrailsapp.com:/] pid list size: 1
2009-05-09 13:12:35.468 [INFO] [Rails:myrailsapp.com:/] add child process pid: 11790
2009-05-09 13:12:35.468 [INFO] [Rails:myrailsapp.com:/] pid list size: 1
2009-05-09 13:12:35.488 [INFO] [forms.myrailsapp-RailsLSAPI] add child process pid: 11791
2009-05-09 13:12:35.488 [INFO] [myrailsapp.com-RailsLSAPI] pid list size: 1



I have this site set up as a Virtual Host, Rails is set up as an External App, LSAPI, with these settings:
Max Connections: 10
Environment: RAILS_ENV=production LSAPI_CHILDREN=10
Initial Request Timeout: 30
Retry Timeout: 30
Persistent Connection: Yes
Connection Keepalive Timeout: 20
Response Buffering: No
Auto Start: Yes
Instances: 2
Run On Start Up: Yes


Under Context: Rails, configuration:
Max Connections: 20




Anyone know what I'm doing wrong??? I need this app to be rock-solid, and not give any errors like this...

TIA

-Anthony
Reply With Quote