Author

Topic: p2pool setup errors & IPv6 (Read 1690 times)

hero member
Activity: 546
Merit: 500
May 09, 2013, 04:05:13 PM
#11
Thank you. Spot on.

Code:
[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.
hero member
Activity: 516
Merit: 643
May 09, 2013, 03:59:05 PM
#10
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.
hero member
Activity: 546
Merit: 500
May 09, 2013, 03:57:47 PM
#9
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
hero member
Activity: 546
Merit: 500
May 08, 2013, 05:55:36 PM
#8
I have just recompiled from git.  So far so good.  Smiley
hero member
Activity: 516
Merit: 643
May 08, 2013, 04:21:14 PM
#7
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.
hero member
Activity: 546
Merit: 500
May 08, 2013, 04:19:54 PM
#6
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.
full member
Activity: 172
Merit: 100
May 08, 2013, 02:22:49 PM
#5
Good to hear!
hero member
Activity: 546
Merit: 500
May 08, 2013, 01:50:59 PM
#4
Working now, thanks.
hero member
Activity: 546
Merit: 500
May 08, 2013, 01:12:20 PM
#3
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.
full member
Activity: 172
Merit: 100
May 08, 2013, 01:06:01 PM
#2
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.
hero member
Activity: 546
Merit: 500
May 08, 2013, 12:09:17 PM
#1
I'm trying to set up a p2pool server.  When I run p2pool (using version from git) I get this:


Code:
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 > --- ---
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?

Code:
# 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   
Jump to: