Bitcoin Forum
November 02, 2024, 01:14:19 AM *
News: Latest Bitcoin Core release: 28.0 [Torrent]
 
   Home   Help Search Login Register More  
Pages: [1] 2 »  All
  Print  
Author Topic: Install scripts for eloipool + bitcoind private pool on Ubuntu 12.04  (Read 7923 times)
zero-asic (OP)
Member
**
Offline Offline

Activity: 79
Merit: 10


View Profile
April 09, 2013, 10:14:56 PM
Last edit: May 23, 2013, 01:25:13 AM by zero-asic
 #1

I wrote some install scripts for an eloipool private pool and they seem to be in working order for Ubuntu 12.04.  The only thing that makes it a private pool is the eloipool config file, which can be swapped out.

Everything gets downloaded and installed into one directory, but it does use the package manager to install a few support files.  I'm running it out of my home directory, but you could easily run it out of /opt.

Thanks to everyone for helping me test the scripts.

PLEASE READ THE README

https://github.com/ZeroASIC/eloipool-server

Updated: May 22, 2013

Eloipool + bitcoind Ubuntu 12.04 install scripts: https://bitcointalk.org/index.php?topic=171782.0
Raize
Donator
Legendary
*
Offline Offline

Activity: 1419
Merit: 1015


View Profile
April 16, 2013, 09:55:10 PM
 #2

Why does this script kill eloipool.py on a new block notification? Does that restart the process? I see nohup is used, but I guess I'm not familiar with how eloipool handles new block generation.
zero-asic (OP)
Member
**
Offline Offline

Activity: 79
Merit: 10


View Profile
April 16, 2013, 10:57:35 PM
 #3

Why does this script kill eloipool.py on a new block notification? Does that restart the process? I see nohup is used, but I guess I'm not familiar with how eloipool handles new block generation.

I used this set up guide as an example, but I did make a few changes.
https://bitcointalk.org/index.php?topic=158105.0

The block notify script was taken from that thread.  I'm not entirely certain it's necessary though.  I left it in just to be safe.

Eloipool + bitcoind Ubuntu 12.04 install scripts: https://bitcointalk.org/index.php?topic=171782.0
tempt
Sr. Member
****
Offline Offline

Activity: 294
Merit: 262


View Profile
May 01, 2013, 07:03:30 PM
 #4

Does this also work via SSH REMOTE without GNOME?
zero-asic (OP)
Member
**
Offline Offline

Activity: 79
Merit: 10


View Profile
May 01, 2013, 07:04:57 PM
 #5

Does this also work via SSH REMOTE without GNOME?

Yes.  Just run the eloipool-server/scripts/ubuntu-install.sh from the command line.

Eloipool + bitcoind Ubuntu 12.04 install scripts: https://bitcointalk.org/index.php?topic=171782.0
Mikej0h
Member
**
Offline Offline

Activity: 117
Merit: 100

Life is short, play long


View Profile
May 06, 2013, 08:26:06 PM
 #6

Great effort for creating these scripts!

I've already tried to install this now a few times, once on CentOS and (now already 2 times) Ubuntu 12.04 Server Edition (did reinstalls):
Code:
2013-05-06 22:19:04,166 merkleMaker     CRITICAL        Traceback (most recent call last):
  File "/home/eloipool/eloipool-server/eloipool/merklemaker.py", line 692, in run
    self.merkleMaker_I()
  File "/home/eloipool/eloipool-server/eloipool/merklemaker.py", line 682, in merkleMaker_I
    self.merkleMaker_II()
  File "/home/eloipool/eloipool-server/eloipool/merklemaker.py", line 648, in merkleMaker_II
    return self._updateMerkleTree()
  File "/home/eloipool/eloipool-server/eloipool/merklemaker.py", line 548, in _updateMerkleTree
    self._updateMerkleTree_I()
  File "/home/eloipool/eloipool-server/eloipool/merklemaker.py", line 512, in _updateMerkleTree_I
    r = self._updateMerkleTree_fromTS(TS)
  File "/home/eloipool/eloipool-server/eloipool/merklemaker.py", line 477, in _updateMerkleTree_fromTS
    MP = self._CallGBT(TS)
  File "/home/eloipool/eloipool-server/eloipool/merklemaker.py", line 327, in _CallGBT
    MP = access.getblocktemplate(self.GBTReq)
  File "/home/eloipool/eloipool-server/eloipool/bitcoinrpc/authproxy.py", line 104, in __call__
    raise JSONRPCException(response['error'])
bitcoinrpc.authproxy.JSONRPCException

I've already made the change to authproxy.py in python-bitcoinrpc from:
 self.__auth_header = "Basic %s" % base64.b64encode(authpair)
to
 self.__auth_header = "Basic %s" % base64.b64encode(authpair).decode()

However above error I can't solve, do you have any suggestions? Because I'm out of them Sad.
zero-asic (OP)
Member
**
Offline Offline

Activity: 79
Merit: 10


View Profile
May 06, 2013, 09:51:09 PM
 #7

Great effort for creating these scripts!

I've already tried to install this now a few times, once on CentOS and (now already 2 times) Ubuntu 12.04 Server Edition (did reinstalls):
Code:
2013-05-06 22:19:04,166 merkleMaker     CRITICAL        Traceback (most recent call last):
  File "/home/eloipool/eloipool-server/eloipool/merklemaker.py", line 692, in run
    self.merkleMaker_I()
  File "/home/eloipool/eloipool-server/eloipool/merklemaker.py", line 682, in merkleMaker_I
    self.merkleMaker_II()
  File "/home/eloipool/eloipool-server/eloipool/merklemaker.py", line 648, in merkleMaker_II
    return self._updateMerkleTree()
  File "/home/eloipool/eloipool-server/eloipool/merklemaker.py", line 548, in _updateMerkleTree
    self._updateMerkleTree_I()
  File "/home/eloipool/eloipool-server/eloipool/merklemaker.py", line 512, in _updateMerkleTree_I
    r = self._updateMerkleTree_fromTS(TS)
  File "/home/eloipool/eloipool-server/eloipool/merklemaker.py", line 477, in _updateMerkleTree_fromTS
    MP = self._CallGBT(TS)
  File "/home/eloipool/eloipool-server/eloipool/merklemaker.py", line 327, in _CallGBT
    MP = access.getblocktemplate(self.GBTReq)
  File "/home/eloipool/eloipool-server/eloipool/bitcoinrpc/authproxy.py", line 104, in __call__
    raise JSONRPCException(response['error'])
bitcoinrpc.authproxy.JSONRPCException

I've already made the change to authproxy.py in python-bitcoinrpc from:
 self.__auth_header = "Basic %s" % base64.b64encode(authpair)
to
 self.__auth_header = "Basic %s" % base64.b64encode(authpair).decode()

However above error I can't solve, do you have any suggestions? Because I'm out of them Sad.

I do not support any form of code modifications.  If you're having an issue starting eloipool please make sure that bitcoind has finished downloading the blockchain and that all of the libraries were installed correctly before reporting any bugs.

Eloipool + bitcoind Ubuntu 12.04 install scripts: https://bitcointalk.org/index.php?topic=171782.0
gateway
Hero Member
*****
Offline Offline

Activity: 552
Merit: 500


View Profile
May 06, 2013, 10:08:03 PM
 #8

Zero,

You should updated your script and put before the bitcoind install for ubuntu script

sudo apt-get install python-software-properties

this allows that command to run properly and install the proper bitcoind, otherwise running this by default gets a super super super old version of bitcoind.

quick guide for anyone..

get the latest ubuntu 12.0x server

sudo apt-get update
sudo apt-get upgrade
sudo apt-get install ssh (if you connect via ssh)

sudo apt-get install python-software-properties (allows for zero script to run)

get and download and unzip his script.

Go into the script folder, and run bash ubuntu-install.sh (going from memory)
Edit the bitcoind.conf file in the folder.. change user and pass
go back to scripts folder, run bash run-bitcoind.sh (you have to let bitcoind run to get the block the full block chain before running the pool)!!!!!

to see the current block chain info bitcoind -rpcuser=<username> -rpcpassword=<password> this is from bitcoind , u will see block count this should match http://blockexplorer.com/q/getblockcount number, it can take hours.. dont get ahead of your self you need this..

once you have a match then you can run the pool.. enjoy..

zero-asic (OP)
Member
**
Offline Offline

Activity: 79
Merit: 10


View Profile
May 07, 2013, 08:04:25 PM
 #9

this allows that command to run properly and install the proper bitcoind, otherwise running this by default gets a super super super old version of bitcoind.

Actually the new version comes from specifically here:
Code:
$ sudo add-apt-repository ppa:bitcoin/bitcoin

It adds the official bitcoin repository with the newest version and is in ubuntu-install.sh.  I did add python-software-properties to the same script, though I'm not convinced it changed anything.  Adding it certainly didn't hurt anything though and it only installed two additional packages.

Eloipool + bitcoind Ubuntu 12.04 install scripts: https://bitcointalk.org/index.php?topic=171782.0
gateway
Hero Member
*****
Offline Offline

Activity: 552
Merit: 500


View Profile
May 07, 2013, 11:12:46 PM
 #10

the reason this is needed on a pure ubuntu install

Code:
add-apt-repository

its not a valid command until you run sudo apt-get install python-software-properties

Your script will run but will install the older version of bitcoind..

zero-asic (OP)
Member
**
Offline Offline

Activity: 79
Merit: 10


View Profile
May 08, 2013, 02:22:00 AM
 #11

its not a valid command until you run sudo apt-get install python-software-properties

Ok I get it now and I changed the order the commands execute in.  It should work properly now.

Eloipool + bitcoind Ubuntu 12.04 install scripts: https://bitcointalk.org/index.php?topic=171782.0
tempt
Sr. Member
****
Offline Offline

Activity: 294
Merit: 262


View Profile
May 16, 2013, 02:56:01 PM
Last edit: May 16, 2013, 03:17:14 PM by tempt
 #12

Hi,

after the fork debug.log shows the following:

2013-05-16 14:56:30 runCommand error: system(/usr/eloipool-server/scripts/newblock.sh) returned 256
2013-05-16 14:56:30 Committing 257 changed transactions to coin database...
2013-05-16 14:56:30 SetBestChain: new best=0000000000000135919e2963ab7091bd361e0bb8d0e67110772fb9ab8a2c160f  height=236421  log2_work=70.04519  tx=17911087  date=2013-05-16 06:52:12 progress=0.996905
eloipool.py: no process found
2013-05-16 14:56:30 runCommand error: system(/usr/eloipool-server/scripts/newblock.sh) returned 256
2013-05-16 14:56:30 Committing 1292 changed transactions to coin database...
2013-05-16 14:56:30 SetBestChain: new best=00000000000000918098e299864e8e6d3d99d30f0bec47d52d9cb83c180dada6  height=236422  log2_work=70.045247  tx=17911660  date=2013-05-16 07:01:37 progress=0.996965
eloipool.py: no process found
2013-05-16 14:56:30 runCommand error: system(/usr/eloipool-server/scripts/newblock.sh) returned 256
2013-05-16 14:56:30 Committing 134 changed transactions to coin database...
2013-05-16 14:56:31 SetBestChain: new best=00000000000000f719b1256e6e72cd8b629788c3113ce61d73f45898b531606b  height=236423  log2_work=70.045304  tx=17911748  date=2013-05-16 07:02:33 progress=0.996971
eloipool.py: no process found
2013-05-16 14:56:31 runCommand error: system(/usr/eloipool-server/scripts/newblock.sh) returned 256
2013-05-16 14:56:31 Committing 1021 changed transactions to coin database...
2013-05-16 14:56:31 SetBestChain: new best=0000000000000161de562e6eda356231cf30572f5e3052b8a2a7edec885264ca  height=236424  log2_work=70.045361  tx=17912083  date=2013-05-16 07:13:40 progress=0.997042
eloipool.py: no process found
2013-05-16 14:56:31 runCommand error: system(/usr/eloipool-server/scripts/newblock.sh) returned 256

