2014-03-06 69 views
0

我不確定如何解決我在嘗試部署nanoc時遇到的錯誤。查看下面的錯誤。Nanoc部署rsync錯誤(代碼2)

aliaas @的ALIS的MacBook空中〜/項目/投資/ 2014_portfolio
❯nanoc部署--target公共 加載網站數據...做 [email protected]'s密碼: 協議版本不匹配 - 是你的外殼乾淨? (見說明rsync的手冊頁) rsync的錯誤:在/SourceCache/rsync/rsync-42/rsync/compat.c(61協議不兼容(代碼2))[發件人= 2.6.9]

隊長!我們已經被擊中了!

消息:

RuntimeError:命令退出非零狀態碼2(命令: 「汞柱」 「SVN」 「GIT中」 rsync的-glpPrtvz --exclude = --exclude = --exclude =輸出/ [email protected]:/ 2014)

編譯堆棧:

(空)

堆棧跟蹤:

  1. /Library/Ruby/Gems/2.0.0/gems/nanoc-3.6.7/lib/nanoc/extra/deployers/rsync.rb:60:in`run_shell_cmd'
  2. /Library/Ruby/Gems/2.0。 0/gems/nanoc-3.6.7/lib/nanoc/extra/deployers/rsync.rb:50:in'run'
  3. /Library/Ruby/Gems/2.0.0/gems/nanoc-3.6.7/ lib/nanoc/cli/commands/deploy.rb:89:'run'
  4. /Library/Ruby/Gems/2.0.0/gems/nanoc-3.6.7/lib/nanoc/cli/command_runner.rb: 14:在`在呼叫塊 '
  5. /Library/Ruby/Gems/2.0.0/gems/nanoc-3.6.7/lib/nanoc/cli/error_handler.rb:70:in`handle_while'
  6. /Library/Ruby/Gems/2.0.0/gems/nanoc-3.6.7/lib/nanoc/cli/error_handler.rb:26:在`handle_while'
  7. /Library/Ruby/Gems/2.0.0/gems/nanoc-3.6.7/lib/nanoc/cli/command_runner.rb:13:in`稱之爲」
  8. /Library/Ruby/Gems/2.0。 0/gems/cri-2.5.0/lib/cri/command_dsl.rb:185:in'block in runner'
  9. /Library/Ruby/Gems/2.0.0/gems/cri-2.5.0/lib/ cri/command.rb:298:in`call'
  10. /Library/Ruby/Gems/2.0.0/gems/cri-2.5.0/lib/cri/command.rb:298:in`run_this' 。 ..省略了9條線。詳情請參閱完整的崩潰日誌。 >https://github.com/nanoc/nanoc/issues/new < - -

    詳細的崩潰日誌已經被寫入./crash.log

如果您認爲這是nanoc一個bug,請在 報告。

回答

0

這似乎是您的服務器的問題,而不是與nanoc。

搜索,你得到使我this question錯誤,它具有以下答案:

One of your login scripts (.bashrc/.cshrc/etc.) is probably outputting data to the terminal (when it shouldn't be). This is causing ssh to error when it is connecting and getting ready to copy as it starts receiving extra data it doesn't expect. Remove output that is generated in the startup scripts.