厨师 - 刀独奏厨师因rsync错误而失败

时间:2016-02-04 07:23:03

标签: chef knife

knife solo prepare username@my-ip-address -p 4111成功完成但在使用cook运行时,配置失败并出现rsync错误:

rsync: connection unexpectedly closed (0 bytes received so far) [sender]
rsync error: unexplained error (code 255) at io.c(226) [sender=3.1.1]
ERROR: RuntimeError: Failed to launch command ["rsync", "-rL", "--rsh=ssh username@my-ip-address -p 4111 -o ControlMaster=auto -o ControlPath=/home/my_username/.chef/knife-solo-sockets/%h -o ControlPersist=3600", "--delete-after", "-zt", "--exclude=revision-deploys", "--exclude=.git", "--exclude=.hg", "--exclude=.svn", "--exclude=.bzr", "/home/my_username/.rvm/gems/ruby-2.2.1/gems/knife-solo-0.5.1/lib/knife-solo/resources/patch_cookbooks/", ":~/chef-solo/cookbooks-1"]

我的主机是ubuntu桌面15.10,我的节点是ubuntu服务器14.04LTS。 我做错了什么?

1 个答案:

答案 0 :(得分:0)

如IRC所述,该错误意味着无密码SSH无法正常工作。您很可能没有正确设置SSH密钥,但请尝试手动运行SSH以查看详细信息。