It looks as if your application is getting a FastCGI request without the 
'PATH_INFO' environment variable. I'm not too sure what to make of that. Can 
you try a rackup which runs this app?

require 'rack'
require 'pp'

App = lambda do |env|
        body = ''
        PP.pp env, body
        [200, 'Content-Type' => 'text/plain', body]
end

Rack::Handler::FastCGI.run App, :Port => 9000

and let us know what it prints out as being in the environment. Maybe your 
webserver doesn't provide PATH_INFO over FastCGI. If that's the case, we'll 
need to consider how we can be compatible with that.

—
Jenna

On 10/10/2011, at 6:24 AM, Nokan Emiro wrote:

> The app itself implements Rack protocol. 
> 
> 
> Yes, that's what I've already tried.  It is the case when my
> app stops whenever the first fastcgi request arrives:
> 
> /usr/lib/ruby/1.8/rack/utils.rb:23:in `unescape': undefined method `tr' for 
> nil:NilClass (NoMethodError)
>         from (eval):33:in `call'
>         from /usr/lib/ruby/1.8/rack/session/cookie.rb:37:in `call'
>         from (eval):38:in `call'
>         from /usr/lib/ruby/1.8/rack/content_length.rb:13:in `call'
>         from /usr/lib/ruby/1.8/rack/handler/fastcgi.rb:57:in `serve'
>         from /usr/lib/ruby/1.8/rack/handler/fastcgi.rb:25:in `run'
>         from /usr/lib/ruby/1.8/rack/handler/fastcgi.rb:24:in `each'
>         from /usr/lib/ruby/1.8/rack/handler/fastcgi.rb:24:in `run'
>         ...
> 
> What I do here is:
> 
> require 'camping'
> require 'camping/session'
> Camping.goes :App
> module App
>      #   .....  here is my Camping App
> end
> Rack::Handler::FastCGI.run App, :Port => 9000
> 
> ...and configure webserver to send fcgi queries to 9000.
> 
> Is this a Rack problem?  (In this case I'm sorry bothering you!)
> 
> uzlee
> 
> _______________________________________________
> Camping-list mailing list
> Camping-list@rubyforge.org
> http://rubyforge.org/mailman/listinfo/camping-list

_______________________________________________
Camping-list mailing list
Camping-list@rubyforge.org
http://rubyforge.org/mailman/listinfo/camping-list

Reply via email to