Skip to content
This repository has been archived by the owner on Mar 6, 2023. It is now read-only.

not working on p2pool ltc #29

Closed
nberesnev83 opened this issue Jul 31, 2013 · 2 comments
Closed

not working on p2pool ltc #29

nberesnev83 opened this issue Jul 31, 2013 · 2 comments

Comments

@nberesnev83
Copy link


python mining_proxy.py --pow-algo scrypt --host 127.0.0.1 --port 9327 --stratum-port 3333 --getwork-port 9999 --no-midstate --real-target --custom-user pool --custom-password x --verbose
2013-07-31 21:44:08,350 DEBUG stats logger.get_logger # Logging initialized
2013-07-31 21:44:08,360 DEBUG protocol logger.get_logger # Logging initialized
2013-07-31 21:44:08,360 DEBUG socket_transport logger.get_logger # Logging initialized
2013-07-31 21:44:08,415 DEBUG proxy logger.get_logger # Logging initialized
2013-07-31 21:44:08,415 DEBUG proxy logger.get_logger # Logging initialized
2013-07-31 21:44:08,433 WARNING proxy jobs. # C extension for midstate not available. Using default implementation instead.
2013-07-31 21:44:08,433 DEBUG proxy logger.get_logger # Logging initialized
2013-07-31 21:44:08,434 DEBUG proxy logger.get_logger # Logging initialized
2013-07-31 21:44:08,435 DEBUG proxy logger.get_logger # Logging initialized
2013-07-31 21:44:08,435 DEBUG proxy logger.get_logger # Logging initialized
2013-07-31 21:44:08,436 DEBUG proxy logger.get_logger # Logging initialized
2013-07-31 21:44:08,436 DEBUG proxy logger.get_logger # Logging initialized
2013-07-31 21:44:08,438 ERROR proxy mining_proxy.main # Stratum host/port autodetection failed
Traceback (most recent call last):
File "mining_proxy.py", line 155, in main
new_host = (yield utils.detect_stratum(args.host, args.port))
AttributeError: 'module' object has no attribute '_parse'
2013-07-31 21:44:08,439 INFO proxy mining_proxy.main # Stratum proxy version: 1.3.0
2013-07-31 21:44:08,439 INFO proxy mining_proxy.main # Trying to connect to Stratum pool at 127.0.0.1:9327
2013-07-31 21:44:08,440 INFO proxy mining_proxy.main # Setting PoW algo: scrypt
2013-07-31 21:44:08,441 INFO stats stats.print_stats # 1 peers connected, state changed 1 times
2013-07-31 21:44:08,441 DEBUG protocol protocol.connectionMade # Connected 127.0.0.1
2013-07-31 21:44:08,441 DEBUG protocol protocol.connectionMade # Resuming connection: []
2013-07-31 21:44:08,441 INFO proxy mining_proxy.on_connect # Connected to Stratum pool at 127.0.0.1:9327
2013-07-31 21:44:08,441 INFO proxy mining_proxy.on_connect # Authorizing custom user pool, password x
2013-07-31 21:44:08,442 DEBUG protocol protocol.writeJsonRequest # < {"params": ["pool", "x"], "id": 1, "method": "mining.authorize"}
2013-07-31 21:44:08,442 INFO proxy mining_proxy.on_connect # Subscribing for mining jobs
2013-07-31 21:44:08,442 DEBUG protocol protocol.writeJsonRequest # < {"params": [], "id": 2, "method": "mining.subscribe"}
2013-07-31 21:44:08,461 DEBUG protocol protocol.lineReceived # > {u'result': None, u'jsonrpc': u'2.0', u'id': 1, u'error': None}
2013-07-31 21:44:08,461 DEBUG protocol protocol.lineReceived # > {u'result': [[u'mining.notify', u'ae6812eb4cd7735a302a8a9dd95cf71f'], u'', 2], u'jsonrpc': u'2.0', u'id': 2, u'error': None}
2013-07-31 21:44:08,464 INFO proxy mining_proxy.main # -----------------------------------------------------------------------
2013-07-31 21:44:08,464 INFO proxy mining_proxy.main # PROXY IS LISTENING ON ALL IPs ON PORT 3333 (stratum) AND 9999 (getwork)
2013-07-31 21:44:08,464 INFO proxy mining_proxy.main # -----------------------------------------------------------------------
2013-07-31 21:44:08,465 DEBUG protocol protocol.lineReceived # > {u'jsonrpc': u'2.0', u'params': [14.52613027417101], u'method': u'mining.set_difficulty', u'id': 940918514}
2013-07-31 21:44:08,465 INFO proxy client_service.handle_event # Setting new difficulty: 14.5261302742
2013-07-31 21:44:08,465 DEBUG protocol protocol.writeJsonResponse # < {"error": null, "id": 940918514, "result": null}
/usr/lib/python2.6/site-packages/stratum-0.2.13-py2.6.egg/stratum/protocol.py:201: DeprecationWarning: Returning a value other than None from stratum.protocol.ClientProtocol.dataReceived is deprecated since Twisted 11.0.0.
return self.lineLengthExceeded(self._buffer)
2013-07-31 21:44:08,489 INFO proxy mining_proxy.on_disconnect # Disconnected from Stratum pool at 127.0.0.1:9327
2013-07-31 21:44:08,489 INFO stats stats.print_stats # 0 peers connected, state changed 1 times
2013-07-31 21:44:08,489 DEBUG socket_transport socket_transport.clientConnectionLost # [Failure instance: Traceback (failure with no frames): <class 'twisted.internet.error.ConnectionLost'>: Connection to the other side was lost in a non-clean fashion.
]
2013-07-31 21:44:11,332 INFO stats stats.print_stats # 1 peers connected, state changed 1 times
2013-07-31 21:44:11,332 DEBUG protocol protocol.connectionMade # Connected 127.0.0.1
2013-07-31 21:44:11,332 DEBUG protocol protocol.connectionMade # Resuming connection: []
2013-07-31 21:44:11,332 INFO proxy mining_proxy.on_connect # Connected to Stratum pool at 127.0.0.1:9327
2013-07-31 21:44:11,333 INFO proxy mining_proxy.on_connect # Authorizing custom user pool, password x
2013-07-31 21:44:11,333 DEBUG protocol protocol.writeJsonRequest # < {"params": ["pool", "x"], "id": 1, "method": "mining.authorize"}
2013-07-31 21:44:11,333 INFO proxy mining_proxy.on_connect # Subscribing for mining jobs
2013-07-31 21:44:11,333 DEBUG protocol protocol.writeJsonRequest # < {"params": [], "id": 2, "method": "mining.subscribe"}
2013-07-31 21:44:11,337 DEBUG protocol protocol.lineReceived # > {u'result': None, u'jsonrpc': u'2.0', u'id': 1, u'error': None}
2013-07-31 21:44:11,338 DEBUG protocol protocol.lineReceived # > {u'result': [[u'mining.notify', u'ae6812eb4cd7735a302a8a9dd95cf71f'], u'', 2], u'jsonrpc': u'2.0', u'id': 2, u'error': None}
2013-07-31 21:44:11,338 DEBUG protocol protocol.lineReceived # > {u'jsonrpc': u'2.0', u'params': [14.52613027417101], u'method': u'mining.set_difficulty', u'id': 512789334}
2013-07-31 21:44:11,339 INFO proxy client_service.handle_event # Setting new difficulty: 14.5261302742
2013-07-31 21:44:11,339 DEBUG protocol protocol.writeJsonResponse # < {"error": null, "id": 512789334, "result": null}
2013-07-31 21:44:11,340 INFO proxy mining_proxy.on_disconnect # Disconnected from Stratum pool at 127.0.0.1:9327
2013-07-31 21:44:11,340 INFO stats stats.print_stats # 0 peers connected, state changed 1 times

2013-07-31 21:44:11,340 DEBUG socket_transport socket_transport.clientConnectionLost # [Failure instance: Traceback (failure with no frames): <class 'twisted.internet.error.ConnectionLost'>: Connection to the other side was lost in a non-clean fashion.

@slush0
Copy link
Owner

slush0 commented Jan 21, 2014

The communication log seems to be OK until:

protocol protocol.writeJsonResponse # < {"error": null, "id": 512789334, "result": null}

This isn't valid stratum message (it doesn't cointain payload nor error), which indicates some problem on p2pool stratum implementation.

@slush0 slush0 closed this as completed Jan 21, 2014
@phnz
Copy link

phnz commented Feb 17, 2014

up.

Still getting the same issue here

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants