Connection timed out using svn+ssh

94 views
Skip to first unread message

Dale

unread,
Feb 28, 2008, 9:56:19 AM2/28/08
to Capistrano
I am using capistrano to deploy my rails application. When I run:

cap deploy:update_code

It prompts me for my svn server password, I enter it, then it says it
is executing a check out. Then after that, it prompts me for my
password for the web server. The username for both server's are the
same. Then it just pauses for a little while, then spits out:

** [err] ssh: connect to host svn.domain.com port 22: Connection timed
out
** [err] svn: Connection closed unexpectedly
command finished

I am able to run:

cap deploy:setup with no problem and setup my directory structure. I
also ran:

cap -q deploy:check and it returns You appear to have necessary
dependencies installed

I am able to reach and co a working copy of my project with my dev
machine using the svn+ssh protocol. One note, my svn server and web
server are the same server. I don't have separate servers running
each one. I am new to Capistrano and I am not sure how the internals
work.

Thanks for any advice.

Fred

unread,
Feb 28, 2008, 10:24:32 AM2/28/08
to Capistrano
I think what is happening is that you are trying to ssh into the same
server from the same server.
The svn+ssh protocol creates a connection using svnserver via ssh.
Since you have you svn repos and the application deployment target on
the same server, you probably don't want (or need) to use svn+ssh.

Check this article out:
http://articles.slicehost.com/2008/2/1/capistrano-series-alternative-subversion-setups

Hope this helps.

Dale

unread,
Feb 28, 2008, 10:35:30 AM2/28/08
to Capistrano
I kind of figured that was the case, but I wanted confirmation.
Thanks for the article. I will read it and apply it.

Dale

unread,
Feb 28, 2008, 10:50:14 AM2/28/08
to Capistrano
That fixed it. Thanks.
Reply all
Reply to author
Forward
0 new messages