# Capistrano deploy errors

**URL:** <https://discuss.rubyonrails.org/t/capistrano-deploy-errors/40459>\
**Category:** rubyonrails-talk\
**Created:** [March 15, 2009, 8:49pm UTC](https://discuss.rubyonrails.org/t/capistrano-deploy-errors/40459 "2009-03-15T20:49:45Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Mike\_C](https://avatars.discourse-cdn.com/v4/letter/m/51bf81/32.png) [@Mike\_C](https://discuss.rubyonrails.org/u/Mike_C)\
**Post date:** [March 15, 2009, 8:49pm UTC](https://discuss.rubyonrails.org/t/capistrano-deploy-errors/40459/1 "2009-03-15T20:49:45Z")

</div>

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:in `method\_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:in `load\_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:in `new\_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:in `require\_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:in `const\_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:in `constantize' /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:in `constantize' /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:in `observed\_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:in `initialize' /usr/local/lib/ruby/1.8/singleton.rb:94:in `new' /usr/local/lib/ruby/1.8/singleton.rb:94:in `instance' /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:in `each' /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:in `define\_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:in `evaluate\_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:in `run' /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:in `send' /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:in `run\_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:in `prepare\_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:in `send' /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:in `gem\_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:in `require' /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:in `require' /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:in `execute' /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:in `execute' /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:in `synchronize' /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:in `invoke\_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:in `invoke\_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:in `synchronize' /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:in `invoke' /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:in `top\_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:in `top\_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:in `top\_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:in `standard\_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:in `load' /usr/local/bin/rake:19

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

---

<div class="post-metadata">

**Author:** ![M\_Graff](https://avatars.discourse-cdn.com/v4/letter/m/48db29/32.png) [@M\_Graff](https://discuss.rubyonrails.org/u/M_Graff)\
**Post date:** [March 15, 2009, 8:55pm UTC](https://discuss.rubyonrails.org/t/capistrano-deploy-errors/40459/2 "2009-03-15T20:55:47Z")

</div>

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?

---

<div class="post-metadata">

**Author:** ![Mike\_C](https://avatars.discourse-cdn.com/v4/letter/m/51bf81/32.png) [@Mike\_C](https://discuss.rubyonrails.org/u/Mike_C)\
**Post date:** [March 15, 2009, 9:02pm UTC](https://discuss.rubyonrails.org/t/capistrano-deploy-errors/40459/3 "2009-03-15T21:02:53Z")

</div>

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.

---

<div class="post-metadata">

**Author:** ![Mike\_C](https://avatars.discourse-cdn.com/v4/letter/m/51bf81/32.png) [@Mike\_C](https://discuss.rubyonrails.org/u/Mike_C)\
**Post date:** [March 15, 2009, 10:01pm UTC](https://discuss.rubyonrails.org/t/capistrano-deploy-errors/40459/4 "2009-03-15T22:01:49Z")

</div>

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