[Guide] Setup P2Pool for Feathercoin in VirtualBox
-
[quote name=“josper” post=“9777” timestamp=“1370459095”]
Hi,thank you very much for the tut.
I probably try setup one, without windows…
[/quote]Just follow from “Instructions for Ubuntu 12.04” then :) Nice an easy.
-
Testing it on Ubuntu 13.04… :D
[url=http://ftc.soyminero.net:19327]http://ftc.soyminero.net:19327[/url]
-
Great stuff :) looking good there.
-
[quote name=“d2” post=“14464” timestamp=“1371171843”]
Some additional information:If you are having problems getting it to start, try adding “–disable-upnp” to the startup line.
If you plan to offer it for community usage, you should increase the number of connections allowed with something like: “–max-conns 500” in the startup line.
Unless you are using this for a solo mining pool, you need to add some additional nodes to connect to in order to join the rest of the p2pool network. Below are some of the nodes I know of:
-n p2pftc1.d2.cc -n p2pool.dyndns.info -n p2pool.org -n ftcp2p.nut2pool.com -n p2pftc2.d2.cc -n p2pftc3.d2.cc
There should be added to your startup line as well.
[/quote]Thank you very much, D2.
I have those nodes added in networks.py . Is it the same effect?I have added “–max-conns 500” in the startup for increase connections and community use… This server is always on… I hope :)
But I only have “Peers out”, don’t have “Peers in”. Any idea? I have opened port 19339 in iptables. Need other port?
Thanks !!!
PD .- Sorry by my english ::)
-
[quote name=“d2” post=“14472” timestamp=“1371173477”]
Here is a little script to keep your p2pool running in the event it crashes. It should be easy to understand to adopt it for other things as well.The first step is to create a directory for your script, enter it, and create the script file:
…
This script will run every 60 seconds, if p2pool is running it will do nothing, otherwise it will attempt to run your script to start it!
[/quote]Great!!
I add this script faster ;D -
[quote name=“d2” post=“14492” timestamp=“1371175265”]
Not sure what you are using on 19339 but the 2 ports you need open are whatever you specified on the --w switch and the p2p-port
–w 19327 --bitcoind-p2p-port 9336
you should NOT allow external access to bitcoind-rpc-port
[/quote]Ok, I have 9336 closed… ::)
i have oppened 19339 following networks.py feathercoin configuration >> “P2P_PORT=19339”
I will do some testing…
-
Well, works fine, but not show “Peers in”, only peers out >:(
[code]
~/p2pool-feathercoin/run_p2pool.py --net feathercoin -a xxxxx --w 19327 --bitcoind-p2p-port 9336 --bitcoind-rpc-port 9667 --disable-upnp --max-conns 500[/code]
networks.py:
[code]…
P2P_PORT=19339,
MIN_TARGET=0,
MAX_TARGET=2**256//2**20 - 1,
PERSIST=False,
WORKER_PORT=19327,
BOOTSTRAP_ADDRS=‘p2pool.org ftcp2p.nut2pool.com p2pool.dyndns.info p2pftc1.d2.cc’.split(’ ‘),
ANNOUNCE_CHANNEL=’#p2pool-alt’,
VERSION_CHECK=lambda v: True,[/code]
Startup:
[code]
2013-06-14 04:41:28.616508 Testing bitcoind RPC connection to ‘http://127.0.0.1:9667/’ with username ‘rpcadmin’…
2013-06-14 04:41:28.635913 …success!
2013-06-14 04:41:28.636032 Current block hash: 9e1bcb25499736e46ba5b19a8ae194b6ab575e0feccb1b38f864b9f3ef615c98
2013-06-14 04:41:28.636093 Current block height: 36188
2013-06-14 04:41:28.636146
2013-06-14 04:41:28.636219 Testing bitcoind P2P connection to ‘127.0.0.1:9336’…
2013-06-14 04:41:28.717484 …success!
2013-06-14 04:41:28.717587
2013-06-14 04:41:28.717877
2013-06-14 04:41:28.717970 Loading shares…
2013-06-14 04:41:30.702526 1000
2013-06-14 04:41:32.441438 …done loading 1888 shares (1531 verified)!
2013-06-14 04:41:32.441559
2013-06-14 04:41:32.441615 Initializing work…
2013-06-14 04:41:33.144594 …success!
2013-06-14 04:41:33.144754
2013-06-14 04:41:33.144815 Joining p2pool network using port 19339…
2013-06-14 04:41:33.212921 …success!
2013-06-14 04:41:33.213033
2013-06-14 04:41:33.213096 Listening for workers on ‘’ port 19327…
2013-06-14 04:41:33.443858 …success!
2013-06-14 04:41:33.443992
2013-06-14 04:41:33.444185 Started successfully![/code]
… I keep trying … :D
-
Anyone having problems compiling latest Github code on 12.04? I keep running into this issue-
[code]g++ -c -O2 -pthread -Wall -Wextra -Wformat -Wformat-security -Wno-unused-parameter -g -DUSE_IPV6 -DBOOST_SPIRIT_THREADSAFE -I/home/ubuntu/FeatherCoin/src -I/home/ubuntu/FeatherCoin/src/obj -DHAVE_BUILD_INFO -fno-stack-protector -fstack-protector-all -Wstack-protector -D_FORTIFY_SOURCE=2 -MMD -MF obj/main.d -o obj/main.o main.cpp
g++: internal compiler error: Killed (program cc1plus)
Please submit a full bug report,
with preprocessed source if appropriate.
See for instructions.
make: *** [obj/main.o] Error 4
mv: cannot stat `feathercoind’: No such file or directory[/code] -
[quote name=“perico” post=“14533” timestamp=“1371180448”]
Well, works fine, but not show “Peers in”, only peers out >:([code]
~/p2pool-feathercoin/run_p2pool.py --net feathercoin -a xxxxx --w 19327 --bitcoind-p2p-port 9336 --bitcoind-rpc-port 9667 --disable-upnp --max-conns 500[/code]
networks.py:
[code]…
P2P_PORT=19339,
MIN_TARGET=0,
MAX_TARGET=2**256//2**20 - 1,
PERSIST=False,
WORKER_PORT=19327,
BOOTSTRAP_ADDRS=‘p2pool.org ftcp2p.nut2pool.com p2pool.dyndns.info p2pftc1.d2.cc’.split(’ ‘),
ANNOUNCE_CHANNEL=’#p2pool-alt’,
VERSION_CHECK=lambda v: True,[/code]
Startup:
[code]
2013-06-14 04:41:28.616508 Testing bitcoind RPC connection to ‘http://127.0.0.1:9667/’ with username ‘rpcadmin’…
2013-06-14 04:41:28.635913 …success!
2013-06-14 04:41:28.636032 Current block hash: 9e1bcb25499736e46ba5b19a8ae194b6ab575e0feccb1b38f864b9f3ef615c98
2013-06-14 04:41:28.636093 Current block height: 36188
2013-06-14 04:41:28.636146
2013-06-14 04:41:28.636219 Testing bitcoind P2P connection to ‘127.0.0.1:9336’…
2013-06-14 04:41:28.717484 …success!
2013-06-14 04:41:28.717587
2013-06-14 04:41:28.717877
2013-06-14 04:41:28.717970 Loading shares…
2013-06-14 04:41:30.702526 1000
2013-06-14 04:41:32.441438 …done loading 1888 shares (1531 verified)!
2013-06-14 04:41:32.441559
2013-06-14 04:41:32.441615 Initializing work…
2013-06-14 04:41:33.144594 …success!
2013-06-14 04:41:33.144754
2013-06-14 04:41:33.144815 Joining p2pool network using port 19339…
2013-06-14 04:41:33.212921 …success!
2013-06-14 04:41:33.213033
2013-06-14 04:41:33.213096 Listening for workers on ‘’ port 19327…
2013-06-14 04:41:33.443858 …success!
2013-06-14 04:41:33.443992
2013-06-14 04:41:33.444185 Started successfully![/code]
… I keep trying … :D
[/quote]Provided you’ve opened 19339 you should be fine. It does take a long time to get peers in. Sometimes 24h+. The reason is that most pools have the default config of 6 peers out max. Once they have the 6 they don’t look for more. Eventually, as pools restart, shutdown, startup, or whatever, they’ll start to come to you. Patience… ;)
Of course as soon as you restart the server, you’ll lose your incoming again. :(
-
有win7çš„çŸ¿æ± å—
-
As the p2pool versions for Feathercoin are no longer available, i have created an updated version of p2pool for feathercoin under: https://github.com/andreasfaerber/p2pool-feathercoin
Regards,
MrSheep -
[quote name=“MrSheep” post=“32500” timestamp=“1382734947”]
As the p2pool versions for Feathercoin are no longer available, i have created an updated version of p2pool for feathercoin under: https://github.com/andreasfaerber/p2pool-feathercoinRegards,
MrSheep
[/quote]Edited the main post to reflect the new source.
Thanks
-
For some reason a get a lot of errors from the logfile like this:
2013-12-12 21:50:41.741618 > Error getting work from bitcoind:
2013-12-12 21:50:41.742045 > Traceback (most recent call last):
2013-12-12 21:50:41.742364 > File “/usr/lib/python2.7/dist-packages/twisted/internet/defer.py”, line 551, in _runCallbacks
2013-12-12 21:50:41.742671 > current.result = callback(current.result, *args, **kw)
2013-12-12 21:50:41.742974 > File “/usr/lib/python2.7/dist-packages/twisted/internet/defer.py”, line 1101, in gotResult
2013-12-12 21:50:41.743284 > _inlineCallbacks(r, g, deferred)
2013-12-12 21:50:41.743585 > File “/usr/lib/python2.7/dist-packages/twisted/internet/defer.py”, line 1043, in _inlineCallbacks
2013-12-12 21:50:41.743886 > result = result.throwExceptionIntoGenerator(g)
2013-12-12 21:50:41.744213 > File “/usr/lib/python2.7/dist-packages/twisted/python/failure.py”, line 382, in throwExceptionIntoGenerator
2013-12-12 21:50:41.744486 > return g.throw(self.type, self.value, self.tb)
2013-12-12 21:50:41.744832 > — —and so on…
There’s a small typo in the HOWTO also i think:
[quote]
You can use screen -r to open up the p2pool console, or you can tail -f ~/[s]p2pool-fc[/s]/data/feathercoin/log
[/quote]should read “p2pool_feathercoin”
-
Cheers, i got it running on my linux box ::)
-
I’m having some problems. can you help me?
This is my error:
bignum.h:12:24: fatal error: openssl/bn.h: No existe el archivo o el directorio
#include
^
compilation terminated.
make: *** [obj/checkpoints.o] Error 1
mv: no se puede efectuar `stat’ sobre «feathercoind»: No existe el archivo o el directorioThe parts in spanish are just saying that there is no file or directory.
-
Is libssl and the source files installed on your system? For example “libcurl4-openssl-dev” ?
-
Hello there again.
the problem with the missing libraries it’s already done.Now I have another problem. I’ve done everything that it is in the guide, but I have no feedback.
so I start feathercoind and I get a “feathercoin server starting” and nothing else.
when i make the “screen” instruction i just get nothing.any idea of what is wrong?
– Update –
Now the “screen -r” command its working, and I’ve done nothing to fix it.
-
I’m sure I’m doing something very wrong here…
So everything seams to install ok for me as I follow the steps thru but then when it gets to the stages for things to be running, it all goes a little wonky!
[code]~/feathercoind[/code]
Brings back the following
[code]p2pool@ubuntu:~$ Feathercoin server starting
Feathercoin: Error loading blkindex.dat[/code]Which looks like the block index to me, but I can’t find it to deal with that fact that it looks like it may be corrupt.
So ignoring this and trying to carry on to see what happens I use the following to start things off
[code]~/p2pool-feathercoin/run_p2pool.py --net feathercoin -a 6yDqT91YyjioxDeLfcbpWe7Zg9CRfZ1WnF -f 1 --give-author 0 --w 19327 --bitcoind-p2p-port 9336 --bitcoind-rpc-port 9667 rpcadmin APASSWORDHERE --disable-upnp -n ftcpool.nl:19327 -n 94-76-229-211.static.as29550.net:19327 -n p5DC05409.dip0.t-ipconnect.de:19327[/code]
and the following comes back
[code]2014-01-13 12:11:40.546620 p2pool (version 13.4-9-g6904250)
2014-01-13 12:11:40.546793
2014-01-13 12:11:40.546892 Testing bitcoind RPC connection to ‘http://127.0.0.1:9667/’ with username ‘rpcadmin’…
2014-01-13 12:11:40.547748 > Error while checking Bitcoin connection:
2014-01-13 12:11:40.547851 > Traceback (most recent call last):
2014-01-13 12:11:40.547941 > Failure: twisted.internet.error.ConnectionRefusedError: Connection was refused by other side: 111: Connection refused.
2014-01-13 12:11:41.550007 > Error while checking Bitcoin connection:
2014-01-13 12:11:41.550336 > Traceback (most recent call last):
2014-01-13 12:11:41.550478 > Failure: twisted.internet.error.ConnectionRefusedError: Connection was refused by other side: 111: Connection refused.
2014-01-13 12:11:42.554939 > Error while checking Bitcoin connection:
2014-01-13 12:11:42.555252 > Traceback (most recent call last):
2014-01-13 12:11:42.555400 > Failure: twisted.internet.error.ConnectionRefusedError: Connection was refused by other side: 111: Connection refused.
2014-01-13 12:11:43.560035 > Error while checking Bitcoin connection:
2014-01-13 12:11:43.560414 > Traceback (most recent call last):
2014-01-13 12:11:43.560563 > Failure: twisted.internet.error.ConnectionRefusedError: Connection was refused by other side: 111: Connection refused.[/code]I’m just going around in circles so any help you guys have would be much appreciated
UM
-
[quote name=“uncle_muddy” post=“51758” timestamp=“1389615328”]
I’m sure I’m doing something very wrong here…[code]~/feathercoind[/code]
Brings back the following
[code]p2pool@ubuntu:~$ Feathercoin server starting
Feathercoin: Error loading blkindex.dat[/code][/quote]
I hope, you have a backup of your private keys, or no coins in your wallet
What you can do:Start feathercoind with the -rescan option to force it to check all locally stored blocks with the blockchain.
If that doesn’t help, delete the blockfiles.
It’s the whole ~/.feathercoin/blocks directory
then start feathercoind again.
OR
rename the whole ~/.feathercoin directory to a different name and start feathercoind
add the rpcuser and rpc password lines to ~/.feathercoin/feathercoin. conf and any other customization you did to that file and restart feathercoind[quote]
[code]~/p2pool-feathercoin/run_p2pool.py --net feathercoin -a 6yDqT91YyjioxDeLfcbpWe7Zg9CRfZ1WnF -f 1 --give-author 0 --w 19327 --bitcoind-p2p-port 9336 --bitcoind-rpc-port 9667 rpcadmin APASSWORDHERE --disable-upnp -n ftcpool.nl:19327 -n 94-76-229-211.static.as29550.net:19327 -n p5DC05409.dip0.t-ipconnect.de:19327[/code]
and the following comes back
[code]2014-01-13 12:11:40.546620 p2pool (version 13.4-9-g6904250)
2014-01-13 12:11:40.546793
2014-01-13 12:11:40.546892 Testing bitcoind RPC connection to ‘http://127.0.0.1:9667/’ with username ‘rpcadmin’…
2014-01-13 12:11:40.547748 > Error while checking Bitcoin connection:
2014-01-13 12:11:40.547851 > Traceback (most recent call last):
2014-01-13 12:11:40.547941 > Failure: twisted.internet.error.ConnectionRefusedError: Connection was refused by other side: 111: Connection refused.
2014-01-13 12:11:41.550007 > Error while checking Bitcoin connection:
2014-01-13 12:11:41.550336 > Traceback (most recent call last):
2014-01-13 12:11:41.550478 > Failure: twisted.internet.error.ConnectionRefusedError: Connection was refused by other side: 111: Connection refused.
2014-01-13 12:11:42.554939 > Error while checking Bitcoin connection:
2014-01-13 12:11:42.555252 > Traceback (most recent call last):
2014-01-13 12:11:42.555400 > Failure: twisted.internet.error.ConnectionRefusedError: Connection was refused by other side: 111: Connection refused.
2014-01-13 12:11:43.560035 > Error while checking Bitcoin connection:
2014-01-13 12:11:43.560414 > Traceback (most recent call last):
2014-01-13 12:11:43.560563 > Failure: twisted.internet.error.ConnectionRefusedError: Connection was refused by other side: 111: Connection refused.[/code]I’m just going around in circles so any help you guys have would be much appreciated
UM
[/quote]Quite normal, as p2pool tries to connect to the feathercoind and this is not running.
The message should disapear as soon as feathercoind has synced with the blockchain and is ready to work -
[quote name=“Wellenreiter” post=“51788” timestamp=“1389618618”]
I hope, you have a backup of your private keys, or no coins in your wallet
What you can do:Start feathercoind with the -rescan option to force it to check all locally stored blocks with the blockchain.
If that doesn’t help, delete the blockfiles.
It’s the whole ~/.feathercoin/blocks directory
then start feathercoind again.
OR
rename the whole ~/.feathercoin directory to a different name and start feathercoind
add the rpcuser and rpc password lines to ~/.feathercoin/feathercoin. conf and any other customization you did to that file and restart feathercoind
[/quote]No wallet on here this is just being setup as a p2pool server, so nothing to worry about (or is there?)
I have deleted blkindex.dat now and things are looking a little better, is there any way of telling once the block chain has been downloaded?