FlappySocks (OP)
|
|
May 08, 2013, 04:09:17 PM |
|
I'm trying to set up a p2pool server. When I run p2pool (using version from git) I get this: Error getting work from bitcoind: 2013-05-08 16:04:22.096934 > Traceback (most recent call last): 2013-05-08 16:04:22.096992 > File "/usr/local/lib/python2.7/dist-packages/twisted/internet/defer.py", line 575, in _runCallbacks 2013-05-08 16:04:22.097046 > current.result = callback(current.result, *args, **kw) 2013-05-08 16:04:22.097098 > File "/usr/local/lib/python2.7/dist-packages/twisted/internet/defer.py", line 1126, in gotResult 2013-05-08 16:04:22.097151 > _inlineCallbacks(r, g, deferred) 2013-05-08 16:04:22.097201 > File "/usr/local/lib/python2.7/dist-packages/twisted/internet/defer.py", line 1068, in _inlineCallbacks 2013-05-08 16:04:22.097254 > result = result.throwExceptionIntoGenerator(g) 2013-05-08 16:04:22.097304 > File "/usr/local/lib/python2.7/dist-packages/twisted/python/failure.py", line 389, in throwExceptionIntoGenerator 2013-05-08 16:04:22.097356 > return g.throw(self.type, self.value, self.tb) 2013-05-08 16:04:22.097406 > --- <exception caught here> --- 2013-05-08 16:04:22.097456 > File "/home/p2pool/p2pool/p2pool/util/deferral.py", line 41, in f 2013-05-08 16:04:22.097506 > result = yield func(*args, **kwargs) 2013-05-08 16:04:22.097556 > File "/usr/local/lib/python2.7/dist-packages/twisted/internet/defer.py", line 1068, in _inlineCallbacks 2013-05-08 16:04:22.097610 > result = result.throwExceptionIntoGenerator(g) 2013-05-08 16:04:22.097660 > File "/usr/local/lib/python2.7/dist-packages/twisted/python/failure.py", line 389, in throwExceptionIntoGenerator 2013-05-08 16:04:22.097713 > return g.throw(self.type, self.value, self.tb) 2013-05-08 16:04:22.097763 > File "/home/p2pool/p2pool/p2pool/bitcoin/helper.py", line 36, in getwork 2013-05-08 16:04:22.097814 > work = yield go() 2013-05-08 16:04:22.097863 > File "/usr/local/lib/python2.7/dist-packages/twisted/internet/defer.py", line 1068, in _inlineCallbacks 2013-05-08 16:04:22.097915 > result = result.throwExceptionIntoGenerator(g) 2013-05-08 16:04:22.097965 > File "/usr/local/lib/python2.7/dist-packages/twisted/python/failure.py", line 389, in throwExceptionIntoGenerator 2013-05-08 16:04:22.098017 > return g.throw(self.type, self.value, self.tb) 2013-05-08 16:04:22.098066 > File "/home/p2pool/p2pool/p2pool/util/jsonrpc.py", line 133, in _http_do 2013-05-08 16:04:22.098117 > raise Error_for_code(resp['error']['code'])(resp['error']['message'], resp['error'].get('data', None)) 2013-05-08 16:04:22.098168 > p2pool.util.jsonrpc.NarrowError: -10 Bitcoin is downloading blocks...
I noticed, port 8332 is only available on ipv6. Is this the problem? # netstat -lptu Active Internet connections (only servers) Proto Recv-Q Send-Q Local Address Foreign Address State PID/Program name tcp 0 0 *:8333 *:* LISTEN 6459/bitcoind tcp6 0 0 [::]:8332 [::]:* LISTEN 6459/bitcoind tcp6 0 0 [::]:8333 [::]:* LISTEN 6459/bitcoind
|
|
|
|
|
Advertised sites are not endorsed by the Bitcoin Forum. They may be unsafe, untrustworthy, or illegal in your jurisdiction.
|
furball
|
|
May 08, 2013, 05:06:01 PM |
|
Looks like your bitcoind is still downloading blocks...your P2Pool server can't connect to it until all the blocks have been downloaded.
Hang in there and it will connect.
|
|
|
|
FlappySocks (OP)
|
|
May 08, 2013, 05:12:20 PM |
|
OK, thanks, I will wait longer. I waited until the cpu usage had died down before posting, but I just noticed, it's rocketed again. About 30-70% on each core.
|
|
|
|
FlappySocks (OP)
|
|
May 08, 2013, 05:50:59 PM |
|
Working now, thanks.
|
|
|
|
furball
|
|
May 08, 2013, 06:22:49 PM |
|
Good to hear!
|
|
|
|
FlappySocks (OP)
|
|
May 08, 2013, 08:19:54 PM |
|
bitcoind crashes after a while when p2pool is running. Nothing in the log to suggest why.
Should bitcoind take so much cpu when it's restarted? If I shut bitcoind down, and then restart it again, the all 8 cpu cores go nuts for ~10 minutes.
|
|
|
|
forrestv
|
|
May 08, 2013, 08:21:14 PM |
|
bitcoind crashes after a while when p2pool is running. Nothing in the log to suggest why.
Should bitcoind take so much cpu when it's restarted? If I shut bitcoind down, and then restart it again, the all 8 cpu cores go nuts for ~10 minutes.
Are you running a recent version of bitcoind? All those problems sound like issues with older versions.
|
1J1zegkNSbwX4smvTdoHSanUfwvXFeuV23
|
|
|
FlappySocks (OP)
|
|
May 08, 2013, 09:55:36 PM |
|
I have just recompiled from git. So far so good.
|
|
|
|
FlappySocks (OP)
|
|
May 09, 2013, 07:57:47 PM |
|
Keeps crashing. Takes a few hours sometimes. The log file has nothing useful in it. At the command line, it just says Killed.
$ bitcoind --debug Killed
|
|
|
|
forrestv
|
|
May 09, 2013, 07:59:05 PM |
|
Keeps crashing. Takes a few hours sometimes. The log file has nothing useful in it. At the command line, it just says Killed.
$ bitcoind --debug Killed
Ah, check dmesg. Your system is probably running out of RAM and bitcoind is being killed by the OOM killer.
|
1J1zegkNSbwX4smvTdoHSanUfwvXFeuV23
|
|
|
FlappySocks (OP)
|
|
May 09, 2013, 08:05:13 PM |
|
Thank you. Spot on. [13503787.839705] Memory cgroup out of memory: Kill process 22893 (bitcoin-net) score 707 or sacrifice child [13503787.841981] Killed process 22893 (bitcoin-net) total-vm:1298152kB, anon-rss:737316kB, file-rss:2784kB There is 8G of RAM on the server, but i'm running it in an LXC container. Think I limited it to 1G. Resource hungry, isn't it.
|
|
|
|
|