Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

knife configure -i fails

Running knife I keep on getting this error, google does not seem to help much

WARNING: No knife configuration file found
Where should I put the config file? [/home/ubuntu/.chef/knife.rb] 
ERROR: Ohai::Exceptions::DependencyNotFound: Can not find a plugin for dependency os

This is a on a Ubuntu 13.10 server. Anyone have any ideas on how to solve this?

like image 551
daemonza Avatar asked Apr 14 '14 12:04

daemonza


2 Answers

Looks like its a bug as noted by the Chef folks but the link he gave is broken/missing.

http://lists.opscode.com/sympa/arc/chef/2014-04/msg00174.html

Im seeing the same issue by the way. What version of chef are you using?

EDIT: Got the link to work. Their mailing list was adding some hidden chars on the end of the URL... This might help you out: https://tickets.opscode.com/browse/CHEF-5211

like image 188
TheRedSeth Avatar answered Nov 13 '22 22:11

TheRedSeth


There is a patch out for this, the ticket number is 5211 on their jira patch tracker. Update the configure.rb file. You can find it by running (find / -name "configure.rb") that will return the location just do a vi on that and put in that line of code, and you should be all set. https://github.com/opscode/chef/pull/1374/files

like image 25
user3486758 Avatar answered Nov 13 '22 21:11

user3486758