littlechef icon indicating copy to clipboard operation
littlechef copied to clipboard

`fix node:XXX` -> Fatal error: sudo() received nonzero return code 127 while executing!

Open vjpr opened this issue 13 years ago • 2 comments
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.

vjpr avatar Aug 21 '12 07:08 vjpr

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

vjpr avatar Aug 21 '12 07:08 vjpr

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?

tobami avatar Sep 08 '12 19:09 tobami