Giter Club home page Giter Club logo

Comments (6)

kobolog avatar kobolog commented on September 18, 2024

Why your host IP address looks like 0.0.39.69?

On Monday, September 16, 2013, Art wrote:

When initializing Logger or any other Service object inside service, e.g.

log = Logger()
storage = Service("storage")

Service crashes with following error:

Logger init error: 10053:10053 - service resolving failed. Reason: [
0.0.39.69:10053 - [Errno 22] Invalid argument]. Use stderr logger
Traceback (most recent call last):
File "/var/cocaine/spool/Flood/service.py", line 5, in
from flood import *
File "/var/cocaine/spool/Flood/flood/init.py", line 2, in
from test import TestService
File "/var/cocaine/spool/Flood/flood/test.py", line 11, in
storage = Service("storage")
File
"/usr/local/lib/python2.7/site-packages/cocaine-0.10.6.11-py2.7.egg/cocaine/asio/service.py",
line 378, in init
self.connect(host, port, blocking=True)
File
"/usr/local/lib/python2.7/site-packages/cocaine-0.10.6.11-py2.7.egg/cocaine/asio/service.py",
line 43, in wrapper
return strategy.init(func, blocking)(_args, *_kwargs)
File
"/usr/local/lib/python2.7/site-packages/cocaine-0.10.6.11-py2.7.egg/cocaine/asio/service.py",
line 53, in wrapper
chunk = g.send(chunk)
File
"/usr/local/lib/python2.7/site-packages/cocaine-0.10.6.11-py2.7.egg/cocaine/asio/service.py",
line 399, in connect
yield locator.connect(host, port, timeout, blocking=blocking)
File
"/usr/local/lib/python2.7/site-packages/cocaine-0.10.6.11-py2.7.egg/cocaine/asio/service.py",
line 300, in connect
return self._connectToEndpoint(host, port, timeout, blocking=blocking)
File
"/usr/local/lib/python2.7/site-packages/cocaine-0.10.6.11-py2.7.egg/cocaine/asio/service.py",
line 43, in wrapper
return strategy.init(func, blocking)(_args, *_kwargs)
File
"/usr/local/lib/python2.7/site-packages/cocaine-0.10.6.11-py2.7.egg/cocaine/asio/service.py",
line 53, in wrapper
chunk = g.send(chunk)
File
"/usr/local/lib/python2.7/site-packages/cocaine-0.10.6.11-py2.7.egg/cocaine/asio/service.py",
line 187, in _connectToEndpoint
raise ConnectionError((host, port), reason)
cocaine.asio.exceptions.
cocaine.asio.exceptions.ConnectionError: 10053:10053 - service resolving
failed. Reason: [0.0.39.69:10053 - [Errno 22] Invalid argument]

It looks like problem in a 'host' parameter. If you explicitly provide
locator host and port then Service object initializes properly.

storage = Service("storage", host="localhost", port=10053)

Logger still crashes because it does not have any initialization
parameters. It would be nice to have them.


Reply to this email directly or view it on GitHubhttps://github.com//issues/10
.

from cocaine-framework-python.

noxiouz avatar noxiouz commented on September 18, 2024

I have a version that a problem is not completely correct parsing of command-line parameter, which contains the address locator.

10053:10053

from cocaine-framework-python.

kobolog avatar kobolog commented on September 18, 2024

Wasn't really a sentence in English.

On Monday, September 16, 2013, Anton Tyurin wrote:

I have a version that a problem is not completely correct parsing of
command-line parameter, which contains the address locator.

10053:10053


Reply to this email directly or view it on GitHubhttps://github.com//issues/10#issuecomment-24501073
.

from cocaine-framework-python.

3Hren avatar 3Hren commented on September 18, 2024

The problem is here.

This was our last hotfix to make python workers runnable via docker plugin which will be available soon.
Will be fixed today.

from cocaine-framework-python.

noxiouz avatar noxiouz commented on September 18, 2024

Fix parsing of --locator in 51b9465

The ability to specify an endpoint for the Logger will be added later.

from cocaine-framework-python.

wildart avatar wildart commented on September 18, 2024

Fixed.

from cocaine-framework-python.

Related Issues (17)

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.