Chef - knife solo cook 失败并出现 rsync 错误
Chef - knife solo cook fails with an rsync error
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。
我做错了什么?
如 IRC 中所述,该错误意味着无密码 SSH 无法正常工作。您很可能没有正确设置 SSH 密钥,但请手动尝试 运行 SSH 以查看具体情况。
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。 我做错了什么?
如 IRC 中所述,该错误意味着无密码 SSH 无法正常工作。您很可能没有正确设置 SSH 密钥,但请手动尝试 运行 SSH 以查看具体情况。