scttnlsn / dandelion

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

Occasional FTP failures #86

Closed davidosomething closed 9 years ago

davidosomething commented 10 years ago

It works after retrying a few times, but occasionally FTP'ing into an IIS server I get:

/home/davidosomething/.rubies/ruby-2.1.2/lib/ruby/2.1.0/net/ftp.rb:329:in `getresp':  ': command not understood. (Net::FTPProtoError)
    from /home/davidosomething/.rubies/ruby-2.1.2/lib/ruby/2.1.0/net/ftp.rb:352:in `block in sendcmd'
    from /home/davidosomething/.rubies/ruby-2.1.2/lib/ruby/2.1.0/monitor.rb:211:in `mon_synchronize'
    from /home/davidosomething/.rubies/ruby-2.1.2/lib/ruby/2.1.0/net/ftp.rb:350:in `sendcmd'
    from /home/davidosomething/.rubies/ruby-2.1.2/lib/ruby/2.1.0/net/ftp.rb:845:in `mkdir'
    from /home/davidosomething/.gem/ruby/2.1.2/gems/dandelion-0.4.4/lib/dandelion/adapter/ftp.rb:78:in `mkdir_p'
    from /home/davidosomething/.gem/ruby/2.1.2/gems/dandelion-0.4.4/lib/dandelion/adapter/ftp.rb:33:in `rescue in block in write'
    from /home/davidosomething/.gem/ruby/2.1.2/gems/dandelion-0.4.4/lib/dandelion/adapter/ftp.rb:30:in `block in write'
    from /home/davidosomething/.gem/ruby/2.1.2/gems/dandelion-0.4.4/lib/dandelion/utils.rb:9:in `temp'
    from /home/davidosomething/.gem/ruby/2.1.2/gems/dandelion-0.4.4/lib/dandelion/adapter/ftp.rb:29:in `write'
    from /home/davidosomething/.gem/ruby/2.1.2/gems/dandelion-0.4.4/lib/dandelion/deployer.rb:49:in `deploy_change!'
    from /home/davidosomething/.gem/ruby/2.1.2/gems/dandelion-0.4.4/lib/dandelion/deployer.rb:13:in `block in deploy_changeset!'
    from /home/davidosomething/.gem/ruby/2.1.2/gems/dandelion-0.4.4/lib/dandelion/changeset.rb:28:in `block in each'
    from /home/davidosomething/.gem/ruby/2.1.2/gems/dandelion-0.4.4/lib/dandelion/diff.rb:58:in `block in each'
    from /home/davidosomething/.gem/ruby/2.1.2/gems/dandelion-0.4.4/lib/dandelion/diff.rb:57:in `each'
    from /home/davidosomething/.gem/ruby/2.1.2/gems/dandelion-0.4.4/lib/dandelion/diff.rb:57:in `each'
    from /home/davidosomething/.gem/ruby/2.1.2/gems/dandelion-0.4.4/lib/dandelion/changeset.rb:20:in `each'
    from /home/davidosomething/.gem/ruby/2.1.2/gems/dandelion-0.4.4/lib/dandelion/deployer.rb:9:in `deploy_changeset!'
    from /home/davidosomething/.gem/ruby/2.1.2/gems/dandelion-0.4.4/lib/dandelion/command/deploy.rb:55:in `deploy_changeset!'
    from /home/davidosomething/.gem/ruby/2.1.2/gems/dandelion-0.4.4/lib/dandelion/command/deploy.rb:30:in `execute!'
    from /home/davidosomething/.gem/ruby/2.1.2/gems/dandelion-0.4.4/lib/dandelion/cli.rb:66:in `execute!'
    from /home/davidosomething/.gem/ruby/2.1.2/gems/dandelion-0.4.4/bin/dandelion:8:in `<top (required)>'
    from /home/davidosomething/.gem/ruby/2.1.2/bin/dandelion:23:in `load'
    from /home/davidosomething/.gem/ruby/2.1.2/bin/dandelion:23:in `<main>'
scttnlsn commented 10 years ago

Are you able to issue a MKD <dir> command if you manually connect to the FTP server?

davidosomething commented 10 years ago

Tried it through Filezilla, log shows successfully MKD

peterolle commented 9 years ago

This happened to me as well, switch to SFTP to have a more stable connection. That fixed my problem for good. It seems is a connection problem with your server.

Hope it helps.