Bitcoin Forum
March 19, 2024, 04:58:15 AM *
News: Latest Bitcoin Core release: 26.0 [Torrent]
 
   Home   Help Search Login Register More  
Pages: « 1 ... 637 638 639 640 641 642 643 644 645 646 647 648 649 650 651 652 653 654 655 656 657 658 659 660 661 662 663 664 665 666 667 668 669 670 671 672 673 674 675 676 677 678 679 680 681 682 683 684 685 686 [687] 688 689 690 691 692 693 694 695 696 697 698 699 700 701 702 703 704 705 706 707 708 709 710 711 712 713 714 715 716 717 718 719 720 721 722 723 724 725 726 727 728 729 730 731 732 733 734 735 736 737 ... 814 »
  Print  
Author Topic: [1500 TH] p2pool: Decentralized, DoS-resistant, Hop-Proof pool  (Read 2591571 times)
forrestv (OP)
Hero Member
*****
Offline Offline

Activity: 516
Merit: 643


View Profile
November 11, 2015, 09:36:02 PM
 #13721

Forgive me if I'm wrong, but is that not what you supply as an argument to the python command? I recall doing:  python ./run_p2pool.py

For Linux systems, run_p2pool.py is marked executable and has a Python shebang, so you can directly run it.

notbatman: P2Pool tries to obtain its version number by executing git and, if that fails, examining the name of the directory it's in. However, neither of those worked on your system, so it just used the (hex-encoded) name of the directory it's in. It's not a problem.

1J1zegkNSbwX4smvTdoHSanUfwvXFeuV23
1710824295
Hero Member
*
Offline Offline

Posts: 1710824295

View Profile Personal Message (Offline)

Ignore
1710824295
Reply with quote  #2

1710824295
Report to moderator
1710824295
Hero Member
*
Offline Offline

Posts: 1710824295

View Profile Personal Message (Offline)

Ignore
1710824295
Reply with quote  #2

1710824295
Report to moderator
1710824295
Hero Member
*
Offline Offline

Posts: 1710824295

View Profile Personal Message (Offline)

Ignore
1710824295
Reply with quote  #2

1710824295
Report to moderator
The grue lurks in the darkest places of the earth. Its favorite diet is adventurers, but its insatiable appetite is tempered by its fear of light. No grue has ever been seen by the light of day, and few have survived its fearsome jaws to tell the tale.
Advertised sites are not endorsed by the Bitcoin Forum. They may be unsafe, untrustworthy, or illegal in your jurisdiction.
1710824295
Hero Member
*
Offline Offline

Posts: 1710824295

View Profile Personal Message (Offline)

Ignore
1710824295
Reply with quote  #2

1710824295
Report to moderator
1710824295
Hero Member
*
Offline Offline

Posts: 1710824295

View Profile Personal Message (Offline)

Ignore
1710824295
Reply with quote  #2

1710824295
Report to moderator
1710824295
Hero Member
*
Offline Offline

Posts: 1710824295

View Profile Personal Message (Offline)

Ignore
1710824295
Reply with quote  #2

1710824295
Report to moderator
notbatman
Legendary
*
Offline Offline

Activity: 2212
Merit: 1038



View Profile
November 11, 2015, 10:04:51 PM
 #13722

Forgive me if I'm wrong, but is that not what you supply as an argument to the python command? I recall doing:  python ./run_p2pool.py

For Linux systems, run_p2pool.py is marked executable and has a Python shebang, so you can directly run it.

notbatman: P2Pool tries to obtain its version number by executing git and, if that fails, examining the name of the directory it's in. However, neither of those worked on your system, so it just used the (hex-encoded) name of the directory it's in. It's not a problem.

Ahh, that explains it. I don't have the command line git installed on this box. It's Windows 10 with just the git GUI for MinGW/MSYS.  Cheesy

Correction:

I do have it, just not in the path.

Anyways thanks for the info.

Correction:

It is in the path but, um I dunno WTF, it's Windows and the git GUI works!
TTravis
Full Member
***
Offline Offline

Activity: 165
Merit: 100


View Profile
November 12, 2015, 04:05:50 AM
 #13723

I am ditching Mint.  Building a Ubuntu 14.4 and try again.
p3yot33at3r
Sr. Member
****
Offline Offline

Activity: 266
Merit: 250



