# Capistrano on media temple

**URL:** <https://www.ruby-forum.com/t/capistrano-on-media-temple/122502>\
**Category:** Deployment\
**Created:** [December 8, 2007, 8:06am UTC](https://www.ruby-forum.com/t/capistrano-on-media-temple/122502 "2007-12-08T08:06:01Z")\
**Posts on this page:** 10\
**Page:** 1

<div class="post-metadata">

**Author:** ![jimmypalmer](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/j/bbe5ce/32.png) [@jimmypalmer](https://www.ruby-forum.com/u/jimmypalmer)\
**Post date:** [December 8, 2007, 8:06am UTC](https://www.ruby-forum.com/t/capistrano-on-media-temple/122502/1 "2007-12-08T08:06:01Z")

</div>

I’m a windows user. I have svn setup and am trying to deploy my app  
with capistrano for the first time on to media temple. I ran cap deploy  
and a message box from TortisePlink pops up asking for a password. I’m  
clearly not getting the password correctly because it continues to  
prompt me until it spits out this:

- executing `deploy’
- executing `deploy:update’  
\*\* transaction: start
- executing `deploy:update\_code’
- executing “svn checkout -q -r7  
svn+ssh://serveradmin%[s30482.gridserver.com](http://s30482.gridserver.com)@  
[s30482.gridserver.com/home/30482/data/repo/bigtop](http://s30482.gridserver.com/home/30482/data/repo/bigtop)  
/home/30482/containers/rails/b  
igtop/releases/20071208070316 && (echo 7 \>  
/home/30482/containers/rails/bigtop/r  
eleases/20071208070316/REVISION)”  
servers: [“[s30482.gridserver.com](http://s30482.gridserver.com)”]  
[[s30482.gridserver.com](http://s30482.gridserver.com)] executing command  
\*\* [err] Host key verification failed.  
\*\* [err] svn: Connection closed unexpectedly  
command finished  
\*\*\* [deploy:update\_code] rolling back
- executing “rm -rf  
/home/30482/containers/rails/bigtop/releases/2007120807031  
6; true”  
servers: [“[s30482.gridserver.com](http://s30482.gridserver.com)”]  
[[s30482.gridserver.com](http://s30482.gridserver.com)] executing command  
command finished  
command “svn checkout -q -r7  
svn+ssh://serveradmin%[s30482.gridserver.com](http://s30482.gridserver.com)@s30482  
.gridserver.com/home/30482/data/repo/bigtop  
/home/30482/containers/rails/bigtop/  
releases/20071208070316 && (echo 7 \>  
/home/30482/containers/rails/bigtop/release  
s/20071208070316/REVISION)” failed on [s30482.gridserver.com](http://s30482.gridserver.com)

Any help or guidance would be appreciated. I’m not sure what password  
it is looking for. I tried using my main password, but it didn’t work.

---

<div class="post-metadata">

**Author:** ![jimmypalmer](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/j/bbe5ce/32.png) [@jimmypalmer](https://www.ruby-forum.com/u/jimmypalmer)\
**Post date:** [December 11, 2007, 7:20am UTC](https://www.ruby-forum.com/t/capistrano-on-media-temple/122502/2 "2007-12-11T07:20:17Z")

</div>

Running into the exact same problem here. Except I’m deploying from  
Debian linux.  
I’ve also tried deleting the ~/.ssh/known\_hosts file, but no luck.

Asks me for the password three times. I get the same behavior from  
TortioseSVN when checking out from mediatemple’s svn - have to enter  
the password 3 times…

On Dec 8, 12:06 am, Jimmy P. [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid)

---

<div class="post-metadata">

**Author:** ![jimmypalmer](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/j/bbe5ce/32.png) [@jimmypalmer](https://www.ruby-forum.com/u/jimmypalmer)\
**Post date:** [December 18, 2007, 11:44pm UTC](https://www.ruby-forum.com/t/capistrano-on-media-temple/122502/3 "2007-12-18T23:44:09Z")

</div>

Has anyone figured out the solution to this problem? I’m still stuck on  
it… I guess I’ll just switch over to the rsync\_with\_remote\_cache  
recipe.

---

<div class="post-metadata">

**Author:** ![jimmypalmer](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/j/bbe5ce/32.png) [@jimmypalmer](https://www.ruby-forum.com/u/jimmypalmer)\
**Post date:** [December 20, 2007, 11:06pm UTC](https://www.ruby-forum.com/t/capistrano-on-media-temple/122502/4 "2007-12-20T23:06:04Z")

</div>

Forgot to mention that I’m not actually on mediatemple, but maybe the  
fact that I’m on a similar shared host is a clue.

On Dec 20, 3:04 pm, “removed\_email\_address@domain.invalid”

---

<div class="post-metadata">

**Author:** ![jimmypalmer](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/j/bbe5ce/32.png) [@jimmypalmer](https://www.ruby-forum.com/u/jimmypalmer)\
**Post date:** [December 21, 2007, 2:32am UTC](https://www.ruby-forum.com/t/capistrano-on-media-temple/122502/5 "2007-12-21T02:32:59Z")

</div>

Think I may have found the problem, and after poking around obscure  
blogs for a couple of hours it turned out to be “at the source,” so to  
speak. I don’t have time to try it out now, but in the section under  
“SSL Authentication Problems on Setup” might be a clue as to the  
answer:

[http://wiki.rubyonrails.org/rails/pages/Capistrano](http://wiki.rubyonrails.org/rails/pages/Capistrano)

On Dec 20, 3:05 pm, “removed\_email\_address@domain.invalid”

---

<div class="post-metadata">

**Author:** ![jimmypalmer](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/j/bbe5ce/32.png) [@jimmypalmer](https://www.ruby-forum.com/u/jimmypalmer)\
**Post date:** [December 21, 2007, 5:08pm UTC](https://www.ruby-forum.com/t/capistrano-on-media-temple/122502/6 "2007-12-21T17:08:18Z")

</div>

Looks good, I’ll have to try it out later.

But if it doesn’t work for you I really recommend using the  
rsync\_with\_remote\_cache plugin. Install and usage details are here:

[http://trac.extendviget.com/lab/wiki/CapistranoRsyncWithRemoteCache](http://trac.extendviget.com/lab/wiki/CapistranoRsyncWithRemoteCache)

Even though this plugin still checks out a fresh copy from your  
repository, for some reason it doesn’t trigger the error. Also if you  
are working on a large project but only making incremental changes, this  
speeds up the deployment because you are only uploading changes to you  
project.

---

<div class="post-metadata">

**Author:** ![jimmypalmer](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/j/bbe5ce/32.png) [@jimmypalmer](https://www.ruby-forum.com/u/jimmypalmer)\
**Post date:** [December 20, 2007, 11:04pm UTC](https://www.ruby-forum.com/t/capistrano-on-media-temple/122502/7 "2007-12-20T23:04:53Z")

</div>

I’m stuck on this one now too.

svn checkout -q -r17 svn+ssh://removed\_email\_address@domain.invalid/home/username/svn/  
myapplication/trunk

Above is the exact command Capistrano is running for me–and failing–  
whereas I can run that just fine manually.

I also think it’s odd that it would rather fail than ask for a  
password. My ssh\_options[:keys] is correct, my user is correct, etc.

I’m now wondering if it’s second part of the checkout, which for me  
looks like

/home/username/myapplication/releases/20071220214955

Is it expecting something I don’t know about? Permissions? Is the SSH  
user for some reason not able to work on those folders?

On Dec 18, 3:44 pm, Matt S. [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid)

---

<div class="post-metadata">

**Author:** ![jimmypalmer](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/j/bbe5ce/32.png) [@jimmypalmer](https://www.ruby-forum.com/u/jimmypalmer)\
**Post date:** [May 21, 2008, 10:58pm UTC](https://www.ruby-forum.com/t/capistrano-on-media-temple/122502/8 "2008-05-21T22:58:13Z")

</div>

I encountered this error when trying to deploy to MediaTemple using a  
MediaTemple hosted svn repo. Not sure if this will help, but here’s  
how I fixed it:

1. SSHed into my production server
2. from production server, SSH into repository server (note for me  
this was SSHing into production server from itself. A bit of  
recursive SSHing)
  - this logs the Host key and gets rid of the “Host key  
verification failed.” error

I then encountered another problem regarding the authorization, for  
which I generated a public/private key combo on the production server  
for itself. Someone please tell me if I’m breaking some huge rule by  
doing so. Hope this helps someone, and sorry that this is from such  
an old post. I googled upon this thread and figured I’d update it.

On Dec 8 2007, 3:06 am, Jimmy P. \<ruby-forum-incom…@andreas-

---

<div class="post-metadata">

**Author:** ![jimmypalmer](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/j/bbe5ce/32.png) [@jimmypalmer](https://www.ruby-forum.com/u/jimmypalmer)\
**Post date:** [June 24, 2008, 7:58pm UTC](https://www.ruby-forum.com/t/capistrano-on-media-temple/122502/9 "2008-06-24T19:58:48Z")

</div>

Max Kaplan wrote:

> I’m having a similarr issue with Media Temple and Capistrano  
> deployment…

I fixed the issue by adding

set :use\_sudo, false

to my deploy.rb

---

<div class="post-metadata">

**Author:** ![jimmypalmer](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/j/bbe5ce/32.png) [@jimmypalmer](https://www.ruby-forum.com/u/jimmypalmer)\
**Post date:** [June 24, 2008, 7:24pm UTC](https://www.ruby-forum.com/t/capistrano-on-media-temple/122502/10 "2008-06-24T19:24:44Z")

</div>

I’m having a similarr issue with Media Temple and Capistrano  
deployment…

When I do this : cap mt:add from my local app dir it works fine, but  
when I move onto the next step and try to run:

# cap deploy:setup

I get… (the ####s are for my privacy)

- executing `deploy:setup’
  - executing “sudo -p 'sudo password: ’ mkdir -p  
/home/####/containers/rails/pmis  
/home/####/containers/rails/pmis/releases  
/home/####/containers/rails/pmis/shared  
/home/####/containers/rails/pmis/shared/system  
/home/####/containers/rails/pmis/shared/log  
/home/####/containers/rails/pmis/shared/pids && sudo -p 'sudo password:  
’ chmod g+w /home/####/containers/rails/pmis  
/home/####/containers/rails/pmis/releases  
/home/####/containers/rails/pmis/shared  
/home/####/containers/rails/pmis/shared/system  
/home/####/containers/rails/pmis/shared/log  
/home/####/containers/rails/pmis/shared/pids”  
servers: [“[sustainable-future.com](http://sustainable-future.com)”]  
[[sustainable-future.com](http://sustainable-future.com)] executing command  
\*\*\* [err :: [sustainable-future.com](http://sustainable-future.com)] sh: line 1: sudo: command not found  
command finished  
command “sudo -p 'sudo password: ’ mkdir -p  
/home/####/containers/rails/pmis  
/home/####/containers/rails/pmis/releases  
/home/####/containers/rails/pmis/shared  
/home/####/containers/rails/pmis/shared/system  
/home/####/containers/rails/pmis/shared/log  
/home/####/containers/rails/pmis/shared/pids && sudo -p 'sudo password:  
’ chmod g+w /home/####/containers/rails/pmis  
/home/####/containers/rails/pmis/releases  
/home/####/containers/rails/pmis/shared  
/home/####/containers/rails/pmis/shared/system  
/home/####/containers/rails/pmis/shared/log  
/home/####/containers/rails/pmis/shared/pids” failed on  
[sustainable-future.com](http://sustainable-future.com)

I’m stumped! any help would be great!
