Author

Topic: [1500 TH] p2pool: Decentralized, DoS-resistant, Hop-Proof pool - page 127. (Read 2591920 times)

full member
Activity: 165
Merit: 100
I am up and running with p2pool now.  Someone please check me out to see if everything looks good.

I have a Dell Percision 390 w/ 8GB memory and 250 GB SSD running latest bitcoin core and p2pool 14.0-25-g482f410.

bitcoin.conf has only three lines:  server=1, rpcuser, and rpcpassword.

I am running on a T1 connection with everything connected to local node on network.
bitcoin client shows 42 active connections
p2pool shows 6 out, 2 in

Right now local rate shows 76 TH/s which is a little less that what I normally see on "that bug pool".


I have Antminers connected, all with standard firmware and settings.  3-S3's, 1-S4, and 77-S5's

I am looking for suggestions as to parameters for bitcoin.conf, or anything else that will help me run better.
Should I be looking at something called a relay node for better performance?

My p2pool address is: bitcoin.computing-management.com:9332

What would you do?Huh

Thanks,

Tom
legendary
Activity: 3430
Merit: 3080
I think it is important to warn:

Code:
 +VERSION_CHECK = lambda v: None if 110200 <= v else 'Bitcoin version too old. Upgrade to 0.11.2 or newer!' 

upgrade your bitcoin core to 0.11.2

https://github.com/p2pool/p2pool/commit/482f410b0f48696901ae2a732450d02a27c0edc6

0.10.4 will handle v4 blocks also. Difficult to justify 0.10.x these days, but possibly some still mine with it (some still probably mine with 0.9.5, although not for much longer)
legendary
Activity: 1257
Merit: 1004
pool.sexy
I think it is important to warn:

Code:
 +VERSION_CHECK = lambda v: None if 110200 <= v else 'Bitcoin version too old. Upgrade to 0.11.2 or newer!' 

upgrade your bitcoin core to 0.11.2

https://github.com/p2pool/p2pool/commit/482f410b0f48696901ae2a732450d02a27c0edc6
sr. member
Activity: 266
Merit: 250
Regarding the latest Bitcoin Core version 0.11.2 - I've been running it on my node with the latest p2pool git version for over 24 hours now without issue, it runs fine & is finding shares.

Matt has also released a new version of the relaynetworkclient, which is also running well.

Nice to wake up to another BLOCK!  Smiley
sr. member
Activity: 266
Merit: 250
They re-enable cgminer to submit stale shares, as p2pool can find blocks with stale shares - as well as other stability improvements. And yes, you can use them on other pools too, no problem, but you're better off failing over to another p2pool node really, as your shares are stored in the p3pool share chain & can be transferred to any node - thus you won't lose any if your node goes down.

All clever stuff  Wink
full member
Activity: 165
Merit: 100
Cool  Cool

kano has binaries for the S1,2 & 3 at the link I posted. For the S5 I use this one:

https://www.dropbox.com/s/gk6gva5e12g4qsr/SD-S5-20150107_cgm_4_9_0-queue_0_no-submit.tar.gz?dl=0

..but unfortunately there isn't one for the S7 - yet.....(subtle hint for king kano  Grin Wink)

So what do these binaries do for me?  Would I still be able to mine on AntPool in case of failover?
sr. member
Activity: 266
Merit: 250
Cool  Cool

kano has binaries for the S1,2 & 3 at the link I posted. For the S5 I use this one:

https://www.dropbox.com/s/gk6gva5e12g4qsr/SD-S5-20150107_cgm_4_9_0-queue_0_no-submit.tar.gz?dl=0

..but unfortunately there isn't one for the S7 - yet.....(subtle hint for king kano  Grin Wink)
full member
Activity: 165
Merit: 100
Yeah, the hash rate is correct, it has been jumping about quite a lot lately. What version of antminer are you using?

https://github.com/kanoi/cgminer-binaries

I've got 1-S3, 2-S3+, 120-S5, and 8-S7, all with stock Bitmain firmware.  Right now I am pointing the S3's to p2pool while testing.

I am ordering at least 4 more S7's when they become available.

Tom
sr. member
Activity: 266
Merit: 250
Yeah, the hash rate is correct, it has been jumping about quite a lot lately. What version of antminer are you using?

https://github.com/kanoi/cgminer-binaries
full member
Activity: 165
Merit: 100
You will get a lot of disconnects when first starting p2pool as many peers are dropped for using outdated p2pool software, as well as having to download the share chain. You also need to allow port 9333 through your firewall & router to the host running p2pool.

Just start it normally and wait a while - the errors will gradually stop as it settles & finds good nodes to download the chain from.

looks like it is working now.  I have much to learn here.

Now, I need someone to point me in the direction of Kano's custom firmware for AntMiners.

29)=0.0029 BTC
2015-11-15 17:37:45.052459  Pool: 866TH/s Stale rate: 15.5% Expected time to block: 3.8 days
2015-11-15 17:37:48.058576 P2Pool: 17312 shares in chain (9109 verified/17316 total) Peers: 7 (0 incoming)
2015-11-15 17:37:48.059197  Local: 1333GH/s in last 10.0 minutes Local dead on arrival: ~2.2% (1-4%) Expected time to share: 1.9 hours
2015-11-15 17:37:48.059365  Shares: 3 (0 orphan, 0 dead) Stale rate: ~0.0% (0-57%) Efficiency: ~118.3% (51-119%) Current payout: (0.0029)=0.0029 BTC
2015-11-15 17:37:48.059535  Pool: 866TH/s Stale rate: 15.5% Expected time to block: 3.8 days
2015-11-15 17:37:49.446352 Peer sent entire transaction 169eb6acb29de5402d66bc707ac356c5a68cad42cd3e2b61cd7982da8e39f9d6 that was already received
2015-11-15 17:37:51.064183 P2Pool: 17312 shares in chain (9109 verified/17316 total) Peers: 7 (0 incoming)
2015-11-15 17:37:51.064321  Local: 1332GH/s in last 10.0 minutes Local dead on arrival: ~2.2% (1-4%) Expected time to share: 2.0 hours
2015-11-15 17:37:51.064390  Shares: 3 (0 orphan, 0 dead) Stale rate: ~0.0% (0-57%) Efficiency: ~118.3% (51-119%) Current payout: (0.0029)=0.0029 BTC
2015-11-15 17:37:51.064465  Pool: 866TH/s Stale rate: 15.5% Expected time to block: 3.8 days


Is 866 TH/s hash rate normal, or is it down because of some kind of change in software version?

If the numbers look good to me, compared to AntPool which I am using now, I'll bring over about 150 TH/s.

Thanks Everyone,

Tom
legendary
Activity: 1512
Merit: 1012
yep, i confirm this (lot disconnexion because of no valid v14 p2pool client).
but, it's not a problem if shares rise ... like 4000 shares after 15min (not verified !).
sr. member
Activity: 266
Merit: 250
You will get a lot of disconnects when first starting p2pool as many peers are dropped for using outdated p2pool software, as well as having to download the share chain. You also need to allow port 9333 through your firewall & router to the host running p2pool.

Just start it normally and wait a while - the errors will gradually stop as it settles & finds good nodes to download the chain from.

Thanks,  will do.

No problem. It can be a little disconcerting when p2pool is started up for the first time, but as your node gradually downloads the chain the errors will stop - but it does take a while  Wink

Currently the share chain is at 17372 - you should see shares on your node gradually increasing.......
full member
Activity: 165
Merit: 100
You will get a lot of disconnects when first starting p2pool as many peers are dropped for using outdated p2pool software, as well as having to download the share chain. You also need to allow port 9333 through your firewall & router to the host running p2pool.

Just start it normally and wait a while - the errors will gradually stop as it settles & finds good nodes to download the chain from.

Thanks,  will do.
sr. member
Activity: 266
Merit: 250
You will get a lot of disconnects when first starting p2pool as many peers are dropped for using outdated p2pool software, as well as having to download the share chain. You also need to allow port 9333 through your firewall & router to the host running p2pool.

Just start it normally and wait a while - the errors will gradually stop as it settles & finds good nodes to download the chain from.
sr. member
Activity: 244
Merit: 250
It seems to me that your p2pool node is up and running and is trying to make connections to other p2pool nodes in the internet. But it can not make any connection.
Set up your firewall or router or proxy to allow outgoing connections to any IP address and to port 9333.
full member
Activity: 165
Merit: 100
You don't need python-argparse if you're running python 2.7 (which you will be with 14.04).

You do need  python-zope.interface python-twisted python-twisted-web.

Maybe that will help  Wink

You also don't need to make - just run it straight from the p2pool directory.

I ran the following and am still getting errors like above:

ttravis@Bitcoin:~/p2pool$ sudo apt-get remove python-argparse
[sudo] password for ttravis:
Reading package lists... Done
Building dependency tree       
Reading state information... Done
Note, selecting 'libpython2.7-stdlib' instead of 'python-argparse'
0 upgraded, 0 newly installed, 0 to remove and 3 not upgraded.
ttravis@Bitcoin:~/p2pool$ sudo apt-get install python-zope.interface python-twisted python-twisted-web
Reading package lists... Done
Building dependency tree       
Reading state information... Done
python-twisted is already the newest version.
python-twisted-web is already the newest version.
python-twisted-web set to manually installed.
python-zope.interface is already the newest version.
python-zope.interface set to manually installed.
0 upgraded, 0 newly installed, 0 to remove and 3 not upgraded.


sr. member
Activity: 266
Merit: 250
You don't need python-argparse if you're running python 2.7 (which you will be with 14.04).

You do need  python-zope.interface python-twisted python-twisted-web.

Maybe that will help  Wink

You also don't need to make - just run it straight from the p2pool directory.
full member
Activity: 165
Merit: 100
make give me the following error....

Running readline-6.2.4.1/setup.py -q bdist_egg --dist-dir /tmp/easy_install-ov3A2M/readline-6.2.4.1/egg-dist-tmp-HQIfcN
Modules/2.x/readline.c:8:20: fatal error: Python.h: No such file or directory
 #include "Python.h"
                    ^
compilation terminated.
error: Setup script exited with error: command 'x86_64-linux-gnu-gcc' failed with exit status 1
make: *** [/home/ttravis/p2pool/.cache/pyenv/pyenv-1.11.6-extras.tar.gz] Error 1
ttravis@Bitcoin:~/p2pool$
full member
Activity: 165
Merit: 100
I'm going nuts trying to get this p2pool working.

I set up a clean install of Ubuntu 14.4 and updated.

Bitcoin client seems to be working ok.  I think I have the latest version now.

I installed p2pool with the following command:  git clone https://github.com/p2pool/p2pool.git

Installed python:  sudo apt-get install python-twisted python-argparse # should work on Ubuntu

I ran apt-get update and apt-get upgrade again to be sure I had latest.

I ran make and got some errors but continued on since someone said I did not actually need to run make.

When I try to run p2pool, I get the following when running:  python run_p2pool.py



This is just the tail end of my output.

