This appears to have been introduced with the upgrade to 4.0.3 (from 3.3.24).
First request to a Rails Virtual host succeeds. Next request to same Vhost 503s. Next, succeeds. Next, 503s. Repeat.
If you wait a full 5 minutes between the first successful request and 2nd request, then it does not 503, but succeeds. Looking at the error listed below, perhaps a MySQL related timeout issue?
Linux 32bit
Litespeed 4.0.3 Standard
Ruby / Rails 1.2.3
Gems installed:
actionmailer (1.3.3, 1.2.5, 1.2.0)
actionpack (1.13.3, 1.12.5, 1.12.0)
actionwebservice (1.2.6, 1.2.3, 1.1.6, 1.1.0)
activerecord (1.15.3, 1.14.4, 1.14.0)
activesupport (1.4.2, 1.3.1, 1.3.0)
capistrano (2.2.0, 2.1.0, 1.4.1)
daemons (1.0.10, 1.0.9, 1.0.5)
eventmachine (0.12.8, 0.10.0)
gem_plugin (0.2.3, 0.2.2)
highline (1.5.1, 1.4.0)
mysql (2.7)
needle (1.3.0)
net-sftp (1.1.1, 1.1.0)
net-ssh (1.1.2, 1.1.0, 1.0.10)
rack (1.0.0, 0.3.0)
rails (1.2.3, 1.1.6, 1.1.0)
rake (0.8.7, 0.8.1, 0.7.3)
rmagick (2.2.2, 1.15.2)
ruby-lsapi (3.5)
rubygems-update (1.3.4, 1.0.1, 0.9.2)
sources (0.0.1)
thin (1.2.2, 0.7.1)
ruby 1.8.6 (2007-03-13 patchlevel 0) [i686-linux]
mysql Ver 14.12 Distrib 5.0.77, for pc-linux-gnu (i686) using readline 5.1
From error.log (foo sub'd in for account name):
2009-06-03 19:55:27.366 [INFO] [24.155.38.130:57020-0#foo] connection to [uds://tmp/lshttpd/foo:_.sock] on request #0, confirmed: 1, Connection reset by peer!
2009-06-03 19:55:27.366 [NOTICE] [24.155.38.130:57020-0#foo] [uds://tmp/lshttpd/foo:_.sock] Request in process stage, fail with 503
2009-06-03 19:55:27.366 [NOTICE] [24.155.38.130:57020-0#foo] oops! 503 Service Unavailable
2009-06-03 19:55:27.366 [NOTICE] [24.155.38.130:57020-0#foo] Content len: 0, Request line:
(null)
2009-06-03 19:55:27.366 [NOTICE] [24.155.38.130:57020-0#foo] Redirect: #1, URL: /dispatch.cgi
From stderror.log:
2009-06-03 19:55:27.227 [STDERR] /opt/lsws/fcgi-bin/RailsRunner.rb:92: [BUG] Segmentation fault
First request to a Rails Virtual host succeeds. Next request to same Vhost 503s. Next, succeeds. Next, 503s. Repeat.
If you wait a full 5 minutes between the first successful request and 2nd request, then it does not 503, but succeeds. Looking at the error listed below, perhaps a MySQL related timeout issue?
Linux 32bit
Litespeed 4.0.3 Standard
Ruby / Rails 1.2.3
Gems installed:
actionmailer (1.3.3, 1.2.5, 1.2.0)
actionpack (1.13.3, 1.12.5, 1.12.0)
actionwebservice (1.2.6, 1.2.3, 1.1.6, 1.1.0)
activerecord (1.15.3, 1.14.4, 1.14.0)
activesupport (1.4.2, 1.3.1, 1.3.0)
capistrano (2.2.0, 2.1.0, 1.4.1)
daemons (1.0.10, 1.0.9, 1.0.5)
eventmachine (0.12.8, 0.10.0)
gem_plugin (0.2.3, 0.2.2)
highline (1.5.1, 1.4.0)
mysql (2.7)
needle (1.3.0)
net-sftp (1.1.1, 1.1.0)
net-ssh (1.1.2, 1.1.0, 1.0.10)
rack (1.0.0, 0.3.0)
rails (1.2.3, 1.1.6, 1.1.0)
rake (0.8.7, 0.8.1, 0.7.3)
rmagick (2.2.2, 1.15.2)
ruby-lsapi (3.5)
rubygems-update (1.3.4, 1.0.1, 0.9.2)
sources (0.0.1)
thin (1.2.2, 0.7.1)
ruby 1.8.6 (2007-03-13 patchlevel 0) [i686-linux]
mysql Ver 14.12 Distrib 5.0.77, for pc-linux-gnu (i686) using readline 5.1
From error.log (foo sub'd in for account name):
2009-06-03 19:55:27.366 [INFO] [24.155.38.130:57020-0#foo] connection to [uds://tmp/lshttpd/foo:_.sock] on request #0, confirmed: 1, Connection reset by peer!
2009-06-03 19:55:27.366 [NOTICE] [24.155.38.130:57020-0#foo] [uds://tmp/lshttpd/foo:_.sock] Request in process stage, fail with 503
2009-06-03 19:55:27.366 [NOTICE] [24.155.38.130:57020-0#foo] oops! 503 Service Unavailable
2009-06-03 19:55:27.366 [NOTICE] [24.155.38.130:57020-0#foo] Content len: 0, Request line:
(null)
2009-06-03 19:55:27.366 [NOTICE] [24.155.38.130:57020-0#foo] Redirect: #1, URL: /dispatch.cgi
From stderror.log:
2009-06-03 19:55:27.227 [STDERR] /opt/lsws/fcgi-bin/RailsRunner.rb:92: [BUG] Segmentation fault
Last edited: