Can't get the p2pool node running.
Latest repo cloned
https://github.com/nzsquirrell/p2pool-nzsunitus.conf:
rpcuser=unitusrpc
rpcpassword=x
server=1
listen=1
logtimestamps=1
gen=0
daemon=1
bind=10.0.4.2
rpcallowip=10.0.4.1
rpcallowip=127.0.0.1
rpcport=50604
maxconnections=20
~/unitus_pool$ python run_p2pool.py --net unitus_bla
2015-01-06 21:00:04.270700 p2pool (version 13.3-379-g4c2764f)
2015-01-06 21:00:04.270907
2015-01-06 21:00:04.271104 Testing bitcoind RPC connection to '
http://127.0.0.1:50604/' with username 'unitusrpc'...
2015-01-06 21:00:04.301014 ...success!
2015-01-06 21:00:04.301278 Current block hash: bee05d475225005e2802200539e39f5bc031d286ef0667dc83ebf4c38690fc93
2015-01-06 21:00:04.301424 Current block height: 11999
2015-01-06 21:00:04.301512
2015-01-06 21:00:04.301628 Testing bitcoind P2P connection to '127.0.0.1:50603'...
2015-01-06 21:00:09.302095 ...taking a while. Common reasons for this include all of bitcoind's connection slots being used...
It gets stuck @ p2p connection every time. I tried starting p2pool right after unitusd to make sure there are available slots, nothing changes.
Any ideas? Thanks
Problem is with your option in unitus.conf: bind=10.0.4.2
That is forcing unitusd to listen only on 10.0.4.2 for Peer-2-Peer traffic, but then p2pool is trying to connect via 127.0.0.1.
Solutions: Either remove the bind=10.0.4.2 from your unitus.conf file, or append '--bitcoind-address 10.0.4.2' to your command to start p2pool - this would force p2pool to connect to that interface in place of the loopback interface.
Let me know if you are going to make this node public and i'll add a link to it on the existing nodes. PM me your geographical location.
Thanks.
The trick with removing bind moved me forward. However, there is now a more serious error in python "No module named blake_hash". Btw, i tried your pool code on other coin daemons, it works just fine. Trying on debian wheezy if it's relevant.
Full trace:
2015-01-07 19:44:13.865851 p2pool (version 13.3-379-g4c2764f)
2015-01-07 19:44:13.886790
2015-01-07 19:44:13.887006 Testing bitcoind RPC connection to '
http://127.0.0.1:50604/' with username 'unitusrpc'...
2015-01-07 19:44:13.922759 ...success!
2015-01-07 19:44:13.923082 Current block hash: 8fe37947a56ba44f7081934f5e6bd538d494c8877ee64e1c5f485532876dc218
2015-01-07 19:44:13.923299 Current block height: 13166
2015-01-07 19:44:13.923416
2015-01-07 19:44:13.923565 Testing bitcoind P2P connection to '127.0.0.1:50603'...
2015-01-07 19:44:14.029161 ...success!
2015-01-07 19:44:14.029857
2015-01-07 19:44:14.030344 Determining payout address...
2015-01-07 19:44:14.031202 ...success! Payout address: UVUR77QKPE67Fnjni42m3zbe1kwFoSuohS.
2015-01-07 19:44:14.031809
2015-01-07 19:44:14.032269 Loading shares...
2015-01-07 19:44:14.033028 ...done loading 0 shares (0 verified)!
2015-01-07 19:44:14.033636
2015-01-07 19:44:14.034122 Initializing work...
2015-01-07 19:44:14.168101 > Unhandled error in Deferred:
2015-01-07 19:44:14.208148 > Unhandled Error
2015-01-07 19:44:14.208473 > Traceback (most recent call last):
2015-01-07 19:44:14.208683 > File "/usr/lib/python2.7/dist-packages/twisted/internet/defer.py", line 368, in callback
2015-01-07 19:44:14.208830 > self._startRunCallbacks(result)
2015-01-07 19:44:14.208939 > File "/usr/lib/python2.7/dist-packages/twisted/internet/defer.py", line 464, in _startRunCallbacks
2015-01-07 19:44:14.209099 > self._runCallbacks()
2015-01-07 19:44:14.209303 > File "/usr/lib/python2.7/dist-packages/twisted/internet/defer.py", line 551, in _runCallbacks
2015-01-07 19:44:14.209522 > current.result = callback(current.result, *args, **kw)
2015-01-07 19:44:14.209634 > File "/usr/lib/python2.7/dist-packages/twisted/internet/defer.py", line 1101, in gotResult
2015-01-07 19:44:14.209823 > _inlineCallbacks(r, g, deferred)
2015-01-07 19:44:14.209953 > ---
---
2015-01-07 19:44:14.210110 > File "/usr/lib/python2.7/dist-packages/twisted/internet/defer.py", line 1045, in _inlineCallbacks
2015-01-07 19:44:14.210222 > result = g.send(result)
2015-01-07 19:44:14.210389 > File "/home/trader/unipool/p2pool/node.py", line 218, in poll_header
2015-01-07 19:44:14.210605 > handle_header((yield self.factory.conn.value.get_block_header(self.bitcoind_work.value['previous_block'])))
2015-01-07 19:44:14.210668 > File "/home/trader/unipool/p2pool/node.py", line 200, in handle_header
2015-01-07 19:44:14.210789 > if not (self.net.PARENT.POW_FUNC(bitcoin_data.block_header_type.pack(new_header)) <= self.bitcoind_work.value['bits'].target):
2015-01-07 19:44:14.211026 > File "/home/trader/unipool/p2pool/bitcoin/networks/unitus_blake.py", line 20, in
2015-01-07 19:44:14.211368 > POW_FUNC = lambda data: pack.IntType(256).unpack(__import__('blake_hash').getPoWHash(data))
2015-01-07 19:44:14.211548 > exceptions.ImportError: No module named blake_hash
2015-01-07 19:44:14.230779 > Error while requesting best block header:
2015-01-07 19:44:14.231077 > Traceback (most recent call last):
2015-01-07 19:44:14.231346 > File "/usr/lib/python2.7/dist-packages/twisted/internet/defer.py", line 551, in _runCallbacks
2015-01-07 19:44:14.231602 > current.result = callback(current.result, *args, **kw)
2015-01-07 19:44:14.231774 > File "/usr/lib/python2.7/dist-packages/twisted/internet/defer.py", line 1101, in gotResult
2015-01-07 19:44:14.232020 > _inlineCallbacks(r, g, deferred)
2015-01-07 19:44:14.232312 > File "/usr/lib/python2.7/dist-packages/twisted/internet/defer.py", line 1043, in _inlineCallbacks
2015-01-07 19:44:14.232493 > result = result.throwExceptionIntoGenerator(g)
2015-01-07 19:44:14.232704 > File "/usr/lib/python2.7/dist-packages/twisted/python/failure.py", line 382, in throwExceptionIntoGenerator
2015-01-07 19:44:14.232963 > return g.throw(self.type, self.value, self.tb)
2015-01-07 19:44:14.233206 > --- ---
2015-01-07 19:44:14.233540 > File "/home/trader/unipool/p2pool/util/deferral.py", line 41, in f
2015-01-07 19:44:14.233699 > result = yield func(*args, **kwargs)
2015-01-07 19:44:14.233863 > File "/usr/lib/python2.7/dist-packages/twisted/internet/defer.py", line 1045, in _inlineCallbacks
2015-01-07 19:44:14.234136 > result = g.send(result)
2015-01-07 19:44:14.234306 > File "/home/trader/unipool/p2pool/node.py", line 218, in poll_header
2015-01-07 19:44:14.234547 > handle_header((yield self.factory.conn.value.get_block_header(self.bitcoind_work.value['previous_block'])))
2015-01-07 19:44:14.234802 > File "/home/trader/unipool/p2pool/node.py", line 200, in handle_header
2015-01-07 19:44:14.235039 > if not (self.net.PARENT.POW_FUNC(bitcoin_data.block_header_type.pack(new_header)) <= self.bitcoind_work.value['bits'].target):
2015-01-07 19:44:14.235343 > File "/home/trader/unipool/p2pool/bitcoin/networks/unitus_blake.py", line 20, in
2015-01-07 19:44:14.235505 > POW_FUNC = lambda data: pack.IntType(256).unpack(__import__('blake_hash').getPoWHash(data))
2015-01-07 19:44:14.235760 > exceptions.ImportError: No module named blake_hash
I can't make the node public, i'm on 5 mbps DSL. I doubt it's enough, even though i have nice latency. The reason i want to put up a private node is cuz i'm in EU and have really bad pings to your overseas nodes.
Thanks