Re: Ubuntu & Rails, can''t get it to work

Ed Howland
Thu, 22 Feb 2007 12:02:42 -0000

On 2/22/07, Bart Zonneveld
<zuperinfinite-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
wrote:
>
>
> On 2/21/07, Ed Howland
<ed.howland-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:
> > I''m guessing Ubuntu Dapper Drake.
> > I''d recompile the latest version of ruby 1.8.5 and install
it. Don''t
> > use the apt-get version, uninstall if you are.
>
>
> Correct, I''m using Dapper Drake.
> I manually/apt-get remove all RoR related fluff, and recompiled ruby from
> source, renewed my rubygems installation, etc etc.
>
> When I create a testapp, and run ruby public/dispatch.fcgi, the following
> error occures:
>
> You have a nil object when you didn''t expect it!
> The error occured while evaluating nil.downcase^M
>
/usr/lib/ruby/gems/1.8/gems/actionpack-1.12.5/lib/action_controller/request.rb:18:in
> `method''^M
> /usr/lib/ruby/gems/1.8/gems/actionpack-
> 1.12.5/lib/action_controller/base.rb:933:in
> `log_processing''^M
>
/usr/lib/ruby/gems/1.8/gems/actionpack-1.12.5/lib/action_controller/base.rb:407:in
> `process_without_filters''^M
> /usr/lib/ruby/gems/1.8/gems/actionpack-
> 1.12.5/lib/action_controller/filters.rb:377:in
> `process_without_session_management_support''^M
>
/usr/lib/ruby/gems/1.8/gems/actionpack-1.12.5/lib/action_controller/session_management.rb:117:in
> `process''^M
> /usr/lib/ruby/gems/1.8/gems/rails-
> 1.1.6/lib/dispatcher.rb:38:in `dispatch''^M
> /usr/lib/ruby/gems/1.8/gems/rails-1.1.6/lib/fcgi_handler.rb:150:in
> `process_request''^M
> /usr/lib/ruby/gems/1.8/gems/rails-1.1.6/lib/fcgi_handler.rb:54:in
> `process!''^M
> /usr/lib/ruby/gems/1.8/gems/fcgi-0.8.7/lib/fcgi.rb:606:in
> `each_cgi''^M
> /usr/lib/ruby/gems/1.8/gems/rails-1.1.6/lib/fcgi_handler.rb:53:in
> `process!''^M
> /usr/lib/ruby/gems/1.8/gems/rails-1.1.6/lib/fcgi_handler.rb:23:in
> `process!''^M
> public/dispatch.fcgi:24
>
> ruby -v gives:
> ruby 1.8.5 (2006-12-04 patchlevel 2) [i686-linux]
> rails -v gives:
> Rails 1.1.6

I am am getting the nil.downcase error as well, although on Rails 1.2.
Although when mine occurs it isn''t starting from Apache/FCGI. Have you
tried the app with Mongrel or Webbrick?

It seems others have seen this on Apache too, but no answers on this list.
http://lists.rubyonrails.org/pipermail/rails/2006-August/060466.html
http://www.sovin.ca/sovin/articles/show/10
Make rake freeze_gems?

Ed





--
Ed Howland