Author

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

newbie
Activity: 7
Merit: 0
Is anyone using p2pool on a windows machine?  Is it not recommend?  I followed the instruction on to separate machines and get the same error on both machines.


C:\Python27\Lib\site-packages>run_p2pool.exe

2015-09-25 06:51:43.484000 p2pool (version 14.0)
2015-09-25 06:51:43.484000
2015-09-25 06:51:43.484000 Testing bitcoind RPC connection to 'http://127.0.0.1:
8332/' with username 'user'...
2015-09-25 06:51:43.937000 > Error getting work from bitcoind:
2015-09-25 06:51:43.937000 > Traceback (most recent call last):
2015-09-25 06:51:43.938000 >   File "twisted\internet\defer.pyc", line 551, in _
runCallbacks
2015-09-25 06:51:43.938000 >
2015-09-25 06:51:43.938000 >   File "twisted\internet\defer.pyc", line 1101, in
gotResult
2015-09-25 06:51:43.938000 >
2015-09-25 06:51:43.938000 >   File "twisted\internet\defer.pyc", line 1043, in
_inlineCallbacks
2015-09-25 06:51:43.938000 >
2015-09-25 06:51:43.938000 >   File "twisted\python\failure.pyc", line 382, in t
hrowExceptionIntoGenerator
2015-09-25 06:51:43.939000 >
2015-09-25 06:51:43.939000 > --- ---
2015-09-25 06:51:43.939000 >   File "p2pool\util\deferral.pyc", line 41, in f
2015-09-25 06:51:43.939000 >
2015-09-25 06:51:43.939000 >   File "twisted\internet\defer.pyc", line 1043, in
_inlineCallbacks
2015-09-25 06:51:43.939000 >
2015-09-25 06:51:43.939000 >   File "twisted\python\failure.pyc", line 382, in t
hrowExceptionIntoGenerator
2015-09-25 06:51:43.940000 >
2015-09-25 06:51:43.940000 >   File "p2pool\bitcoin\helper.pyc", line 39, in get
work
2015-09-25 06:51:43.940000 >
2015-09-25 06:51:43.940000 >   File "twisted\internet\defer.pyc", line 1043, in
_inlineCallbacks
2015-09-25 06:51:43.940000 >
2015-09-25 06:51:43.940000 >   File "twisted\python\failure.pyc", line 382, in t
hrowExceptionIntoGenerator
2015-09-25 06:51:43.940000 >
2015-09-25 06:51:43.941000 >   File "p2pool\util\jsonrpc.pyc", line 133, in _htt
p_do
2015-09-25 06:51:43.941000 >
2015-09-25 06:51:43.941000 > p2pool.util.jsonrpc.NarrowError: -10 Bitcoin is dow
nloading blocks...
newbie
Activity: 30
Merit: 0
That guide is not maintained & very out of date, so are many of the links it uses. You should remove it all & download from the official repo:

https://github.com/p2pool/p2pool

From terminal:

Code:
git clone https://github.com/p2pool/p2pool.git

Then punch this into a terminal:

Code:
sudo apt-get update
sudo apt-get upgrade
sudo apt-get -y install software-properties-common
sudo add-apt-repository ppa:bitcoin/bitcoin
sudo apt-get update
sudo apt-get install libdb4.8-dev libdb4.8++-dev
sudo apt-get --no-install-recommends install python-software-properties screen git python-rrdtool python-pygame python-scipy python-twisted python-twisted-web python-imaging build-essential libglib2.0-dev libglibmm-2.4-dev python-dev libssl-dev libboost-all-dev dh-autoreconf libcurl4-openssl-dev libminiupnpc-dev ufw libtool autotools-dev autoconf automake pkg-config libprotoc8 libgtk2.0-dev libgmp-dev libmpfr-dev samba nautilus gdebi yasm libevent-dev

This will install all the needed dependencies for p2pool & your merge mined coins. If you want to have a GUI for your wallets, add:

Code:
sudo apt-get install libqt4-dev libprotobuf-dev protobuf-compiler

For your Bitcoin wallet, type:

Code:
sudo apt-get install bitcoind

Or, for the GUI version:

Code:
sudo apt-get install bitcoin-qt

This should get you started  Wink




thanks going to try this once the vps gets rebooted and hopefully it will get sorted to uninstall all the crap from before easy ?
sr. member
Activity: 266
Merit: 250
That guide is not maintained & very out of date, so are many of the links it uses. You should remove it all & download from the official repo:

https://github.com/p2pool/p2pool

From terminal:

Code:
git clone https://github.com/p2pool/p2pool.git

Then punch this into a terminal:

