# Capistrano hangs

**URL:** <https://www.ruby-forum.com/t/capistrano-hangs/121436>\
**Category:** Rails\
**Created:** [November 27, 2007, 11:43pm UTC](https://www.ruby-forum.com/t/capistrano-hangs/121436 "2007-11-27T23:43:33Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![destiney](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/d/f07891/32.png) [@destiney](https://www.ruby-forum.com/u/destiney)\
**Post date:** [November 27, 2007, 11:43pm UTC](https://www.ruby-forum.com/t/capistrano-hangs/121436/1 "2007-11-27T23:43:33Z")

</div>

Any idea why this command takes upwards of 15 minutes to complete?

run “cd #{release\_path} && ORACLE\_HOME=/home/oracle  
RAILS\_ENV=production rake db:migrate”

When running it against my local Postgres it completes in a few  
seconds or so. Running it against my local Oracle XE takes only  
slightly longer. But running it with capistrano over ssh is taking  
years away from my life. ☹

Thanks,

–  
Greg D.  
[http://destiney.com/](http://destiney.com/)

---

<div class="post-metadata">

**Author:** ![destiney](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/d/f07891/32.png) [@destiney](https://www.ruby-forum.com/u/destiney)\
**Post date:** [November 28, 2007, 2:30pm UTC](https://www.ruby-forum.com/t/capistrano-hangs/121436/2 "2007-11-28T14:30:42Z")

</div>

Hi Greg

How big is your production database? If you ssh in and run the command  
by hand is it still slow? If you are changing an existing table  
against a running app it may be waiting for a lock - this happens with  
MySQL too.

HTH
