Forum: Ruby on Rails server not starting

Announcement (2017-05-07): www.ruby-forum.com is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see rubyonrails.org/community and ruby-lang.org/en/community for other Rails- und Ruby-related community platforms.
Stewart (Guest)
on 2008-10-20 13:07
(Received via mailing list)
Hey guys,

I cant seem to start my rails server anymore. I have been working with
no issue for about a week and then my project has stopped working.  I
suspect an issue with the ruby gems system. Here is the stack trace i
get when i try and run script server...

/Users/portablelaptop/Workspace/blueprint/config/environment.rb:45:
You have a nil object when you didn't expect it! (NoMethodError)
You might have expected an instance of ActiveRecord::Base.
The error occurred while evaluating nil.[]
        from /usr/local/lib/ruby/site_ruby/1.8/rubygems/
custom_require.rb:27:in `gem_original_require'
        from /usr/local/lib/ruby/site_ruby/1.8/rubygems/
custom_require.rb:27:in `require'
        from /Users/portablelaptop/Workspace/blueprint/vendor/rails/
activesupport/lib/active_support/dependencies.rb:510:in `require'
        from /Users/portablelaptop/Workspace/blueprint/vendor/rails/
activesupport/lib/active_support/dependencies.rb:355:in
`new_constants_in'
        from /Users/portablelaptop/Workspace/blueprint/vendor/rails/
activesupport/lib/active_support/dependencies.rb:510:in `require'
        from /usr/local/lib/ruby/gems/1.8/gems/mongrel-1.1.5/bin/../
lib/mongrel/rails.rb:147:in `rails'
        from /usr/local/lib/ruby/gems/1.8/gems/mongrel-1.1.5/bin/
mongrel_rails:113:in `cloaker_'
        from /usr/local/lib/ruby/gems/1.8/gems/mongrel-1.1.5/lib/
mongrel/configurator.rb:149:in `call'
        from /usr/local/lib/ruby/gems/1.8/gems/mongrel-1.1.5/lib/
mongrel/configurator.rb:149:in `listener'
        from /usr/local/lib/ruby/gems/1.8/gems/mongrel-1.1.5/bin/
mongrel_rails:99:in `cloaker_'
        from /usr/local/lib/ruby/gems/1.8/gems/mongrel-1.1.5/lib/
mongrel/configurator.rb:50:in `call'
        from /usr/local/lib/ruby/gems/1.8/gems/mongrel-1.1.5/lib/
mongrel/configurator.rb:50:in `initialize'
        from /usr/local/lib/ruby/gems/1.8/gems/mongrel-1.1.5/bin/
mongrel_rails:84:in `new'
        from /usr/local/lib/ruby/gems/1.8/gems/mongrel-1.1.5/bin/
mongrel_rails:84:in `run'
        from /usr/local/lib/ruby/gems/1.8/gems/mongrel-1.1.5/lib/
mongrel/command.rb:212:in `run'
        from /usr/local/lib/ruby/gems/1.8/gems/mongrel-1.1.5/bin/
mongrel_rails:281
        from /Users/portablelaptop/Workspace/blueprint/vendor/rails/
activesupport/lib/active_support/dependencies.rb:503:in `load'
        from /Users/portablelaptop/Workspace/blueprint/vendor/rails/
activesupport/lib/active_support/dependencies.rb:503:in `load'
        from /Users/portablelaptop/Workspace/blueprint/vendor/rails/
activesupport/lib/active_support/dependencies.rb:355:in
`new_constants_in'
        from /Users/portablelaptop/Workspace/blueprint/vendor/rails/
activesupport/lib/active_support/dependencies.rb:503:in `load'
        from /Users/portablelaptop/Workspace/blueprint/vendor/rails/
railties/lib/commands/servers/mongrel.rb:64
        from /usr/local/lib/ruby/site_ruby/1.8/rubygems/
custom_require.rb:27:in `gem_original_require'
        from /usr/local/lib/ruby/site_ruby/1.8/rubygems/
custom_require.rb:27:in `require'
        from /Users/portablelaptop/Workspace/blueprint/vendor/rails/
activesupport/lib/active_support/dependencies.rb:510:in `require'
        from /Users/portablelaptop/Workspace/blueprint/vendor/rails/
activesupport/lib/active_support/dependencies.rb:355:in
`new_constants_in'
        from /Users/portablelaptop/Workspace/blueprint/vendor/rails/
activesupport/lib/active_support/dependencies.rb:510:in `require'
        from /Users/portablelaptop/Workspace/blueprint/vendor/rails/
railties/lib/commands/server.rb:39
        from /usr/local/lib/ruby/site_ruby/1.8/rubygems/
custom_require.rb:27:in `gem_original_require'
        from /usr/local/lib/ruby/site_ruby/1.8/rubygems/
custom_require.rb:27:in `require'
        from script/server:3
Franz S. (Guest)
on 2008-10-20 13:29
(Received via mailing list)
On Mon, Oct 20, 2008 at 2:20 AM, Stewart
<removed_email_address@domain.invalid> wrote:

> /Users/portablelaptop/Workspace/blueprint/config/environment.rb:45:
> You have a nil object when you didn't expect it! (NoMethodError)

Can you post line 45 of

/Users/portablelaptop/Workspace/blueprint/config/environment.rb
This topic is locked and can not be replied to.