Code:
sudo apt-get update
sudo apt-get upgrade
sudo apt-get -y install software-properties-common
sudo add-apt-repository ppa:bitcoin/bitcoin
sudo apt-get update
sudo apt-get install libdb4.8-dev libdb4.8++-dev
sudo apt-get --no-install-recommends install python-software-properties screen git python-rrdtool python-pygame python-scipy python-twisted python-twisted-web python-imaging build-essential libglib2.0-dev libglibmm-2.4-dev python-dev libssl-dev libboost-all-dev dh-autoreconf libcurl4-openssl-dev libminiupnpc-dev ufw libtool autotools-dev autoconf automake pkg-config libprotoc8 libgtk2.0-dev libgmp-dev libmpfr-dev yasm libevent-dev

This will install all the needed dependencies for p2pool & your merge mined coins. If you want to have a GUI for your wallets, add:

Code:
sudo apt-get install libqt4-dev libprotobuf-dev protobuf-compiler

For your Bitcoin wallet, type:

Code:
sudo apt-get install bitcoind

Or, for the GUI version:

Code:
sudo apt-get install bitcoin-qt

This should get you started  Wink


newbie
Activity: 30
Merit: 0
Good stuff. There's a guide at the very beginning of this thread, or you can use this:

https://bitcointalk.org/index.php?topic=651819.0;topicseen

..& just use what you need to get up & running. Some of the links are a bit outdated - I keep meaning to write an updated install guide, but keep getting side-tracked, etc...... Wink

If you have any questions, just ask here - someone will point you in the right direction.....eventually.

i used this link
newbie
Activity: 30
Merit: 0
Looks like your IP tables is screwed - your firewall also, have you been adjusting it's settings?

Also, what's this:


--2015-09-24 14:41:22--  http://pool.nitro.gr/p2pool-files.tar.gz
Resolving pool.nitro.gr (pool.nitro.gr)... 72.52.4.91
Connecting to pool.nitro.gr (pool.nitro.gr)|72.52.4.91|:80... connected.

HTTP request sent, awaiting response... 200 OK
Length: unspecified [text/html]
Saving to: ‘p2pool-files.tar.gz’

    [ <=>                                                                                                                ] 20.645      --.-K/s   in 0,01s

2015-09-24 14:41:23 (1,67 MB/s) - ‘p2pool-files.tar.gz’ saved [20645]


gzip: stdin: not in gzip format
tar: Child returned status 1
tar: Error is not recoverable: exiting now
install-merged-mining.sh: 337: install-merged-mining.sh: Bad substitution
root@euve82885:~#


Did you download p2pool from the official repo? That bold text looks suspect.......

I belive so it was the one from the auto config from the start of this topic where you run the wget and it does the rest apparently
sr. member
Activity: 266
Merit: 250
Looks like your IP tables is screwed - your firewall also, have you been adjusting it's settings?

Also, what's this:


--2015-09-24 14:41:22--  http://pool.nitro.gr/p2pool-files.tar.gz
Resolving pool.nitro.gr (pool.nitro.gr)... 72.52.4.91
Connecting to pool.nitro.gr (pool.nitro.gr)|72.52.4.91|:80... connected.

HTTP request sent, awaiting response... 200 OK
Length: unspecified [text/html]
Saving to: ‘p2pool-files.tar.gz’

    [ <=>                                                                                                                ] 20.645      --.-K/s   in 0,01s

2015-09-24 14:41:23 (1,67 MB/s) - ‘p2pool-files.tar.gz’ saved [20645]


gzip: stdin: not in gzip format
tar: Child returned status 1
tar: Error is not recoverable: exiting now
install-merged-mining.sh: 337: install-merged-mining.sh: Bad substitution
root@euve82885:~#


Did you download p2pool from the official repo? That bold text looks suspect.......
newbie
Activity: 30
Merit: 0
hey guys hit a problem and cant get past it

ERROR: problem running ufw-init
modprobe: ERROR: ../libkmod/libkmod.c:507 kmod_lookup_alias_from_builtin_file() could not open builtin file '/lib/modules/3.13.0-042stab108.8/modules.builtin.bin'
modprobe: FATAL: Module nf_conntrack_ftp not found.
modprobe: ERROR: ../libkmod/libkmod.c:507 kmod_lookup_alias_from_builtin_file() could not open builtin file '/lib/modules/3.13.0-042stab108.8/modules.builtin.bin'
modprobe: FATAL: Module nf_nat_ftp not found.
modprobe: ERROR: ../libkmod/libkmod.c:507 kmod_lookup_alias_from_builtin_file() could not open builtin file '/lib/modules/3.13.0-042stab108.8/modules.builtin.bin'
modprobe: FATAL: Module nf_conntrack_netbios_ns not found.
iptables-restore: line 30 failed
iptables-restore: line 10 failed
iptables-restore: line 65 failed
iptables-restore v1.4.21: Couldn't load target `ufw-user-input':No such file or directory

Error occurred at line: 2
Try `iptables-restore -h' or 'iptables-restore --help' for more information.
ip6tables-restore: line 42 failed
ip6tables-restore: line 2 failed
ip6tables-restore: line 8 failed
ip6tables-restore: line 73 failed
ip6tables-restore v1.4.21: Couldn't load target `ufw6-skip-to-policy-input':No such file or directory

Error occurred at line: 19
Try `ip6tables-restore -h' or 'ip6tables-restore --help' for more information.
ip6tables-restore: line 10 failed
ip6tables-restore: line 65 failed
ip6tables-restore v1.4.21: Couldn't load target `ufw6-user-input':No such file or directory

Error occurred at line: 2
Try `ip6tables-restore -h' or 'ip6tables-restore --help' for more information.
sysctl: permission denied on key 'net.ipv4.tcp_sack'

Problem running '/etc/ufw/after.rules'
Problem running '/lib/ufw/user.rules'
Problem running '/etc/ufw/before6.rules'
Problem running '/etc/ufw/after6.rules'
Problem running '/lib/ufw/user6.rules'

Cloning into 'p2pool'...
remote: Counting objects: 9392, done.
remote: Total 9392 (delta 0), reused 0 (delta 0), pack-reused 9392
Receiving objects: 100% (9392/9392), 3.72 MiB | 1.78 MiB/s, done.
Resolving deltas: 100% (5910/5910), done.
Checking connectivity... done.
--2015-09-24 14:41:22--  http://pool.nitro.gr/p2pool-files.tar.gz
Resolving pool.nitro.gr (pool.nitro.gr)... 72.52.4.91
Connecting to pool.nitro.gr (pool.nitro.gr)|72.52.4.91|:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: unspecified [text/html]
Saving to: ‘p2pool-files.tar.gz’

    [ <=>                                                                                                                ] 20.645      --.-K/s   in 0,01s

2015-09-24 14:41:23 (1,67 MB/s) - ‘p2pool-files.tar.gz’ saved [20645]


gzip: stdin: not in gzip format
tar: Child returned status 1
tar: Error is not recoverable: exiting now
install-merged-mining.sh: 337: install-merged-mining.sh: Bad substitution
root@euve82885:~#


any ideas?
legendary
Activity: 2576
Merit: 2267
1RichyTrEwPYjZSeAYxeiFBNnKC9UjC5k
Thanks for all the replys

I managed to get ubuntu installed so don't need to bother with centos so next question is what do I need to do I want a website front end etc that all runs on the same server I own the domain btcscot.co.uk and btcscot.uk I'm intermediate when it comes to Linux so fire away any links etc that break it all down nice and easy to understand would be much appreciated need to know about wallets also do I get a cut from the pool node or is it just donations I also have miners of my own to get the pool getting a hashrate

Install apache then start reading the configuration documentation (this is really the wrong thread for that type of question though)

If you are mining with p2pool, your hashrate is fairly irrelevant as it will be pooled with the rest of us. You can elect to take a portion of the work of anyone who mines on your node but you may find you don't get many takers as I think many of us run our own instances (anyone who runs a public pool care to comment?)
sr. member
Activity: 266
Merit: 250
Thanks for all the replys

I managed to get ubuntu installed so don't need to bother with centos so next question is what do I need to do I want a website front end etc that all runs on the same server I own the domain btcscot.co.uk and btcscot.uk I'm intermediate when it comes to Linux so fire away any links etc that break it all down nice and easy to understand would be much appreciated need to know about wallets also do I get a cut from the pool node or is it just donations I also have miners of my own to get the pool getting a hashrate

If you want a "cut" of what anyone earns on your node then you can use the -fee [n%] in your startup syntax, but most nodes don't charge miners. You should use the official Bitcoin Core wallet with p2pool, have a read about it here:

https://bitcoin.org/en/choose-your-wallet

If you already have a domain set up, then it's simply a case of embedding a link to your node on your webpage?


On a different note, we got a BLOCK!!   Smiley
newbie
Activity: 30
Merit: 0
Thanks for all the replys

I managed to get ubuntu installed so don't need to bother with centos so next question is what do I need to do I want a website front end etc that all runs on the same server I own the domain btcscot.co.uk and btcscot.uk I'm intermediate when it comes to Linux so fire away any links etc that break it all down nice and easy to understand would be much appreciated need to know about wallets also do I get a cut from the pool node or is it just donations I also have miners of my own to get the pool getting a hashrate
legendary
Activity: 3430
Merit: 3080
Openssl isn't an issue since core doesn't use the system openssl.

Yeah, with the exception of that independent repo serving up .rpm files. Not sure what they're doing with ssl now, but I've moved over to Debian in any case. 
legendary
Activity: 4592
Merit: 1851
Linux since 1997 RedHat 4
Fedora (22) runs the core released binaries (since around Fedora 19)
So Centos should be OK to run the core binaries also as long as it's not an old versions of Centos.

Openssl isn't an issue since core doesn't use the system openssl.
legendary
Activity: 3430
Merit: 3080
Hey all

new to the forums and to p2pool.

looking to setup a scottish p2pool on a vps i own its running centos looking for an easy
to understand guide and also some folk to help test mining the pool will be a fair and easy to use pool.

thanks btcscot

Hello btcscot - welcome to the p2pool thread  Smiley

Cent OS is Linux based isn't it? I've never used Cent OS - but I presume the setup would be the same as Ubuntu - which is also Linux based.

Not 100% sure though, maybe someone with a little more savvy could chime in......

Unfortunately, it might not be so easy, but btcscot probably anticipates what I'm about to say.

You can't rely on package support for CentOS, so all bitcoind configuration is your responsibility (of which there is a considerable amount that the package file won't default to anyway). There is an independently run Bitcoin Core repo for .rpm package distros, but it's a bit questionable as to whether the guy running it is competent tbh (I stopped using it after the maintainer updated their separate bitcoin-openssl package to a version that broke compatibility with the distro release I used at that time).

Python and p2pool should be the same as Debian/Ubuntu instructions.
sr. member
Activity: 266
Merit: 250
Good stuff. There's a guide at the very beginning of this thread, or you can use this:

https://bitcointalk.org/index.php?topic=651819.0;topicseen

..& just use what you need to get up & running. Some of the links are a bit outdated - I keep meaning to write an updated install guide, but keep getting side-tracked, etc...... Wink

If you have any questions, just ask here - someone will point you in the right direction.....eventually.
newbie
Activity: 30
Merit: 0
Hey all

new to the forums and to p2pool.

looking to setup a scottish p2pool on a vps i own its running centos looking for an easy
to understand guide and also some folk to help test mining the pool will be a fair and easy to use pool.

thanks btcscot

Hello btcscot - welcome to the p2pool thread  Smiley

Cent OS is Linux based isn't it? I've never used Cent OS - but I presume the setup would be the same as Ubuntu - which is also Linux based.

Not 100% sure though, maybe someone with a little more savvy could chime in......

thanks yeah managed to get the guy that has the vps to install ubuntu all be it in german but quickly changed that lol
sr. member
Activity: 266
Merit: 250
Hey all

new to the forums and to p2pool.

looking to setup a scottish p2pool on a vps i own its running centos looking for an easy
to understand guide and also some folk to help test mining the pool will be a fair and easy to use pool.

thanks btcscot

Hello btcscot - welcome to the p2pool thread  Smiley

Cent OS is Linux based isn't it? I've never used Cent OS - but I presume the setup would be the same as Ubuntu - which is also Linux based.

Not 100% sure though, maybe someone with a little more savvy could chime in......
newbie
Activity: 30
Merit: 0
Hey all

new to the forums and to p2pool.

looking to setup a scottish p2pool on a vps i own its running centos looking for an easy
to understand guide and also some folk to help test mining the pool will be a fair and easy to use pool.

thanks btcscot
sr. member
Activity: 266
Merit: 250
Well I picked the closest node to me (less than 100km away)
That did the same.
However, finally I seem to be getting shares - Yay - now getting more than just the original 3 addresses and the others are staying connected.
Code:
2015-09-13 23:19:31.172225 P2Pool: 0 shares in chain (0 verified/697 total) Peers: 7 (0 incoming)
Hopefully they'll verify some time soon ...
Thanks for your help Smiley

No kano, thank you for your work & everything you do for the community  Wink
legendary
Activity: 4592
Merit: 1851
Linux since 1997 RedHat 4
Well I picked the closest node to me (less than 100km away)
That did the same.
However, finally I seem to be getting shares - Yay - now getting more than just the original 3 addresses and the others are staying connected.
Code:
2015-09-13 23:19:31.172225 P2Pool: 0 shares in chain (0 verified/697 total) Peers: 7 (0 incoming)
Hopefully they'll verify some time soon ...
Thanks for your help Smiley
sr. member
Activity: 266
Merit: 250
...

Hiya kano,

I think the current spamming is playing havoc atm. Have you tried binding to a running node using the "--p2pool-node" option in the startup syntax?
No, though I'm not sure where to get the address list from.
I believe p2pool.info isn't the source any more.
... and I was thinking that since I had 3 addresses all doing the same that may or may not help - i.e. some other problem may be the cause.
So what would be a reliable address in your opinion Smiley

I use elizium as it's stable & has a good ping, but as you're in Oz it might be better to have a look at http://nodes.p2pool.co/ for a node closer to you (just ignore the red XT advert/propaganda on the site.... Cheesy Wink)

EDIT - If you need it, elizium.name:

Code:
--p2pool-node 95.170.95.133
Jump to: