# Mongrel\_rails will not autostart

**URL:** <https://www.ruby-forum.com/t/mongrel-rails-will-not-autostart/166760>\
**Category:** Mongrel\
**Created:** [April 29, 2009, 9:51am UTC](https://www.ruby-forum.com/t/mongrel-rails-will-not-autostart/166760 "2009-04-29T09:51:19Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![alexander](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/a/bc8723/32.png) [@alexander](https://www.ruby-forum.com/u/alexander)\
**Post date:** [April 29, 2009, 9:51am UTC](https://www.ruby-forum.com/t/mongrel-rails-will-not-autostart/166760/1 "2009-04-29T09:51:19Z")

</div>

Hi,

I’m running a ubuntu 8.04.2 LTS server. Using ruby 1.8.6 and Rails 2.0.2  
I added the mongrel\_rails start -d -c /app/ to the /etc/rc.local

sofar so good…

Mongrel will start but will log

Missing the rails 2.0.2 gem. Please 'gem install -v=2.0.2 …

and then terminate

When I log onto the the console I can start mongrel\_rails and it will  
locate the right gems

any ideas ?

Thanks ahead  
Mellex

---

<div class="post-metadata">

**Author:** ![alexander](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/a/bc8723/32.png) [@alexander](https://www.ruby-forum.com/u/alexander)\
**Post date:** [April 29, 2009, 2:36pm UTC](https://www.ruby-forum.com/t/mongrel-rails-will-not-autostart/166760/2 "2009-04-29T14:36:45Z")

</div>

Perhaps the rails gem 2.0.2 is installed for your user but not  
systemwide. So its in ~/.gem rather than /usr/lib/ruby/gems/1.8

---

<div class="post-metadata">

**Author:** ![alexander](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/a/bc8723/32.png) [@alexander](https://www.ruby-forum.com/u/alexander)\
**Post date:** [April 29, 2009, 3:29pm UTC](https://www.ruby-forum.com/t/mongrel-rails-will-not-autostart/166760/3 "2009-04-29T15:29:33Z")

</div>

this happened to me recently. turns out i had a vendored copy of an  
older version of rails, which script/console will happily ignore if  
you have specified a rails version in your config/environment.rb.

config/boot.rb is not so smart.

-Jerrod

---

<div class="post-metadata">

**Author:** ![alexander](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/a/bc8723/32.png) [@alexander](https://www.ruby-forum.com/u/alexander)\
**Post date:** [April 29, 2009, 4:00pm UTC](https://www.ruby-forum.com/t/mongrel-rails-will-not-autostart/166760/4 "2009-04-29T16:00:17Z")

</div>

Austin Godber wrote:

> Perhaps the rails gem 2.0.2 is installed for your user but not  
> systemwide. So its in ~/.gem rather than /usr/lib/ruby/gems/1.8

That was exactly the case … now it’s fine

Thanks for your help !

Mellex
