Capistrano (Errno::ECONNREFUSED: Connection refused - connec

Hi folks,
I’m trying to setup with Capistrano 2 and I received this error:
$ cap deploy:setup

  • executing `deploy:setup’
  • executing “umask 02 && mkdir -p /var/www/apps/twitter
    /var/www/apps/twitter/releases /var/www/apps/twitter/shared
    /var/www/apps/twitter/shared/system /var/www/apps/twitter/shared/log
    /var/www/apps/twitter/shared/pids”
    servers: [“twitter.serni.net”]
    [DEBUG] Mon Oct 22 22:49:44 +0200 2007 – transport.session: connecting
    connection failed for: twitter.serni.net (Errno::ECONNREFUSED:
    Connection refused - connect(2))

Hehehe, I named the test project “twitter” (ough!). I think the problem
is the ssh port: 33022. For the svn+ssh I made a tunnel at the
subversion conf file, so, the Capistrano repository config is like this:

set :repository,
“svn+sernissh://#{domain}/var/www/apps/#{application}/repos/trunk”

Any idea?

Thanks!!
Xavier

On 10/22/07, Xavier B. [email protected] wrote:

[DEBUG] Mon Oct 22 22:49:44 +0200 2007 – transport.session: connecting
connection failed for: twitter.serni.net (Errno::ECONNREFUSED:
Connection refused - connect(2))

Hehehe, I named the test project “twitter” (ough!). I think the problem
is the ssh port: 33022. For the svn+ssh I made a tunnel at the
subversion conf file, so, the Capistrano repository config is like this:

It seems that your server (twitter.serni.net) isn’t answering (is not
open).

Also, check the documentation about capistrano recipes on how to
include the ssh port for each host.

set :repository,
“svn+sernissh://#{domain}/var/www/apps/#{application}/repos/trunk”

svn+sernissh??? I guess SVN will not understand that protocol :stuck_out_tongue:


Luis L.
Multimedia systems

Leaders are made, they are not born. They are made by hard effort,
which is the price which all of us must pay to achieve any goal that
is worthwhile.
Vince Lombardi

Luis L. wrote:

On 10/22/07, Xavier B. [email protected] wrote:

[DEBUG] Mon Oct 22 22:49:44 +0200 2007 – transport.session: connecting
connection failed for: twitter.serni.net (Errno::ECONNREFUSED:
Connection refused - connect(2))

Hehehe, I named the test project “twitter” (ough!). I think the problem
is the ssh port: 33022. For the svn+ssh I made a tunnel at the
subversion conf file, so, the Capistrano repository config is like this:

It seems that your server (twitter.serni.net) isn’t answering (is not
open).

Ups, it’s rare, but you’re right! If I make a nmap, doesnt show any ssh
open port!

Also, check the documentation about capistrano recipes on how to
include the ssh port for each host.

set :repository,
“svn+sernissh://#{domain}/var/www/apps/#{application}/repos/trunk”

svn+sernissh??? I guess SVN will not understand that protocol :stuck_out_tongue:

Well, jusr said at the first post. “sernissh” is a pattern I write at
the .subversion conf file to access any port unless 22…

Section for configuring tunnel agents.

[tunnels]
sernissh=/usr/bin/ssh -p 33022

Thanks!
Xavier B.

I had the same basic issue with a host that uses 7822 for ssh; fixed
with info from middle of this page:
http://wiki.rubyonrails.org/rails/pages/Capistrano

Seems easier to just re-create the custom protocol in deploy.rb, thus

set :repository, svn+ssh://user@domain/path/to/repos"
ssh_options[:port] = 7822