Bitcoin Forum
November 19, 2024, 07:25:48 AM *
News: Latest Bitcoin Core release: 28.0 [Torrent]
 
   Home   Help Search Login Register More  
Pages: « 1 2 3 4 5 6 7 8 [9] 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 »
  Print  
Author Topic: A Complete Guide to P2Pool - Merged Mining (BTC/NMC/DVC/IXC/I0C) plus LTC, Linux  (Read 198749 times)
btctalk
Full Member
***
Offline Offline

Activity: 137
Merit: 112



View Profile WWW
December 09, 2012, 07:12:46 AM
 #161

by the way please update the litecoin git in the first post

new git address: https://github.com/litecoin-project/litecoin.git

also there might be the need to add this to the dependencies: sudo apt-get install libqrencode-dev

Persian Blockchain Podcast: https://shiryakhat.net
Super Bitcoiner Club http://superbitcoiner.com
Persian Blockchain Community - http://coiniran.com - http://fb.com/IranBitcoin
neosniperkiller
Newbie
*
Offline Offline

Activity: 8
Merit: 0



View Profile
January 30, 2013, 07:00:46 PM
Last edit: January 30, 2013, 07:53:26 PM by neosniperkiller
 #162

I just setup my own p2pool (btc with all the alt coins except ltc) on my local network and it's running nicely.
All the chains are fully updated and the p2pool keeps receiving information.
Trying to mine on it works, shares get accepted, but the overview keeps on displaying the following line:

"Shares: 0 (0 orphan, 0 dead) Stale rate: Huh Efficiency: Huh Current payout: 0.0000 BTC"

== phoenix

Now I tried to mine on it using phoenix and it can connect to the p2pool.
But somehow when phoenix says "result accepted", nothing is displayed in the p2pool concerning that result.

== bfgminer

Second try was with bfgminer, see stats below, but still nothing changed at the p2pool overview.
 [2013-01-30 20:41:44] Started at [2013-01-30 20:29:46]
 [2013-01-30 20:41:44] Pool: http://192.168.1.4:9332
 [2013-01-30 20:41:44] Runtime: 0 hrs : 11 mins : 55 secs
 [2013-01-30 20:41:44] Average hashrate: 21.4 Megahash/s
 [2013-01-30 20:41:44] Solved blocks: 0
 [2013-01-30 20:41:44] Best share difficulty: 1
 [2013-01-30 20:41:44] Queued work requests: 82
 [2013-01-30 20:41:44] Share submissions: 5
 [2013-01-30 20:41:44] Accepted shares: 5
 [2013-01-30 20:41:44] Rejected shares: 0
 [2013-01-30 20:41:44] Accepted difficulty shares: 5
 [2013-01-30 20:41:44] Rejected difficulty shares: 0
 [2013-01-30 20:41:44] Reject ratio: 0.0%
 [2013-01-30 20:41:44] Hardware errors: 0
 [2013-01-30 20:41:44] Efficiency (accepted shares * difficulty / 2 KB): 0.01
 [2013-01-30 20:41:44] Utility (accepted shares / min): 0.42/min

 [2013-01-30 20:41:44] Discarded work due to new blocks: 197
 [2013-01-30 20:41:44] Stale submissions discarded due to new blocks: 0
 [2013-01-30 20:41:44] Unable to get work from server occasions: 0
 [2013-01-30 20:41:44] Work items generated locally: 431
 [2013-01-30 20:41:44] Submitting work remotely delay occasions: 0
 [2013-01-30 20:41:44] New blocks detected on network: 1


Anybody knows what I'm doing wrong??
Is this normal behavior of p2pool?
When does the p2pool actually increases the "shares"?
Also, how does the p2pool add the alt coin deposits? I cannot see any other accounts made than " " on the alt coin daemons.
brox
Member
**
Offline Offline

Activity: 71
Merit: 10



View Profile
March 25, 2013, 10:41:18 AM
Last edit: March 26, 2013, 09:56:21 AM by brox
 #163

When I keep bitcoind and p2pool on the same PC, it works like a charm. But I need p2pool to be on different PC of my home LAN. When I try to run p2pool it fails:
Code:
pi@raspberrypi ~/p2pool $ cat runme.sh
python ~/p2pool/run_p2pool.py --give-author 0.0 --bitcoind-address 192.168.1.128 myRpcBitcoindUsername myRpcBitcoindPassword
pi@raspberrypi ~/p2pool $ ./runme.sh
2013-03-25 12:00:58.103208 p2pool (version 11.2-8-g896c9ed)
2013-03-25 12:00:58.105098
2013-03-25 12:00:58.107072 Testing bitcoind RPC connection to 'http://192.168.1.128:8332/' with username 'myRpcBitcoindUsername'...
2013-03-25 12:00:58.129990 > Error while checking Bitcoin connection:
2013-03-25 12:00:58.136002 > Traceback (most recent call last):
2013-03-25 12:00:58.136839 > Failure: twisted.internet.error.ConnectionRefusedError: Connection was refused by other side: 111: Connection refused.
2013-03-25 12:00:59.150264 > Error while checking Bitcoin connection:
2013-03-25 12:00:59.151929 > Traceback (most recent call last):
2013-03-25 12:00:59.153455 > Failure: twisted.internet.error.ConnectionRefusedError: Connection was refused by other side: 111: Connection refused.
2013-03-25 12:01:00.167394 > Error while checking Bitcoin connection:
2013-03-25 12:01:00.169149 > Traceback (most recent call last):
2013-03-25 12:01:00.170785 > Failure: twisted.internet.error.ConnectionRefusedError: Connection was refused by other side: 111: Connection refused.
2013-03-25 12:01:01.184704 > Error while checking Bitcoin connection:
2013-03-25 12:01:01.187630 > Traceback (most recent call last):
2013-03-25 12:01:01.189319 > Failure: twisted.internet.error.ConnectionRefusedError: Connection was refused by other side: 111: Connection refused.

Can anyone please help me to set up things?

Save dolphins! Donate to 1BTC4brox2pd14QubXGsXwarp9zV9tc8CZ
Mine Bitcoins in the cloud at cex.io
PatMan
Hero Member
*****
Offline Offline

Activity: 924
Merit: 1000


Watch out for the "Neg-Rep-Dogie-Police".....


View Profile WWW
March 25, 2013, 02:03:11 PM
 #164

When I keep bitcoind and p2pool on the same PC, it works like a charm. But I need p2pool to be on different PC of my home LAN. When I try to run p2pool it fails:
Code:
pi@raspberrypi ~/p2pool $ cat runme.sh
python ~/p2pool/run_p2pool.py --give-author 0.0 --bitcoind-address 192.168.1.128 myRpcBitcoindUsername myRpcBitcoindPassword
pi@raspberrypi ~/p2pool $ ./runme.sh
2013-03-25 12:00:58.103208 p2pool (version 11.2-8-g896c9ed)
2013-03-25 12:00:58.105098
2013-03-25 12:00:58.107072 Testing bitcoind RPC connection to 'http://192.168.1.128:8332/' with username 'myRpcBitcoindUsername'...
2013-03-25 12:00:58.129990 > Error while checking Bitcoin connection:
2013-03-25 12:00:58.136002 > Traceback (most recent call last):
2013-03-25 12:00:58.136839 > Failure: twisted.internet.error.ConnectionRefusedError: Connection was refused by other side: 111: Connection refused.
2013-03-25 12:00:59.150264 > Error while checking Bitcoin connection:
2013-03-25 12:00:59.151929 > Traceback (most recent call last):
2013-03-25 12:00:59.153455 > Failure: twisted.internet.error.ConnectionRefusedError: Connection was refused by other side: 111: Connection refused.
2013-03-25 12:01:00.167394 > Error while checking Bitcoin connection:
2013-03-25 12:01:00.169149 > Traceback (most recent call last):
2013-03-25 12:01:00.170785 > Failure: twisted.internet.error.ConnectionRefusedError: Connection was refused by other side: 111: Connection refused.
2013-03-25 12:01:01.184704 > Error while checking Bitcoin connection:
2013-03-25 12:01:01.187630 > Traceback (most recent call last):
2013-03-25 12:01:01.189319 > Failure: twisted.internet.error.ConnectionRefusedError: Connection was refused by other side: 111: Connection refused.

Can anyone please help me to set up things?

You could start by editing your "--give-author 0.0" flag to something a tad more generous - then somebody might be inclined to help you out.

Just saying.

"When one person is deluded it is called insanity - when many people are deluded it is called religion" - Robert M. Pirsig.  I don't want your coins, I want change.
Amazon UK BTC payment service - https://bitcointalk.org/index.php?topic=301229.0 - with FREE delivery!
http://www.ae911truth.org/ - http://rethink911.org/ - http://rememberbuilding7.org/
brox
Member
**
Offline Offline

Activity: 71
Merit: 10



View Profile
March 25, 2013, 10:32:11 PM
 #165

Resolved.
0.1BTC sent to myself)

If anyone cares, the reason was bitcoind by default accepts JSON-RPC commands only from localhost.

Save dolphins! Donate to 1BTC4brox2pd14QubXGsXwarp9zV9tc8CZ
Mine Bitcoins in the cloud at cex.io
ewibit
Legendary
*
Offline Offline

Activity: 2955
Merit: 1050


View Profile
March 25, 2013, 10:35:27 PM
 #166

is this working only for GPU/CPU or ASICs too?
TIA
brox
Member
**
Offline Offline

Activity: 71
Merit: 10



View Profile
March 25, 2013, 10:45:51 PM
 #167

is this working only for GPU/CPU or ASICs too?
TIA

Both bitcoind and p2pool have nothing to do with mining technique, that is independent of your miner setup. Will work in all cases

Save dolphins! Donate to 1BTC4brox2pd14QubXGsXwarp9zV9tc8CZ
Mine Bitcoins in the cloud at cex.io
adv
Full Member
***
Offline Offline

Activity: 168
Merit: 100


View Profile
April 02, 2013, 12:00:27 PM
 #168

is this working only for GPU/CPU or ASICs too?
TIA

Both bitcoind and p2pool have nothing to do with mining technique, that is independent of your miner setup. Will work in all cases
Not absolutely so: https://bitcointalk.org/index.php?topic=153232.0;all

U may thank me here: 14Js1ng1SvYBPgUJnjNAEPYH4d6SHF79UF
brox
Member
**
Offline Offline

Activity: 71
Merit: 10



View Profile
April 05, 2013, 10:34:29 AM
 #169

is this working only for GPU/CPU or ASICs too?
TIA

Both bitcoind and p2pool have nothing to do with mining technique, that is independent of your miner setup. Will work in all cases
Not absolutely so: https://bitcointalk.org/index.php?topic=153232.0;all

Yeah, you are right... In fact, I meant another thing - placing p2pool node on different PC of your LAN should go smoothly, no matter what mining hardware you have

Sorry, english is alien to me)

Save dolphins! Donate to 1BTC4brox2pd14QubXGsXwarp9zV9tc8CZ
Mine Bitcoins in the cloud at cex.io
Vitalicus
Full Member
***
Offline Offline

Activity: 467
Merit: 100


DIA | Data infrastructure for DeFi


View Profile
April 07, 2013, 10:27:12 PM
 #170

Will it work on PPcoin ?

codegnome
Sr. Member
****
Offline Offline

Activity: 782
Merit: 258


Betking.io - Best Bitcoin Casino


View Profile
April 11, 2013, 01:01:24 PM
 #171

Will it work on PPcoin ?
No, but there is a Novacoin fork. So it might be soon.

█▀▀▀











█▄▄▄
██.
1xBit.com
██
▀▀▀█











▄▄▄█
           ▄█▄
         ▀█████▀
         ▄██▀██▄
       ▄█████████▄
     ▀▀███████████▀▀
      ▄███████████▄
   ▄▄███▄███████▄███▄▄
    ▀███████████████▀
   ▄█████████████████▄
▀███████████████████████▀
  ▀▀▀▀▀██████████▀▀▀▀▀▀
          █████
          █████
.
          █       ██
  ▄█▄   ▀▀▄▀▀  █
▀█████▀   ▀     █    ██
 ██▀██      ▀▄
              ▄▄██████
    ▀▀▄▄    ███████████
 ▀▄
       ██████████████
▀▀▄ ▀▀▀
  ████████████████
 ▀
      ██████████████████
   ██
    ██████████████████
            ▀▀▀█
████████████
                  ▀▀▀████████
                        ▀▀▀███
█▀▀▀











█▄▄▄
.
▀▀▀█











▄▄▄█
lmotaku
Newbie
*
Offline Offline

Activity: 14
Merit: 0


View Profile
April 14, 2013, 09:05:06 PM
Last edit: April 14, 2013, 09:29:41 PM by lmotaku
 #172

Hey Thiago, thanks for the guide, everything s working great. I earned my first LTC some time ago.
However, I have an issue.. maybe you can explain it to me.

I had helped share with my own wallet address, and I used the command:

litecoind sendmany "" "$(GET http://192.168.0.1:9327/patron_sendmany/0.2)"

(I probably should of used 0.002, but never mind that)

It's only $2 that I just sent out really, no biggy on any loses to test the command, however:

Quote


[
example:    {
        "account" : "",
        "category" : "immature",
        "amount" : 0.03394690,
        "confirmations" : 117,
        "blockhash" : "e08755568691b272838b86def0c00619ed3689a764c0b9394fbc258adc2f5c23",
        "blockindex" : 0,
        "txid" : "8419c0404044beefcc365c1fa18461d74de81bbb648bb05415ac868b07681a6a",
        "time" : 1365958417
    },x8
    {
        "account" : "",
        "address" : "LTxbb4zN5yjSEbpGfyP7bcex3NJZBvFiGb",
        "category" : "send",
        "amount" : -0.18559302,
        "fee" : -0.70000000,
        "confirmations" : 3,
        "blockhash" : "951d4554509c9090ad21d8b66d572c5613efb0897feb294f87ed1b646301df97",
        "blockindex" : 4,
        "txid" : "9f52a0e250ac25f511a70cbada2213552a3c51b4c96cd02a47a54541afe53dfa",
        "time" : 1365972780
    },
    {
        "account" : "",
        "address" : "LThdjpX8Nva3zoh46rYoyHQBN8fdCLyvsC",
        "category" : "send",
        "amount" : -0.01440698,
        "fee" : -0.70000000,
        "confirmations" : 3,
        "blockhash" : "951d4554509c9090ad21d8b66d572c5613efb0897feb294f87ed1b646301df97",
        "blockindex" : 4,
        "txid" : "9f52a0e250ac25f511a70cbada2213552a3c51b4c96cd02a47a54541afe53dfa",
        "time" : 1365972780
    }
]

8 out of 10 "transactions" have a null address, but I still lost all that money, does it go into space/null/void, or does it float back to my wallet, like bouncing off a wall?
My own wallet isn't in this list, as I probably didn't use a low enough number, that was my own negligence. Or is this litecoind specific where these are things that get sent out to make a transaction?

Nevermind "" is my local server.. why it doesn't have an address, I don't know, using getnewaddress I can see a wallet address though. Weird, somewhat confusing, but the best solution is to see it as I sent money to the helpers + my local, but my desktop(with an address) didn't help enough to get anything with the number I put.
thep33t
Full Member
***
Offline Offline

Activity: 126
Merit: 100


View Profile
April 18, 2013, 12:27:46 AM
 #173

Any ideas what could be causing the error messages below?

I am running the following command. Have litecoin.conf set up correctly.
~/p2pool/run_p2pool.py --give-author 0 --net litecoin --bitcoind-rpc-port 9334 --bitcoind-p2p-port 9335 user pass

Code:
2013-04-18 02:01:00.057111 p2pool (version 11.3-1-g81a3613-dirty)
2013-04-18 02:01:00.057735
2013-04-18 02:01:00.058222 Testing bitcoind RPC connection to 'http://127.0.0.1:9334/' with username 'user'...
2013-04-18 02:01:00.071014 > Error while checking Bitcoin connection:
2013-04-18 02:01:00.071208 > Traceback (most recent call last):
2013-04-18 02:01:00.071321 >   File "/usr/lib/python2.7/dist-packages/twisted/internet/defer.py", line 551, in _runCallbacks
2013-04-18 02:01:00.071413 >     current.result = callback(current.result, *args, **kw)
2013-04-18 02:01:00.071507 >   File "/usr/lib/python2.7/dist-packages/twisted/internet/defer.py", line 1101, in gotResult
2013-04-18 02:01:00.071615 >     _inlineCallbacks(r, g, deferred)
2013-04-18 02:01:00.071705 >   File "/usr/lib/python2.7/dist-packages/twisted/internet/defer.py", line 1043, in _inlineCallbacks
2013-04-18 02:01:00.071795 >     result = result.throwExceptionIntoGenerator(g)
2013-04-18 02:01:00.071891 >   File "/usr/lib/python2.7/dist-packages/twisted/python/failure.py", line 382, in throwExceptionIntoGenerator
2013-04-18 02:01:00.071980 >     return g.throw(self.type, self.value, self.tb)
2013-04-18 02:01:00.072066 > --- <exception caught here> ---
2013-04-18 02:01:00.072150 >   File "/home/thep33t/p2pool/p2pool/util/deferral.py", line 41, in f
2013-04-18 02:01:00.072237 >     result = yield func(*args, **kwargs)
2013-04-18 02:01:00.072336 >   File "/usr/lib/python2.7/dist-packages/twisted/internet/defer.py", line 1043, in _inlineCallbacks
2013-04-18 02:01:00.072440 >     result = result.throwExceptionIntoGenerator(g)
2013-04-18 02:01:00.072526 >   File "/usr/lib/python2.7/dist-packages/twisted/python/failure.py", line 382, in throwExceptionIntoGenerator
2013-04-18 02:01:00.072615 >     return g.throw(self.type, self.value, self.tb)
2013-04-18 02:01:00.072700 >   File "/home/thep33t/p2pool/p2pool/bitcoin/helper.py", line 13, in check
2013-04-18 02:01:00.072786 >     if not (yield net.PARENT.RPC_CHECK(bitcoind)):
2013-04-18 02:01:00.072871 >   File "/usr/lib/python2.7/dist-packages/twisted/internet/defer.py", line 1043, in _inlineCallbacks
2013-04-18 02:01:00.072958 >     result = result.throwExceptionIntoGenerator(g)
2013-04-18 02:01:00.073042 >   File "/usr/lib/python2.7/dist-packages/twisted/python/failure.py", line 382, in throwExceptionIntoGenerator
2013-04-18 02:01:00.073129 >     return g.throw(self.type, self.value, self.tb)
2013-04-18 02:01:00.073213 >   File "/home/thep33t/p2pool/p2pool/bitcoin/networks.py", line 94, in <lambda>
2013-04-18 02:01:00.073299 >     'litecoinaddress' in (yield bitcoind.rpc_help()) and
2013-04-18 02:01:00.073383 >   File "/usr/lib/python2.7/dist-packages/twisted/internet/defer.py", line 1043, in _inlineCallbacks
2013-04-18 02:01:00.073470 >     result = result.throwExceptionIntoGenerator(g)
2013-04-18 02:01:00.073555 >   File "/usr/lib/python2.7/dist-packages/twisted/python/failure.py", line 382, in throwExceptionIntoGenerator
2013-04-18 02:01:00.073644 >     return g.throw(self.type, self.value, self.tb)
2013-04-18 02:01:00.073729 >   File "/home/thep33t/p2pool/p2pool/util/jsonrpc.py", line 126, in _http_do
2013-04-18 02:01:00.073814 >     raise e
2013-04-18 02:01:00.073897 > twisted.web.error.Error: 403 Forbidden


Feathercoin Pool - http://feathercoin.is-a-geek.com - [PPLNS][0% Fees]
FTC: 6sf5CgurY5axcd2cwDHmiwdVMdAF9fw6pU       BTC: 1J74TaaKuNMoy25TP5vXKG2Jw8yg1sqyyQ       BTE: 8QZ2XiantPF8eWmzayo5WaXyYC8unBq5ZC     LTC: LatpwWc4GQyF2teKegZHiDGEGdNEKqEPTT
brox
Member
**
Offline Offline

Activity: 71
Merit: 10



View Profile
April 18, 2013, 06:11:01 AM
 #174

Any ideas what could be causing the error messages below?

I am running the following command. Have litecoin.conf set up correctly.
~/p2pool/run_p2pool.py --give-author 0 --net litecoin --bitcoind-rpc-port 9334 --bitcoind-p2p-port 9335 user pass

Code:
2013-04-18 02:01:00.057111 p2pool (version 11.3-1-g81a3613-dirty)
2013-04-18 02:01:00.057735
2013-04-18 02:01:00.058222 Testing bitcoind RPC connection to 'http://127.0.0.1:9334/' with username 'user'...
2013-04-18 02:01:00.071014 > Error while checking Bitcoin connection:
2013-04-18 02:01:00.071208 > Traceback (most recent call last):
[...]
2013-04-18 02:01:00.073897 > twisted.web.error.Error: 403 Forbidden
Show your bitcoin.conf

Save dolphins! Donate to 1BTC4brox2pd14QubXGsXwarp9zV9tc8CZ
Mine Bitcoins in the cloud at cex.io
noel
Full Member
***
Offline Offline

Activity: 168
Merit: 100


View Profile WWW
April 20, 2013, 10:18:34 AM
 #175

Hi I am trying to setup a private p2pool for myself and a couple of friends I have followed all the steps to No. 5- Point your miners to your newly P2Pool; to which all i get is "problems communicating with bitcoin RPC" i am lost i have tried to google it in a hundred different ways to no avail.
I could use some help thanks
Noel 

My Bitcoin Address is 1A2WeFuxL2WuyoqNAYqKx4P2a5YieYaunp

Donate Please.
brox
Member
**
Offline Offline

Activity: 71
Merit: 10



View Profile
April 20, 2013, 11:33:50 AM
 #176

Hi I am trying to setup a private p2pool for myself and a couple of friends I have followed all the steps to No. 5- Point your miners to your newly P2Pool; to which all i get is "problems communicating with bitcoin RPC" i am lost i have tried to google it in a hundred different ways to no avail.
I could use some help thanks
Noel 
In bitcoin options (either cmdline or .conf file) you should allow external IP address to accept RPC commands. By default it accepts localhost only

Save dolphins! Donate to 1BTC4brox2pd14QubXGsXwarp9zV9tc8CZ
Mine Bitcoins in the cloud at cex.io
tiktoc
Full Member
***
Offline Offline

Activity: 176
Merit: 100


View Profile
April 20, 2013, 11:59:54 AM
 #177

Hi I am trying to setup a private p2pool for myself and a couple of friends I have followed all the steps to No. 5- Point your miners to your newly P2Pool; to which all i get is "problems communicating with bitcoin RPC" i am lost i have tried to google it in a hundred different ways to no avail.
I could use some help thanks
Noel 

Where are you getting the errors from p2pool or the miners themselves. The miners dont need to speak to bitcoind directly so you dont need to allow outside addresses access.

If its the p2pool software, make sure the rpcuser and rpcpassword in the bitcoin.conf file is the same you are using on the p2pool command line.
noel
Full Member
***
Offline Offline

Activity: 168
Merit: 100


View Profile WWW
April 21, 2013, 03:29:12 AM
Last edit: April 21, 2013, 03:53:36 AM by noel
 #178

Hi tks no it is the miners that are giving that error BFGMiner "likely you have imput the wrong url or do not have any workers setup"
yes to no workers... i do not have a page to make them that i know of
?? wrong url... i have tried a few urls with the base domain to locate the pool and as the miners always say the same thing i do not know if i am pointing them to the right url
I find it a little hard to work this out as there is not a lot of documentation on setting up a pool which covers FAQ errors
I will send a pm with my sites url as i am not try to recruit any miners.
oh and it is also on a VPS ubuntu 11.10 as per the instuctoins

My Bitcoin Address is 1A2WeFuxL2WuyoqNAYqKx4P2a5YieYaunp

Donate Please.
tiktoc
Full Member
***
Offline Offline

Activity: 176
Merit: 100


View Profile
April 21, 2013, 05:47:39 AM
 #179

Ive replied to your message noel, below is from another post of mine but the last part has changed for p2pool and so software is updated to the current versions.

This is just for bitcoin, dont know anything about the altcoins.

This is use at your own risk. I'm not a expert.

Re the major pools.
They seem to be good people and the amount of work they do and investment over the years including writing the software below, should be worth the 1 to 3 percent they ask. But in the name of diversity..

You can do this in virtual box to give it a try out first.

So you have yourself a ubuntu 12.1032bit (see a post further down on what changes are needed for 64bit) linux server install and you want to setup a pool server for solo mining on it.
I normally do this from windows box using putty to ssh into the ubuntu box.
Things you need

Make sure your login is in the sudoers list (this will be automatic if you installed from dvd and created your login name with the installer).

Then at the command prompt first thing we are going to do is update and upgrade the system to the latest packages
with all the sudos you have to put your login password in when it asks for it.
with the apt-get installs hit y and enter whenever it asks you.
Code:
sudo apt-get update
once its complete

Code:
sudo apt-get upgrade

now to install bitcoind

make sure git is installed first

Code:
sudo apt-get install git

now make directory under you home one called like so

Code:
mkdir git

change the directory you just made

Code:
cd git

get the source for bitcoind instructions to build it are also here

Code:
git clone https://github.com/bitcoin/bitcoin.git
cd bitcoin
git checkout 0.8.1

Install the build dependencies
Code:
sudo apt-get install build-essential
sudo apt-get install libssl-dev
sudo apt-get install libboost-all-dev
sudo apt-get install libminiupnpc-dev

wget https://launchpad.net/~bitcoin/+archive/bitcoin/+files/libdb4.8_4.8.30-quantal2_i386.deb
wget https://launchpad.net/~bitcoin/+archive/bitcoin/+files/libdb4.8-dev_4.8.30-quantal2_i386.deb
wget https://launchpad.net/~bitcoin/+archive/bitcoin/+files/libdb4.8%2B%2B_4.8.30-quantal2_i386.deb
wget https://launchpad.net/~bitcoin/+archive/bitcoin/+files/libdb4.8%2B%2B-dev_4.8.30-quantal2_i386.deb

sudo dpkg -i libdb4.8_4.8.30-quantal2_i386.deb
sudo dpkg -i libdb4.8-dev_4.8.30-quantal2_i386.deb
sudo dpkg -i libdb4.8++_4.8.30-quantal2_i386.deb
sudo dpkg -i libdb4.8++-dev_4.8.30-quantal2_i386.deb

then to build
Code:
cd src/
make -f makefile.unix
once its finished building without errors, copy it into /usr/local/bin
Code:
sudo cp ./bitcoind /usr/local/bin/

then run it by typing
Code:
bitcoind
it will output

Code:
Error: To use bitcoind, you must set a rpcpassword in the configuration file:
/home/yourusername/.bitcoin/bitcoin.conf
It is recommended you use the following random password:
rpcuser=bitcoinrpc
rpcpassword=EjkjenJHJhhfdkwemkjmnkk37883njn37hfdkjn38n
(you do not need to remember this password)
The username and password MUST NOT be the same.
If the file does not exist, create it with owner-readable-only file permissions.
cut and past the rpcuser and rpcpassword lines to a temporary text file and save it for later.

now create the bitcoin.conf file
Code:
cd
cd .bitcoin
open up bitcoin.conf in a text editor like pico
Code:
pico bitcoin.conf
add the lines



and cut and past the two lines from above that you saved from above from the temporary text file into the bitcoin.conf

server=1
rpcport=8332
rpctimeout=30

so it should look like this once finsihed

server=1
rpcport=8332
rpctimeout=30
rpcuser=bitcoinrpc
rpcpassword=EjkjenJHJhhfdkwemkjmnkk37883njn37hfdkjn38n

Code:
then press cntrl x
hit y to save
hit enter to save it to bitcoin.conf
then change the permissions on bitcoin.conf to user only read permissions

Code:
chmod go-rwx bitcoin.conf

now start bitcoind

Code:
bitcoind -daemon

it should show

Bitcoin server starting
hit enter again to get back to shell prompt

after a couple of hours or up to 8 depending on hardware and bandwidth it will sync the block chain

after 10 minutes or so on the command line type
Code:
bitcoind getinfo
you get something similar to

Code:
blah@ks3098647:~$ bitcoind getinfo
{
    "version" : 80000,
    "protocolversion" : 70001,
    "walletversion" : 60000,
    "balance" : 0.00000000,
    "blocks" : 2332935,
    "timeoffset" : -5,
    "connections" : 17,
    "proxy" : "",
    "difficulty" : 92452111.90472507,
    "testnet" : False,
    "keypoololdest" : 1364506205,
    "keypoolsize" : 101,
    "paytxfee" : 0.00000000,
    "errors" : ""
}

Onto p2pool

Install the dependencies

Code:

sudo apt-get install python-zope.interface python-twisted python-twisted-web

If you are not using a python version Python 2.6 or older then  you will also need this dependency

Code:
sudo apt-get install python-argparse 
get the p2pool software

Code:

cd
cd git/
git clone https://github.com/forrestv/p2pool.git


For avalon users only there is a separate branch you can try(dont ask me if it works ask foresttv) you can give  it a try by doing the following.

Code:
git checkout avalon

to run the pool, bitcoind has to be fully synced first(p2pool will tell you anyway if its not)

Code:

cd p2pool
python run_p2pool.py -a your bitcoin address here  --give-author 0.5 bitcoinrpc rpcpassword


-a <your bit coin address>
is a default address to send coins to incase somone connects without a bitcoin address in their username
If you dont specify this is uses one from the bitcoind wallet on the server

--give-author is the % of what you mine that you want to give the developer of the software

bitcoinrpc is the rpc username from your bitcoin.conf
rpcpassword is the rpcpassword from your bitcoind.conf
both of these you pasted into the file ealier in this tute.

