Giter Site home page Giter Site logo

Comments (5)

noxiouz avatar noxiouz commented on June 23, 2024

A resolvation response from Cocaine locator looks similar to:

[['hostname', 60085],
 1,
 {0: 'start_app', 1: 'pause_app', 2: 'list'}]

So the hostname from this responce goes through getaddrinfo to resolve into IP. Seems that your hostname can't be resolved into 10.0.0.1. Could you check it? For example, using that with a replaced hostname:

python -c "import socket; print socket.getaddrinfo('localhost', 10053, 0, socket.SOCK_STREAM); "

from cocaine-tools.

wildart avatar wildart commented on June 23, 2024

Here is a netstat dump:

tcp        0      0 127.0.0.1:631           0.0.0.0:*               LISTEN      -                
tcp        0      0 10.0.0.1:10053          0.0.0.0:*               LISTEN      27203/cocaine-runti
tcp        0      0 10.0.0.1:55238          0.0.0.0:*               LISTEN      27203/cocaine-runti
tcp        0      0 10.0.0.1:52778          0.0.0.0:*               LISTEN      27203/cocaine-runti
tcp        0      0 10.0.0.1:46262          0.0.0.0:*               LISTEN      27203/cocaine-runti
tcp6       0      0 ::1:631                 :::*                    LISTEN      -               
tcp6       0      0 :::5000                 :::*                    LISTEN      -    

As soon as I specify the locator address in cocaine-runtime configuration, all services start running on this address, i.e. node, storage and logger.

from cocaine-tools.

wildart avatar wildart commented on June 23, 2024

getaddrinfo returns 127.0.0.1, but network address of the machine is 10.0.0.1

from cocaine-tools.

noxiouz avatar noxiouz commented on June 23, 2024

As I expected.. So you could sort this out by adding 10.0.0.1 address for your hostname into /etc/hosts or configure DNS.
PS. We're thinking about getting rid of this inconvenience by replying with a list of suitable addresses in the next version of Cocaine

from cocaine-tools.

wildart avatar wildart commented on June 23, 2024

Solved, thanks.

from cocaine-tools.

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.