scttnlsn / dandelion

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

Time Out Error? #111

Closed bobrocke closed 9 years ago

bobrocke commented 9 years ago

When attempting to dandelion deploy I get this error:

/Users/bob/.rvm/rubies/ruby-2.0.0-p247/lib/ruby/2.0.0/net/protocol.rb:153:in `read_nonblock': Operation timed out (Errno::ETIMEDOUT)

Do I have something misconfigured?

scttnlsn commented 9 years ago

Could you provide the full stack trace? What Dandelion scheme/adapter are you using?

bobrocke commented 9 years ago

It's the FTP adapter. Here's the full terminal output:

RockBox:www.grav.dev bob$ dandelion deploy
Connecting to ftp://bobrocke@ftp.bobrockefeller.com//public_html/stage.bobrockefeller.com
Remote revision:    ---
Deploying revision: 24f4d00c7e3e77b74899255ba6fd3f7a18486e2e
Deploying changes...
Writing file:  .editorconfig
Skipping file: .gitignore
Writing file:  .htaccess
Writing file:  CHANGELOG.md
Writing file:  LICENSE
Writing file:  README.md
Writing file:  TextMate.editorconfig
Writing file:  bin/composer.phar
Writing file:  bin/gpm
Writing file:  bin/grav
Writing file:  composer.json
Writing file:  composer.lock
Writing file:  config.codekit
Skipping file: dandelion.yml
Writing file:  htaccess.txt
Writing file:  index.php
Writing file:  nginx.conf
Writing file:  system/assets/debugger.css
Writing file:  system/assets/grav.png
Writing file:  system/assets/whoops.css
Writing file:  system/blueprints/config/media.yaml
Writing file:  system/blueprints/config/site.yaml
/Users/bob/.rvm/rubies/ruby-2.0.0-p247/lib/ruby/2.0.0/net/protocol.rb:153:in `read_nonblock': Operation timed out (Errno::ETIMEDOUT)
    from /Users/bob/.rvm/rubies/ruby-2.0.0-p247/lib/ruby/2.0.0/net/protocol.rb:153:in `rbuf_fill'
    from /Users/bob/.rvm/rubies/ruby-2.0.0-p247/lib/ruby/2.0.0/net/protocol.rb:134:in `readuntil'
    from /Users/bob/.rvm/rubies/ruby-2.0.0-p247/lib/ruby/2.0.0/net/ftp.rb:1108:in `readline'
    from /Users/bob/.rvm/rubies/ruby-2.0.0-p247/lib/ruby/2.0.0/net/ftp.rb:289:in `getline'
    from /Users/bob/.rvm/rubies/ruby-2.0.0-p247/lib/ruby/2.0.0/net/ftp.rb:300:in `getmultiline'
    from /Users/bob/.rvm/rubies/ruby-2.0.0-p247/lib/ruby/2.0.0/net/ftp.rb:318:in `getresp'
    from /Users/bob/.rvm/rubies/ruby-2.0.0-p247/lib/ruby/2.0.0/net/ftp.rb:351:in `block in sendcmd'
    from /Users/bob/.rvm/rubies/ruby-2.0.0-p247/lib/ruby/2.0.0/monitor.rb:211:in `mon_synchronize'
    from /Users/bob/.rvm/rubies/ruby-2.0.0-p247/lib/ruby/2.0.0/net/ftp.rb:349:in `sendcmd'
    from /Users/bob/.rvm/rubies/ruby-2.0.0-p247/lib/ruby/2.0.0/net/ftp.rb:428:in `transfercmd'
    from /Users/bob/.rvm/rubies/ruby-2.0.0-p247/lib/ruby/2.0.0/net/ftp.rb:543:in `block (2 levels) in storbinary'
    from /Users/bob/.rvm/rubies/ruby-2.0.0-p247/lib/ruby/2.0.0/net/ftp.rb:199:in `with_binary'
    from /Users/bob/.rvm/rubies/ruby-2.0.0-p247/lib/ruby/2.0.0/net/ftp.rb:542:in `block in storbinary'
    from /Users/bob/.rvm/rubies/ruby-2.0.0-p247/lib/ruby/2.0.0/monitor.rb:211:in `mon_synchronize'
    from /Users/bob/.rvm/rubies/ruby-2.0.0-p247/lib/ruby/2.0.0/net/ftp.rb:541:in `storbinary'
    from /Users/bob/.rvm/rubies/ruby-2.0.0-p247/lib/ruby/2.0.0/net/ftp.rb:690:in `putbinaryfile'
    from /Users/bob/.rvm/gems/ruby-2.0.0-p247@rails3/gems/dandelion-0.4.6/lib/dandelion/adapter/ftp.rb:31:in `block in write'
    from /Users/bob/.rvm/gems/ruby-2.0.0-p247@rails3/gems/dandelion-0.4.6/lib/dandelion/utils.rb:9:in `temp'
    from /Users/bob/.rvm/gems/ruby-2.0.0-p247@rails3/gems/dandelion-0.4.6/lib/dandelion/adapter/ftp.rb:29:in `write'
    from /Users/bob/.rvm/gems/ruby-2.0.0-p247@rails3/gems/dandelion-0.4.6/lib/dandelion/deployer.rb:49:in `deploy_change!'
    from /Users/bob/.rvm/gems/ruby-2.0.0-p247@rails3/gems/dandelion-0.4.6/lib/dandelion/deployer.rb:13:in `block in deploy_changeset!'
    from /Users/bob/.rvm/gems/ruby-2.0.0-p247@rails3/gems/dandelion-0.4.6/lib/dandelion/changeset.rb:28:in `block in each'
    from /Users/bob/.rvm/gems/ruby-2.0.0-p247@rails3/gems/dandelion-0.4.6/lib/dandelion/diff.rb:58:in `block in each'
    from /Users/bob/.rvm/gems/ruby-2.0.0-p247@rails3/gems/dandelion-0.4.6/lib/dandelion/diff.rb:57:in `each'
    from /Users/bob/.rvm/gems/ruby-2.0.0-p247@rails3/gems/dandelion-0.4.6/lib/dandelion/diff.rb:57:in `each'
    from /Users/bob/.rvm/gems/ruby-2.0.0-p247@rails3/gems/dandelion-0.4.6/lib/dandelion/changeset.rb:20:in `each'
    from /Users/bob/.rvm/gems/ruby-2.0.0-p247@rails3/gems/dandelion-0.4.6/lib/dandelion/deployer.rb:9:in `deploy_changeset!'
    from /Users/bob/.rvm/gems/ruby-2.0.0-p247@rails3/gems/dandelion-0.4.6/lib/dandelion/command/deploy.rb:55:in `deploy_changeset!'
    from /Users/bob/.rvm/gems/ruby-2.0.0-p247@rails3/gems/dandelion-0.4.6/lib/dandelion/command/deploy.rb:30:in `execute!'
    from /Users/bob/.rvm/gems/ruby-2.0.0-p247@rails3/gems/dandelion-0.4.6/lib/dandelion/cli.rb:69:in `execute!'
    from /Users/bob/.rvm/gems/ruby-2.0.0-p247@rails3/gems/dandelion-0.4.6/bin/dandelion:8:in `<top (required)>'
    from /Users/bob/.rvm/gems/ruby-2.0.0-p247@rails3/bin/dandelion:23:in `load'
    from /Users/bob/.rvm/gems/ruby-2.0.0-p247@rails3/bin/dandelion:23:in `<main>'
scttnlsn commented 9 years ago

Try setting passive: true in your config file.

bobrocke commented 9 years ago

That cleared the errors. Thanks!

steffenr commented 9 years ago

I also had the same error with an FTP connection - unfortunately settings passive: true did not solve the issue. Do you have any other idea to solve the problem.

I'm using default FPT Adapter with the following settings:

scheme: ftp
host: www.domain.de
username: ftp-user
password: ftp-password
passive: true

Attached you find a stacktrace of the error:

Writing file:  misc/vertical-tabs.js
Writing file:  misc/watchdog-error.png
Writing file:  misc/watchdog-ok.png
Writing file:  misc/watchdog-warning.png
Writing file:  modules/README.txt
Writing file:  modules/aggregator/aggregator-feed-source.tpl.php
Writing file:  modules/aggregator/aggregator-item.tpl.php
Writing file:  modules/aggregator/aggregator-rtl.css
Writing file:  modules/aggregator/aggregator-summary-item.tpl.php
/System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/lib/ruby/2.0.0/net/protocol.rb:153:in `read_nonblock': Connection reset by peer (Errno::ECONNRESET)
    from /System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/lib/ruby/2.0.0/net/protocol.rb:153:in `rbuf_fill'
    from /System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/lib/ruby/2.0.0/net/protocol.rb:134:in `readuntil'
    from /System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/lib/ruby/2.0.0/net/ftp.rb:1108:in `readline'
    from /System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/lib/ruby/2.0.0/net/ftp.rb:289:in `getline'
    from /System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/lib/ruby/2.0.0/net/ftp.rb:300:in `getmultiline'
    from /System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/lib/ruby/2.0.0/net/ftp.rb:318:in `getresp'
    from /System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/lib/ruby/2.0.0/net/ftp.rb:351:in `block in sendcmd'
    from /System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/lib/ruby/2.0.0/monitor.rb:211:in `mon_synchronize'
    from /System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/lib/ruby/2.0.0/net/ftp.rb:349:in `sendcmd'
    from /System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/lib/ruby/2.0.0/net/ftp.rb:394:in `makepasv'
    from /System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/lib/ruby/2.0.0/net/ftp.rb:406:in `transfercmd'
    from /System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/lib/ruby/2.0.0/net/ftp.rb:543:in `block (2 levels) in storbinary'
    from /System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/lib/ruby/2.0.0/net/ftp.rb:199:in `with_binary'
    from /System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/lib/ruby/2.0.0/net/ftp.rb:542:in `block in storbinary'
    from /System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/lib/ruby/2.0.0/monitor.rb:211:in `mon_synchronize'
    from /System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/lib/ruby/2.0.0/net/ftp.rb:541:in `storbinary'
    from /System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/lib/ruby/2.0.0/net/ftp.rb:690:in `putbinaryfile'
    from /Library/Ruby/Gems/2.0.0/gems/dandelion-0.4.6/lib/dandelion/adapter/ftp.rb:31:in `block in write'
    from /Library/Ruby/Gems/2.0.0/gems/dandelion-0.4.6/lib/dandelion/utils.rb:9:in `temp'
    from /Library/Ruby/Gems/2.0.0/gems/dandelion-0.4.6/lib/dandelion/adapter/ftp.rb:29:in `write'
    from /Library/Ruby/Gems/2.0.0/gems/dandelion-0.4.6/lib/dandelion/deployer.rb:49:in `deploy_change!'
    from /Library/Ruby/Gems/2.0.0/gems/dandelion-0.4.6/lib/dandelion/deployer.rb:13:in `block in deploy_changeset!'
    from /Library/Ruby/Gems/2.0.0/gems/dandelion-0.4.6/lib/dandelion/changeset.rb:28:in `block in each'
    from /Library/Ruby/Gems/2.0.0/gems/dandelion-0.4.6/lib/dandelion/diff.rb:58:in `block in each'
    from /Library/Ruby/Gems/2.0.0/gems/dandelion-0.4.6/lib/dandelion/diff.rb:57:in `each'
    from /Library/Ruby/Gems/2.0.0/gems/dandelion-0.4.6/lib/dandelion/diff.rb:57:in `each'
    from /Library/Ruby/Gems/2.0.0/gems/dandelion-0.4.6/lib/dandelion/changeset.rb:20:in `each'
    from /Library/Ruby/Gems/2.0.0/gems/dandelion-0.4.6/lib/dandelion/deployer.rb:9:in `deploy_changeset!'
    from /Library/Ruby/Gems/2.0.0/gems/dandelion-0.4.6/lib/dandelion/command/deploy.rb:55:in `deploy_changeset!'
    from /Library/Ruby/Gems/2.0.0/gems/dandelion-0.4.6/lib/dandelion/command/deploy.rb:30:in `execute!'
    from /Library/Ruby/Gems/2.0.0/gems/dandelion-0.4.6/lib/dandelion/cli.rb:69:in `execute!'
    from /Library/Ruby/Gems/2.0.0/gems/dandelion-0.4.6/bin/dandelion:8:in `<top (required)>'
    from /usr/bin/dandelion:23:in `load'
    from /usr/bin/dandelion:23:in `<main>'
scttnlsn commented 9 years ago

@steffenr It's possible your FTP server is configured to use active FTP but a firewall is blocking the data port? Are you able to connect successfully using other FTP clients?