2015-11-15 12:15:02.776585 >   File "/home/ttravis/p2pool/p2pool/bitcoin/worker_interface.py", line 129, in get_work
2015-11-15 12:15:02.776709 >     x, handler = self._inner.get_work(*args)
2015-11-15 12:15:02.776833 >   File "/home/ttravis/p2pool/p2pool/work.py", line 245, in get_work
2015-11-15 12:15:02.776957 >     raise jsonrpc.Error_for_code(-12345)(u'p2pool is downloading shares')
2015-11-15 12:15:02.777080 > p2pool.util.jsonrpc.NarrowError: -12345 p2pool is downloading shares
2015-11-15 12:15:02.778476 > Unhandled Error
2015-11-15 12:15:02.778645 > Traceback (most recent call last):
2015-11-15 12:15:02.778774 >   File "/home/ttravis/p2pool/p2pool/main.py", line 666, in run
2015-11-15 12:15:02.778900 >     reactor.run()
2015-11-15 12:15:02.779084 >   File "/usr/lib/python2.7/dist-packages/twisted/internet/base.py", line 1192, in run
2015-11-15 12:15:02.779215 >     self.mainLoop()
2015-11-15 12:15:02.779341 >   File "/usr/lib/python2.7/dist-packages/twisted/internet/base.py", line 1201, in mainLoop
2015-11-15 12:15:02.779468 >     self.runUntilCurrent()
2015-11-15 12:15:02.779592 >   File "/usr/lib/python2.7/dist-packages/twisted/internet/base.py", line 824, in runUntilCurrent
2015-11-15 12:15:02.779720 >     call.func(*call.args, **call.kw)
2015-11-15 12:15:02.779844 > --- ---
2015-11-15 12:15:02.779968 >   File "/home/ttravis/p2pool/p2pool/bitcoin/stratum.py", line 38, in _send_work
2015-11-15 12:15:02.780095 >     x, got_response = self.wb.get_work(*self.wb.preprocess_request('' if self.username is None else self.username))
2015-11-15 12:15:02.780221 >   File "/home/ttravis/p2pool/p2pool/bitcoin/worker_interface.py", line 129, in get_work
2015-11-15 12:15:02.780347 >     x, handler = self._inner.get_work(*args)
2015-11-15 12:15:02.780471 >   File "/home/ttravis/p2pool/p2pool/work.py", line 245, in get_work
2015-11-15 12:15:02.780596 >     raise jsonrpc.Error_for_code(-12345)(u'p2pool is downloading shares')
2015-11-15 12:15:02.780736 > p2pool.util.jsonrpc.NarrowError: -12345 p2pool is downloading shares
^C2015-11-15 12:15:05.010901 Lost peer 59.167.237.19:9333 - Connection to the other side was lost in a non-clean fashion: Connection lost.
2015-11-15 12:15:05.011322 Lost peer 62.213.58.41:9333 - Connection to the other side was lost in a non-clean fashion: Connection lost.
2015-11-15 12:15:05.012076 Lost peer 104.221.188.17:9333 - Connection to the other side was lost in a non-clean fashion: Connection lost.
2015-11-15 12:15:05.012430 Lost peer 72.14.191.28:9333 - Connection to the other side was lost in a non-clean fashion: Connection lost.
2015-11-15 12:15:05.013003 Lost peer 108.162.140.254:9333 - Connection to the other side was lost in a non-clean fashion: Connection lost.
2015-11-15 12:15:05.013239 > in download_shares:
2015-11-15 12:15:05.013313 > Traceback (most recent call last):
2015-11-15 12:15:05.013378 > Failure: twisted.internet.error.ConnectionLost: Connection to the other side was lost in a non-clean fashion: Connection lost.
2015-11-15 12:15:05.013559 Requesting parent share a1ccf4d5 from 146.0.32.101:9340
2015-11-15 12:15:05.014878 Lost peer 146.0.32.101:9340 - Connection to the other side was lost in a non-clean fashion: Connection lost.
2015-11-15 12:15:05.015161 > in download_shares:
2015-11-15 12:15:05.015237 > Traceback (most recent call last):
2015-11-15 12:15:05.015319 > Failure: twisted.internet.error.ConnectionLost: Connection to the other side was lost in a non-clean fashion: Connection lost.
ttravis@Bitcoin:~/p2pool$

Any advise would be appreciated.

Thanks in advance,

Tom Travis
legendary
Activity: 1258
Merit: 1027
Well that's the issue of updating bitcoind, not anything else.

What I mean by my reply is that your bitcoind version being updated and calling (the crappy slow) 0.11.2 getblocktemplate will produce the new v4 blocks.

That library is something separate that you'd not even need to take notice of unless you already use it directly (which it would seem almost no one does)

Thanks Kano, I'll give it a try on my test mode next week....

TBH never heard of libblkmaker before this...
Jump to: