Chef-solo from_file 出现错误 bash /tmp/chef-script 返回 1,预期为 0
我在厨师独奏食谱上出现了这个错误,我是新来的,所以我并没有真正得到这个错误或如何修复它...听起来仍然像文件或目录未找到,创建...
out: [Fri, 18 Mar 2011 15:59:28 +0000] ERROR: script[Install_Requirements] (/etc/chef/cookbooks/main/recipes/rincon.rb:35:in `from_file') had an error:
out: "bash" "/tmp/chef-script20110318-7369-1hi8q5e-0" returned 1, expected 0
这是显示的食谱错误。
script "Install_Requirements" do
interpreter "bash"
user "rincon"
group "rincon"
cwd "/tmp"
code <<-EOH
/home/rincon/sites/rinconcolombia/bin/pip install -r /home/rincon/sites/rinconcolombia/checkouts/rinconcolombia/requirements.txt
EOH
end
Im having this error appear on chef-solo recipes, Im new to it so I dont really get this error or how to fix it... still sounds like either file or dir not found, created...
out: [Fri, 18 Mar 2011 15:59:28 +0000] ERROR: script[Install_Requirements] (/etc/chef/cookbooks/main/recipes/rincon.rb:35:in `from_file') had an error:
out: "bash" "/tmp/chef-script20110318-7369-1hi8q5e-0" returned 1, expected 0
This is the recipe that shows the error.
script "Install_Requirements" do
interpreter "bash"
user "rincon"
group "rincon"
cwd "/tmp"
code <<-EOH
/home/rincon/sites/rinconcolombia/bin/pip install -r /home/rincon/sites/rinconcolombia/checkouts/rinconcolombia/requirements.txt
EOH
end
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
我一直在使用 Chef-solo -l 调试标志,它为我提供了调试此问题所需的所有信息...谢谢大家,希望这对您有用,如果您发现自己处于同样的警告中
Ive been using chef-solo -l debug flag and its been giving me all the info I need to debug this problem... Thank you all hope this works for you should you find yourself in the same caveat