What you should see when it works
Code:
2013-04-21 15:09:15.379437 p2pool (version 11.3-1-g81a3613)
2013-04-21 15:09:15.379601
2013-04-21 15:09:15.379708 Testing bitcoind RPC connection to 'http://127.0.0.1:8332/' with username 'bitcoinrpc'...
2013-04-21 15:09:18.043158     ...success!
2013-04-21 15:09:18.043294     Current block hash: a23840fbcd2619baafe06cec6f2c4a0faea58066fc2da6e4a1
2013-04-21 15:09:18.043368     Current block height: 232370
2013-04-21 15:09:18.043426
2013-04-21 15:09:18.043503 Testing bitcoind P2P connection to '127.0.0.1:8333'...
2013-04-21 15:09:24.630243     ...success!
2013-04-21 15:09:24.630362
2013-04-21 15:09:24.630457 Determining payout address...
2013-04-21 15:09:24.630684     ...success! Payout address: your bitcoin address here
2013-04-21 15:09:24.630768
2013-04-21 15:09:24.630920 Loading shares...
2013-04-21 15:09:24.631070     ...done loading 0 shares (0 verified)!
2013-04-21 15:09:24.631129
2013-04-21 15:09:24.631190 Initializing work...
2013-04-21 15:09:24.819593     ...success!
2013-04-21 15:09:24.819767
2013-04-21 15:09:24.819859 Joining p2pool network using port 9333...
2013-04-21 15:09:25.106987     ...success!
2013-04-21 15:09:25.107144
2013-04-21 15:09:25.107631 Listening for workers on '' port 9332...
2013-04-21 15:09:25.161043     ...success!
2013-04-21 15:09:25.161178
2013-04-21 15:09:25.161282 Started successfully!
2013-04-21 15:09:25.161388 Go to http://127.0.0.1:9332/ to view graphs and statistics!
2013-04-21 15:09:25.161503 Donating 0.5% of work towards P2Pool's development. Please donate to encourage further development of P2Pool!
2013-04-21 15:09:25.161596
2013-04-21 15:09:28.161993 P2Pool: 0 shares in chain (0 verified/0 total) Peers: 0 (0 incoming)
2013-04-21 15:09:28.162149  Local: 0H/s in last 0.0 seconds Local dead on arrival: ??? Expected time to share: ???
2013-04-21 15:09:33.904233 Outgoing connection to peer 83.211.86.49:9333 established. p2pool version: 1100 '11.2-6-g7b73477'
2013-04-21 15:09:34.162556 P2Pool: 0 shares in chain (0 verified/0 total) Peers: 1 (0 incoming)
2013-04-21 15:09:34.162810  Local: 0H/s in last 0.0 seconds Local dead on arrival: ??? Expected time to share: ???
errors when running p2pool
Code:
2013-04-21 14:45:40.281658 p2pool (version 11.3-1-g81a3613)
2013-04-21 14:45:40.281819
2013-04-21 14:45:40.281957 Testing bitcoind RPC connection to 'http://127.0.0.1:8332/' with username 'bitcoinrpc'...
2013-04-21 14:45:40.284031 > Error while checking Bitcoin connection:
bitcoind isnt running.

Code:
2013-04-21 14:50:26.773599 Testing bitcoind RPC connection to 'http://127.0.0.1:8332/' with username 'bitcoinrpc'...
2013-04-21 14:50:26.804123 > Error getting work from bitcoind:
2013-04-21 14:50:26.804287 > Traceback (most recent call last):
2013-04-21 14:50:26.804384 >   File "/usr/lib/python2.7/dist-packages/twisted/internet/defer.py", line 551, in _runCallbacks
...
...
2013-04-21 14:50:26.806088 >     raise Error_for_code(resp['error']['code'])(resp['error']['message'], resp['error'].get('data', None))
2013-04-21 14:50:26.806162 > p2pool.util.jsonrpc.NarrowError: -10 Bitcoin is downloading blocks...
bitcoind not synced

Code:
2013-04-21 14:53:42.794531 Testing bitcoind RPC connection to 'http://127.0.0.1:8332/' with username 'bitcoinrpc'...
2013-04-21 14:53:42.800697 > Error while checking Bitcoin connection:
2013-04-21 14:53:42.800948 > Traceback (most recent call last):
2013-04-21 14:53:42.801090 >   File "/usr/lib/python2.7/dist-packages/twisted/internet/defer.py", line 551, in _runCallbacks
2013-04-21 14:53:42.801233 >     current.result = callback(current.result, *args, **kw)
...
...
2013-04-21 14:53:43.815486 >   File "/home/brad/git/p2pool/p2pool/util/jsonrpc.py", line 126, in _http_do
2013-04-21 14:53:43.815540 >     raise e
2013-04-21 14:53:43.815593 > twisted.web.error.Error: 401 Authorization Required
bitcoin rpc username or password wrong

once the pool is running it should start syncing with the other p2pool peers.

check the server is running on

http://youripordomainname:9332/

then connect to it with your miner software username is your bitcoin address(this is how you get paid for mining from the pool), password is random it doesnt matter.

Once you have tested it and its working control c to stop the pool server

then  hit the up arrow key and put a & at the end of the line
like so

Code:
python run_p2pool.py -a your bitcoin address here  --give-author 0.5 bitcoinrpc rpcpasswordfromabove > /dev/null 2>&1 &

Which will run it in the background you can use screen for this, it makes thing easier.

screen
then hit enter
type the line to start the pool
once it starts hit cntrl d
which detaches it
and screen -r to reattach it
see O.P post for more info.



If the machine is rebooted for some reason you will have to start bitcoind and the pool server again. This can be automated if you want.


Cheers and good luck with your mining.


Tips: 1MivVoqttGDpqK8qZzJcfQdkwUG91bGC7G
noel
Full Member
***
Offline Offline

Activity: 168
Merit: 100


View Profile WWW
April 22, 2013, 12:34:45 PM
Last edit: April 22, 2013, 12:55:32 PM by noel
 #180

Thank you for all your time and effort
The advise has been great I am still having issues but at least I am making some progress
I upgraded the server to 12.04 for some reason it does not want to upgrade to 12.10
guess that is life lol
it is now getting in sink doing the -10 downloading blocks
although I still cannot log my miner it to the pool??? maybe when it is in sink.
Problems communicating with bitcoin RPC 0 2
Problems communicating with bitcoin RPC 1 2
Problems communicating with bitcoin RPC 2 2
No more backup pools left. Using primary and starting over.
while using GUIMiner i will try BFGminer as well
thanks
Noel

I will give some coin when i get a bit up only got 2btc Sad
this is what it is up too.

Code:
File "/usr/local/lib/python2.7/dist-packages/Twisted-13.0.0-py2.7-linux-i686.egg/twisted/python/failure.py", line 389, in throwExceptionIntoGenerator
2013-04-22 22:53:58.105045 >     return g.throw(self.type, self.value, self.tb)
2013-04-22 22:53:58.105134 >   File "/root/git/p2pool/p2pool/util/jsonrpc.py", line 133, in _http_do
2013-04-22 22:53:58.105223 >     raise Error_for_code(resp['error']['code'])(resp['error']['message'], resp['error'].get('data', None))
2013-04-22 22:53:58.105322 > p2pool.util.jsonrpc.NarrowError: -10 Bitcoin is downloading blocks...
2013-04-22 22:54:01.112755 > Error getting work from bitcoind:
2013-04-22 22:54:01.113332 > Traceback (most recent call last):
2013-04-22 22:54:01.113733 >   File "/usr/local/lib/python2.7/dist-packages/Twisted-13.0.0-py2.7-linux-i686.egg/twisted/internet/defer.py", line 575, in _runCallbacks
2013-04-22 22:54:01.114132 >     current.result = callback(current.result, *args, **kw)
2013-04-22 22:54:01.115346 >   File "/usr/local/lib/python2.7/dist-packages/Twisted-13.0.0-py2.7-linux-i686.egg/twisted/internet/defer.py", line 1126, in gotResult
2013-04-22 22:54:01.115781 >     _inlineCallbacks(r, g, deferred)
2013-04-22 22:54:01.115945 >   File "/usr/local/lib/python2.7/dist-packages/Twisted-13.0.0-py2.7-linux-i686.egg/twisted/internet/defer.py", line 1068, in _inlineCallbacks
2013-04-22 22:54:01.116094 >     result = result.throwExceptionIntoGenerator(g)
2013-04-22 22:54:01.116210 >   File "/usr/local/lib/python2.7/dist-packages/Twisted-13.0.0-py2.7-linux-i686.egg/twisted/python/failure.py", line 389, in throwExceptionIntoGenerator
2013-04-22 22:54:01.116321 >     return g.throw(self.type, self.value, self.tb)
2013-04-22 22:54:01.116427 > --- <exception caught here> ---
2013-04-22 22:54:01.116533 >   File "/root/git/p2pool/p2pool/util/deferral.py", line 41, in f
2013-04-22 22:54:01.116638 >     result = yield func(*args, **kwargs)
2013-04-22 22:54:01.116749 >   File "/usr/local/lib/python2.7/dist-packages/Twisted-13.0.0-py2.7-linux-i686.egg/twisted/internet/defer.py", line 1068, in _inlineCallbacks
2013-04-22 22:54:01.116856 >     result = result.throwExceptionIntoGenerator(g)
2013-04-22 22:54:01.116959 >   File "/usr/local/lib/python2.7/dist-packages/Twisted-13.0.0-py2.7-linux-i686.egg/twisted/python/failure.py", line 389, in throwExceptionIntoGenerator
2013-04-22 22:54:01.117065 >     return g.throw(self.type, self.value, self.tb)
2013-04-22 22:54:01.117168 >   File "/root/git/p2pool/p2pool/bitcoin/helper.py", line 36, in getwork
2013-04-22 22:54:01.117273 >     work = yield go()
2013-04-22 22:54:01.118289 >   File "/usr/local/lib/python2.7/dist-packages/Twisted-13.0.0-py2.7-linux-i686.egg/twisted/internet/defer.py", line 1068, in _inlineCallbacks
2013-04-22 22:54:01.119989 >     result = result.throwExceptionIntoGenerator(g)
2013-04-22 22:54:01.120366 >   File "/usr/local/lib/python2.7/dist-packages/Twisted-13.0.0-py2.7-linux-i686.egg/twisted/python/failure.py", line 389, in throwExceptionIntoGenerator
2013-04-22 22:54:01.120471 >     return g.throw(self.type, self.value, self.tb)
2013-04-22 22:54:01.120568 >   File "/root/git/p2pool/p2pool/util/jsonrpc.py", line 133, in _http_do
2013-04-22 22:54:01.120679 >     raise Error_for_code(resp['error']['code'])(resp['error']['message'], resp['error'].get('data', None))
2013-04-22 22:54:01.120780 > p2pool.util.jsonrpc.NarrowError: -10 Bitcoin is downloading blocks...

My Bitcoin Address is 1A2WeFuxL2WuyoqNAYqKx4P2a5YieYaunp

Donate Please.
Pages: « 1 2 3 4 5 6 7 8 [9] 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 »
  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!