Also, I experience the following error:


as@s2:/usr/eloipool-server/scripts# nohup: redirecting stderr to stdout
nohup: failed to run command `../eloipool/eloipool.py': No such file or directory
^C

Edit 2: when I edit the eloipool.ty header to 2.7 python and not python3 it doesnt give back the no such file error but does nothing.
zero-asic (OP)
Member
**
Offline Offline

Activity: 79
Merit: 10


View Profile
May 16, 2013, 07:05:45 PM
Last edit: May 16, 2013, 07:18:50 PM by zero-asic
 #13

Hi,

after the fork debug.log shows the following:

2013-05-16 14:56:30 runCommand error: system(/usr/eloipool-server/scripts/newblock.sh) returned 256
2013-05-16 14:56:30 Committing 257 changed transactions to coin database...
2013-05-16 14:56:30 SetBestChain: new best=0000000000000135919e2963ab7091bd361e0bb8d0e67110772fb9ab8a2c160f  height=236421  log2_work=70.04519  tx=17911087  date=2013-05-16 06:52:12 progress=0.996905
eloipool.py: no process found
2013-05-16 14:56:30 runCommand error: system(/usr/eloipool-server/scripts/newblock.sh) returned 256
2013-05-16 14:56:30 Committing 1292 changed transactions to coin database...
2013-05-16 14:56:30 SetBestChain: new best=00000000000000918098e299864e8e6d3d99d30f0bec47d52d9cb83c180dada6  height=236422  log2_work=70.045247  tx=17911660  date=2013-05-16 07:01:37 progress=0.996965
eloipool.py: no process found
2013-05-16 14:56:30 runCommand error: system(/usr/eloipool-server/scripts/newblock.sh) returned 256
2013-05-16 14:56:30 Committing 134 changed transactions to coin database...
2013-05-16 14:56:31 SetBestChain: new best=00000000000000f719b1256e6e72cd8b629788c3113ce61d73f45898b531606b  height=236423  log2_work=70.045304  tx=17911748  date=2013-05-16 07:02:33 progress=0.996971
eloipool.py: no process found
2013-05-16 14:56:31 runCommand error: system(/usr/eloipool-server/scripts/newblock.sh) returned 256
2013-05-16 14:56:31 Committing 1021 changed transactions to coin database...
2013-05-16 14:56:31 SetBestChain: new best=0000000000000161de562e6eda356231cf30572f5e3052b8a2a7edec885264ca  height=236424  log2_work=70.045361  tx=17912083  date=2013-05-16 07:13:40 progress=0.997042
eloipool.py: no process found
2013-05-16 14:56:31 runCommand error: system(/usr/eloipool-server/scripts/newblock.sh) returned 256

Also, I experience the following error:


as@s2:/usr/eloipool-server/scripts# nohup: redirecting stderr to stdout
nohup: failed to run command `../eloipool/eloipool.py': No such file or directory
^C

Edit 2: when I edit the eloipool.ty header to 2.7 python and not python3 it doesnt give back the no such file error but does nothing.
What version of Ubuntu are you running?  Are you absolutely certain that everything is installed correctly and that bitcoind has finished downloading the blockchain?

Eloipool + bitcoind Ubuntu 12.04 install scripts: https://bitcointalk.org/index.php?topic=171782.0
tempt
Sr. Member
****
Offline Offline

Activity: 294
Merit: 262


View Profile
May 16, 2013, 11:28:17 PM
 #14

Hi,

after the fork debug.log shows the following:

2013-05-16 14:56:30 runCommand error: system(/usr/eloipool-server/scripts/newblock.sh) returned 256
2013-05-16 14:56:30 Committing 257 changed transactions to coin database...
2013-05-16 14:56:30 SetBestChain: new best=0000000000000135919e2963ab7091bd361e0bb8d0e67110772fb9ab8a2c160f  height=236421  log2_work=70.04519  tx=17911087  date=2013-05-16 06:52:12 progress=0.996905
eloipool.py: no process found
2013-05-16 14:56:30 runCommand error: system(/usr/eloipool-server/scripts/newblock.sh) returned 256
2013-05-16 14:56:30 Committing 1292 changed transactions to coin database...
2013-05-16 14:56:30 SetBestChain: new best=00000000000000918098e299864e8e6d3d99d30f0bec47d52d9cb83c180dada6  height=236422  log2_work=70.045247  tx=17911660  date=2013-05-16 07:01:37 progress=0.996965
eloipool.py: no process found
2013-05-16 14:56:30 runCommand error: system(/usr/eloipool-server/scripts/newblock.sh) returned 256
2013-05-16 14:56:30 Committing 134 changed transactions to coin database...
2013-05-16 14:56:31 SetBestChain: new best=00000000000000f719b1256e6e72cd8b629788c3113ce61d73f45898b531606b  height=236423  log2_work=70.045304  tx=17911748  date=2013-05-16 07:02:33 progress=0.996971
eloipool.py: no process found
2013-05-16 14:56:31 runCommand error: system(/usr/eloipool-server/scripts/newblock.sh) returned 256
2013-05-16 14:56:31 Committing 1021 changed transactions to coin database...
2013-05-16 14:56:31 SetBestChain: new best=0000000000000161de562e6eda356231cf30572f5e3052b8a2a7edec885264ca  height=236424  log2_work=70.045361  tx=17912083  date=2013-05-16 07:13:40 progress=0.997042
eloipool.py: no process found
2013-05-16 14:56:31 runCommand error: system(/usr/eloipool-server/scripts/newblock.sh) returned 256

Also, I experience the following error:


as@s2:/usr/eloipool-server/scripts# nohup: redirecting stderr to stdout
nohup: failed to run command `../eloipool/eloipool.py': No such file or directory
^C

Edit 2: when I edit the eloipool.ty header to 2.7 python and not python3 it doesnt give back the no such file error but does nothing.
What version of Ubuntu are you running?  Are you absolutely certain that everything is installed correctly and that bitcoind has finished downloading the blockchain?

I am. I invite you onto my SSH.. Ubuntu 12.04
nohup: redirecting stderr to stdout

this is all that basicly comes out now when I start the eloipool.

{
    "version" : 80100,
    "protocolversion" : 70001,
    "walletversion" : 60000,
    "balance" : 0.00000000,
    "blocks" : 236520,
    "connections" : 3,
    "proxy" : "",
    "difficulty" : 11187257.46136079,
    "testnet" : false,
    "keypoololdest" : 1368718691,
    "keypoolsize" : 101,
    "paytxfee" : 0.00000000,
    "errors" : ""
}


this is the current blockchain count..
zero-asic (OP)
Member
**
Offline Offline

Activity: 79
Merit: 10


View Profile
May 16, 2013, 11:39:38 PM
 #15

nohup: failed to run command `../eloipool/eloipool.py': No such file or directory

It could just be a permissions issue. Either that or eloipool was not installed correctly.  Can you run eloipool manually?

Eloipool + bitcoind Ubuntu 12.04 install scripts: https://bitcointalk.org/index.php?topic=171782.0
tempt
Sr. Member
****
Offline Offline

Activity: 294
Merit: 262


View Profile
May 17, 2013, 08:50:06 AM
 #16

