scttnlsn / dandelion

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

Error during initial deployment using FTP #5

Closed jonahcoyote closed 13 years ago

jonahcoyote commented 13 years ago

Hi there,

Thanks for the great tool! I'm getting the following trying to deploy over FTP:

/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/1.8/net/ftp.rb:456:in `write': Invalid argument (Errno::EINVAL)
    from /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/1.8/net/ftp.rb:456:in `storbinary'
    from /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/1.8/net/ftp.rb:453:in `loop'
    from /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/1.8/net/ftp.rb:453:in `storbinary'
    from /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/1.8/monitor.rb:242:in `synchronize'
    from /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/1.8/net/ftp.rb:450:in `storbinary'
    from /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/1.8/net/ftp.rb:562:in `putbinaryfile'
    from /Library/Ruby/Gems/1.8/gems/dandelion-0.3.1/bin/../lib/dandelion/backend/ftp.rb:33:in `write'
    from /Library/Ruby/Gems/1.8/gems/dandelion-0.3.1/bin/../lib/dandelion/backend.rb:49:in `temp'
    from /Library/Ruby/Gems/1.8/gems/dandelion-0.3.1/bin/../lib/dandelion/backend/ftp.rb:31:in `write'
    from /Library/Ruby/Gems/1.8/gems/dandelion-0.3.1/bin/../lib/dandelion/deployment.rb:140:in `deploy'
    from /Library/Ruby/Gems/1.8/gems/dandelion-0.3.1/bin/../lib/dandelion/deployment.rb:135:in `each'
    from /Library/Ruby/Gems/1.8/gems/dandelion-0.3.1/bin/../lib/dandelion/deployment.rb:135:in `deploy'
    from /Library/Ruby/Gems/1.8/gems/dandelion-0.3.1/bin/../lib/dandelion/command/deploy.rb:50:in `execute'
    from /Library/Ruby/Gems/1.8/gems/dandelion-0.3.1/bin/../lib/dandelion/application.rb:38:in `execute'
    from /Library/Ruby/Gems/1.8/gems/dandelion-0.3.1/bin/../lib/dandelion/command.rb:80:in `initialize'
    from /Library/Ruby/Gems/1.8/gems/dandelion-0.3.1/bin/../lib/dandelion/application.rb:36:in `new'
    from /Library/Ruby/Gems/1.8/gems/dandelion-0.3.1/bin/../lib/dandelion/application.rb:36:in `execute'
    from /Library/Ruby/Gems/1.8/gems/dandelion-0.3.1/bin/../lib/dandelion/application.rb:7:in `execute'
    from /Library/Ruby/Gems/1.8/gems/dandelion-0.3.1/bin/dandelion:7
    from /usr/bin/dandelion:19:in `load'
    from /usr/bin/dandelion:19

My settings are as follows:

# Required
scheme: ftp
host: ftp.myftp.com
username: myusername
password: mapass

# Optional
path: /mydomain.com/dev/
passive: false
exclude:
    - .gitignore
    - dandelion.yml
    - /wp-content/backup-db
    - /wp-content/bps-backup
    - /wp-content/w3tc

I get this with passive set to false or not.

Any ideas?

Thanks, Jonah

scttnlsn commented 13 years ago

Hmm. Is the FTP server a Windows machine?

jonahcoyote commented 13 years ago

No and it's hosted through Hostgator if that helps.

I also tried SFTP and their documentation says to use port 2222 but I can't connect that way... I got the same error as in Issue #3.

scttnlsn commented 13 years ago

I should definitely add the ability to specify the port in the configuration file. Then you could connect via SFTP on port 2222 and this issue would be less pressing.

jonahcoyote commented 13 years ago

That would be great.

scttnlsn commented 13 years ago

Pushed v0.3.2 which allows the port to be specified in the config file for FTP and SFTP backends.

jonahcoyote commented 13 years ago

Works like a charm, thanks dude!