Bitcoin Forum

Bitcoin => Pools => Topic started by: influx on June 12, 2014, 07:27:56 PM



Title: please help !!!! ( need to build up private bitcoin pool on ubuntu 14.04 )
Post by: influx on June 12, 2014, 07:27:56 PM
please help ..
i have an ubuntu 14.04 server .
and i need to install bitcoind and create bitcoin pool with address like >>>>> ip:8332
and mining by my miners on this private pool

i just need the steps because i tried all in topics here and non working ..

can anyone help please ?????  :'( :'(



Title: Re: please help !!!! ( need to build up private bitcoin pool on ubuntu 14.04 )
Post by: zvs on June 12, 2014, 08:18:22 PM
Why don't you just set up a solo p2pool?  That's probably the easiest way?

Code:
nets = dict(
    bitcoin=math.Object(
        PARENT=networks.nets['bitcoin'],
        SHARE_PERIOD=30, # seconds
        CHAIN_LENGTH=24*60*60//10, # shares
        REAL_CHAIN_LENGTH=24*60*60//10, # shares
        TARGET_LOOKBEHIND=200, # shares
        SPREAD=3, # blocks
        IDENTIFIER='fc70035c7a81bc6f'.decode('hex'),
        PREFIX='2472ef181efcd37b'.decode('hex'),
        P2P_PORT=9333,
        MIN_TARGET=0,
        MAX_TARGET=2**256//2**32 - 1,
        PERSIST=True,
        WORKER_PORT=9332,
        BOOTSTRAP_ADDRS='forre.st vps.forre.st portals94.ns01.us 54.227.25.14 119.1.96.99 204.10.105.113 76.104.150.248 89.71.151.9 76.114.13.54 72.201.24.106 79.160.2.128 207.244.175.195 168.7.116.24
3 94.23.215.27 218.54.45.177 5.9.157.150 78.155.217.76 91.154.90.163 173.52.43.124 78.225.49.209 220.135.57.230 169.237.101.193:8335 98.236.74.28 204.19.23.19 98.122.165.84:8338 71.90.88.222 67.168.13
2.228 193.6.148.18 80.218.174.253 50.43.56.102 68.13.4.106 24.246.31.2 176.31.208.222 1.202.128.218 86.155.135.31 204.237.15.51 5.12.158.126:38007 202.60.68.242 94.19.53.147 65.130.126.82 184.56.21.18
2 213.112.114.73 218.242.51.246 86.173.200.160 204.15.85.157 37.59.15.50 62.217.124.203 80.87.240.47 198.61.137.12 108.161.134.32 198.154.60.183:10333 71.39.52.34:9335 46.23.72.52:9343 83.143.42.177 1
92.95.61.149 144.76.17.34 46.65.68.119 188.227.176.66:9336 75.142.155.245:9336 213.67.135.99 76.115.224.177 50.148.193.245 64.53.185.79 80.65.30.137 109.126.14.42 76.84.63.146'.split(' '),
        ANNOUNCE_CHANNEL='#p2pool',
        VERSION_CHECK=lambda v: 50700 <= v < 60000 or 60010 <= v < 60100 or 60400 <= v,
        VERSION_WARNING=lambda v: 'Upgrade Bitcoin to >=0.8.5!' if v < 80500 else None,
    ),

Change identifier and prefix, e.g. change identifier from fc70035c7a81bc6f to dd70035c7a81bc33, similar with prefix.

Remove all the bootstrap addresses.  Probably should change the p2p and worker ports also.

Change persist=true to persist=false.

done


Title: Re: please help !!!! ( need to build up private bitcoin pool on ubuntu 14.04 )
Post by: influx on June 12, 2014, 08:49:06 PM
hello..,
is this will be profitable more than normal mining .. ??

AND IF

can you please type me the ubuntu codes with slow steps ??




Title: Re: please help !!!! ( need to build up private bitcoin pool on ubuntu 14.04 )
Post by: influx on June 12, 2014, 08:57:13 PM
am not an expert in this code which you typed here now ... lemme know how can i go to this file or code .
and 2nd solo mining need slow hashing speed ..

and i have 2 TH/s

anyway no problem about solo mining if it will be good and profitable ..
so tell me what after this steps


git clone https://github.com/bitcoin/bitcoin.git
cd bitcoin
git checkout v0.8.6

cd src/
make -f makefile.unix


sudo cp ./bitcoind /usr/local/bin/


bitcoind

cd bitcoin

pico bitcoin.conf

{

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

cntrl x
hit y to save
hit enter to save it to bitcoin.conf

chmod go-rwx bitcoin.conf


so ....
after that ..
i should i type : bitcoind ..
but nothing happen..  and i should set miner to ip : x.x.x.x:3333

but miner says offline pool


thank you
waiting for your reply


Title: Re: please help !!!! ( need to build up private bitcoin pool on ubuntu 14.04 )
Post by: influx on June 13, 2014, 10:32:17 AM
after i run bitcoind
and

twistd -ny launcher.tac -l -

it says ::



2014-06-13 13:25:37,457 ERROR mining # Bitcoind downloading blockchain... will check back in 30 sec
2014-06-13 13:26:07,490 ERROR mining # Bitcoind downloading blockchain... will check back in 30 sec
2014-06-13 13:26:37,523 ERROR mining # Bitcoind downloading blockchain... will check back in 30 sec
2014-06-13 13:27:07,556 ERROR mining # Bitcoind downloading blockchain... will check back in 30 sec
2014-06-13 13:27:37,588 ERROR mining # Bitcoind downloading blockchain... will check back in 30 sec
2014-06-13 13:28:07,621 ERROR mining # Bitcoind downloading blockchain... will check back in 30 sec
2014-06-13 13:28:37,653 ERROR mining # Bitcoind downloading blockchain... will check back in 30 sec
2014-06-13 13:29:07,687 ERROR mining # Bitcoind downloading blockchain... will check back in 30 sec
2014-06-13 13:29:37,701 ERROR mining # Bitcoind downloading blockchain... will check back in 30 sec
2014-06-13 13:30:07,734 ERROR mining # Bitcoind downloading blockchain... will check back in 30 sec


so ???

can anyone tell me how long will stay downloading ??


thank you
waiting for reply


Title: Re: please help !!!! ( need to build up private bitcoin pool on ubuntu 14.04 )
Post by: Bharat on June 13, 2014, 10:47:52 AM
blockchain download can be around 15GB i think


Title: Re: please help !!!! ( need to build up private bitcoin pool on ubuntu 14.04 )
Post by: influx on June 13, 2014, 11:52:50 AM
blockchain download can be around 15GB i think
'

hello

it's more than 3 hours now ..
and it's running on dedicated server with high connection ..

not slow connection..



Title: Re: please help !!!! ( need to build up private bitcoin pool on ubuntu 14.04 )
Post by: Bharat on June 13, 2014, 01:04:49 PM
which block it is showing currently  ?


Title: Re: please help !!!! ( need to build up private bitcoin pool on ubuntu 14.04 )
Post by: influx on June 13, 2014, 04:21:41 PM
which block it is showing currently  ?

not block name/number it's only shown >>>>>>>  ERROR mining # Bitcoind downloading blockchain... will check back in 30 sec

 ERROR mining # Bitcoind downloading blockchain... will check back in 30 sec
 ERROR mining # Bitcoind downloading blockchain... will check back in 30 sec
 ERROR mining # Bitcoind downloading blockchain... will check back in 30 sec


Title: Re: please help !!!! ( need to build up private bitcoin pool on ubuntu 14.04 )
Post by: _Crash_ on June 14, 2014, 09:06:17 AM
Be patient... You can type in "bitcoind getinfo" to see how many blocks you have downloaded. Just look at your bitcoin client on your computer and compare to see how many blocks your server needs to download. Before it'll be finished.

Also, when you run bitcoind, it won't show any output in the terminal, so just put it in a screen out of the way. When its not running for whatever reason, it'll return to the command line again.

PS: You may have gigabit and the download will still be slow. It depends on how powerful your servers processor is as well as the connection. It took a server which I ran bitcoind on at least a day to download the blockchain.


Title: Re: please help !!!! ( need to build up private bitcoin pool on ubuntu 14.04 )
Post by: influx on June 14, 2014, 11:11:34 AM
okay download is done now
but i got another problem ..

root@BTCX:~/stratum-mining# twistd -ny launcher.tac -l -
Removing stale pidfile /root/stratum-mining/twistd.pid
2014-06-14 14:09:40,899 INFO mining # Connecting to bitcoind...
2014-06-14 14:09:40+0300 [-] Log opened.
2014-06-14 14:09:40+0300 [-] twistd 14.0.0 (/usr/bin/python 2.7.6) starting up.
2014-06-14 14:09:40+0300 [-] reactor class: twisted.internet.epollreactor.EPollR                                                                                                                                                             eactor.
2014-06-14 14:09:40+0300 [Uninitialized] Unhandled error in Deferred:
2014-06-14 14:09:40+0300 [Uninitialized] Unhandled Error
        Traceback (most recent call last):
          File "/usr/local/lib/python2.7/dist-packages/Twisted-14.0.0-py2.7-linu                                                                                                                                                             x-i686.egg/twisted/internet/defer.py", line 423, in errback
            self._startRunCallbacks(fail)
          File "/usr/local/lib/python2.7/dist-packages/Twisted-14.0.0-py2.7-linu                                                                                                                                                             x-i686.egg/twisted/internet/defer.py", line 490, in _startRunCallbacks
            self._runCallbacks()
          File "/usr/local/lib/python2.7/dist-packages/Twisted-14.0.0-py2.7-linu                                                                                                                                                             x-i686.egg/twisted/internet/defer.py", line 577, in _runCallbacks
            current.result = callback(current.result, *args, **kw)
          File "/usr/local/lib/python2.7/dist-packages/Twisted-14.0.0-py2.7-linu                                                                                                                                                             x-i686.egg/twisted/internet/defer.py", line 1155, in gotResult
            _inlineCallbacks(r, g, deferred)
        --- <exception caught here> ---
          File "/usr/local/lib/python2.7/dist-packages/Twisted-14.0.0-py2.7-linu                                                                                                                                                             x-i686.egg/twisted/internet/defer.py", line 1097, in _inlineCallbacks
            result = result.throwExceptionIntoGenerator(g)
          File "/usr/local/lib/python2.7/dist-packages/Twisted-14.0.0-py2.7-linu                                                                                                                                                             x-i686.egg/twisted/python/failure.py", line 389, in throwExceptionIntoGenerator
            return g.throw(self.type, self.value, self.tb)
          File "/root/stratum-mining/mining/__init__.py", line 48, in setup
            if isinstance(e[2], str):
        exceptions.IndexError: tuple index out of range

2014-06-14 14:09:59+0300 [-] Unhandled Error
        Traceback (most recent call last):
          File "/usr/local/lib/python2.7/dist-packages/Twisted-14.0.0-py2.7-linu                                                                                                                                                             x-i686.egg/twisted/application/app.py", line 392, in startReactor
            self.config, oldstdout, oldstderr, self.profiler, reactor)
          File "/usr/local/lib/python2.7/dist-packages/Twisted-14.0.0-py2.7-linu                                                                                                                                                             x-i686.egg/twisted/application/app.py", line 313, in runReactorWithLogging
            reactor.run()
          File "/usr/local/lib/python2.7/dist-packages/Twisted-14.0.0-py2.7-linu                                                                                                                                                             x-i686.egg/twisted/internet/base.py", line 1192, in run
            self.mainLoop()
          File "/usr/local/lib/python2.7/dist-packages/Twisted-14.0.0-py2.7-linu                                                                                                                                                             x-i686.egg/twisted/internet/base.py", line 1201, in mainLoop
            self.runUntilCurrent()
        --- <exception caught here> ---
          File "/usr/local/lib/python2.7/dist-packages/Twisted-14.0.0-py2.7-linu                                                                                                                                                             x-i686.egg/twisted/internet/base.py", line 824, in runUntilCurrent
            call.func(*call.args, **call.kw)
          File "/root/stratum-mining/mining/DBInterface.py", line 80, in run_imp                                                                                                                                                             ort
            d = self.bitcoinrpc.getinfo()
        exceptions.AttributeError: DBInterface instance has no attribute 'bitcoi                                                                                                                                                             nrpc'



so can anyone help please ??


Title: Re: please help !!!! ( need to build up private bitcoin pool on ubuntu 14.04 )
Post by: murdof on June 14, 2014, 11:52:39 AM
Do in the folder where you have .bitcoin the following:
Code:
du -h .bitcoin/
Is the total around 22G?


Title: Re: please help !!!! ( need to build up private bitcoin pool on ubuntu 14.04 )
Post by: influx on June 14, 2014, 12:17:38 PM
Do in the folder where you have .bitcoin the following:
Code:
du -h .bitcoin/
Is the total around 22G?




yes


root@BTCX:~# du -h .bitcoin/
525M    .bitcoin/chainstate
1.1M    .bitcoin/database
42M     .bitcoin/blocks/index
21G     .bitcoin/blocks
22G     .bitcoin/
root@BTCX:~#


Title: Re: please help !!!! ( need to build up private bitcoin pool on ubuntu 14.04 )
Post by: murdof on June 14, 2014, 02:04:01 PM
Check my guide:
https://bitcointalk.org/index.php?topic=651819.0

run the aptitude get command to install all prerequisites


Title: Re: please help !!!! ( need to build up private bitcoin pool on ubuntu 14.04 )
Post by: influx on June 14, 2014, 02:45:06 PM
Check my guide:
https://bitcointalk.org/index.php?topic=651819.0

run the aptitude get command to install all prerequisites


okay man .
am going to try this ..

thank you

i will tell you wut's happen



Title: Re: please help !!!! ( need to build up private bitcoin pool on ubuntu 14.04 )
Post by: influx on June 14, 2014, 02:46:29 PM
Check my guide:
https://bitcointalk.org/index.php?topic=651819.0

run the aptitude get command to install all prerequisites


okay man .
am going to try this ..

thank you

i will tell you wut's happen

but i've a question .:

why bitcoin doesn't has a rpc port

cat >~/.bitcoin/bitcoin.conf
server=1
daemon=1
rpcuser=bitcoin
rpcpassword=h3wby4zWjGwywZ

like another alt.

cat >~/.namecoin/namecoin.conf
server=1
daemon=1
rpcuser=namecoin
rpcpassword=e9s4bmEaHvofEZ
rpcport=7333




Title: Re: please help !!!! ( need to build up private bitcoin pool on ubuntu 14.04 )
Post by: influx on June 14, 2014, 02:51:23 PM
Check my guide:
https://bitcointalk.org/index.php?topic=651819.0

run the aptitude get command to install all prerequisites


okay man .
am going to try this ..

thank you

i will tell you wut's happen

but i've a question .:

why bitcoin doesn't has a rpc port

cat >~/.bitcoin/bitcoin.conf
server=1
daemon=1
rpcuser=bitcoin
rpcpassword=h3wby4zWjGwywZ

like another alt.

cat >~/.namecoin/namecoin.conf
server=1
daemon=1
rpcuser=namecoin
rpcpassword=e9s4bmEaHvofEZ
rpcport=7333


---------------------------------------------

i got another question please ..

where can i put my wallet address ??

thank you
waiting for your reply



Title: Re: please help !!!! ( need to build up private bitcoin pool on ubuntu 14.04 )
Post by: _Crash_ on June 14, 2014, 03:21:20 PM
Took from MPOS Quick Install.. The best way to make sure Python Stratum will work is to do;

Code:
sudo apt-get install python-twisted python-mysqldb python-dev python-setuptools python-memcache python-simplejson python-pylibmc
sudo easy_install -U distribute

Then execute;
Quote
cd ~
cp stratum-mining/conf/config_sample.py stratum-mining/conf/config.py
nano stratum-mining/conf/config.py

This will backup the config and then put you in an editor so you can edit your config (if you haven't already done so).

Make sure you run those commands, then run the stratum server. It _should_ work. If not, then double check everything.


Title: Re: please help !!!! ( need to build up private bitcoin pool on ubuntu 14.04 )
Post by: murdof on June 14, 2014, 04:22:58 PM
All coins have default ports of you don't actually have to declare them.

I think the only conflict I had was with i0coin and name coin

So I decided to have it there as a nice teminder

So bitcoin uses default port.


Title: Re: please help !!!! ( need to build up private bitcoin pool on ubuntu 14.04 )
Post by: joshraban76 on June 14, 2014, 04:31:34 PM
Why don't you hire a freelancer or software developer to help you ??


Title: Re: please help !!!! ( need to build up private bitcoin pool on ubuntu 14.04 )
Post by: rarkenin on June 14, 2014, 05:38:38 PM
I'd be willing to do this for .07 BTC, assuming you're able to follow basic instructions and report back the exact results. Message me if interested.


Title: Re: please help !!!! ( need to build up private bitcoin pool on ubuntu 14.04 )
Post by: _Crash_ on June 14, 2014, 10:22:20 PM
I'd be willing to do this for .07 BTC, assuming you're able to follow basic instructions and report back the exact results. Message me if interested.

He's got all the help here already, I don't see why he would need to pay for answers he's already got. I mean he has Google at his feet, what more could he want? There's tons and tons of tutorials out there, it's easy to mix and match if something doesn't work.


Title: Re: please help !!!! ( need to build up private bitcoin pool on ubuntu 14.04 )
Post by: influx on June 14, 2014, 10:48:29 PM
I'd be willing to do this for .07 BTC, assuming you're able to follow basic instructions and report back the exact results. Message me if interested.

He's got all the help here already, I don't see why he would need to pay for answers he's already got. I mean he has Google at his feet, what more could he want? There's tons and tons of tutorials out there, it's easy to mix and match if something doesn't work.


that's what i would to say .. !!

plus am not a newbie and i don't know nor also new in linux

it was a problem ..
and it will be fixed soon ..




Title: Re: please help !!!! ( need to build up private bitcoin pool on ubuntu 14.04 )
Post by: rarkenin on June 14, 2014, 11:31:05 PM
Acknowledged, just trying to offer any additional help if it were needed. Hopefully I haven't offended anyone with the offer.


Title: Re: please help !!!! ( need to build up private bitcoin pool on ubuntu 14.04 )
Post by: influx on June 15, 2014, 12:02:55 PM
hey all

i just have good news  ;D

i've fixed the pool
and it's working now

and it's working on my miners from more than 5 hours
but nothing received in my wallet ...

the question when will i receive the coins .. ??

and the other question is .. money goes to address which in config.py ?? right ??



here the info.. dear

2014-06-15 14:40:37,110 INFO template_registry # New template for 0000000000000000098bee37662dcaff9d7e68cb48a228700191931ac59612cc
2014-06-15 14:40:37,110 INFO subscription # BROADCASTED to 4 connections in 0.000 sec
2014-06-15 14:40:37,111 INFO template_registry # Update finished, 0.010 sec, 53 txes
2014-06-15 14:40:53,460 INFO interfaces # 00000000000bdba529e453872ab25d4a0af8176934be3dd789053656a70da283 (5526) valid guest
2014-06-15 14:40:54,729 INFO interfaces # 000000000004cab51f3ad19044e498dcb67fe24d04b7b16023276e4ef29b145d (13676) valid guest
2014-06-15 14:41:09,129 INFO interfaces # 000000000004c1a4fd461372aa8f1e01956ab0fbe8b7872a232daee0a03c38b7 (13778) valid guest
2014-06-15 14:41:34,470 INFO template_registry # Yay, share with diff above 100000
2014-06-15 14:41:34,470 INFO interfaces # 0000000000007ddb30309f54cd52161ce0c5eae4199319112408334abc1b2db1 (133302) valid guest
2014-06-15 14:41:37,063 INFO block_updater # Checking for new block.
2014-06-15 14:41:37,331 INFO block_updater # Merkle update! Prevhash: 0000000000000000098bee37662dcaff9d7e68cb48a228700191931ac59612cc
2014-06-15 14:41:37,388 INFO template_registry # New template for 0000000000000000098bee37662dcaff9d7e68cb48a228700191931ac59612cc
2014-06-15 14:41:37,389 INFO subscription # BROADCASTED to 4 connections in 0.000 sec
2014-06-15 14:41:37,389 INFO template_registry # Update finished, 0.010 sec, 85 txes
2014-06-15 14:42:23,190 INFO interfaces # 000000000006e2551ed98ea58f7f6bdc3790bc8df0909e9c22c58b09be5140f5 (9519) valid guest
2014-06-15 14:42:23,640 INFO interfaces # 000000000001ee683e298fd3815e52ca7bb0f0e92d12971a3c8a76289b70998e (33933) valid guest
2014-06-15 14:42:34,261 INFO template_registry # Yay, share with diff above 100000
2014-06-15 14:42:34,261 INFO interfaces # 0000000000001147fbd3110e6f580439370a84022ad9192c2475cb6bea1c55eb (970822) valid guest
2014-06-15 14:42:37,331 INFO block_updater # Checking for new block.
2014-06-15 14:42:37,339 INFO block_updater # Merkle update! Prevhash: 0000000000000000098bee37662dcaff9d7e68cb48a228700191931ac59612cc
2014-06-15 14:42:37,408 INFO template_registry # New template for 0000000000000000098bee37662dcaff9d7e68cb48a228700191931ac59612cc
2014-06-15 14:42:37,409 INFO subscription # BROADCASTED to 4 connections in 0.000 sec


thank you alot for helping
waiting for reply


Title: Re: please help !!!! ( need to build up private bitcoin pool on ubuntu 14.04 )
Post by: zvs on June 21, 2014, 03:22:47 AM
ah, hi, I answered in PM but just in case,

I don't keep up with bitcoin mining so much anymore, so I really have no clue what p2pool's current block time is, I'm guessing it's somewhere between 12-36 hours.  Once p2pool finds a block, you'll get paid out based on the total value of your shares vs everyone else's (over x period of time).  

If it says 'GOT SHARE' in your log and it's not returning orphans or DOA's, then it's working..

If you're running the p2pool as a solo pool (just yourself mining), then it might be a very long time until you find a block... then you'd want to make sure your bitcoind is well connected (connect it to me at 5.9.24.81 for one, hoho).

ed:  Payment is to default address (-a) used on command line (*or if you edited default in source code) unless a different valid address is provided on miner (and you aren't taking 100% fees)...   I always mined with Colonel Sanders or Ronald McDonald or something and just had the -a flag set to where I wanted payout to be.