Comments (6)
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.
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.
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.
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.
Fix parsing of --locator in 51b9465
The ability to specify an endpoint for the Logger will be added later.
from cocaine-framework-python.
Fixed.
from cocaine-framework-python.
Related Issues (17)
- TypeError: unhashable type: 'bytearray' when launching example HOT 3
- Unable to invoke method in default app HOT 3
- My app's traceback HOT 3
- Cocaine logger and Unicode HOT 4
- cocaine.logging.Logger warn() method rename HOT 3
- Using msgpack HOT 7
- Asyncio branch: strange behaviour. HOT 4
- Wrong dependance in debian package HOT 4
- No cocaine.decorators HOT 2
- [http] Add a context manager for response object HOT 7
- importing decorators module causes RuntimeError if __context__ is not available HOT 2
- Application development with Cocaine
- Using cocaine-framework-python in Windows environment HOT 1
- Current example of usage cocaine app HOT 1
- Can not install framework into specified dir HOT 1
- Russian docs link is broken in README.md HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from cocaine-framework-python.