From mboxrd@z Thu Jan 1 00:00:00 1970 Delivered-To: chneukirchen@gmail.com Received: by 10.204.72.79 with SMTP id l15cs361671bkj; Thu, 23 Jul 2009 14:41:27 -0700 (PDT) Return-Path: Received-SPF: pass (google.com: domain of grbounce-ceibQwUAAAB4YPBqaDIjI2bFOCxyyh3G=chneukirchen=gmail.com@googlegroups.com designates 10.224.37.143 as permitted sender) client-ip=10.224.37.143; Authentication-Results: mr.google.com; spf=pass (google.com: domain of grbounce-ceibQwUAAAB4YPBqaDIjI2bFOCxyyh3G=chneukirchen=gmail.com@googlegroups.com designates 10.224.37.143 as permitted sender) smtp.mail=grbounce-ceibQwUAAAB4YPBqaDIjI2bFOCxyyh3G=chneukirchen=gmail.com@googlegroups.com; dkim=pass header.i=grbounce-ceibQwUAAAB4YPBqaDIjI2bFOCxyyh3G=chneukirchen=gmail.com@googlegroups.com Received: from mr.google.com ([10.224.37.143]) by 10.224.37.143 with SMTP id x15mr2041225qad.11.1248385285501 (num_hops = 1); Thu, 23 Jul 2009 14:41:25 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlegroups.com; s=beta; h=domainkey-signature:received:received:x-sender:x-apparently-to :mime-version:content-type:received:date:x-ip:user-agent :x-http-useragent:message-id:subject:from:to:x-google-approved :reply-to:sender:precedence:x-google-loop:mailing-list:list-id :list-post:list-help:list-unsubscribe:x-beenthere-env:x-beenthere; bh=CiUxmEB68MQVK0lSklCEg4/JMc+w0BFgByu3co/KRiw=; b=FJqnZH+fi6q7c6p1GPDuS2nalNrMRCNRX+0PjBMb4ApdJfwRSQO1PjaDyIgW2kHbZ2 H4YfqPE14JR2KMAVVPeCOZvqBdb2iRmnVx/mM90g33K5484yfIZ406D7VjY/YWCVYDRA TLC6tSvpvPgre03KpCvBAn6rFxJQ2J7tO7lLQ= DomainKey-Signature: a=rsa-sha1; c=nofws; d=googlegroups.com; s=beta; h=x-sender:x-apparently-to:mime-version:content-type:date:x-ip :user-agent:x-http-useragent:message-id:subject:from:to :x-google-approved:reply-to:sender:precedence:x-google-loop :mailing-list:list-id:list-post:list-help:list-unsubscribe :x-beenthere-env:x-beenthere; b=ho+XYWXQLDUCfaXJmFpcjWmwvGJ2F9dDzrKCmBjZEnMna+59H6vPbEVcF4IW93EEJy L7a8oJsvHBuqZ8WCWtZgGszJYE8VzWzaxxA8lKL91bdzUUE0fQouSRdV0iaBx8FXkugp 1XevmD3f4KOvxbPx/vAsPxpVVZAXN2o89AbyM= Received: by 10.224.37.143 with SMTP id x15mr318845qad.11.1248385285150; Thu, 23 Jul 2009 14:41:25 -0700 (PDT) Received: by 10.176.94.13 with SMTP id r13gr1517yqb.0; Thu, 23 Jul 2009 14:41:24 -0700 (PDT) X-Sender: nreckart@gmail.com X-Apparently-To: rack-devel@googlegroups.com Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Received: by 10.150.11.1 with SMTP id 1mr706170ybk.28.1248379520197; Thu, 23 Jul 2009 13:05:20 -0700 (PDT) Date: Thu, 23 Jul 2009 13:05:20 -0700 (PDT) X-IP: 66.118.90.75 User-Agent: G2/1.0 X-HTTP-UserAgent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US) AppleWebKit/530.5 (KHTML, like Gecko) Chrome/2.0.172.37 Safari/530.5,gzip(gfe),gzip(gfe) Message-ID: Subject: Dispatcher failed to catch: undefined method `read' for class `FCGI::Stream' (NameError) From: nreckart To: Rack Development X-Google-Approved: james.britt@gmail.com via email at 2009-07-23 21:41:24 Reply-To: rack-devel@googlegroups.com Sender: rack-devel@googlegroups.com Precedence: bulk X-Google-Loop: groups Mailing-List: list rack-devel@googlegroups.com; contact rack-devel+owner@googlegroups.com List-Id: List-Post: List-Help: List-Unsubscribe: , X-BeenThere-Env: rack-devel@googlegroups.com X-BeenThere: rack-devel@googlegroups.com I have a Rails site hosted on Bluehost, which recently upgraded to Rails 2.3.3. When they did so, it broke my site, which was frozen to Rails 2.3.2. In my fastcgi.crash.log I found the following. [23/Jul/2009:10:00:28 :: 23983] Dispatcher failed to catch: undefined method `read' for class `FCGI::Stream' (NameError) /usr/lib/ruby/ gems/ 1.8/gems/rack-1.0.0/lib/rack/handler/fastcgi.rb:7 /home/username/rails/app/vendor/rails/railties/lib/fcgi_handler.rb: 103:in `process_request' /home/username/rails/app/vendor/rails/ railties/lib/fcgi_handler.rb:153:in `with_signal_handler' /home/username/rails/app/vendor/rails/railties/lib/fcgi_handler.rb: 101:in `process_request' /home/username/rails/app/vendor/rails/railties/lib/fcgi_handler.rb: 78:in `process_each_request' /usr/lib/ruby/gems/1.8/gems/fcgi-0.8.7/lib/fcgi.rb:117:in `session' /usr/lib/ruby/gems/1.8/gems/fcgi-0.8.7/lib/fcgi.rb:104:in `each_request' /usr/lib/ruby/gems/1.8/gems/fcgi-0.8.7/lib/fcgi.rb:36:in `each' /home/username/rails/app/vendor/rails/railties/lib/fcgi_handler.rb: 77:in `process_each_request' /home/username/rails/app/vendor/rails/railties/lib/fcgi_handler.rb: 76:in `catch' /home/username/rails/app/vendor/rails/railties/lib/ fcgi_handler.rb:76:in `process_each_request' /home/username/rails/app/vendor/rails/railties/lib/fcgi_handler.rb: 51:in `process!' /home/username/rails/app/vendor/rails/railties/lib/fcgi_handler.rb: 23:in `process!' dispatch.fcgi:24 unhandled dispatch error To fix the problem, I installed the rack gem locally on my Bluehost account. I then edited the rack-1.0.0/lib/rack/handler/fastcgi.rb file and moved line 7, which aliases the read method, to after the read method definition instead of before it. All was well with the world again after I told my rails app to use the local gem instead of the global system gem. I'd be happy to submit a patch if needed.