nohup: failed to run command `../eloipool/eloipool.py': No such file or directory

It could just be a permissions issue. Either that or eloipool was not installed correctly.  Can you run eloipool manually?

I've done it this way:

fresh 12.04 Debian install.
All the librarys and stuff, really, everything I could find related to bitcoind / eloipool.
follow instructions of getaway to download and compile bitcoind via ubuntu-install.sh (I've done this in previous attempts myself..figure out I'll follow it strictly this time)
let bitcoind start and get the complete blockchain.
installpool.sh
run-eloipool.sh
nothing happens

I dont know how to start the eloipool myself?

if this is how you start eloipool, then this happens:


as@s2:/opt/eloipool-server/eloipool# python eloipool.py
Traceback (most recent call last):
  File "eloipool.py", line 77, in <module>
    bcnode = BitcoinNode(config.UpstreamNetworkId)
  File "/opt/eloipool-server/eloipool/bitcoin/node.py", line 146, in __init__
    super().__init__(*a, **ka)
TypeError: super() takes at least 1 argument (0 given)
as@s2:/opt/eloipool-server/eloipool#
zero-asic (OP)
Member
**
Offline Offline

Activity: 79
Merit: 10


View Profile
May 18, 2013, 02:11:03 AM
 #17

as@s2:/opt/eloipool-server/eloipool# python eloipool.py
Traceback (most recent call last):
  File "eloipool.py", line 77, in <module>
    bcnode = BitcoinNode(config.UpstreamNetworkId)
  File "/opt/eloipool-server/eloipool/bitcoin/node.py", line 146, in __init__
    super().__init__(*a, **ka)
TypeError: super() takes at least 1 argument (0 given)
as@s2:/opt/eloipool-server/eloipool#

That's a strange error.  It looks like a problem with eloipool.  Try running the update script.  If that doesn't work try deleting the entire directory and starting with the zip file again.

Eloipool + bitcoind Ubuntu 12.04 install scripts: https://bitcointalk.org/index.php?topic=171782.0
Luke-Jr
Legendary
*
Offline Offline

Activity: 2576
Merit: 1186



View Profile
May 22, 2013, 07:26:59 AM
 #18

as@s2:/opt/eloipool-server/eloipool# python eloipool.py
Traceback (most recent call last):
  File "eloipool.py", line 77, in <module>
    bcnode = BitcoinNode(config.UpstreamNetworkId)
  File "/opt/eloipool-server/eloipool/bitcoin/node.py", line 146, in __init__
    super().__init__(*a, **ka)
TypeError: super() takes at least 1 argument (0 given)
as@s2:/opt/eloipool-server/eloipool#

That's a strange error.  It looks like a problem with eloipool.  Try running the update script.  If that doesn't work try deleting the entire directory and starting with the zip file again.
That's what you get when you try to run it in ancient versions of Python (ie, 2.x); Eloipool requires at least 3.2

zero-asic (OP)
Member
**
Offline Offline

Activity: 79
Merit: 10


View Profile
May 22, 2013, 07:34:42 AM
 #19

as@s2:/opt/eloipool-server/eloipool# python eloipool.py
Traceback (most recent call last):
  File "eloipool.py", line 77, in <module>
    bcnode = BitcoinNode(config.UpstreamNetworkId)
  File "/opt/eloipool-server/eloipool/bitcoin/node.py", line 146, in __init__
    super().__init__(*a, **ka)
TypeError: super() takes at least 1 argument (0 given)
as@s2:/opt/eloipool-server/eloipool#

That's a strange error.  It looks like a problem with eloipool.  Try running the update script.  If that doesn't work try deleting the entire directory and starting with the zip file again.
That's what you get when you try to run it in ancient versions of Python (ie, 2.x); Eloipool requires at least 3.2

Patched!  I can make it start with python3.  Make sure python3 is installed.  The install scripts should have already installed it for you.  There is an updated scripts/run-eloipool.sh in the new zip file.

Thanks for pointing that out Luke-Jr!

Eloipool + bitcoind Ubuntu 12.04 install scripts: https://bitcointalk.org/index.php?topic=171782.0
zero-asic (OP)
Member
**
Offline Offline

Activity: 79
Merit: 10


View Profile
May 23, 2013, 01:24:20 AM
 #20

Seems like a link is broken, or the host is down. Maybe, it is a good idea to push these scripts to some universally accessible place, such as Github?

You got it!

https://github.com/ZeroASIC/eloipool-server

Eloipool + bitcoind Ubuntu 12.04 install scripts: https://bitcointalk.org/index.php?topic=171782.0
Pages: [1] 2 »  All
  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!