# Rake sporadic: worik

**URL:** <https://www.ruby-forum.com/t/rake-sporadic-worik/190738>\
**Category:** Rails\
**Created:** [June 26, 2010, 5:22am UTC](https://www.ruby-forum.com/t/rake-sporadic-worik/190738 "2010-06-26T05:22:25Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![RichardOnRails](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/r/e0b2c6/32.png) [@RichardOnRails](https://www.ruby-forum.com/u/RichardOnRails)\
**Post date:** [June 26, 2010, 5:22am UTC](https://www.ruby-forum.com/t/rake-sporadic-worik/190738/1 "2010-06-26T05:22:25Z")

</div>

Hi,

I tried to invoke rake from a Command Window, with a couple of  
failures and  
one success. I haven’t consciously done anything to my system to  
impact  
rake Any idea what’s going on?

First try:  
K:\>rake --trace  
rake aborted!  
No Rakefile found (looking for: rakefile, Rakefile, rakefile.rb,  
Rakefile.rb)  
K:/\_Utilities/ruby186-26\_rc2/ruby/lib/ruby/gems/1.8/gems/rake-0.8.7/  
lib/rake.rb:2377:in  
`raw_load_rakefile' K:/_Utilities/ruby186-26_rc2/ruby/lib/ruby/gems/1.8/gems/rake-0.8.7/ lib/rake.rb:2017:in`load\_rakefile’  
K:/\_Utilities/ruby186-26\_rc2/ruby/lib/ruby/gems/1.8/gems/rake-0.8.7/  
lib/rake.rb:2068:in  
`standard_exception_handling' K:/_Utilities/ruby186-26_rc2/ruby/lib/ruby/gems/1.8/gems/rake-0.8.7/ lib/rake.rb:2016:in`load\_rakefile’  
K:/\_Utilities/ruby186-26\_rc2/ruby/lib/ruby/gems/1.8/gems/rake-0.8.7/  
lib/rake.rb:2000:in  
`run' K:/_Utilities/ruby186-26_rc2/ruby/lib/ruby/gems/1.8/gems/rake-0.8.7/ lib/rake.rb:2068:in`standard\_exception\_handling’  
K:/\_Utilities/ruby186-26\_rc2/ruby/lib/ruby/gems/1.8/gems/rake-0.8.7/  
lib/rake.rb:1998:in  
`run' K:/_Utilities/ruby186-26_rc2/ruby/lib/ruby/gems/1.8/gems/rake-0.8.7/ bin/rake:31 K:/_Utilities/ruby186-26_rc2/ruby/bin/rake:19:in`load’  
K:/\_Utilities/ruby186-26\_rc2/ruby/bin/rake:19

Second try:  
K:\_Projects\Ruby\_Rails\_Apps\_EIMS\RTS\>rake --trace  
rake aborted!  
[snip: same trace]

Third try (success):  
K:\_Projects\Ruby\_Rails\_Apps\_EIMS\RTS2\>rake --trace  
(in K:/\_Projects/Ruby/\_Rails\_Apps/\_EIMS/RTS2)  
\*\* Invoke default (first\_time)  
\*\* Invoke test (first\_time)  
\*\* Execute test  
\*\* Invoke test:units (first\_time)  
\*\* Invoke db:test:prepare (first\_time)  
\*\* Invoke db:abort\_if\_pending\_migrations (first\_time)  
\*\* Invoke environment (first\_time)  
\*\* Execute environment  
\*\* Execute db:abort\_if\_pending\_migrations  
You have 1 pending migrations:  
20100624214641 CreateExpenses  
Run “rake db:migrate” to update your database then try again.

In the second attempt, there was a migration in the depths of the RTS  
directory, but rake failed instead of reporting the migration’s  
existence.  
I can’t imagine how this problem occurred.

Thanks in Advance,  
Richard

---

<div class="post-metadata">

**Author:** ![RichardOnRails](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/r/e0b2c6/32.png) [@RichardOnRails](https://www.ruby-forum.com/u/RichardOnRails)\
**Post date:** [June 26, 2010, 5:26am UTC](https://www.ruby-forum.com/t/rake-sporadic-worik/190738/2 "2010-06-26T05:26:31Z")

</div>

I accidentally hit the Return key prematurely. The subject should have  
been something like:  
Rake fails sporadically - it runs with one working directory but not a  
couple of others.  
I apologize for the sloppiness.

On Jun 25, 11:21 pm, RichardOnRails

---

<div class="post-metadata">

**Author:** ![RichardOnRails](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/r/e0b2c6/32.png) [@RichardOnRails](https://www.ruby-forum.com/u/RichardOnRails)\
**Post date:** [June 26, 2010, 6:31am UTC](https://www.ruby-forum.com/t/rake-sporadic-worik/190738/3 "2010-06-26T06:31:28Z")

</div>

Please forget about this post. After a good nap, I see where I got  
confused.  
If you looked at this post, I’m sorry I wasted your time.

Best wishes,  
Richard

On Jun 25, 11:21 pm, RichardOnRails
