Chef knife upload get ERROR: Errno::ENOENT: No such file or directory -


i made changes role on local chef-repo , wanted use knife upload roles upload changes chef-server error message

error: errno::enoent: no such file or directory - /home/danny/git/chef-repo/cookbooks/~/git/chef-repo 

all knife upload commands error

i able use bundle exec knife cookbook upload -a successfully

any idea going wrong

more info the command tried was knife upload /roles <---at top of local chef-repo & knife upload roles <--from roles directory

my knife.rb

log_level                :info log_location             stdout node_name                'admin' client_key               '~/.chef/admin.pem' validation_client_name   'chef-validator' validation_key           '~/.chef/chef-validator.pem' chef_server_url          'https://chef.example.org' chef_server_ip           '10.32.2.53' syntax_check_cache_path  '~/.chef/syntax_check_cache' cookbook_path        [ '~/git/chef-repo/cookbooks', '~/git/chef-repo/site-cookbooks' ]  knife[:use_sudo] = true knife[:ssh_user] = "emn" knife[:use_sudo_password] = true knife[:identity_file] = '~/.chef/emn.pem' 

just run knife upload roles root of chef repo. no slashes, no sub-directories.

also, roles json if want use knife upload. otherwise you'll need use knife role file.


Comments

Popular posts from this blog

php - regexp cyrillic filename not matches -

c# - OpenXML hanging while writing elements -

sql - Select Query has unexpected multiple records (MS Access) -