Bitcoin Forum
July 16, 2024, 02:13:13 PM *
News: Latest Bitcoin Core release: 27.0 [Torrent]
 
   Home   Help Search Login Register More  
Pages: [1]
  Print  
Author Topic: p2pool running multiple *coind's - same error - Twisted?  (Read 6303 times)
airborne305 (OP)
Newbie
*
Offline Offline

Activity: 27
Merit: 0


View Profile
May 04, 2013, 08:03:58 PM
 #1

***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.
01BTC10
VIP
Hero Member
*
Offline Offline

Activity: 756
Merit: 503



View Profile
May 05, 2013, 12:04:49 AM
 #2

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://bitcointalk.org/index.php?topic=62842.0
airborne305 (OP)
Newbie
*
Offline Offline

Activity: 27
Merit: 0


View Profile
May 05, 2013, 12:26:22 AM
 #3

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
01BTC10
VIP
Hero Member
*
Offline Offline

Activity: 756
Merit: 503



View Profile
May 05, 2013, 01:42:53 AM
 #4

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
matosha
Newbie
*
Offline Offline

Activity: 13
Merit: 0


View Profile WWW
February 23, 2014, 12:31:50 PM
 #5

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

Activity: 196
Merit: 100


View Profile
December 13, 2015, 02:33:25 PM
Last edit: December 13, 2015, 03:12:48 PM by tolazy
 #6

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.
cr1776
Legendary
*
Offline Offline

Activity: 4102
Merit: 1306


View Profile
December 13, 2015, 05:48:16 PM
 #7

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://bitcointalk.org/index.php?topic=18313.0


tolazy
Full Member
***
Offline Offline

Activity: 196
Merit: 100


View Profile
December 13, 2015, 07:39:31 PM
 #8

reason i want to is that one is for me the other for my friend
cr1776
Legendary
*
Offline Offline

Activity: 4102
Merit: 1306


View Profile
December 13, 2015, 11:48:31 PM
 #9

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?
bney
Full Member
***
Offline Offline

Activity: 333
Merit: 100



View Profile
December 18, 2015, 07:43:59 AM
 #10

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.
-ck
Legendary
*
Offline Offline

Activity: 4172
Merit: 1641


Ruu \o/


View Profile WWW
December 18, 2015, 09:54:38 AM
 #11

p2pool support thread:
https://bitcointalk.org/index.php?topic=18313.0
Take it there please.

Developer/maintainer for cgminer, ckpool/ckproxy, and the -ck kernel
2% Fee Solo mining at solo.ckpool.org
-ck
Pages: [1]
  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!