scttnlsn / dandelion

Incremental Git repository deployment.
http://scttnlsn.github.io/dandelion
MIT License
738 stars 60 forks source link

Error During Initial Deploy via FTP (Connection refused - connect(2)) #3

Closed caseydreier closed 13 years ago

caseydreier commented 13 years ago

Attempting the first deploy using FTP on a client's site, I get the following error:

Connecting to:    ftp://xxx@xxxxx/public_html
~/.rvm/rubies/ree-1.8.7-2011.03/lib/ruby/1.8/net/ftp.rb:159:in `initialize': Connection refused - connect(2) (Errno::ECONNREFUSED)
from ~/.rvm/rubies/ree-1.8.7-2011.03/lib/ruby/1.8/net/ftp.rb:159:in `open'
from ~/.rvm/rubies/ree-1.8.7-2011.03/lib/ruby/1.8/net/ftp.rb:159:in `open_socket'
from ~/.rvm/rubies/ree-1.8.7-2011.03/lib/ruby/1.8/net/ftp.rb:314:in `transfercmd'
from ~/.rvm/rubies/ree-1.8.7-2011.03/lib/ruby/1.8/net/ftp.rb:404:in `retrbinary'
from ~/.rvm/rubies/ree-1.8.7-2011.03/lib/ruby/1.8/monitor.rb:242:in `synchronize'
from ~/.rvm/rubies/ree-1.8.7-2011.03/lib/ruby/1.8/net/ftp.rb:402:in `retrbinary'
from ~/.rvm/gems/ree-1.8.7-2011.03/gems/dandelion-0.2.2/bin/../lib/dandelion/backend/ftp.rb:24:in `read'
from ~/.rvm/gems/ree-1.8.7-2011.03/gems/dandelion-0.2.2/bin/../lib/dandelion/deployment.rb:120:in `read_remote_revision'
from ~/.rvm/gems/ree-1.8.7-2011.03/gems/dandelion-0.2.2/bin/../lib/dandelion/deployment.rb:67:in `initialize'
from ~/.rvm/gems/ree-1.8.7-2011.03/gems/dandelion-0.2.2/bin/../lib/dandelion/deployment.rb:12:in `new'
from ~/.rvm/gems/ree-1.8.7-2011.03/gems/dandelion-0.2.2/bin/../lib/dandelion/deployment.rb:12:in `create'
from ~/.rvm/gems/ree-1.8.7-2011.03/gems/dandelion-0.2.2/bin/../lib/dandelion/cli.rb:156:in `deployment'
from ~/.rvm/gems/ree-1.8.7-2011.03/gems/dandelion-0.2.2/bin/../lib/dandelion/cli.rb:123:in `execute'
from ~/.rvm/gems/ree-1.8.7-2011.03/gems/dandelion-0.2.2/bin/../lib/dandelion/cli.rb:105:in `execute'
from ~/.rvm/gems/ree-1.8.7-2011.03/gems/dandelion-0.2.2/bin/dandelion:7
from ~/.rvm/gems/ree-1.8.7-2011.03/bin/dandelion:19:in `load'
from ~/.rvm/gems/ree-1.8.7-2011.03/bin/dandelion:19

Connecting manually via Net::FTP works fine. Sorry that I don't have more info for you.

scttnlsn commented 13 years ago

Hey Casey,

I'm wondering if this could be a result of active vs. passive FTP modes. Net::FTP defaults to active but Dandelion uses passive mode unless specified otherwise in the configuration file (initially convenient for my use case, but likely a design mistake). Do you get the same results if you explicitly set passive: false in the config file?

Thanks!

-Scott

caseydreier commented 13 years ago

Hey, that did the trick, thanks for the help!