Capistrano deploy errors


#1

Hi, when I do cap deploy:cold I get this error:

rake aborted!
undefined local variable or method acts_as_commentable' for #<Class: 0x7fa1c34a2f10> /usr/local/lib/ruby/gems/1.8/gems/activerecord-2.2.2/lib/active_record/ base.rb:1833:inmethod_missing_without_paginate’
/usr/local/lib/ruby/gems/1.8/gems/mislav-will_paginate-2.3.8/lib/
will_paginate/finder.rb:170:in method_missing' /var/www/testapp/releases/20090315203606/app/models/nibble.rb:2 /usr/local/lib/ruby/gems/1.8/gems/activesupport-2.2.2/lib/ active_support/dependencies.rb:382:inload_without_new_constant_marking’
/usr/local/lib/ruby/gems/1.8/gems/activesupport-2.2.2/lib/
active_support/dependencies.rb:382:in load_file' /usr/local/lib/ruby/gems/1.8/gems/activesupport-2.2.2/lib/ active_support/dependencies.rb:521:innew_constants_in’
/usr/local/lib/ruby/gems/1.8/gems/activesupport-2.2.2/lib/
active_support/dependencies.rb:381:in load_file' /usr/local/lib/ruby/gems/1.8/gems/activesupport-2.2.2/lib/ active_support/dependencies.rb:256:inrequire_or_load’
/usr/local/lib/ruby/gems/1.8/gems/activesupport-2.2.2/lib/
active_support/dependencies.rb:427:in load_missing_constant' /usr/local/lib/ruby/gems/1.8/gems/activesupport-2.2.2/lib/ active_support/dependencies.rb:77:inconst_missing’
/usr/local/lib/ruby/gems/1.8/gems/activesupport-2.2.2/lib/
active_support/dependencies.rb:89:in const_missing' /usr/local/lib/ruby/gems/1.8/gems/activesupport-2.2.2/lib/ active_support/inflector.rb:352:inconstantize’
/usr/local/lib/ruby/gems/1.8/gems/activesupport-2.2.2/lib/
active_support/inflector.rb:351:in each' /usr/local/lib/ruby/gems/1.8/gems/activesupport-2.2.2/lib/ active_support/inflector.rb:351:inconstantize’
/usr/local/lib/ruby/gems/1.8/gems/activesupport-2.2.2/lib/
active_support/core_ext/string/inflections.rb:162:in constantize' /usr/local/lib/ruby/gems/1.8/gems/activerecord-2.2.2/lib/active_record/ observer.rb:157:inobserved_class’
/usr/local/lib/ruby/gems/1.8/gems/activerecord-2.2.2/lib/active_record/
observer.rb:183:in observed_classes' /usr/local/lib/ruby/gems/1.8/gems/activerecord-2.2.2/lib/active_record/ observer.rb:166:ininitialize’
/usr/local/lib/ruby/1.8/singleton.rb:94:in new' /usr/local/lib/ruby/1.8/singleton.rb:94:ininstance’
/usr/local/lib/ruby/gems/1.8/gems/activerecord-2.2.2/lib/active_record/
observer.rb:38:in instantiate_observers' /usr/local/lib/ruby/gems/1.8/gems/activerecord-2.2.2/lib/active_record/ observer.rb:36:ineach’
/usr/local/lib/ruby/gems/1.8/gems/activerecord-2.2.2/lib/active_record/
observer.rb:36:in instantiate_observers' /usr/local/lib/ruby/gems/1.8/gems/actionpack-2.2.2/lib/ action_controller/dispatcher.rb:26:indefine_dispatcher_callbacks’
/usr/local/lib/ruby/gems/1.8/gems/activesupport-2.2.2/lib/
active_support/callbacks.rb:182:in call' /usr/local/lib/ruby/gems/1.8/gems/activesupport-2.2.2/lib/ active_support/callbacks.rb:182:inevaluate_method’
/usr/local/lib/ruby/gems/1.8/gems/activesupport-2.2.2/lib/
active_support/callbacks.rb:166:in call' /usr/local/lib/ruby/gems/1.8/gems/activesupport-2.2.2/lib/ active_support/callbacks.rb:90:inrun’
/usr/local/lib/ruby/gems/1.8/gems/activesupport-2.2.2/lib/
active_support/callbacks.rb:90:in each' /usr/local/lib/ruby/gems/1.8/gems/activesupport-2.2.2/lib/ active_support/callbacks.rb:90:insend’
/usr/local/lib/ruby/gems/1.8/gems/activesupport-2.2.2/lib/
active_support/callbacks.rb:90:in run' /usr/local/lib/ruby/gems/1.8/gems/activesupport-2.2.2/lib/ active_support/callbacks.rb:277:inrun_callbacks’
/usr/local/lib/ruby/gems/1.8/gems/rails-2.2.2/lib/initializer.rb:
559:in send' /usr/local/lib/ruby/gems/1.8/gems/rails-2.2.2/lib/initializer.rb: 559:inprepare_dispatcher’
/usr/local/lib/ruby/gems/1.8/gems/rails-2.2.2/lib/initializer.rb:
173:in process' /usr/local/lib/ruby/gems/1.8/gems/rails-2.2.2/lib/initializer.rb: 112:insend’
/usr/local/lib/ruby/gems/1.8/gems/rails-2.2.2/lib/initializer.rb:
112:in run' /var/www/testapp/releases/20090315203606/config/environment.rb:13 /usr/local/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:ingem_original_require’
/usr/local/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:in
require' /usr/local/lib/ruby/gems/1.8/gems/activesupport-2.2.2/lib/ active_support/dependencies.rb:153:inrequire’
/usr/local/lib/ruby/gems/1.8/gems/activesupport-2.2.2/lib/
active_support/dependencies.rb:521:in new_constants_in' /usr/local/lib/ruby/gems/1.8/gems/activesupport-2.2.2/lib/ active_support/dependencies.rb:153:inrequire’
/usr/local/lib/ruby/gems/1.8/gems/rails-2.2.2/lib/tasks/misc.rake:3
/usr/local/lib/ruby/gems/1.8/gems/rake-0.8.4/lib/rake.rb:617:in call' /usr/local/lib/ruby/gems/1.8/gems/rake-0.8.4/lib/rake.rb:617:inexecute’
/usr/local/lib/ruby/gems/1.8/gems/rake-0.8.4/lib/rake.rb:612:in each' /usr/local/lib/ruby/gems/1.8/gems/rake-0.8.4/lib/rake.rb:612:inexecute’
/usr/local/lib/ruby/gems/1.8/gems/rake-0.8.4/lib/rake.rb:578:in
invoke_with_call_chain' /usr/local/lib/ruby/1.8/monitor.rb:242:insynchronize’
/usr/local/lib/ruby/gems/1.8/gems/rake-0.8.4/lib/rake.rb:571:in
invoke_with_call_chain' /usr/local/lib/ruby/gems/1.8/gems/rake-0.8.4/lib/rake.rb:588:ininvoke_prerequisites’
/usr/local/lib/ruby/gems/1.8/gems/rake-0.8.4/lib/rake.rb:585:in each' /usr/local/lib/ruby/gems/1.8/gems/rake-0.8.4/lib/rake.rb:585:ininvoke_prerequisites’
/usr/local/lib/ruby/gems/1.8/gems/rake-0.8.4/lib/rake.rb:577:in
invoke_with_call_chain' /usr/local/lib/ruby/1.8/monitor.rb:242:insynchronize’
/usr/local/lib/ruby/gems/1.8/gems/rake-0.8.4/lib/rake.rb:571:in
invoke_with_call_chain' /usr/local/lib/ruby/gems/1.8/gems/rake-0.8.4/lib/rake.rb:564:ininvoke’
/usr/local/lib/ruby/gems/1.8/gems/rake-0.8.4/lib/rake.rb:2027:in
invoke_task' /usr/local/lib/ruby/gems/1.8/gems/rake-0.8.4/lib/rake.rb:2005:intop_level’
/usr/local/lib/ruby/gems/1.8/gems/rake-0.8.4/lib/rake.rb:2005:in
each' /usr/local/lib/ruby/gems/1.8/gems/rake-0.8.4/lib/rake.rb:2005:intop_level’
/usr/local/lib/ruby/gems/1.8/gems/rake-0.8.4/lib/rake.rb:2044:in
standard_exception_handling' /usr/local/lib/ruby/gems/1.8/gems/rake-0.8.4/lib/rake.rb:1999:intop_level’
/usr/local/lib/ruby/gems/1.8/gems/rake-0.8.4/lib/rake.rb:1977:in run' /usr/local/lib/ruby/gems/1.8/gems/rake-0.8.4/lib/rake.rb:2044:instandard_exception_handling’
/usr/local/lib/ruby/gems/1.8/gems/rake-0.8.4/lib/rake.rb:1974:in run' /usr/local/lib/ruby/gems/1.8/gems/rake-0.8.4/bin/rake:31 /usr/local/bin/rake:19:inload’
/usr/local/bin/rake:19

This error happens when capistrano tries to run rake db:migrate


#2

On Sun, Mar 15, 2009 at 3:49 PM, Mike C removed_email_address@domain.invalid wrote:

Hi, when I do cap deploy:cold I get this error:

rake aborted!
undefined local variable or method `acts_as_commentable’ for #<Class:
0x7fa1c34a2f10>

I hate to ask the obvious, but… does the server you are pushing to
have that installed, or is it in your source and properly in your SCM?


(Ruby, Rails, Random) blog: http://skandragon.blogspot.com/


#3

I just checked and the plugin directory is in the source, but after
you mentioned that I took a look inside the directory and it was
empty. I’m using Git and I didn’t have vendor/plugins in
the .gitignore so I’m not sure why it isn’t also including the
contents of each plugin.


#4

Fixed the error. I had to remove the .git and .gitignore directory and
file from the plugin directories individually.