littlechef
littlechef copied to clipboard
`fix node:XXX` -> Fatal error: sudo() received nonzero return code 127 while executing!
trafficstars
Setting up Opscode repository...
Installing Chef Solo
Fatal error: sudo() received nonzero return code 127 while executing!
Requested: /etc/init.d/chef-client stop
Executed: sudo -S -p 'sudo password:' /bin/bash -l -c "/etc/init.d/chef-client stop"
========================================================================================= Standard output =========================================================================================
/bin/bash: /etc/init.d/chef-client: No such file or directory
===================================================================================================================================================================================================
Aborting.
Workaround:
Also, if you still want to keep the chef-client around in debian, use the stop_client option: fix node:MYNODE deploy_chef:stop_client=no
Opscode Chef packages install and start the chef-client service, with the file located on /etc/init.d/.
That you get /bin/bash: /etc/init.d/chef-client: No such file or directory makes me wonder what distribution you are using. Can you provide more info?