The Artima Developer Community
Sponsored Link

Ruby Buzz Forum
Name or service not known

0 replies on 1 page.

Welcome Guest
  Sign In

Go back to the topic listing  Back to Topic List Click to reply to this topic  Reply to this Topic Click to search messages in this forum  Search Forum Click for a threaded view of the topic  Threaded View   
Previous Topic   Next Topic
Flat View: This topic has 0 replies on 1 page
Jonathan Weiss

Posts: 146
Nickname: jweiss
Registered: Jan, 2006

Jonathan Weiss is a Ruby and BSD enthusiast
Name or service not known Posted: Sep 23, 2007 6:09 AM
Reply to this message Reply

This post originated from an RSS feed registered with Ruby Buzz by Jonathan Weiss.
Original Post: Name or service not known
Feed Title: BlogFish
Feed URL: http://blog.innerewut.de/feed/atom.xml
Feed Description: Weblog by Jonathan Weiss about Unix, BSD, security, Programming in Ruby, Ruby on Rails and Agile Development.
Latest Ruby Buzz Posts
Latest Ruby Buzz Posts by Jonathan Weiss
Latest Posts From BlogFish

Advertisement

If you ever get such a wonderful verbose error message like this while running a Ruby script that uses sockets:

/usr/local/lib/ruby/1.8/drb/drb.rb:837:in `getaddrinfo': 

getaddrinfo: Name or service not known (SocketError)

Look for problems in /etc/hosts. In my case I wanted to use the Ferret drb-server and /etc/hosts was completely empty on a fresh EC2 node.

Just add a

127.0.0.1       localhost

And the problem goes away.

Read: Name or service not known

Topic: Tweets on 2007-09-20 Previous Topic   Next Topic Topic: Duck A La Range

Sponsored Links



Google
  Web Artima.com   

Copyright © 1996-2019 Artima, Inc. All Rights Reserved. - Privacy Policy - Terms of Use