使用Litespeed 4.0.5导致Rails 2.3.2.1错误

时间:2009-07-15 21:08:59

标签: ruby-on-rails litespeed

我刚刚升级到运行Litespeed Web服务器4.0.5的Rails 2.3.2.1并得到以下错误。我认为它与设置Rack首选项(server = Rack::Handler::LSWS)有关,但不确定如何操作。


另外,我正在运行晚期ruby-lsapi

[root@idev logs]# gem list ruby-lsapi

ruby-lsapi (3.5, 3.3, 3.2)

2009-07-14 20:31:55.326 [NOTICE] [208.68.173.115:57853-0#dev.halomonitor.com] [STDERR] /home/web/dev/vendor/rails/actionpack/lib/action_controller/cgi_process.rb:22:in `__send__'
2009-07-14 20:31:55.326 [NOTICE] [208.68.173.115:57853-0#dev.halomonitor.com] [STDERR] : 
2009-07-14 20:31:55.326 [NOTICE] [208.68.173.115:57853-0#dev.halomonitor.com] [STDERR] undefined method `env_table' for nil:NilClass
2009-07-14 20:31:55.326 [NOTICE] [208.68.173.115:57853-0#dev.halomonitor.com] [STDERR]  (
2009-07-14 20:31:55.326 [NOTICE] [208.68.173.115:57853-0#dev.halomonitor.com] [STDERR] NoMethodError
2009-07-14 20:31:55.326 [NOTICE] [208.68.173.115:57853-0#dev.halomonitor.com] [STDERR] )
2009-07-14 20:31:55.326 [NOTICE] [208.68.173.115:57853-0#dev.halomonitor.com] [STDERR]  from /home/web/dev/vendor/rails/actionpack/lib/action_controller/cgi_process.rb:22:in `dispatch_cgi'
2009-07-14 20:31:55.326 [NOTICE] [208.68.173.115:57853-0#dev.halomonitor.com] [STDERR]  from /home/web/dev/vendor/rails/actionpack/lib/action_controller/dispatcher.rb:102:in `dispatch_cgi'
2009-07-14 20:31:55.326 [NOTICE] [208.68.173.115:57853-0#dev.halomonitor.com] [STDERR]  from /home/web/dev/vendor/rails/actionpack/lib/action_controller/dispatcher.rb:28:in `dispatch'
2009-07-14 20:31:55.326 [NOTICE] [208.68.173.115:57853-0#dev.halomonitor.com] [STDERR]  from /var/lsws/fcgi-bin/RailsRunner.rb:32
2009-07-14 20:31:56.606 [INFO] [208.68.173.115:57853-0#dev.halomonitor.com] connection to [uds://tmp/lshttpd/dev.halomonitor.com:_.sock] on request #0, confirmed: 1, Connection reset by peer!
2009-07-14 20:31:56.606 [NOTICE] [208.68.173.115:57853-0#dev.halomonitor.com] [uds://tmp/lshttpd/dev.halomonitor.com:_.sock] Request in process stage, fail with 503 
2009-07-14 20:31:56.606 [NOTICE] [208.68.173.115:57853-0#dev.halomonitor.com] oops! 503 Service Unavailable
2009-07-14 20:31:56.606 [NOTICE] [208.68.173.115:57853-0#dev.halomonitor.com] Content len: 0, Request line: 
GET / HTTP/1.1
2009-07-14 20:31:56.606 [NOTICE] [208.68.173.115:57853-0#dev.halomonitor.com] Redirect: #2, URL: /dispatch.lsapi

$ ruby script/about
About your application's environment
Ruby version              1.8.6 (i386-mswin32)
RubyGems version          1.3.1
Rack version              1.0 bundled
Rails version             2.3.2
Active Record version     2.3.2
Action Pack version       2.3.2
Active Resource version   2.3.2
Action Mailer version     2.3.2
Active Support version    2.3.2
Edge Rails revision       e47e2f3c5e23acc07918e3d34546b06c9c0c986c
Application root          c:/chirag no backup/rails-2.3.2.1
Environment               development
Database adapter          postgresql
Database schema version   20090709140613

3 个答案:

答案 0 :(得分:1)

我以为灯光被认为是在一段时间之后运行...

转到Phusion's Passenger。方式更灵活,更易于设置/配置。完全摆脱了对CGI的处理。检查一下,即使你没有使用它。

答案 1 :(得分:0)

从错误消息undefined method env_table for nil:NilClass,似乎代码获得了一个未初始化的值,并且它正在尝试对该值执行方法env_table
第22行的内容是什么,在cgi_progress.rb?

答案 2 :(得分:0)