View Profile
November 12, 2015, 03:09:17 PM
 #13724

I am ditching Mint.  Building a Ubuntu 14.4 and try again.

You should give Xubuntu a try - it's much less resource hungry than Ubuntu, especially once the unneeded programs are removed.
Richy_T
Legendary
*
Offline Offline

Activity: 2380
Merit: 2100


1RichyTrEwPYjZSeAYxeiFBNnKC9UjC5k


View Profile
November 12, 2015, 04:45:40 PM
 #13725

I am ditching Mint.  Building a Ubuntu 14.4 and try again.

You should give Xubuntu a try - it's much less resource hungry than Ubuntu, especially once the unneeded programs are removed.

Slackware FTW.

1RichyTrEwPYjZSeAYxeiFBNnKC9UjC5k
TTravis
Full Member
***
Offline Offline

Activity: 165
Merit: 100


View Profile
November 13, 2015, 12:00:54 AM
 #13726

I am ditching Mint.  Building a Ubuntu 14.4 and try again.

You should give Xubuntu a try - it's much less resource hungry than Ubuntu, especially once the unneeded programs are removed.

I think I will next time around.  Either that or the server version.  This machine is just experimental.  If it works out and p2pool seems good for me, I will buy a new box with a much better processor, 16GB memory, and SSD.  If I understand correctly, that may help some.  I tend to use GUI too much as a crutch with Linux.

Thanks Everyone,

Tom Travis
Carlton Banks
Legendary
*
Offline Offline

Activity: 3430
Merit: 3068



View Profile
November 13, 2015, 12:59:03 PM
 #13727

I tend to use GUI too much as a crutch with Linux.

A wise man once told me: the command line always has the answer. Both your experience and the adventures with pypy a few pages back tell us it's not always as simple as that, but it's still good-spirited advice. Maybe you could paraphrase it to "if you can't get it working on the command line, it feels like luck if the GUI version does work"

Vires in numeris
notbatman
Legendary
*
Offline Offline

Activity: 2212
Merit: 1038



View Profile
November 13, 2015, 01:33:45 PM
 #13728

Gnome is a horrible beast and did you know that the fglrx video driver doesn't support virtual terminals? gah...
windpath
Legendary
*
Offline Offline

Activity: 1258
Merit: 1027


View Profile WWW
November 13, 2015, 02:28:22 PM
 #13729

Bitcoin Core version 0.11.2 released

https://bitcoin.org/en/release/v0.11.2

I won't have time to test it today, but there are some changes that may (will?) affect P2Pool, mainly the requirement for version 4 blocks.

From the release notes:

Quote
Notice to miners: Bitcoin Core’s block templates are now for version 4 blocks only, and any mining software relying on its getblocktemplate must be updated in parallel to use libblkmaker either version 0.4.3 or any version from 0.5.2 onward.

Looks like we need an update to only produce version 4+ blocks before OP_CHECKLOCKTIMEVERIFY becomes enforced.
p3yot33at3r
Sr. Member
****
Offline Offline

Activity: 266
Merit: 250



View Profile
November 13, 2015, 07:30:12 PM
 #13730

Bitcoin Core version 0.11.2 released

https://bitcoin.org/en/release/v0.11.2

I won't have time to test it today, but there are some changes that may (will?) affect P2Pool, mainly the requirement for version 4 blocks.

From the release notes:

Quote
Notice to miners: Bitcoin Core’s block templates are now for version 4 blocks only, and any mining software relying on its getblocktemplate must be updated in parallel to use libblkmaker either version 0.4.3 or any version from 0.5.2 onward.

Looks like we need an update to only produce version 4+ blocks before OP_CHECKLOCKTIMEVERIFY becomes enforced.

Interesting - think I'll hold off updating my node for the time being.

@ forrestv: If you're lurking, can you confirm if a p2pool update is required in order to use the latest Core release? Thanks  Wink
kano
Legendary
*
Offline Offline

Activity: 4438
Merit: 1794


Linux since 1997 RedHat 4


View Profile
November 14, 2015, 01:23:56 AM
 #13731

Bitcoin Core version 0.11.2 released

https://bitcoin.org/en/release/v0.11.2

I won't have time to test it today, but there are some changes that may (will?) affect P2Pool, mainly the requirement for version 4 blocks.

From the release notes:

