I was trying to upload cookbooks from my workstation to hosted chef and thats when i was getting the error:
/opt/chef/embedded/lib/ruby/1.9.1/net/http.rb:763:in `initialize': No such file or directory - getaddrinfo (Errno::ENOENT)
command that i was executing was :
knife cookbook upload -a -VV
It worked fine when i executed following commands
sudo apt-get install ruby-dev
sudo knife cookbook upload -a -VV
/opt/chef/embedded/lib/ruby/1.9.1/net/http.rb:763:in `initialize': No such file or directory - getaddrinfo (Errno::ENOENT)
command that i was executing was :
knife cookbook upload -a -VV
It worked fine when i executed following commands
sudo apt-get install ruby-dev
sudo knife cookbook upload -a -VV
doesnt worked. do you have other solution to this?
ReplyDeleteI dodn't remember exactly, but i think i had to install ruby seperately.
ReplyDelete