# rake aborted

**URL:** <https://discuss.rubyonrails.org/t/rake-aborted/64271>\
**Category:** rubyonrails-talk\
**Created:** [June 21, 2012, 4:32pm UTC](https://discuss.rubyonrails.org/t/rake-aborted/64271 "2012-06-21T16:32:30Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![11155](https://avatars.discourse-cdn.com/v4/letter/1/d26b3c/32.png) [@11155](https://discuss.rubyonrails.org/u/11155)\
**Post date:** [June 21, 2012, 4:32pm UTC](https://discuss.rubyonrails.org/t/rake-aborted/64271/1 "2012-06-21T16:32:30Z")

</div>

I've been trying to follow Ruby on Rails 3 Tutorial by Michael Hartl but had a problem on page 199 when it asks me to enter "rake db:migrate". I got the following results:

---

<div class="post-metadata">

**Author:** ![walterdavis](https://sea2.discourse-cdn.com/rubyonrails/user_avatar/discuss.rubyonrails.org/walterdavis/32/705_2.png) [@walterdavis](https://discuss.rubyonrails.org/u/walterdavis)\
**Post date:** [June 21, 2012, 4:35pm UTC](https://discuss.rubyonrails.org/t/rake-aborted/64271/2 "2012-06-21T16:35:51Z")

</div>

I would try running bundle update to make sure you have all of your gems properly installed. This sounds like a version mis-match between various Rails modules.

Walter

---

<div class="post-metadata">

**Author:** ![11155](https://avatars.discourse-cdn.com/v4/letter/1/d26b3c/32.png) [@11155](https://discuss.rubyonrails.org/u/11155)\
**Post date:** [June 21, 2012, 5:00pm UTC](https://discuss.rubyonrails.org/t/rake-aborted/64271/3 "2012-06-21T17:00:26Z")

</div>

I tried running bundle update but then I still got the same error on rake db:migrate.

---

<div class="post-metadata">

**Author:** ![walterdavis](https://sea2.discourse-cdn.com/rubyonrails/user_avatar/discuss.rubyonrails.org/walterdavis/32/705_2.png) [@walterdavis](https://discuss.rubyonrails.org/u/walterdavis)\
**Post date:** [June 21, 2012, 5:06pm UTC](https://discuss.rubyonrails.org/t/rake-aborted/64271/4 "2012-06-21T17:06:46Z")

</div>

What version of rake, what version of Ruby, what version of Rails? Also, what version of Gem? There's lots of reasons why this might not work. Are you using rvm? If so, make a new gemset and bundle install again there. Triple check that the version of Rails in your tutorial matches the version installed on your computer.

Walter

---

<div class="post-metadata">

**Author:** ![11155](https://avatars.discourse-cdn.com/v4/letter/1/d26b3c/32.png) [@11155](https://discuss.rubyonrails.org/u/11155)\
**Post date:** [June 21, 2012, 5:12pm UTC](https://discuss.rubyonrails.org/t/rake-aborted/64271/5 "2012-06-21T17:12:12Z")

</div>

Walter Davis wrote in post #1065560:

> What version of rake, what version of Ruby, what version of Rails? Also, what version of Gem? ...

Walter's right. This is just a hunch, but you might try:

&nbsp;&nbsp;&nbsp;gem update --system

and see if that helps.

- ff

---

<div class="post-metadata">

**Author:** ![11155](https://avatars.discourse-cdn.com/v4/letter/1/d26b3c/32.png) [@11155](https://discuss.rubyonrails.org/u/11155)\
**Post date:** [June 21, 2012, 5:26pm UTC](https://discuss.rubyonrails.org/t/rake-aborted/64271/6 "2012-06-21T17:26:16Z")

</div>

I am using Rails 3.1.0, Gem 1.8.24, and Ruby 1.9.3p194. I've edited the gem file and changed versions of things to try to fix this and other problems that I have. I think that in order to fix certain problems, I might end up breaking something else. I tried "gem update --system" and still had the same problem.

---

<div class="post-metadata">

**Author:** ![11155](https://avatars.discourse-cdn.com/v4/letter/1/d26b3c/32.png) [@11155](https://discuss.rubyonrails.org/u/11155)\
**Post date:** [June 21, 2012, 5:59pm UTC](https://discuss.rubyonrails.org/t/rake-aborted/64271/7 "2012-06-21T17:59:48Z")

</div>

Walter Davis wrote in post #1065560:

> Triple check that the version of Rails in your tutorial matches the version installed on your computer.

I got it working. I found a sample gem file at [https://raw.github.com/railstutorial/sample\_app\_2nd\_ed/master/Gemfile](https://raw.github.com/railstutorial/sample_app_2nd_ed/master/Gemfile) for the tutorial that I am using and this made it work. Thanks for the help.
