GithubHelp home page GithubHelp logo

Comments (5)

sandro avatar sandro commented on July 28, 2024

Looks like specjour is having issues resolving the ip from the hostname. I think someone else had this issue but I haven't been able to reproduce it on my local networks. Do you still encounter the issue when you disconnect from the network?

from specjour.

sandro avatar sandro commented on July 28, 2024

DRb connects via hostname if IP can't be resolved

Closed by 217c2c4
Closed by 217c2c4

from specjour.

coop avatar coop commented on July 28, 2024

I am still experiencing this problem although I think it might be related to my machine (but not really sure). I took at a look at the commit messages and ticket 16 was referenced so I took a look there and sandro suggested the following to require 'socket' and make the connection manually (to test). My console fails when I try that:

ruby-1.9.2-p0 > require 'socket'
 => nil 
ruby-1.9.2-p0 > Socket.getaddrinfo(Socket.gethostname, nil, Socket::AF_INET,     Socket::SOCK_STREAM)
SocketError: getaddrinfo: nodename nor servname provided, or not known
        from (irb):2:in `getaddrinfo'
        from (irb):2
        from /Users/sheldon/.rvm/gems/ruby-1.9.2-p0/gems/railties-    3.0.3/lib/rails/commands/console.rb:44:in `start'
    from /Users/sheldon/.rvm/gems/ruby-1.9.2-p0/gems/railties-3.0.3/lib/rails/commands/console.rb:8:in `start'
    from /Users/sheldon/.rvm/gems/ruby-1.9.2-p0/gems/railties-3.0.3/lib/rails/commands.rb:23:in `<top (required)>'
    from script/rails:6:in `require'
    from script/rails:6:in `<main>'

from specjour.

coop avatar coop commented on July 28, 2024

I am still experiencing this problem although I think it might be related to my machine (but not really sure). I took at a look at the commit messages and ticket 16 was referenced so I took a look there and sandro suggested the following to require 'socket' and make the connection manually (to test). My console fails when I try that:

ruby-1.9.2-p0 > require 'socket'
 => nil 
ruby-1.9.2-p0 > Socket.getaddrinfo(Socket.gethostname, nil, Socket::AF_INET,     Socket::SOCK_STREAM)
SocketError: getaddrinfo: nodename nor servname provided, or not known
        from (irb):2:in `getaddrinfo'
        from (irb):2
        from /Users/sheldon/.rvm/gems/ruby-1.9.2-p0/gems/railties-    3.0.3/lib/rails/commands/console.rb:44:in `start'
    from /Users/sheldon/.rvm/gems/ruby-1.9.2-p0/gems/railties-3.0.3/lib/rails/commands/console.rb:8:in `start'
    from /Users/sheldon/.rvm/gems/ruby-1.9.2-p0/gems/railties-3.0.3/lib/rails/commands.rb:23:in `<top (required)>'
    from script/rails:6:in `require'
    from script/rails:6:in `<main>'

from specjour.

sandro avatar sandro commented on July 28, 2024

Did you try running against the master branch directly? I think that commit fixes the problem but I haven't pushed out an updated gem yet so you'll have to reference the git repo in your Gemfile.

from specjour.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.