Quote
Notice to miners: Bitcoin Core’s block templates are now for version 4 blocks only, and any mining software relying on its getblocktemplate must be updated in parallel to use libblkmaker either version 0.4.3 or any version from 0.5.2 onward.

Yeah that's not quite right ... as seems to be common in recent bitcoin release comments.

In this case of course that comment only makes sense if you use libblkmaker ... which the most used miner on the planet for BTC doesn't use.
Does p2pool even use libblkmaker?
I'm not sure there's much at all that uses it (we don't in ckpool)

Pool: https://kano.is - low 0.5% fee PPLNS 3 Days - Most reliable Solo with ONLY 0.5% fee   Bitcointalk thread: Forum
Discord support invite at https://kano.is/ Majority developer of the ckpool code - k for kano
The ONLY active original developer of cgminer. Original master git: https://github.com/kanoi/cgminer
windpath
Legendary
*
Offline Offline

Activity: 1258
Merit: 1027


View Profile WWW
November 14, 2015, 03:35:05 AM
 #13732

....

Quote
Notice to miners: Bitcoin Core’s block templates are now for version 4 blocks only, and any mining software relying on its getblocktemplate must be updated in parallel to use libblkmaker either version 0.4.3 or any version from 0.5.2 onward.
....
Yeah that's not quite right ... as seems to be common in recent bitcoin release comments.

In this case of course that comment only makes sense if you use libblkmaker ... which the most used miner on the planet for BTC doesn't use.
Does p2pool even use libblkmaker?
I'm not sure there's much at all that uses it (we don't in ckpool)

Thanks Kano, so you do not believe we need any update?

I noticed many of our recent blocks are version 3.

Once CLTV is enforced will new version 3 blocks be valid?
kano
Legendary
*
Offline Offline

Activity: 4438
Merit: 1794


Linux since 1997 RedHat 4


View Profile
November 14, 2015, 08:07:20 AM
 #13733

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)

Pool: https://kano.is - low 0.5% fee PPLNS 3 Days - Most reliable Solo with ONLY 0.5% fee   Bitcointalk thread: Forum
Discord support invite at https://kano.is/ Majority developer of the ckpool code - k for kano
The ONLY active original developer of cgminer. Original master git: https://github.com/kanoi/cgminer
windpath
Legendary
*
Offline Offline

Activity: 1258
Merit: 1027


View Profile WWW
November 14, 2015, 03:36:58 PM
 #13734

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...
TTravis
Full Member
***
Offline Offline

Activity: 165
Merit: 100


View Profile
November 15, 2015, 05:28:28 PM
 #13735

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 > --- <exception caught here> ---
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
TTravis
Full Member
***
Offline Offline

Activity: 165
Merit: 100


View Profile
November 15, 2015, 05:31:34 PM
 #13736

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$
p3yot33at3r
Sr. Member
****
Offline Offline

Activity: 266
Merit: 250



View Profile
November 15, 2015, 05:36:32 PM
 #13737

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.
TTravis
Full Member
***
Offline Offline

Activity: 165
Merit: 100


View Profile
November 15, 2015, 06:04:10 PM
 #13738

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.


Legov
Sr. Member
****
Offline Offline

Activity: 244
Merit: 250


View Profile
November 15, 2015, 06:22:44 PM
 #13739

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.

“It is well enough that people of the nation do not understand our banking and money system, for if they did, I believe there would be a revolution before tomorrow morning.” Henry Ford, founder of the Ford Motor Company.
p3yot33at3r
Sr. Member
****
Offline Offline

Activity: 266
Merit: 250



View Profile
November 15, 2015, 06:24:28 PM
 #13740

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.
Pages: « 1 ... 637 638 639 640 641 642 643 644 645 646 647 648 649 650 651 652 653 654 655 656 657 658 659 660 661 662 663 664 665 666 667 668 669 670 671 672 673 674 675 676 677 678 679 680 681 682 683 684 685 686 [687] 688 689 690 691 692 693 694 695 696 697 698 699 700 701 702 703 704 705 706 707 708 709 710 711 712 713 714 715 716 717 718 719 720 721 722 723 724 725 726 727 728 729 730 731 732 733 734 735 736 737 ... 814 »
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.19 | SMF © 2006-2009, Simple Machines Valid XHTML 1.0! Valid CSS!