chef-solo from_file eu une erreur sur bash / tmp / script chef retourné 1, 0 attendu
-
27-10-2019 - |
Question
Im ayant cette erreur apparaît sur des recettes-solo de chef, Im nouveau pour elle donc je ne comprends vraiment cette erreur ou comment le résoudre ... encore des sons comme l'un des fichiers ou dir introuvable, créé ...
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
Ceci est la recette qui montre l'erreur.
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
La solution
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
Licencié sous: CC-BY-SA avec attribution
Non affilié à StackOverflow