Sunday, October 6, 2013

/opt/chef/embedded/lib/ruby/1.9.1/net/http.rb:763:in `initialize': No such file or directory - getaddrinfo (Errno::ENOENT)

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

2 comments:

  1. doesnt worked. do you have other solution to this?

    ReplyDelete
  2. I dodn't remember exactly, but i think i had to install ruby seperately.

    ReplyDelete