Lighthouse has a new layout. Prefer the old one? Return to the old layout, and switch back any time from the link at the top of each page.

This project is archived and is in readonly mode.

rails server

#3882

Installed Rails 3.0.0 Beta.
Created new app.
Ran 'rails server'.
Server does start but terminal shows hundreds of lines of errors.
What gives?

Reported by rgreen · February 6th, 2010 @ 09:21 PM

State: resolved
Milestone: none
Assigned to: nobody
Importance: none

Activity

  1. Ben Marini
    Ben Marini

    I'm seeing the same issue. Using the rails command from inside a new rails 3 app, and I get ton of warning output. It's basically telling me all the gemspecs for all the gems rails requires are invalid, same warnings over and over:

    WARNING:  #<NoMethodError: undefined method `>' for nil:NilClass>
    WARNING:  Invalid .gemspec format in '/usr/local/Cellar/ruby/1.9.1-p378/lib/ruby/gems/1.9.1/specifications/abstract-1.0.0.gemspec'
    

    I'm using homebrew with ruby 1.9.1p378. I installed rails 3 using gem install rails3b and gem install rails --pre
    I attached the STDERR output I'm getting.

    February 6th, 2010 @ 10:13 PM

  2. Ben Marini
    Ben Marini

    Looks like this is an issue with rubygems 1.3.5 and ruby 1.9.1

    http://www.ruby-forum.com/topic/194832
    

    February 6th, 2010 @ 10:26 PM

  3. rgreen
    rgreen

    Is theere a solution?

    February 6th, 2010 @ 11:42 PM

  4. Ben Marini
    Ben Marini

    The problem seems to stem from the fact that bundler requires 'rubygems/specification'. I can replicate the problem outside of rails too. Try this in irb:

    require 'bundler'
    

    February 7th, 2010 @ 12:49 AM

  5. rgreen
    rgreen

    I assume then there is no user fix for this. I should probably just wait for the public release of Rails 3. Right?

    February 7th, 2010 @ 01:07 AM

  6. Ben Marini
    Ben Marini

    It's more annoying than anything. Interestingly, I can use rackup instead of rails server and I get no error output.

    `rackup -p 3000`
    

    February 7th, 2010 @ 01:33 AM

  7. Ryan Bigg
    Ryan Bigg

    I too get this annoying spam when I start up the server. More of a you-upgraded-rubygems-and-you-shouldn't-have issue, methinks. But doesn't some gem require you to have 1.3.5?

    February 7th, 2010 @ 03:05 AM

  8. rgreen
    rgreen

    Ryan I think you are right.

    February 7th, 2010 @ 05:00 AM

  9. Matt Hulse
    Matt Hulse

    Check out this Bundler issue: http://github.com/carlhuda/bundler/issues/#issue/24. I was able to get rid of the spam by following @sakuro's advice.

    February 7th, 2010 @ 05:54 AM

  10. Prem Sichanugrist (sikachu)
    Prem Sichanugrist (sikachu)
    • State changed from new to resolved

    The problem has been resolved in bundler 0.9.4

    February 11th, 2010 @ 06:22 PM