Reg socket ruby error

HI,

FOr ruby socket error name or service not known in ruby,when downloading
cookbooks .I have checked net connection at all its all working,when i
using wget with that url it gets download ,but when i download through
script it shows like this:

Downloading
https://region-a.geo-1.objects.hpcloudsvc.com:443/v1/68342917034742/cookbooks/marketplace/production/chef_handler.tar

/chef/embedded/lib/ruby/1.9.1/net/http.rb:762:in `initialize’:
getaddrinfo: Name or service not known (SocketError)

chef/embedded/lib/ruby/1.9.1/net/http.rb:762:in `open’

chef/embedded/lib/ruby/1.9.1/net/http.rb:762:in `block in connect’

chef/embedded/lib/ruby/1.9.1/timeout.rb:54:in `timeout’

I, [2015-02-17T23:01:23.978230 #16714] INFO – : 115.124.106.146
from /opt/chef/embedded/lib/ruby/1.9.1/timeout.rb:99:in `timeout’

.1/net/http.rb:762:in `connect’

lib/ruby/1.9.1/net/http.rb:755:in `do_start’

ruby/1.9.1/net/http.rb:744:in `start’

I ve used resolve and replace-resolver gem and add in require of
recipes,but showing same

THanks,
Indu

On Tuesday, February 17, 2015 at 11:53 PM, indra wrote:

HI,

FOr ruby socket error name or service not known in ruby,when downloading
cookbooks .I have checked net connection at all its all working,when i
using wget with that url it gets download ,but when i download through
script it shows like this:

Downloading
https://region-a.geo-1.objects.hpcloudsvc.com:443/v1/68342917034742/cookbooks/marketplace/production/chef_handler.tar

/chef/embedded/lib/ruby/1.9.1/net/http.rb:762:in `initialize':
getaddrinfo: Name or service not known (SocketError)

chef/embedded/lib/ruby/1.9.1/net/http.rb:762:in `open'

chef/embedded/lib/ruby/1.9.1/net/http.rb:762:in `block in connect'

chef/embedded/lib/ruby/1.9.1/timeout.rb:54:in `timeout'

I, [2015-02-17T23:01:23.978230 #16714] INFO -- : 115.124.106.146
from /opt/chef/embedded/lib/ruby/1.9.1/timeout.rb:99:in `timeout'

.1/net/http.rb:762:in `connect'

lib/ruby/1.9.1/net/http.rb:755:in `do_start'

ruby/1.9.1/net/http.rb:744:in `start'

I ve used resolve and replace-resolver gem and add in require of
recipes,but showing same

THanks,
Indu

Is this your own ruby script or remote_file or something else? Also, the error output here is formatted kinda funky, maybe you can provide the full error in a gist?

--
Daniel DeLeo