Author

Topic: mpos pool errors (Read 762 times)

sr. member
Activity: 333
Merit: 250
November 17, 2015, 04:09:46 AM
#2
the problem of import have solved after I delete /usr/local/lib/python2.7/dist-packages/stratum-0.2.15-py2.7.egg/
and install again
Code:
cd stratum-mining/externals/stratum
sudo python setup.py install
but fllow errors already exist
Code:
2015-11-17 16:51:46+0800 [Protocol,0,106.114.11.38] 2015-11-17 16:51:46,087 DEBUG protocol protocol.lineReceived # > {u'params': [u'pikcoin.1', u'123'], u'id': 2, u'method': u'mining.authorize'}
^C2015-11-17 16:52:23,931 INFO work_log_pruner work_log_pruner._WorkLogPruner_I # Pruned 0 jobs

^C
^C
^C2015-11-17 16:52:27,741 WARNING DBInterface DBInterface.signal_handler # SIGINT Detected, shutting down
2015-11-17 16:52:27,741 DEBUG DBInterface DBInterface.do_import # DBInterface.do_import called. force: yes, queue size: 0
2015-11-17 16:52:27+0800 [Protocol,0,106.114.11.38] 2015-11-17 16:52:27,742 ERROR protocol protocol.process_failure # [Failure instance: Traceback: : error 1 from memcached_get on localhost:10089: FAILURE
2015-11-17 16:52:27+0800 [Protocol,0,106.114.11.38] /usr/local/lib/python2.7/dist-packages/stratum/protocol.py:192:dataReceived
2015-11-17 16:52:27+0800 [Protocol,0,106.114.11.38] /usr/local/lib/python2.7/dist-packages/stratum/protocol.py:238:lineReceived
2015-11-17 16:52:27+0800 [Protocol,0,106.114.11.38] /usr/local/lib/python2.7/dist-packages/stratum/services.py:13:_handle_event
2015-11-17 16:52:27+0800 [Protocol,0,106.114.11.38] /usr/local/lib/python2.7/dist-packages/stratum/services.py:81:call
2015-11-17 16:52:27+0800 [Protocol,0,106.114.11.38] --- ---
2015-11-17 16:52:27+0800 [Protocol,0,106.114.11.38] /usr/lib/python2.7/dist-packages/twisted/internet/defer.py:134:maybeDeferred
2015-11-17 16:52:27+0800 [Protocol,0,106.114.11.38] /usr/local/lib/python2.7/dist-packages/stratum/services.py:78:_run
2015-11-17 16:52:27+0800 [Protocol,0,106.114.11.38] /root/stratum-mining/mining/service.py:81:authorize
2015-11-17 16:52:27+0800 [Protocol,0,106.114.11.38] /root/stratum-mining/mining/interfaces.py:28:authorize
2015-11-17 16:52:27+0800 [Protocol,0,106.114.11.38] /root/stratum-mining/mining/DBInterface.py:169:check_password
2015-11-17 16:52:27+0800 [Protocol,0,106.114.11.38] /root/stratum-mining/mining/DBInterface.py:203:user_exists
2015-11-17 16:52:27+0800 [Protocol,0,106.114.11.38] /root/stratum-mining/mining/Cache.py:18:get
2015-11-17 16:52:27+0800 [Protocol,0,106.114.11.38] ]
2015-11-17 16:52:27+0800 [Protocol,0,106.114.11.38] None
2015-11-17 16:52:27,743 INFO block_updater block_updater.run # Checking for new block.
2015-11-17 16:52:27,744 DEBUG DBInterface DBInterface.run_import_thread # run_import_thread current size: 0
2015-11-17 16:52:27+0800 [-] (TCP Port 3333 Closed)
anyone have ideas to fix it?
sr. member
Activity: 333
Merit: 250
November 15, 2015, 10:27:01 PM
#1
hello,
I had build a mpos pool for a scrypt coin.
flow the guide
https://github.com/MPOS/php-mpos/wiki/Quick-Start-Guide
when change
Code:
from autobahn.websocket import WebSocketServerProtocol, WebSocketServerFactory
to
Code:
from autobahn.twisted.websocket import WebSocketServerProtocol, WebSocketServerFactory
but after run "sudo twistd -ny launcher.tac"
take a import error
Code:
2015-11-16 11:13:24+0800 [HTTPPageGetter,client] 2015-11-16 11:13:24,025 DEBUG socket_transport # Logging initialized
2015-11-16 11:13:24+0800 [HTTPPageGetter,client] 2015-11-16 11:13:24,027 DEBUG http_transport # Logging initialized
2015-11-16 11:13:24+0800 [HTTPPageGetter,client] Unhandled error in Deferred:
2015-11-16 11:13:24+0800 [HTTPPageGetter,client] Unhandled Error
Traceback (most recent call last):
  File "/usr/lib/python2.7/dist-packages/twisted/internet/defer.py", line 1039, in _inlineCallbacks
    result = g.send(result)
  File "/root/stratum-mining/mining/__init__.py", line 127, in setup
    on_startup.callback(True)
  File "/usr/lib/python2.7/dist-packages/twisted/internet/defer.py", line 362, in callback
    self._startRunCallbacks(result)
  File "/usr/lib/python2.7/dist-packages/twisted/internet/defer.py", line 458, in _startRunCallbacks
    self._runCallbacks()
--- ---
  File "/usr/lib/python2.7/dist-packages/twisted/internet/defer.py", line 545, in _runCallbacks
    current.result = callback(current.result, *args, **kw)
  File "/usr/local/lib/python2.7/dist-packages/stratum-0.2.15-py2.7.egg/stratum/server.py", line 46, in setup_finalize
    import websocket_transport
  File "/usr/local/lib/python2.7/dist-packages/stratum-0.2.15-py2.7.egg/stratum/websocket_transport.py", line 1, in
    from autobahn.twisted.websocket import WebSocketServerProtocol, WebSocketServerFactory
exceptions.ImportError: No module named twisted.websocket

2015-11-16 11:13:24,041 DEBUG block_template # Got To  Block_template.py
2015-11-16 11:13:24,041 DEBUG block_template # Got To Block_template.py
2015-11-16 11:13:24,042 DEBUG coinbasetx # Got to CoinBaseTX
need some help
^_^
Jump to: