Author

Topic: p2pool running multiple *coind's - same error - Twisted? (Read 6315 times)

-ck
legendary
Activity: 4088
Merit: 1631
Ruu \o/
full member
Activity: 333
Merit: 100
I am attempting to get p2pool running for litecoin, My startup line is
python ./run_p2pool.py --net litecoin --give-author 1 -f 0 --bitcoind-rpc-port 10332 -n litecoin-p2pool.com:9338 USERNAME PASSWORD

I am getting an error connecting to the blockchain that traces back to something called softforks. It seems unable to connect to the blockchain.

The litecoin conf file contains

server=1
listen-1
bind=0.0.0.0
daemon=1
rpcport=10332
port=10333
rpcallowip=127.0.0.1

I have the bitcoin version running just fine. I appear to be missing something here.
legendary
Activity: 4256
Merit: 1313
reason i want to is that one is for me the other for my friend

You'd have to set different ports for each one then.  One p2pool is on 9332.  You can set it to a different port for #2. 

You can't both use the same pool?
full member
Activity: 196
Merit: 100
reason i want to is that one is for me the other for my friend
legendary
Activity: 4256
Merit: 1313
is it possbile to run 2 p2pool/bitcoind on the same machine ?

i've tried a bit but no luck


p2pool: Error binding to worker port: Couldn't listen on any:9332: [Errno 98] Address already in use.

Yes it is possible to run both p2pool an bitcoind on the same machine.  If you are asking about running two of each, then that too could be done with some configuration of ports, but wouldn't really make much sense to do so.

You can use netstat or another tool to see what is bound to that port.  e.g. something like:
Code:
netstat -tulpn

You might have some more luck asking in here too:
https://bitcointalksearch.org/topic/1500-th-p2pool-decentralized-dos-resistant-hop-proof-pool-18313


full member
Activity: 196
Merit: 100
is it possbile to run 2 p2pool/bitcoind on the same machine ?

i've tried a bit but no luck


p2pool: Error binding to worker port: Couldn't listen on any:9332: [Errno 98] Address already in use.
newbie
Activity: 13
Merit: 0
I found this forked p2pool, all scripts so you can modify.
https://github.com/Rav3nPL/p2pool-rav

It is already setup for most of the current coins, all you do is set the --net *coinname* parameter. I have 3 coin pools running with this.
vip
Activity: 756
Merit: 503
You need to specify the RPC port. Never run P2Pool or bitcoind as root (sudo). Try this and report back if it's working:

Code:
~/p2pool/run_p2pool.py --net litecoin --bitcoind-rpc-port 3333 --bitcoind-p2p-port 9333 UNIQUE-USERNAME UNIQUE-PASSWORD

Don't forget to install scrypt for P2Pool.

Code:
cd ~/p2pool/litecoin_scrypt
sudo python setup.py install
newbie
Activity: 27
Merit: 0
thanks for the response. i see one thing i didnt specify, the rpcport in the python launch.  and the --net litecoin (would this apply to each of the coin methods?


screen: bitcoin
sudo python /home/USRNAME/p2pool/run_p2pool.py UNIQUE-USERNAME UNIQUE-PASSWORD --p2pool-port 3332

bitcoin.conf
Code:
server=1
daemon=1
rpcuser=UNIQUE-USERNAME
rpcpassword=UNIQUE-PASSWORD


screen: litecoin
sudo python /home/USRNAME/p2pool/run_p2pool.py UNIQUE-USERNAME UNIQUE-PASSWORD --p2pool-port 3333

litecoin.conf
Code:
server=1
daemon=1
rpcuser=UNIQUE-USERNAME
rpcpassword=UNIQUE-PASSWORD
rpcport=3333
port=9333


screen: namecoin
sudo python /home/USRNAME/p2pool/run_p2pool.py UNIQUE-USERNAME UNIQUE-PASSWORD --p2pool-port 3334

namecoin.conf
Code:
server=1
daemon=1
rpcuser=UNIQUE-USERNAME
rpcpassword=UNIQUE-PASSWORD
rpcport=3334
port=9334


screen: terracoin
sudo python /home/USRNAME/p2pool/run_p2pool.py UNIQUE-USERNAME UNIQUE-PASSWORD--p2pool-port 3335

terracoin.conf
Code:
server=1
daemon=1
rpcuser=UNIQUE-USERNAME
rpcpassword=UNIQUE-PASSWORD
rpcport=3335
port=9335


screen: feathercoin
sudo python /home/USRNAME/p2pool/run_p2pool.py UNIQUE-USERNAME UNIQUE-PASSWORD --p2pool-port 3336

feathercoin.conf
Code:
server=1
daemon=1
rpcuser=UNIQUE-USERNAME
rpcpassword=UNIQUE-PASSWORD
rpcport=3336
port=9336
vip
Activity: 756
Merit: 503
Post the command you use to start P2Pool.

For litecoin it should look like this:

Code:
~/p2pool/run_p2pool.py --net litecoin --bitcoind-rpc-port 3333 --bitcoind-p2p-port 9333 UNIQUE-USERNAME UNIQUE-PASSWORD

litecoin.conf
Code:
server=1
daemon=1
rpcuser=UNIQUE-USERNAME
rpcpassword=UNIQUE-PASSWORD
rpcport=3333
port=9333
gen=0

You can find a great tutorial here: https://bitcointalksearch.org/topic/a-complete-guide-to-p2pool-merged-mining-btcnmcdvcixci0c-plus-ltc-linux-62842
newbie
Activity: 27
Merit: 0
***note: i am pretty new to the Linux world. Following different tutorials for the different *coins, i ended up with stuff under the USERNAME and under ROOT. so i relocated, CHMOD'ed a few things and CHOWN'ed things to fall under USERNAME. When running any of the *coind's, they all seem to download the blocks and create the file structure in the appropriate place; under /home/USERNAME/.*coin/***

I setup a multi-p2pool in Debian. while all the *coind's (bitcoin, feathercoin, litecoin, namecoin, and terracoin) run fine and download the blocks and all of that, when i run ~/p2pool/run_p2pool.py i get the below error in a constant rotation on all of the different coin pools.

i previously had a bitcoin p2pool running just fine. when i started adding the other *coin pools and trying to organize the files/folders/permissions, i feel i may have messed something up.

Code:
2013-05-04 12:19:18.052282 > Error while checking Bitcoin connection:
2013-05-04 12:19:18.052446 > Traceback (most recent call last):
2013-05-04 12:19:18.052532 > Failure: twisted.internet.error.ConnectionRefusedError: Connection was refused by other side: 111: Connection refused.


in the *coin.conf files, they are all fairly cookie cutter configs. one thing i am not sure about is, assigning unique RPC ports and ports.

since the RPC port is local, i imagine i could make it whatever i want as long as the python launch has that same port specified.

now the "port=" im not sure about.

is "port=" just my outbound connection port? or is this something specific?

please advise

heres an example of a *.coin.conf file.
Code:
server=1
daemon=1
rpcuser=UNIQUE-USERNAME
rpcpassword=UNIQUE-PASSWORD
rpcport=3334
port=9334

.bitcoin/bitcoin.conf
Code:
rpcport=3332
port=9332

.litecoin/litecoin.conf
Code:
rpcport=3333
port=9333

.namecoin/namecoin.conf
Code:
rpcport=3334
port=9334

.feathercoin/feathercoin.conf
Code:
rpcport=3335
port=9335

and so on.
Jump to: