# Server not starting

**URL:** <https://www.ruby-forum.com/t/server-not-starting/151318>\
**Category:** Rails\
**Created:** [October 20, 2008, 11:07am UTC](https://www.ruby-forum.com/t/server-not-starting/151318 "2008-10-20T11:07:52Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Stewart](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/s/90db22/32.png) [@Stewart](https://www.ruby-forum.com/u/Stewart)\
**Post date:** [October 20, 2008, 11:07am UTC](https://www.ruby-forum.com/t/server-not-starting/151318/1 "2008-10-20T11:07:52Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![Stewart](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/s/90db22/32.png) [@Stewart](https://www.ruby-forum.com/u/Stewart)\
**Post date:** [October 20, 2008, 11:29am UTC](https://www.ruby-forum.com/t/server-not-starting/151318/2 "2008-10-20T11:29:06Z")

</div>

On Mon, Oct 20, 2008 at 2:20 AM, Stewart  
[removed\_email\_address@domain.invalid](mailto: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
