Bitcoin Forum

Bitcoin => Hardware => Topic started by: jgarzik on March 25, 2013, 03:20:38 PM



Title: Avalon users: bitcoind + eloipool configuration
Post by: jgarzik on March 25, 2013, 03:20:38 PM
Here is the simple solo mining and mining farm configuration used here.  At current difficulty, ignoring variance, an Avalon should, on average, generate a block every...

Quote
The average time to generate a block at 68000.0 Mhps, given difficulty of 6695826.2826, is 4 days, 21 hours, 28 minutes, and 43 seconds

Pool is probably preferable to most, as you might have incredibly bad luck and not generate a block for a couple weeks.  In any case, here is the bitcoind + eloipool configuration on Linux.

If you like these instructions, there is a donation address in the sig.




bitcoind setup

1) Obtain a compiled bitcoind somehow.  Compiling your own is outside the scope of these instructions.  I'm told there is an Ubuntu PPA somewhere.

2) Decide on a data directory location.  It must be on a fast hard drive, preferably SSD, and have at least 10GB of free space.

3) In this directory, create bitcoin.conf text file, with the following contents:

Code:
rpcuser=MY_RPC_USERNAME
rpcpassword=MY_RPC_PASSWORD
logtimestamps=1

Obviously, change the MY_RPC_xxx to a username and password.

4) Create a newblock.sh script, with the following contents:

Code:
#!/bin/sh

killall -USR1 eloipool.py

Mark it executeable via "chmod 0755 newblock.sh"

5) Create a run-bitcoind.sh script, with the following contents:

Code:
#!/bin/sh

/spare/repo/bitcoin/src/bitcoind \
-datadir=/spare/bitcoin/data -daemon \
-blocknotify=/garz/repo/eloipool/newblock.sh

Mark it executeable via "chmod 0755 run-bitcoind.sh"

You must modify the (a) bitcoind path, (b) -datadir path, and (c) -blocknotify path to fit your local computer.

6) Run bitcoind via the run-bitcoind.sh script.  Watch debug.log in the data directory, to make sure it started the Initial Block Download (bitcoin network sync).  This might take a few hours, to download all the blocks.  If you are technically minded and motivated, you may download the blockchain torrent (https://bitcointalk.org/index.php?topic=145386.0) to give this process a jump-start.



eloipool setup

1) Download eloipool dependencies, either from your Linux packager, or directly:

Python 3                        http://python.org
python-bitcoinrpc       https://github.com/jgarzik/python-bitcoinrpc
python-base58           https://gitorious.org/bitcoin/python-base58
midstate                        http://gitorious.org/midstate/midstate

2) For python-bitcoinrpc, check out an older release,

Code:
$ cd /repo/python-bitcoinrpc
$ git checkout -b solo-mining 770881c8bd9b1f92427290270b37a28751cf9df0

3) Check out eloipool,

Code:
$ git clone git://gitorious.org/bitcoin/eloipool.git

4) Copy config.py.example to config.py, and make the following several edits,

a) change ServerName to something unique

b) increase share target (note increased '0' and decreased 'f'):
Code:
-ShareTarget = 0x00000000ffffffffffffffffffffffffffffffffffffffffffffffffffffffff
+ShareTarget = 0x000000000fffffffffffffffffffffffffffffffffffffffffffffffffffffff

c) DynamicTargetting = 2

d) DynamicTargetGoal = 6

e) change TrackerAddr to YOUR bitcoin address

f) comment out CoinbaserCmd,

Code:
-CoinbaserCmd = 'echo -e "1\\n$((%d / 100))\\n1579aXhdwvKZEMrAKoCZhzGuqMa8EonuXU"'
+#CoinbaserCmd = 'echo -e "1\\n$((%d / 100))\\n1579aXhdwvKZEMrAKoCZhzGuqMa8EonuXU"'

g) update TemplateSources to point to your local bitcoind RPC, including chosen username/password, and comment out the secondary source:

Code:
@@ -57,41 +57,41 @@
 TemplateSources = (
        {
                'name': 'primary',
-               'uri': 'http://user:pass@localhost:8332',
+               'uri': 'http://MY_RPC_USERNAME:MY_RPC_PASSWORD@127.0.0.1:8332',
                'priority': 0,
                'weight': 1,
        },
-       {
-               'name': 'secondary',
-               'uri': 'http://user:pass@localhost:18332',
-               'priority': 1,
-               'weight': 1,
-       },
+#      {
+#              'name': 'secondary',
+#              'uri': 'http://user:pass@localhost:18332',
+#              'priority': 1,
+#              'weight': 1,
+#      },
 )

g) empty TemplateChecks (or comment out 100%),

Code:
 TemplateChecks = (
 )

h) comment out or delete BlockSubmissions

i) change log settings, and switch from testnet3 mining to mainnet:

Code:
-DelayLogForUpstream = False
+DelayLogForUpstream = True
 
 # Bitcoin p2p server for announcing blocks found
-UpstreamBitcoindNode = ('127.0.0.1', 18333)  # testnet
+UpstreamBitcoindNode = ('127.0.0.1', 8333)
 
 # Network ID for the primary blockchain
 # Other known network IDs can be found at:
 #     https://en.bitcoin.it/wiki/Protocol_specification#Message_structure
-UpstreamNetworkId = b'\xFA\xBF\xB5\xDA'  # testnet
+UpstreamNetworkId = b'\xF9\xBE\xB4\xD9'

j) disable transaction-related bug workaround:

Code:
-POT = 2
+#POT = 2

k) update ShareLogging to reflect your desires.  The simplest is to delete all the SQL-related entries, leaving only the textfile logfile.  With solo mining, you don't care so much about shares.

Code:
ShareLogging = (
        {
                'type': 'logfile',
                'filename': 'share-logfile',
                'format': "{time} {Q(remoteHost)} {username} {YN(not(rejectReason))} {dash(YN(upstreamResult))} {dash(rejectReason)} {solution}\n",
        },
)

l) change log filename to something useful,

Code:
 LogFile = {
-       'filename': 'filename.log',
+       'filename': 'eloipool.log',

m) Create a runit.sh script for eloipool, with the contents,

Code:
#!/bin/sh

PYTHONPATH=/spare/repo/python-bitcoinrpc:/garz/repo/python-base58:/garz/repo/midstate \
     nohup ./eloipool.py 2>&1 >/dev/null &

You must change the paths to suit your local system.

n) Run eloipool with runit.sh script

o) Let's assume you are running the pool software on 192.168.1.40 IP address.  Set up your miner configuration like this:

Pool X: stratum+tcp://192.168.1.40:3334
Pool X username: 1NqqjQWXDLAoNycAS2ZryueuhNLJtcjvGy
Pool X password: x



Title: Re: Avalon users: bitcoind + eloipool configuration
Post by: jgarzik on March 25, 2013, 03:25:37 PM
Reserved.


Title: Re: Avalon users: bitcoind + eloipool configuration
Post by: BitSyncom on March 25, 2013, 03:27:29 PM
much appreciated


Title: Re: Avalon users: bitcoind + eloipool configuration
Post by: wknight on March 25, 2013, 03:31:02 PM
Very nice work!


Title: Re: Avalon users: bitcoind + eloipool configuration
Post by: Vicus on March 25, 2013, 03:32:54 PM
WoW, this is great manual! Thank you!


Title: Re: Avalon users: bitcoind + eloipool configuration
Post by: loshia on March 25, 2013, 06:32:01 PM
WoW, this is great manual! Thank you!
+1


Title: Re: Avalon users: bitcoind + eloipool configuration
Post by: kaerf on March 25, 2013, 06:32:17 PM
thanks jeff. i'd previously set up eloipool by myself and it wasn't the most straight forward process. this will help a lot of people.

i just solo mined my first block with an avalon this morning...it took ~4 days across the diff change. it was a very nerve wracking experience. i'd tested eloipool on testnet and it worked, but wasn't sure if everything was working properly on mainnet. the variance is a killer! i lost a few BTC, but am happy to have a fresh block that I can store away for a rainy day :)

after the diff change, i actually split my hashing power between POT and solo because the variance was killing me (but i'm still a gambler!)...i was literally watching the eloipool log waiting for a block to be solved. (a watched pot never boils).

i'm back to pool mining now. don't have the stomach (or hashing power) for solo mining =P


Title: Re: Avalon users: bitcoind + eloipool configuration
Post by: kaerf on March 25, 2013, 06:41:18 PM
BTW, eloipool step 2 was a pain in the ass to figure out. took me a while to realize the code structure had changed. i think I used the json-compat branch though.


Title: Re: Avalon users: bitcoind + eloipool configuration
Post by: thorvald on March 27, 2013, 01:22:19 PM
do you think you can make a image of the install :D
or a vitrual m
donation for the image will be made


Title: Re: Avalon users: bitcoind + eloipool configuration
Post by: cypherdoc on March 27, 2013, 09:40:18 PM
do you think you can make a image of the install :D
or a vitrual m
donation for the image will be made


i second that.


Title: Re: Avalon users: bitcoind + eloipool configuration
Post by: bennybong on March 27, 2013, 09:45:56 PM
I like this a LOT, can't wait to try it out...


Title: Re: Avalon users: bitcoind + eloipool configuration
Post by: wtfvanity on March 29, 2013, 03:59:06 PM
do you think you can make a image of the install :D
or a vitrual m
donation for the image will be made


i second that.

Yeah... I'll make you an image with no back doors or ways to steal all of your coins...

Just use a pool if you can't follow his easy to use step by step instructions.


Title: Re: Avalon users: bitcoind + eloipool configuration
Post by: loshia on March 29, 2013, 07:03:43 PM
Guy's
Any word on merged mining - BTC+ NMC with this setup. I am aware of the fact namecoind is needed also but what about poll, does it support it?

I found out this is supported. I will paly with it and let you know if i found out how to do it


Title: Re: Avalon users: bitcoind + eloipool configuration
Post by: cypherdoc on March 29, 2013, 07:48:59 PM
do you think you can make a image of the install :D
or a vitrual m
donation for the image will be made


i second that.

Yeah... I'll make you an image with no back doors or ways to steal all of your coins...

Just use a pool if you can't follow his easy to use step by step instructions.

the problem is, many of us don't use linux, ok?

i'd trust Jeff to make an image.


Title: Re: Avalon users: bitcoind + eloipool configuration
Post by: loshia on March 29, 2013, 08:18:28 PM
do you think you can make a image of the install :D
or a vitrual m
donation for the image will be made


i second that.

Yeah... I'll make you an image with no back doors or ways to steal all of your coins...

Just use a pool if you can't follow his easy to use step by step instructions.

the problem is, many of us don't use linux, ok?

i'd trust Jeff to make an image.

Dude,
If you are not using linux, image will help you a lot but still will be not enough. Just install one for a start and get used to it first. Just my 2 cents


Title: Re: Avalon users: bitcoind + eloipool configuration
Post by: wtfvanity on March 29, 2013, 08:41:41 PM
do you think you can make a image of the install :D
or a vitrual m
donation for the image will be made


i second that.

Yeah... I'll make you an image with no back doors or ways to steal all of your coins...

Just use a pool if you can't follow his easy to use step by step instructions.

the problem is, many of us don't use linux, ok?

i'd trust Jeff to make an image.

The problem if you don't know how to use linux and follow the basic steps that are already in this post, are... well, how would you then run the pool? Even just for yourself?

At the very minimum, you would need to go in and delete the bitcoin wallet, because if Jeff made one obviously he wouldn't duplicate his own wallet into the image, it would be empty or a generic one. Are you comfortable doing that in linux? What about all of the SQL related stuff? Troubleshooting?

It seems like to me, if you don't know linux, you shouldn't run this pool. If you have one avalon, join an existing pool. If you have 3 avalons, run each of them solo. There will be variation but with the extra power, on average you'll still be able to pull some blocks down and with less variance than a single machine.

If you want to operate a public pool and do not know linux... then my arguments, well... just please don't.


Title: Re: Avalon users: bitcoind + eloipool configuration
Post by: cypherdoc on March 30, 2013, 02:18:06 AM
do you think you can make a image of the install :D
or a vitrual m
donation for the image will be made


i second that.

Yeah... I'll make you an image with no back doors or ways to steal all of your coins...

Just use a pool if you can't follow his easy to use step by step instructions.

the problem is, many of us don't use linux, ok?

i'd trust Jeff to make an image.

The problem if you don't know how to use linux and follow the basic steps that are already in this post, are... well, how would you then run the pool? Even just for yourself?

At the very minimum, you would need to go in and delete the bitcoin wallet, because if Jeff made one obviously he wouldn't duplicate his own wallet into the image, it would be empty or a generic one. Are you comfortable doing that in linux? What about all of the SQL related stuff? Troubleshooting?

It seems like to me, if you don't know linux, you shouldn't run this pool. If you have one avalon, join an existing pool. If you have 3 avalons, run each of them solo. There will be variation but with the extra power, on average you'll still be able to pull some blocks down and with less variance than a single machine.

If you want to operate a public pool and do not know linux... then my arguments, well... just please don't.

well i know enough to make me dangerous.  ;)  i've run my own small ubuntu server solo pool for a year now w/o any problems.

it's just the eloipool installation stuff above i've never seen before.  i'm sure once i get it installed it shouldn't be much of a problem to maintain.  getting an image installation would help alot of us.


Title: Re: Avalon users: bitcoind + eloipool configuration
Post by: cypherdoc on March 30, 2013, 02:34:12 AM
do you think you can make a image of the install :D
or a vitrual m
donation for the image will be made


i second that.

Yeah... I'll make you an image with no back doors or ways to steal all of your coins...

Just use a pool if you can't follow his easy to use step by step instructions.

the problem is, many of us don't use linux, ok?

i'd trust Jeff to make an image.

The problem if you don't know how to use linux and follow the basic steps that are already in this post, are... well, how would you then run the pool? Even just for yourself?

At the very minimum, you would need to go in and delete the bitcoin wallet, because if Jeff made one obviously he wouldn't duplicate his own wallet into the image, it would be empty or a generic one. Are you comfortable doing that in linux? What about all of the SQL related stuff? Troubleshooting?

It seems like to me, if you don't know linux, you shouldn't run this pool. If you have one avalon, join an existing pool. If you have 3 avalons, run each of them solo. There will be variation but with the extra power, on average you'll still be able to pull some blocks down and with less variance than a single machine.

If you want to operate a public pool and do not know linux... then my arguments, well... just please don't.


Yes, I would agree with this.  You actually don't need to use the SQL stuff if running solo but you need to be able to go in and configure things.  I am going to do it because I am a tinkerer and I am trying to learn all the details about Bitcoin.  I also set up someone to give me paid support if I need it so I probably won't end up saving any money.  Plus I am going to have to keep up with the threads about eloipool and avalons.  A pool is going to do all that stuff for you.  I was going to let others use my solo setup but once I saw that the end user can't control the block reward address I nixed the idea.  If something goes wrong and a block reward is lost (or perceived to be lost) I don't want some 12 page thread claiming I did something with someone's block reward.

don't you use your own block reward address?


Title: Re: Avalon users: bitcoind + eloipool configuration
Post by: Aseras on March 30, 2013, 03:22:50 AM
I would highly suggest that you keep the testnet setting in the config.py and configure your bitcoind to use testnet and mine a few blocks there to make sure your setup is working before you swap it over to the real network.

That's why testnet exists.


Title: Re: Avalon users: bitcoind + eloipool configuration
Post by: wtfvanity on March 30, 2013, 04:01:41 PM
I would highly suggest that you keep the testnet setting in the config.py and configure your bitcoind to use testnet and mine a few blocks there to make sure your setup is working before you swap it over to the real network.

That's why testnet exists.


A very good suggestion. With the testnet difficulty and an avalon you can mine a hundred blocks in less than an hour.


Title: Re: Avalon users: bitcoind + eloipool configuration
Post by: jspielberg on March 30, 2013, 11:43:45 PM
Looking for a little guidance on eloipool setup.

I am fairly comfortable with ubuntu... though a bit new to python.

Anyway... I am running ubuntu 12.04 LTS server, and I think I have a stupid configuration error somewhere.  This is a pretty vanilla ubuntu 12.04 server with python3, libpython3.2, python3-dev, and build-essentials installed via apt.

I followed the top post and after all is said and done, I see in my eloipool.log the following message in a fairly tight loop:

Code:
2013-03-30 17:22:48,844 merkleMaker     CRITICAL        Traceback (most recent call last):
  File "/usr/lib/python3.2/json/decoder.py", line 367, in raw_decode
    obj, end = self.scan_once(s, idx)
StopIteration

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/mining/bitcoin/build/eloipool/merklemaker.py", line 692, in run
    self.merkleMaker_I()
  File "/mining/bitcoin/build/eloipool/merklemaker.py", line 682, in merkleMaker_I
    self.merkleMaker_II()
  File "/mining/bitcoin/build/eloipool/merklemaker.py", line 648, in merkleMaker_II
    return self._updateMerkleTree()
  File "/mining/bitcoin/build/eloipool/merklemaker.py", line 548, in _updateMerkleTree
    self._updateMerkleTree_I()
  File "/mining/bitcoin/build/eloipool/merklemaker.py", line 512, in _updateMerkleTree_I
    r = self._updateMerkleTree_fromTS(TS)
  File "/mining/bitcoin/build/eloipool/merklemaker.py", line 477, in _updateMerkleTree_fromTS
    MP = self._CallGBT(TS)
  File "/mining/bitcoin/build/eloipool/merklemaker.py", line 327, in _CallGBT
    MP = access.getblocktemplate(self.GBTReq)
  File "/mining/bitcoin/build/python-bitcoinrpc/jsonrpc/authproxy.py", line 107, in __call__
    resp = json.loads(resp, parse_float=decimal.Decimal)
  File "/usr/lib/python3.2/json/__init__.py", line 322, in loads
    return cls(**kw).decode(s)
  File "/usr/lib/python3.2/json/decoder.py", line 351, in decode
    obj, end = self.raw_decode(s, idx=_w(s, 0).end())
  File "/usr/lib/python3.2/json/decoder.py", line 369, in raw_decode
    raise ValueError("No JSON object could be decoded")
ValueError: No JSON object could be decoded

I went and edited /usr/lib/python3.2/json/decoder.py so the raise would print "s" as well (i.e. raise ValueError("No JSON object could be decoded"+s) ) to get visibility on the problem message and it turns out to be a 401 error:

Code:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
"http://www.w3.org/TR/1999/REC-html401-19991224/loose.dtd">
<HTML>
<HEAD>
<TITLE>Error</TITLE>
<META HTTP-EQUIV='Content-Type' CONTENT='text/html; charset=ISO-8859-1'>
</HEAD>
<BODY><H1>401 Unauthorized.</H1></BODY>
</HTML>

Any thoughts on what I could be doing wrong?  This is a fresh ubuntu 12.04LTS with the bitcoin.org ppa based bitcoind.  I felt it was safer to use the packaged 0.8.1 bitcoind rather than build my own... but I am not afraid if needed to build it if needed.

I checked my rpc username and password in my bitcoin.conf and config.py to make sure they match.

I thought it might be an access thing... but... I don't see anything suspicious in /var/log.

Any thoughts would be appreciated... or any pointers.  The forum search didn't turn up anything so I thought I would post.

Thanks -


Title: Re: Avalon users: bitcoind + eloipool configuration
Post by: Aseras on March 31, 2013, 01:06:01 AM
In your config.py did you change ALL the test net values to real values? Check every edit in the OP.

Check your bitcoin.conf and make sure you set rpcallowip to 127.0.0.1 and your LAN IP.


Title: Re: Avalon users: bitcoind + eloipool configuration
Post by: cypherdoc on March 31, 2013, 03:52:36 PM

If you want to operate a public pool and do not know linux... then my arguments, well... just please don't.

i can understand your frustration with those of us who don't have the experience with linux that you do.

but my feeling is that you should be encouraging and helping those of us who are willing to mine solo and don't mind the variance.  IMO, mining is becoming too centralized at pools and anyone who can distribute that power away from the pools helps the community at large.  

my personal goal is to always be able to be a full node and mine solo if possible as i think it's more healthy for the network long term.  if it turns out i can't do this b/c i can't get sufficient help then so be it.


Title: Re: Avalon users: bitcoind + eloipool configuration
Post by: Luke-Jr on March 31, 2013, 04:48:54 PM

If you want to operate a public pool and do not know linux... then my arguments, well... just please don't.

i can understand your frustration with those of us who don't have the experience with linux that you do.

but my feeling is that you should be encouraging and helping those of us who are willing to mine solo and don't mind the variance.  IMO, mining is becoming too centralized at pools and anyone who can distribute that power away from the pools helps the community at large.  

my personal goal is to always be able to be a full node and mine solo if possible as i think it's more healthy for the network long term.  if it turns out i can't do this b/c i can't get sufficient help then so be it.
Well, the real reason you can't solo mine is because you're using a fork of cgminer on Avalon.
Encourage the Avalon team to switch to BFGMiner so you can get GBT support that both works and supports solo mining :)
Then you won't need to setup a pool at all.


Title: Re: Avalon users: bitcoind + eloipool configuration
Post by: cypherdoc on March 31, 2013, 07:34:14 PM

If you want to operate a public pool and do not know linux... then my arguments, well... just please don't.

i can understand your frustration with those of us who don't have the experience with linux that you do.

but my feeling is that you should be encouraging and helping those of us who are willing to mine solo and don't mind the variance.  IMO, mining is becoming too centralized at pools and anyone who can distribute that power away from the pools helps the community at large.  

my personal goal is to always be able to be a full node and mine solo if possible as i think it's more healthy for the network long term.  if it turns out i can't do this b/c i can't get sufficient help then so be it.
Well, the real reason you can't solo mine is because you're using a fork of cgminer on Avalon.
Encourage the Avalon team to switch to BFGMiner so you can get GBT support that both works and supports solo mining :)
Then you won't need to setup a pool at all.

that sounds like a reasonable suggestion.

but then how did Garzik solo mine with his cgminer fork and eloipool?


Title: Re: Avalon users: bitcoind + eloipool configuration
Post by: Luke-Jr on March 31, 2013, 07:44:28 PM

If you want to operate a public pool and do not know linux... then my arguments, well... just please don't.

i can understand your frustration with those of us who don't have the experience with linux that you do.

but my feeling is that you should be encouraging and helping those of us who are willing to mine solo and don't mind the variance.  IMO, mining is becoming too centralized at pools and anyone who can distribute that power away from the pools helps the community at large.  

my personal goal is to always be able to be a full node and mine solo if possible as i think it's more healthy for the network long term.  if it turns out i can't do this b/c i can't get sufficient help then so be it.
Well, the real reason you can't solo mine is because you're using a fork of cgminer on Avalon.
Encourage the Avalon team to switch to BFGMiner so you can get GBT support that both works and supports solo mining :)
Then you won't need to setup a pool at all.

that sounds like a reasonable suggestion.

but then how did Garzik solo mine with his cgminer fork and eloipool?
My point is that setting up Eloipool is a workaround to the problem of being unable to solo mine directly.


Title: Re: Avalon users: bitcoind + eloipool configuration
Post by: cypherdoc on March 31, 2013, 07:49:17 PM

If you want to operate a public pool and do not know linux... then my arguments, well... just please don't.

i can understand your frustration with those of us who don't have the experience with linux that you do.

but my feeling is that you should be encouraging and helping those of us who are willing to mine solo and don't mind the variance.  IMO, mining is becoming too centralized at pools and anyone who can distribute that power away from the pools helps the community at large.  

my personal goal is to always be able to be a full node and mine solo if possible as i think it's more healthy for the network long term.  if it turns out i can't do this b/c i can't get sufficient help then so be it.
Well, the real reason you can't solo mine is because you're using a fork of cgminer on Avalon.
Encourage the Avalon team to switch to BFGMiner so you can get GBT support that both works and supports solo mining :)
Then you won't need to setup a pool at all.

that sounds like a reasonable suggestion.

but then how did Garzik solo mine with his cgminer fork and eloipool?
My point is that setting up Eloipool is a workaround to the problem of being unable to solo mine directly.

ah, ok.  seems to me that if BFGminer allows Avalon owners to solo or pool mine directly then indeed it needs consideration.

i'll certainly bring that up when i can but it seems Avalon is pretty set in their ways.  ;D


Title: Re: Avalon users: bitcoind + eloipool configuration
Post by: Aseras on March 31, 2013, 09:51:16 PM

If you want to operate a public pool and do not know linux... then my arguments, well... just please don't.

i can understand your frustration with those of us who don't have the experience with linux that you do.

but my feeling is that you should be encouraging and helping those of us who are willing to mine solo and don't mind the variance.  IMO, mining is becoming too centralized at pools and anyone who can distribute that power away from the pools helps the community at large.  

my personal goal is to always be able to be a full node and mine solo if possible as i think it's more healthy for the network long term.  if it turns out i can't do this b/c i can't get sufficient help then so be it.
Well, the real reason you can't solo mine is because you're using a fork of cgminer on Avalon.
Encourage the Avalon team to switch to BFGMiner so you can get GBT support that both works and supports solo mining :)
Then you won't need to setup a pool at all.

Have a new build of BFGminer to test?

Ckolivas is going to develop remotely on my units next week. Hopefully the issue is close to being fixed.


Title: Re: Avalon users: bitcoind + eloipool configuration
Post by: cypherdoc on March 31, 2013, 10:03:12 PM

Ckolivas is going to develop remotely on my units next week. Hopefully the issue is close to being fixed.

now that is good news.

will he be working on solo mining or just fixing the restarts?


Title: Re: Avalon users: bitcoind + eloipool configuration
Post by: Aseras on April 01, 2013, 01:01:46 AM

Ckolivas is going to develop remotely on my units next week. Hopefully the issue is close to being fixed.

now that is good news.

will he be working on solo mining or just fixing the restarts?

We'll take whatever we can get.


Title: Re: Avalon users: bitcoind + eloipool configuration
Post by: Luke-Jr on April 01, 2013, 01:04:45 AM
Have a new build of BFGminer to test?
Not yet. Due to time constraints, I will probably only be releasing 3.0.0 for Avalon as a package, and try to figure out instructions for Avalon users to install it to the ramdisk.

Ckolivas is going to develop remotely on my units next week. Hopefully the issue is close to being fixed.
Last I heard, he admitted to intentionally making GBT support in cgminer defective, so I kinda doubt that.
Unless he's changed his mind recently, I know solo mining support had never been on his planned features list.


Title: Re: Avalon users: bitcoind + eloipool configuration
Post by: nathanrees19 on April 01, 2013, 01:37:08 AM
Have a new build of BFGminer to test?
Not yet. Due to time constraints, I will probably only be releasing 3.0.0 for Avalon as a package, and try to figure out instructions for Avalon users to install it to the ramdisk.

I discovered a faster way to install BFGminer:

http://static.ddmcdn.com/gif/hammer-1.jpg

Apply this directly to the control board and you're done. Similar end result, but more permanent.

Ckolivas is going to develop remotely on my units next week. Hopefully the issue is close to being fixed.
Last I heard, he admitted to intentionally making GBT support in cgminer defective, so I kinda doubt that.

Consider repeating this a few more times. Maybe add an "Amen" and it will become true!


Title: Re: Avalon users: bitcoind + eloipool configuration
Post by: loshia on April 01, 2013, 09:51:03 AM

If you want to operate a public pool and do not know linux... then my arguments, well... just please don't.

i can understand your frustration with those of us who don't have the experience with linux that you do.

but my feeling is that you should be encouraging and helping those of us who are willing to mine solo and don't mind the variance.  IMO, mining is becoming too centralized at pools and anyone who can distribute that power away from the pools helps the community at large.  

my personal goal is to always be able to be a full node and mine solo if possible as i think it's more healthy for the network long term.  if it turns out i can't do this b/c i can't get sufficient help then so be it.
Well, the real reason you can't solo mine is because you're using a fork of cgminer on Avalon.
Encourage the Avalon team to switch to BFGMiner so you can get GBT support that both works and supports solo mining :)
Then you won't need to setup a pool at all.

Luke,

is it possible to run two avalons (threads) with a single instance of bfgminer currently? what i mean -S/dev/ttyUSB0 -S/dev/ttyUSB1 assuming that both tty's are avalons?

Best


Title: Re: Avalon users: bitcoind + eloipool configuration
Post by: Luke-Jr on April 01, 2013, 03:40:07 PM

If you want to operate a public pool and do not know linux... then my arguments, well... just please don't.

i can understand your frustration with those of us who don't have the experience with linux that you do.

but my feeling is that you should be encouraging and helping those of us who are willing to mine solo and don't mind the variance.  IMO, mining is becoming too centralized at pools and anyone who can distribute that power away from the pools helps the community at large.  

my personal goal is to always be able to be a full node and mine solo if possible as i think it's more healthy for the network long term.  if it turns out i can't do this b/c i can't get sufficient help then so be it.
Well, the real reason you can't solo mine is because you're using a fork of cgminer on Avalon.
Encourage the Avalon team to switch to BFGMiner so you can get GBT support that both works and supports solo mining :)
Then you won't need to setup a pool at all.
is it possible to run two avalons (threads) with a single instance of bfgminer currently? what i mean -S/dev/ttyUSB0 -S/dev/ttyUSB1 assuming that both tty's are avalons?
Yes, just be sure you have an Avalon-enabled build. The default for all other platforms does not have it enabled at the moment.


Title: Re: Avalon users: bitcoind + eloipool configuration
Post by: loshia on April 01, 2013, 06:11:25 PM

If you want to operate a public pool and do not know linux... then my arguments, well... just please don't.

i can understand your frustration with those of us who don't have the experience with linux that you do.

but my feeling is that you should be encouraging and helping those of us who are willing to mine solo and don't mind the variance.  IMO, mining is becoming too centralized at pools and anyone who can distribute that power away from the pools helps the community at large.  

my personal goal is to always be able to be a full node and mine solo if possible as i think it's more healthy for the network long term.  if it turns out i can't do this b/c i can't get sufficient help then so be it.
Well, the real reason you can't solo mine is because you're using a fork of cgminer on Avalon.
Encourage the Avalon team to switch to BFGMiner so you can get GBT support that both works and supports solo mining :)
Then you won't need to setup a pool at all.
is it possible to run two avalons (threads) with a single instance of bfgminer currently? what i mean -S/dev/ttyUSB0 -S/dev/ttyUSB1 assuming that both tty's are avalons?
Yes, just be sure you have an Avalon-enabled build. The default for all other platforms does not have it enabled at the moment.
10X Luke.I will give it a shot sooner. I am waiting for my er703 spare to arive


Title: Re: Avalon users: bitcoind + eloipool configuration
Post by: jspielberg on April 04, 2013, 05:17:23 AM
So... I rebuilt the server from scratch and everything seems to be working now... thanks for the steps.

One hint for fellow ubuntu folks. I don't recommend using the prebuilt bitcoind.  I think that was what was giving me grief the first time around.  Build it yourself by following TikToc's steps in "Avalon users: bitcoind and slush's/generalfaults mining pool setup" thread.  Follow the steps for building bitcoind and you should be good to go.



Title: Re: Avalon users: bitcoind + eloipool configuration
Post by: zero-asic on April 07, 2013, 12:14:38 AM
Has anyone else tried running eloipool against the test network?  I set it up with this configuration, but when I tried the test network it gave me errors in cgminer.


Title: Re: Avalon users: bitcoind + eloipool configuration
Post by: Aseras on April 07, 2013, 02:34:02 AM
Has anyone else tried running eloipool against the test network?  I set it up with this configuration, but when I tried the test network it gave me errors in cgminer.

Works fine. Make sure you haven't commented out the test net stuff in config.py

Also there's a stratum bug on LP for new blocks the 2 arguments given blah whatever, it's ok to ignore.


Title: Re: Avalon users: bitcoind + eloipool configuration
Post by: zero-asic on April 07, 2013, 02:48:24 AM
Has anyone else tried running eloipool against the test network?  I set it up with this configuration, but when I tried the test network it gave me errors in cgminer.

Works fine. Make sure you haven't commented out the test net stuff in config.py

Also there's a stratum bug on LP for new blocks the 2 arguments given blah whatever, it's ok to ignore.

If I can ignore that then maybe I should post my install scripts.  I have it set up on my machine with my avalon pointed at it, but it hasn't found a block yet.

If anyone wants to test some install scripts for setting up eloipool + bitcoind on Ubuntu 12.04 send me a PM.


Edit: A link to the scripts is in my sig.


Title: Re: Avalon users: bitcoind + eloipool configuration
Post by: tiktoc on April 07, 2013, 05:20:28 PM
If you are on testnet and you havent found a block yet with a avalon something is wrong. With a dual GPU normally find one every 5 to 10 minutes


Title: Re: Avalon users: bitcoind + eloipool configuration
Post by: cypherdoc on April 07, 2013, 05:39:07 PM
If you are on testnet and you havent found a block yet with a avalon something is wrong. With a dual GPU normally find one every 5 to 10 minutes

thats about the rate i was finding them in the other thread. 

what use is it for me to send those testnet coins to that faucet?


Title: Re: Avalon users: bitcoind + eloipool configuration
Post by: zero-asic on April 07, 2013, 05:57:17 PM
If you are on testnet and you havent found a block yet with a avalon something is wrong. With a dual GPU normally find one every 5 to 10 minutes

I found a bunch of blocks on the testnet.  I just haven't found any with my avalon in production yet.  With eloipool and the 3/25 firmware it's completely stable and seems to run at just over 67000 constantly.


Title: Re: Avalon users: bitcoind + eloipool configuration
Post by: Aseras on April 08, 2013, 02:47:38 AM
On testnet with 2 avalons I find 10-20 blocks per minute. It's nuts.


Also don't be a dick and mine testnet difficulty sky high. Use an alt coin :D


Title: Re: Avalon users: bitcoind + eloipool configuration
Post by: senseless on April 09, 2013, 07:38:42 PM

Works fine. Make sure you haven't commented out the test net stuff in config.py

Also there's a stratum bug on LP for new blocks the 2 arguments given blah whatever, it's ok to ignore.

This one? Completely prevents it from working properly. No idea what the problem could be.

Code:
Traceback (most recent call last):
  File "./eloipool.py", line 827, in <module>
    name, parameters = i
ValueError: too many values to unpack (expected 2)

Edit:

Luke-JR told me mis-configuration in the sharelogging. (if anyone else runs into this problem)



Title: Re: Avalon users: bitcoind + eloipool configuration
Post by: Aseras on April 09, 2013, 07:49:45 PM
make sure you didn't remove a , or a )

even if the line is commented you have to leave the end ,

READ the first few lines of the config.py

the example is how NOT to do it.


Title: Re: Avalon users: bitcoind + eloipool configuration
Post by: tiktoc on April 09, 2013, 09:36:18 PM
If you are on testnet and you havent found a block yet with a avalon something is wrong. With a dual GPU normally find one every 5 to 10 minutes

thats about the rate i was finding them in the other thread. 

what use is it for me to send those testnet coins to that faucet?

People who wish to test stuff/apps/etc with with testnet coins can use to it get some without mining for them :)


And re the poster about not driving testnet difficulty up, right on. Devs might get cranky otherwise lol


Title: Re: Avalon users: bitcoind + eloipool configuration
Post by: zero-asic on April 09, 2013, 10:17:25 PM
If anyone wants to test some install scripts for setting up eloipool + bitcoind on Ubuntu 12.04 send me a PM.

I posted the install scripts for Ubuntu 12.04 and started a forum topic for them in Mining > Mining Support.
https://bitcointalk.org/index.php?topic=171782


Title: Re: Avalon users: bitcoind + eloipool configuration
Post by: irritant on April 10, 2013, 10:29:03 AM
If you are on testnet and you havent found a block yet with a avalon something is wrong. With a dual GPU normally find one every 5 to 10 minutes

thats about the rate i was finding them in the other thread. 

what use is it for me to send those testnet coins to that faucet?

People who wish to test stuff/apps/etc with with testnet coins can use to it get some without mining for them :)


And re the poster about not driving testnet difficulty up, right on. Devs might get cranky otherwise lol

there is also testnet in a box, havent tried it out tho


Title: Re: Avalon users: bitcoind + eloipool configuration
Post by: CrazyGuy on April 20, 2013, 05:47:32 AM
Thanks for the writeup Jgarzik!

What kind of hardware utilization are you seeing out of eliopool? I noticed you suggested using an SSD, is eliopool a high IOPS application? Were you experiencing any disk queuing with lower speed drives, resulting in a performance drop, or did you anticipate this? How about RAM usage?

I'm building out a low powered atom based mini pc that I plan on running multiple instances of bfg or cgminer, along with eliopool. I want to make sure I cover all of my bases. Thanks again.


Title: Re: Avalon users: bitcoind + eloipool configuration
Post by: intrd on May 01, 2013, 11:41:03 AM
When installing Eloipool(lastver) w/ Bitcoind (lastver)..
I'm stuck on 401 error when authproxy.py try to connect at my bitcoind.. but L/P is correct, port is correct, localhost allowed, all seems ok..
 
bitcoind debug.log:
ThreadRPCServer incorrect password attempt from ::ffff:127.0.0.1
 
into authproxy.py i've debbuged the output with +s to see what json trying to decode:
 
Quote
ValueError: No JSON object could be decoded
<!DOCTYPE HTML PUBLIC "-//W3C//DTD H$
"http://www.w3.org/TR/1999/REC-html401-19991224/loose.dtd">
<HTML>
<HEAD>
<TITLE>Error</TITLE>
<META HTTP-EQUIV='Content-Type' CONTENT='text/html; charset=ISO-8859-1'>
</HEAD>
<BODY><H1>401 Unauthorized.</H1></BODY>
</HTML>

i've checked a lot the password+login and is ok:
 
bitcoin.conf...
Quote
rpcuser=intrd
rpcpassword=123

config.py...
Quote
'uri': 'http://intrd:123@localhost:8332'

And..
yes.. i've tried the Zero-asic installation script! https://bitcointalk.org/index.php?topic=171782.0 and stuck on the same error..
yes.. i've read entire forum..
yes.. bitcoind is running and synced ok! i've tested trying to connect at port 8332 using a miner client...

 
my ports:
 
Quote
root@nossapool:/opt/nossapool/scripts# netstat -tlnp
Active Internet connections (only servers)
Proto Recv-Q Send-Q Local Address           Foreign Address         State
PID/Program name
tcp        0      0 127.0.0.1:3306          0.0.0.0:*               LISTEN
865/mysqld
tcp        0      0 127.0.0.1:8332          0.0.0.0:*               LISTEN
13842/bitcoind
tcp        0      0 0.0.0.0:8333            0.0.0.0:*               LISTEN
13842/bitcoind
tcp        0      0 0.0.0.0:80              0.0.0.0:*               LISTEN
1127/apache2
tcp        0      0 0.0.0.0:22              0.0.0.0:*               LISTEN
662/sshd
tcp6       0      0 ::1:8332                :::*                    LISTEN
13842/bitcoind
tcp6       0      0 :::8333                 :::*                    LISTEN
13842/bitcoind
tcp6       0      0 :::22                   :::*                    LISTEN
662/sshd

what can i do?
someone can helpme, i'm troubleshooting for a days..
thanks!


Title: Re: Avalon users: bitcoind + eloipool configuration
Post by: Aseras on May 01, 2013, 02:03:51 PM
put this in your bitcoin.conf

Quote
server=1
rpcallowip=127.0.0.1


Title: Re: Avalon users: bitcoind + eloipool configuration
Post by: intrd on May 01, 2013, 04:06:02 PM
put this in your bitcoin.conf

Quote
server=1
rpcallowip=127.0.0.1

These flags were already active at my bitcoin.conf,
bitcoind is running and synced ok! i've tested trying to connect at port 8332 using a miner client...



Title: Re: Avalon users: bitcoind + eloipool configuration
Post by: pantehicon on May 02, 2013, 03:01:49 PM
Looking for a little guidance on eloipool setup.

I am fairly comfortable with ubuntu... though a bit new to python.

Anyway... I am running ubuntu 12.04 LTS server, and I think I have a stupid configuration error somewhere.  This is a pretty vanilla ubuntu 12.04 server with python3, libpython3.2, python3-dev, and build-essentials installed via apt.

I followed the top post and after all is said and done, I see in my eloipool.log the following message in a fairly tight loop:

You aren't doing anything wrong. I got the same thing. It seems to be a bug in the bitcoin-jsonrpc package, which is writing invalid basic-auth  headers out to bitcoind. It's setting the header to:

Code:
Basic b'....base64stuff...' 
rather than

Code:
  Basic ....base64stuff...
likely because it wasn't written for python3. I have no idea how this code would have ever worked, unless someone is running their bitcoind wide open without RPC passwords, or is using a different sort of authentication.

A quick fix is to decode the bytes into UTF-8. On line 72 of bitcoinrpc/authproxy.py change:

Code:
self.__auth_header = "Basic %s" % base64.b64encode(authpair)
to read:

Code:
self.__auth_header = "Basic %s" % base64.b64encode(authpair).decode()

Hope this helps


Title: Re: Avalon users: bitcoind + eloipool configuration
Post by: pantehicon on May 02, 2013, 03:03:25 PM
The same should help with others getting nonsensical 401 errors (well, JSON decode errors on the console) to bitcoind on startup.


Title: Re: Avalon users: bitcoind + eloipool configuration
Post by: Aseras on May 02, 2013, 03:13:14 PM
the only way you would get that if if you compiled on 2 different systems. Or you are using prebuilt binaries.


Title: Re: Avalon users: bitcoind + eloipool configuration
Post by: intrd on May 02, 2013, 04:40:26 PM
The same should help with others getting nonsensical 401 errors (well, JSON decode errors on the console) to bitcoind on startup.

Woa!!
thanks a l0t @pantehicon, this fixed my auth problem!!



Title: Re: Avalon users: bitcoind + eloipool configuration
Post by: intrd on May 03, 2013, 04:47:03 AM
Eloipool is ok, accepting connections.. but now returning this error:

Quote
2013-05-03 01:33:25,875 merkleMaker     CRITICAL        Traceback (most recent call last):
  File "/xxpool/eloipool/merklemaker.py", line 692, in run
    self.merkleMaker_I()
  File "/xxpool/eloipool/merklemaker.py", line 682, in merkleMaker_I
    self.merkleMaker_II()
  File "/xxpool/eloipool/merklemaker.py", line 660, in merkleMaker_II
    return self._updateMerkleTree()
  File "/xxpool/eloipool/merklemaker.py", line 548, in _updateMerkleTree
    self._updateMerkleTree_I()
  File "/xxpool/eloipool/merklemaker.py", line 512, in _updateMerkleTree_I
    r = self._updateMerkleTree_fromTS(TS)
  File "/xxpool/eloipool/merklemaker.py", line 477, in _updateMerkleTree_fromTS
    MP = self._CallGBT(TS)
  File "/xxpool/eloipool/merklemaker.py", line 327, in _CallGBT
    MP = access.getblocktemplate(self.GBTReq)
  File "/xxpool/eloipool/bitcoinrpc/authproxy.py", line 102, in __call__
    response = self._get_response()
  File "/xxpool/eloipool/bitcoinrpc/authproxy.py", line 122, in _get_response
    http_response = self.__conn.getresponse()
  File "/usr/lib/python3.2/http/client.py", line 1049, in getresponse
    response.begin()
  File "/usr/lib/python3.2/http/client.py", line 346, in begin
    version, status, reason = self._read_status()
  File "/usr/lib/python3.2/http/client.py", line 308, in _read_status
    line = str(self.fp.readline(_MAXLINE + 1), "iso-8859-1")
  File "/usr/lib/python3.2/socket.py", line 276, in readinto
    return self._sock.recv_into(b)
socket.timeout: timed out

I just saw the bitcoind log, this error seems to happen when eloipool sends ThreadRPCServer method=getmemorypool to bitcoind...

What can trigger this error?


Title: Re: Avalon users: bitcoind + eloipool configuration
Post by: smracer on May 03, 2013, 05:00:56 PM
root@ubuntu:/var/www/eloipool# python3 eloipool.py
2013-05-03 11:59:15,743 jsonrpc_getwork WARNING Error importing 'midstate' module; work will not provide midstates

>>> Traceback (most recent call last):
  File "eloipool.py", line 915, in <module>
    MM.start()
  File "/var/www/eloipool/merklemaker.py", line 697, in start
    self._prepare()
  File "/var/www/eloipool/merklemaker.py", line 120, in _prepare
    TS['access'] = URI2Access(TS['uri'])
  File "/var/www/eloipool/merklemaker.py", line 110, in URI2Access
    access = jsonrpc.ServiceProxy(uri)
AttributeError: 'module' object has no attribute 'ServiceProxy'


What am I doing wrong?


Title: Re: Avalon users: bitcoind + eloipool configuration
Post by: intrd on May 03, 2013, 05:55:20 PM
root@ubuntu:/var/www/eloipool# python3 eloipool.py
2013-05-03 11:59:15,743 jsonrpc_getwork WARNING Error importing 'midstate' module; work will not provide midstates

>>> Traceback (most recent call last):
  File "eloipool.py", line 915, in <module>
    MM.start()
  File "/var/www/eloipool/merklemaker.py", line 697, in start
    self._prepare()
  File "/var/www/eloipool/merklemaker.py", line 120, in _prepare
    TS['access'] = URI2Access(TS['uri'])
  File "/var/www/eloipool/merklemaker.py", line 110, in URI2Access
    access = jsonrpc.ServiceProxy(uri)
AttributeError: 'module' object has no attribute 'ServiceProxy'


What am I doing wrong?

Run eloipool using runit.sh script..

#!/bin/sh

PYTHONPATH=/path/of/python-bitcoinrpc:/path/of/python-base58:/garz/repo/midstate \
     nohup ./eloipool.py 2>&1 >/dev/null &


Title: Re: Avalon users: bitcoind + eloipool configuration
Post by: intrd on May 03, 2013, 05:57:09 PM
Thanks all, my pool seems ok..
But, this is normal?? A lot of "Transaction-longpoll requested N seconds ago.."

Quote
2013-05-03 14:34:43,884   merkleMaker   WARNING   Transaction-longpoll requested 15 seconds ago, and still not ready. Is your server fast enough to keep up with your configured WorkQueueSizeRegular maximum? (doing clear merkle roots)
2013-05-03 14:34:48,916   merkleMaker   WARNING   Transaction-longpoll requested 20 seconds ago, and still not ready. Is your server fast enough to keep up with your configured WorkQueueSizeRegular maximum? (doing clear merkle roots)
2013-05-03 14:34:48,937   merkleMaker   WARNING   Haven't updated the merkle tree in at least 20 seconds! Is your server fast enough to keep up with your configured work queue minimums? (doing clear merkle roots)
2013-05-03 14:34:53,937   merkleMaker   WARNING   Transaction-longpoll requested 25 seconds ago, and still not ready. Is your server fast enough to keep up with your configured WorkQueueSizeRegular maximum? (doing clear merkle roots)
2013-05-03 14:34:54,020   merkleMaker   WARNING   Haven't updated the merkle tree in at least 25 seconds! Is your server fast enough to keep up with your configured work queue minimums? (doing clear merkle roots)
2013-05-03 14:34:58,957   merkleMaker   WARNING   Transaction-longpoll requested 30 seconds ago, and still not ready. Is your server fast enough to keep up with your configured WorkQueueSizeRegular maximum? (doing clear merkle roots)
2013-05-03 14:34:59,002   merkleMaker   WARNING   Haven't updated the merkle tree in at least 30 seconds! Is your server fast enough to keep up with your configured work queue minimums? (doing clear merkle roots)
2013-05-03 14:35:03,936   merkleMaker   WARNING   Transaction-longpoll requested 35 seconds ago, and still not ready. Is your server fast enough to keep up with your configured WorkQueueSizeRegular maximum? (doing clear merkle roots)
2013-05-03 14:35:03,962   merkleMaker   WARNING   Haven't updated the merkle tree in at least 35 seconds! Is your server fast enough to keep up with your configured work queue minimums? (doing clear merkle roots)
2013-05-03 14:35:08,942   merkleMaker   WARNING   Transaction-longpoll requested 40 seconds ago, and still not ready. Is your server fast enough to keep up with your configured WorkQueueSizeRegular maximum? (doing clear merkle roots)
2013-05-03 14:35:08,980   merkleMaker   WARNING   Haven't updated the merkle tree in at least 40 seconds! Is your server fast enough to keep up with your configured work queue minimums? (doing clear merkle roots)
2013-05-03 14:35:13,969   merkleMaker   WARNING   Transaction-longpoll requested 45 seconds ago, and still not ready. Is your server fast enough to keep up with your configured WorkQueueSizeRegular maximum? (doing clear merkle roots)
2013-05-03 14:35:14,018   merkleMaker   WARNING   Haven't updated the merkle tree in at least 45 seconds! Is your server fast enough to keep up with your configured work queue minimums? (doing clear merkle roots)
2013-05-03 14:35:18,977   merkleMaker   WARNING   Transaction-longpoll requested 50 seconds ago, and still not ready. Is your server fast enough to keep up with your configured WorkQueueSizeRegular maximum? (doing clear merkle roots)
2013-05-03 14:35:19,056   merkleMaker   WARNING   Haven't updated the merkle tree in at least 50 seconds! Is your server fast enough to keep up with your configured work queue minimums? (doing clear merkle roots)
2013-05-03 14:35:23,968   merkleMaker   WARNING   Transaction-longpoll requested 55 seconds ago, and still not ready. Is your server fast enough to keep up with your configured WorkQueueSizeRegular maximum? (doing clear merkle roots)
2013-05-03 14:35:24,020   merkleMaker   WARNING   Haven't updated the merkle tree in at least 55 seconds! Is your server fast enough to keep up with your configured work queue minimums? (doing clear merkle roots)
2013-05-03 14:35:28,983   merkleMaker   WARNING   Transaction-longpoll requested 60 seconds ago, and still not ready. Is your server fast enough to keep up with your configured WorkQueueSizeRegular maximum? (doing clear merkle roots)
2013-05-03 14:35:29,017   merkleMaker   WARNING   Haven't updated the merkle tree in at least 60 seconds! Is your server fast enough to keep up with your configured work queue minimums? (doing clear merkle roots)
2013-05-03 14:35:33,993   merkleMaker   WARNING   Transaction-longpoll requested 65 seconds ago, and still not ready. Is your server fast enough to keep up with your configured WorkQueueSizeRegular maximum? (doing clear merkle roots)
2013-05-03 14:35:34,052   merkleMaker   WARNING   Haven't updated the merkle tree in at least 65 seconds! Is your server fast enough to keep up with your configured work queue minimums? (doing clear merkle roots)
2013-05-03 14:35:39,004   merkleMaker   WARNING   Transaction-longpoll requested 70 seconds ago, and still not ready. Is your server fast enough to keep up with your configured WorkQueueSizeRegular maximum? (doing clear merkle roots)
2013-05-03 14:35:39,045   merkleMaker   WARNING   Haven't updated the merkle tree in at least 70 seconds! Is your server fast enough to keep up with your configured work queue minimums? (doing clear merkle roots)
2013-05-03 14:35:44,005   merkleMaker   WARNING   Transaction-longpoll requested 75 seconds ago, and still not ready. Is your server fast enough to keep up with your configured WorkQueueSizeRegular maximum? (doing clear merkle roots)
2013-05-03 14:35:44,088   merkleMaker   WARNING   Haven't updated the merkle tree in at least 75 seconds! Is your server fast enough to keep up with your configured work queue minimums? (doing clear merkle roots)
2013-05-03 14:35:49,026   merkleMaker   WARNING   Transaction-longpoll requested 80 seconds ago, and still not ready. Is your server fast enough to keep up with your configured WorkQueueSizeRegular maximum? (doing clear merkle roots)
2013-05-03 14:35:49,060   merkleMaker   WARNING   Haven't updated the merkle tree in at least 80 seconds! Is your server fast enough to keep up with your configured work queue minimums? (doing clear merkle roots)
2013-05-03 14:35:54,038   merkleMaker   WARNING   Transaction-longpoll requested 85 seconds ago, and still not ready. Is your server fast enough to keep up with your configured WorkQueueSizeRegular maximum? (doing clear merkle roots)
2013-05-03 14:35:54,057   merkleMaker   WARNING   Haven't updated the merkle tree in at least 85 seconds! Is your server fast enough to keep up with your configured work queue minimums? (doing clear merkle roots)
2013-05-03 14:35:59,101   merkleMaker   WARNING   Transaction-longpoll requested 90 seconds ago, and still not ready. Is your server fast enough to keep up with your configured WorkQueueSizeRegular maximum? (doing clear merkle roots)
2013-05-03 14:35:59,215   merkleMaker   WARNING   Haven't updated the merkle tree in at least 90 seconds! Is your server fast enough to keep up with your configured work queue minimums? (doing clear merkle roots)
2013-05-03 14:36:04,135   merkleMaker   WARNING   Transaction-longpoll requested 95 seconds ago, and still not ready. Is your server fast enough to keep up with your configured WorkQueueSizeRegular maximum? (doing longpoll merkle roots)
2013-05-03 14:36:04,217   merkleMaker   WARNING   Haven't updated the merkle tree in at least 95 seconds! Is your server fast enough to keep up with your configured work queue minimums? (doing longpoll merkle roots)
2013-05-03 14:36:09,152   merkleMaker   WARNING   Transaction-longpoll requested 100 seconds ago, and still not ready. Is your server fast enough to keep up with your configured WorkQueueSizeRegular maximum? (doing longpoll merkle roots)
2013-05-03 14:36:09,247   merkleMaker   WARNING   Haven't updated the merkle tree in at least 100 seconds! Is your server fast enough to keep up with your configured work queue minimums? (doing longpoll merkle roots)
2013-05-03 14:36:14,153   merkleMaker   WARNING   Transaction-longpoll requested 105 seconds ago, and still not ready. Is your server fast enough to keep up with your configured WorkQueueSizeRegular maximum? (doing longpoll merkle roots)
2013-05-03 14:36:14,172   merkleMaker   WARNING   Haven't updated the merkle tree in at least 105 seconds! Is your server fast enough to keep up with your configured work queue minimums? (doing longpoll merkle roots)
2013-05-03 14:36:19,156   merkleMaker   WARNING   Transaction-longpoll requested 110 seconds ago, and still not ready. Is your server fast enough to keep up with your configured WorkQueueSizeRegular maximum? (doing longpoll merkle roots)
2013-05-03 14:36:19,184   merkleMaker   WARNING   Haven't updated the merkle tree in at least 110 seconds! Is your server fast enough to keep up with your configured work queue minimums? (doing longpoll merkle roots)
2013-05-03 14:36:24,171   merkleMaker   WARNING   Transaction-longpoll requested 115 seconds ago, and still not ready. Is your server fast enough to keep up with your configured WorkQueueSizeRegular maximum? (doing longpoll merkle roots)
2013-05-03 14:36:24,235   merkleMaker   WARNING   Haven't updated the merkle tree in at least 115 seconds! Is your server fast enough to keep up with your configured work queue minimums? (doing longpoll merkle roots)
2013-05-03 14:36:29,194   merkleMaker   WARNING   Transaction-longpoll requested 120 seconds ago, and still not ready. Is your server fast enough to keep up with your configured WorkQueueSizeRegular maximum? (doing longpoll merkle roots)
2013-05-03 14:36:29,278   merkleMaker   WARNING   Haven't updated the merkle tree in at least 120 seconds! Is your server fast enough to keep up with your configured work queue minimums? (doing longpoll merkle roots)
2013-05-03 14:36:34,176   merkleMaker   WARNING   Transaction-longpoll requested 125 seconds ago, and still not ready. Is your server fast enough to keep up with your configured WorkQueueSizeRegular maximum? (doing longpoll merkle roots)
2013-05-03 14:36:34,217   merkleMaker   WARNING   Haven't updated the merkle tree in at least 125 seconds! Is your server fast enough to keep up with your configured work queue minimums? (doing longpoll merkle roots)
2013-05-03 14:36:39,204   merkleMaker   WARNING   Transaction-longpoll requested 130 seconds ago, and still not ready. Is your server fast enough to keep up with your configured WorkQueueSizeRegular maximum? (doing longpoll merkle roots)
2013-05-03 14:36:39,256   merkleMaker   WARNING   Haven't updated the merkle tree in at least 130 seconds! Is your server fast enough to keep up with your configured work queue minimums? (doing longpoll merkle roots)
2013-05-03 14:36:44,204   merkleMaker   WARNING   Transaction-longpoll requested 135 seconds ago, and still not ready. Is your server fast enough to keep up with your configured WorkQueueSizeRegular maximum? (doing longpoll merkle roots)
2013-05-03 14:36:44,341   merkleMaker   WARNING   Haven't updated the merkle tree in at least 135 seconds! Is your server fast enough to keep up with your configured work queue minimums? (doing longpoll merkle roots)
2013-05-03 14:36:49,204   merkleMaker   WARNING   Transaction-longpoll requested 140 seconds ago, and still not ready. Is your server fast enough to keep up with your configured WorkQueueSizeRegular maximum? (doing longpoll merkle roots)
2013-05-03 14:36:49,260   merkleMaker   WARNING   Haven't updated the merkle tree in at least 140 seconds! Is your server fast enough to keep up with your configured work queue minimums? (doing longpoll merkle roots)
2013-05-03 14:36:54,335   merkleMaker   WARNING   Transaction-longpoll requested 145 seconds ago, and still not ready. Is your server fast enough to keep up with your configured WorkQueueSizeRegular maximum? (doing longpoll merkle roots)
2013-05-03 14:36:54,395   merkleMaker   WARNING   Haven't updated the merkle tree in at least 145 seconds! Is your server fast enough to keep up with your configured work queue minimums? (doing longpoll merkle roots)
2013-05-03 14:36:59,309   merkleMaker   WARNING   Transaction-longpoll requested 150 seconds ago, and still not ready. Is your server fast enough to keep up with your configured WorkQueueSizeRegular maximum? (doing longpoll merkle roots)
2013-05-03 14:36:59,348   merkleMaker   WARNING   Haven't updated the merkle tree in at least 150 seconds! Is your server fast enough to keep up with your configured work queue minimums? (doing longpoll merkle roots)
2013-05-03 14:37:04,308   merkleMaker   WARNING   Transaction-longpoll requested 155 seconds ago, and still not ready. Is your server fast enough to keep up with your configured WorkQueueSizeRegular maximum? (doing longpoll merkle roots)
2013-05-03 14:37:04,355   merkleMaker   WARNING   Haven't updated the merkle tree in at least 155 seconds! Is your server fast enough to keep up with your configured work queue minimums? (doing longpoll merkle roots)
2013-05-03 14:37:09,338   merkleMaker   WARNING   Transaction-longpoll requested 160 seconds ago, and still not ready. Is your server fast enough to keep up with your configured WorkQueueSizeRegular maximum? (doing longpoll merkle roots)
2013-05-03 14:37:09,378   merkleMaker   WARNING   Haven't updated the merkle tree in at least 160 seconds! Is your server fast enough to keep up with your configured work queue minimums? (doing longpoll merkle roots)
2013-05-03 14:37:11,115   merkleMaker   INFO   New block: 00000000000000eafbb1f94f208e5d31a1ebcf382f19395ca4650cc2b1ac5928 (height: 234368; bits: 1a01aa3d)
2013-05-03 14:37:11,123   JSONRPCServer   INFO   Longpoll woke up 4 clients in 0.003 seconds
2013-05-03 14:37:13,074   JSONRPCServer   INFO   Waiting 3.05 seconds to longpoll


Title: Re: Avalon users: bitcoind + eloipool configuration
Post by: smracer on May 03, 2013, 06:10:37 PM
root@ubuntu:/var/www/eloipool# python3 eloipool.py
2013-05-03 11:59:15,743 jsonrpc_getwork WARNING Error importing 'midstate' module; work will not provide midstates

>>> Traceback (most recent call last):
  File "eloipool.py", line 915, in <module>
    MM.start()
  File "/var/www/eloipool/merklemaker.py", line 697, in start
    self._prepare()
  File "/var/www/eloipool/merklemaker.py", line 120, in _prepare
    TS['access'] = URI2Access(TS['uri'])
  File "/var/www/eloipool/merklemaker.py", line 110, in URI2Access
    access = jsonrpc.ServiceProxy(uri)
AttributeError: 'module' object has no attribute 'ServiceProxy'


What am I doing wrong?

Run eloipool using runit.sh script..

#!/bin/sh

PYTHONPATH=/path/of/python-bitcoinrpc:/path/of/python-base58:/garz/repo/midstate \
     nohup ./eloipool.py 2>&1 >/dev/null &


I tried that.  Same error. 


Title: Re: Avalon users: bitcoind + eloipool configuration
Post by: smracer on May 03, 2013, 06:25:51 PM
Actually I get this error now that I fixed midstate

root@ubuntu:/var/www/eloipool# ./runit.sh

>>> Traceback (most recent call last):
  File "./eloipool.py", line 915, in <module>
    MM.start()
  File "/var/www/eloipool/merklemaker.py", line 697, in start
    self._prepare()
  File "/var/www/eloipool/merklemaker.py", line 120, in _prepare
    TS['access'] = URI2Access(TS['uri'])
  File "/var/www/eloipool/merklemaker.py", line 110, in URI2Access
    access = jsonrpc.ServiceProxy(uri)
AttributeError: 'module' object has no attribute 'ServiceProxy'


Title: Re: Avalon users: bitcoind + eloipool configuration
Post by: jgarzik on May 03, 2013, 07:10:56 PM
PYTHONPATH=/path/of/python-bitcoinrpc:/path/of/python-base58:/garz/repo/midstate \
     nohup ./eloipool.py 2>&1 >/dev/null &

Did you all change the "/path/of/" and "/garz/repo/" paths to point to the proper directory?



Title: Re: Avalon users: bitcoind + eloipool configuration
Post by: smracer on May 03, 2013, 07:14:38 PM
!/bin/sh

PYTHONPATH=/var/www/eloipool/python-bitcoinrpc:/var/www/eloipool/python-base58:/var/www/eloipool/midstate \
     ./eloipool.py




Title: Re: Avalon users: bitcoind + eloipool configuration
Post by: intrd on May 03, 2013, 07:50:27 PM
!/bin/sh

PYTHONPATH=/var/www/eloipool/python-bitcoinrpc:/var/www/eloipool/python-base58:/var/www/eloipool/midstate \
     ./eloipool.py




try to point jsonrpc too.. like this:

PYTHONPATH=$PYTHONPATH:$DIR/../python-bitcoinrpc/jsonrpc:$DIR/../python-bitcoinrpc/bitcoinrpc:$DIR/../python-base58:$DIR/../midstate \

in your case, replace $DIR variable to absolute path!



Title: Re: Avalon users: bitcoind + eloipool configuration
Post by: intrd on May 03, 2013, 07:52:04 PM
jgarzik:
this is normal? https://bitcointalk.org/index.php?topic=158105.msg2017114#msg2017114



Title: Re: Avalon users: bitcoind + eloipool configuration
Post by: smracer on May 03, 2013, 07:58:52 PM
!/bin/sh

PYTHONPATH=/var/www/eloipool/python-bitcoinrpc:/var/www/eloipool/python-base58:/var/www/eloipool/midstate \
     ./eloipool.py




try to point jsonrpc too.. like this:

PYTHONPATH=$PYTHONPATH:$DIR/../python-bitcoinrpc/jsonrpc:$DIR/../python-bitcoinrpc/bitcoinrpc:$DIR/../python-base58:$DIR/../midstate \

in your case, replace $DIR variable to absolute path!



Ok I pointed the jsonrpc as well and now i get this error.

root@ubuntu:/var/www/eloipool# ./runit.sh
Traceback (most recent call last):
  File "./eloipool.py", line 127, in <module>
    import jsonrpc_getwork
  File "/var/www/eloipool/jsonrpc_getwork.py", line 18, in <module>
    from jsonrpcserver import JSONRPCHandler
  File "/var/www/eloipool/jsonrpcserver.py", line 19, in <module>
    import json
  File "/var/www/eloipool/python-bitcoinrpc/jsonrpc/json.py", line 2, in <module>
    loads = _json.loads
AttributeError: 'module' object has no attribute 'loads'



Title: Re: Avalon users: bitcoind + eloipool configuration
Post by: smracer on May 08, 2013, 08:28:51 PM
Looking for a little guidance on eloipool setup.

I am fairly comfortable with ubuntu... though a bit new to python.

Anyway... I am running ubuntu 12.04 LTS server, and I think I have a stupid configuration error somewhere.  This is a pretty vanilla ubuntu 12.04 server with python3, libpython3.2, python3-dev, and build-essentials installed via apt.

I followed the top post and after all is said and done, I see in my eloipool.log the following message in a fairly tight loop:

You aren't doing anything wrong. I got the same thing. It seems to be a bug in the bitcoin-jsonrpc package, which is writing invalid basic-auth  headers out to bitcoind. It's setting the header to:

Code:
Basic b'....base64stuff...' 
rather than

Code:
  Basic ....base64stuff...
likely because it wasn't written for python3. I have no idea how this code would have ever worked, unless someone is running their bitcoind wide open without RPC passwords, or is using a different sort of authentication.

A quick fix is to decode the bytes into UTF-8. On line 72 of bitcoinrpc/authproxy.py change:

Code:
self.__auth_header = "Basic %s" % base64.b64encode(authpair)
to read:

Code:
self.__auth_header = "Basic %s" % base64.b64encode(authpair).decode()

Hope this helps

Solved my problem!  TY!!!


Title: Re: Avalon users: bitcoind + eloipool configuration
Post by: optimator on May 21, 2013, 09:02:16 PM
I have eloipool up and hashing away with an avalon unit. Thanks Jgarzik!! Very helpful guide.

I'm running into a bunch of errors relating to longpool - These errors are what has been described previously in this thread.

These errors appear non-fatal. Can anyone confirm this is correct?


Title: Re: Avalon users: bitcoind + eloipool configuration
Post by: jspielberg on May 21, 2013, 09:15:44 PM
I have been playing around with slush's pool software while waiting for B3 to go into production, and I like it as it has a handy little status webpage.

My preference though is eloipool.

Does eloipool have a method of checking the current running status of the pool?

Is the DB schema documented anywhere if I wanted to make my own scripts for status querying?


Title: Re: Avalon users: bitcoind + eloipool configuration
Post by: Luke-Jr on May 22, 2013, 05:20:39 AM
I have been playing around with slush's pool software while waiting for B3 to go into production, and I like it as it has a handy little status webpage.

My preference though is eloipool.

Does eloipool have a method of checking the current running status of the pool?

Is the DB schema documented anywhere if I wanted to make my own scripts for status querying?
Eloipool doesn't have a db schema... you have to configure that yourself.


Title: Re: Avalon users: bitcoind + eloipool configuration
Post by: zero-asic on May 22, 2013, 07:23:53 AM
I have been playing around with slush's pool software while waiting for B3 to go into production, and I like it as it has a handy little status webpage.

My preference though is eloipool.

Does eloipool have a method of checking the current running status of the pool?

Is the DB schema documented anywhere if I wanted to make my own scripts for status querying?
Eloipool doesn't have a db schema... you have to configure that yourself.

Correct me if I'm wrong here, but if you edit the ShareLogging section of the config.py as follows:

Code:
# Logging of shares:
ShareLogging = (
#{
# 'type': 'logfile',
# 'filename': '../logs/share-logfile',
# 'format': "{time} {Q(remoteHost)} {username} {YN(not(rejectReason))} {dash(YN(upstreamResult))} {dash(rejectReason)} {solution}\n",
#},
{
'type': 'sql',
'engine': 'mysql',
'dbopts': {
'host': 'localhost',
'db': 'pooldb',
'user': 'mysqluser',
'password': 'mysqlpassword',
},
'statement': "insert into shares (rem_host, username, our_result, upstream_result, reason, solution, time) values ({Q(remoteHost)}, {username}, {YN(not(rejectReason))}, {YN(upstreamResult)}, {rejectReason}, unhex({solution}), NOW())",
},
)

That should add DB entries to a table called shares.  It has fields: rem_host, username, our_result, upstream_result, reason, solution, time.

You could also do this with postgres I believe.  I'm not sure if this will make entries for all shares or just found blocks, I haven't tested it that much.


Title: Re: Avalon users: bitcoind + eloipool configuration
Post by: Luke-Jr on June 05, 2013, 05:24:55 PM
Try to use this:
Code:
pkill -f -USR1 eloipool.py

I'm guessing the problem is caused by running
Code:
... python3 eloipool.py ...
instead of
Code:
... ./eloipool.py ...


Title: Re: Avalon users: bitcoind + eloipool configuration
Post by: Luke-Jr on June 06, 2013, 01:48:09 AM
Now, if only you could tell me what is the significance and consequence of the multiple Eloipool log entries like this:

JSONRPCServer    INFO    Nobody to longpoll
No GBT/getwork longpoll connections were connected during a longpoll...

and

merkleMaker     INFO    Transaction-longpoll requested 102 seconds ago, and still not ready. Is your server fast enough to keep up with your configured WorkQueueSizeRegular maximum?
Your CPU isn't able to maintain the WorkQueueSize* configurations.
You can probably set all these to 1 since you don't use GBT/getwork with an Avalon.


Title: Re: Avalon users: bitcoind + eloipool configuration
Post by: mrb on June 06, 2013, 05:59:13 AM
You can probably set all these to 1 since you don't use GBT/getwork with an Avalon.

You mean Arvicco specifically did not configure it to use GBT/getwork, or cgminer on Avalon is by default is configured to not use it (ie. use stratum?)


Title: Re: Avalon users: bitcoind + eloipool configuration
Post by: Luke-Jr on June 06, 2013, 06:16:28 AM
You can probably set all these to 1 since you don't use GBT/getwork with an Avalon.
You mean Arvicco specifically did not configure it to use GBT/getwork, or cgminer on Avalon is by default is configured to not use it (ie. use stratum?)
I meant the former (that it was not in use, as evidenced by his first message), but cgminer's GBT is known to be broken, and AFAIK there aren't any cases where you'd actually want to use getwork on it (cgminer's getwork can't handle over a few Gh/s without rollntime, which Deepbit doesn't support; I don't know any other getwork-only pools)


Title: Re: Avalon users: bitcoind + eloipool configuration
Post by: miner49dk on June 16, 2013, 02:04:50 PM
Hey!
Thanks so much for a good walkthrough midstate was really a ***** to get complied on cents. Went ubuntu instead.
But
I have everything up and running, it seems to run perfectly, i do get a lot of "INFO Nobody to long poll" in the eloipool log.
Does this meen that there is something wrong? Am i actually Mining ?
The share log shows that the cgminer's i have running are working.
Hope you can help!

All the best
Ras


Title: Re: Avalon users: bitcoind + eloipool configuration
Post by: Luke-Jr on June 16, 2013, 11:39:08 PM
midstate is not needed for anything except DiabloMiner.


Title: Re: Avalon users: bitcoind + eloipool configuration
Post by: miner49dk on June 17, 2013, 01:20:27 PM
Hey !
Thanks, good to know.
Can you shed any ligt on the "nobody to longpoll" info in the logging ?
All the best
Ras


Title: Re: Avalon users: bitcoind + eloipool configuration
Post by: tryexcept on July 08, 2013, 07:15:36 AM
Hey !
Thanks, good to know.
Can you shed any ligt on the "nobody to longpoll" info in the logging ?
All the best
Ras


No GBT/getwork longpoll connections were connected during a longpoll...
If you just use avalons, since avalons use stratum, this is perfectly normal.

I have a question: What does it look like when you do find a block other than the address you configured will receive the block and fees ?
I didn't try test net although everything in the logs looks good, running on latest arch.



Title: Re: Avalon users: bitcoind + eloipool configuration
Post by: ProfMac on July 22, 2013, 07:01:33 PM
I want a bid from someone to set up eloipool under 64 bit Ubuntu 12.04 LTS.  I have it running in a virtualbox and can give ssh access, preferably through IPv6.

I am thinking that this can be packaged as an appliance and distributed.



Title: Re: Avalon users: bitcoind + eloipool configuration
Post by: ProfMac on July 25, 2013, 09:57:21 PM
I want a bid from someone to set up eloipool under 64 bit Ubuntu 12.04 LTS.  I have it running in a virtualbox and can give ssh access, preferably through IPv6.

I am thinking that this can be packaged as an appliance and distributed.



I have eloipool operational in the virtualbox.

I wonder if anyone has any idea how to configure it for bytecoin?



Title: Re: Avalon users: bitcoind + eloipool configuration
Post by: icreator on August 24, 2013, 05:57:25 PM
I got errors^
Code:
2013-08-24 21:47:41,072	merkleMaker	CRITICAL	Traceback (most recent call last):
  File "/home/icreator/pools/eloipool-server-ZeroASIC/eloipool/merklemaker.py", line 692, in run
    self.merkleMaker_I()
  File "/home/icreator/pools/eloipool-server-ZeroASIC/eloipool/merklemaker.py", line 682, in merkleMaker_I
    self.merkleMaker_II()
  File "/home/icreator/pools/eloipool-server-ZeroASIC/eloipool/merklemaker.py", line 648, in merkleMaker_II
    return self._updateMerkleTree()
  File "/home/icreator/pools/eloipool-server-ZeroASIC/eloipool/merklemaker.py", line 548, in _updateMerkleTree
    self._updateMerkleTree_I()
  File "/home/icreator/pools/eloipool-server-ZeroASIC/eloipool/merklemaker.py", line 512, in _updateMerkleTree_I
    r = self._updateMerkleTree_fromTS(TS)
  File "/home/icreator/pools/eloipool-server-ZeroASIC/eloipool/merklemaker.py", line 477, in _updateMerkleTree_fromTS
    MP = self._CallGBT(TS)
  File "/home/icreator/pools/eloipool-server-ZeroASIC/eloipool/merklemaker.py", line 327, in _CallGBT
    MP = access.getblocktemplate(self.GBTReq)
  File "/home/icreator/pools/eloipool-server-ZeroASIC/eloipool/bitcoinrpc/authproxy.py", line 104, in __call__
    'Content-type': 'application/json'})
  File "/usr/lib/python3.3/http/client.py", line 1061, in request
    self._send_request(method, url, body, headers)
  File "/usr/lib/python3.3/http/client.py", line 1099, in _send_request
    self.endheaders(body)
  File "/usr/lib/python3.3/http/client.py", line 1057, in endheaders
    self._send_output(message_body)
  File "/usr/lib/python3.3/http/client.py", line 902, in _send_output
    self.send(msg)
  File "/usr/lib/python3.3/http/client.py", line 840, in send
    self.connect()
  File "/usr/lib/python3.3/http/client.py", line 818, in connect
    self.timeout, self.source_address)
  File "/usr/lib/python3.3/socket.py", line 435, in create_connection
    raise err
  File "/usr/lib/python3.3/socket.py", line 426, in create_connection
    sock.connect(sa)
ConnectionRefusedError: [Errno 111] Connection refused
what is wrong I do?
Ubuntu 13.04
installed python2.7 python3 python3.3
I try install all for python3.3

bitcoin.conf
Code:
server=1
rpctimeout=30
rpcuser=rpcuser
rpcpassword=yighyeg8OnI
logtimestamps=1

config.py:
Code:
TemplateSources = (
{
'name': 'primary',
'uri': 'http://rpcuser:yighyeg8OnI@localhost:8332', #change the password here and the matching password in bitcoindata/bitcoin.conf
'priority': 0,
'weight': 1,
},
# {
# 'name': 'secondary',
# 'uri': 'http://user:pass@localhost:18332',
# 'priority': 1,
# 'weight': 1,
# },
)


Title: Re: Avalon users: bitcoind + eloipool configuration
Post by: -Redacted- on August 24, 2013, 06:22:21 PM
ConnectionRefusedError: [Errno 111] Connection refused

You aren't connecting to bitcoind - wrong password, or username possibly, or not listening on localhost....
Make sure you don't have a firewall set up that's rejecting connections on the port you are using.


Title: Re: Avalon users: bitcoind + eloipool configuration
Post by: icreator on August 24, 2013, 07:05:26 PM
updatetd - see first mess - user:pass = user:pass


Title: Re: Avalon users: bitcoind + eloipool configuration
Post by: icreator on August 25, 2013, 06:11:16 AM
I insert print (responce) in:
#/usr/lib/python3.3/json/decoder.py
Code:
    def decode(self, s, _w=WHITESPACE.match):
        """Return the Python representation of ``s`` (a ``str`` instance
        containing a JSON document).

        """
        print('                 decoder.decode')
        print( ' str:',s)
        obj, end = self.raw_decode(s, idx=_w(s, 0).end())
        end = _w(s, end).end()
        if end != len(s):
            raise ValueError(errmsg("Extra data", s, end, len(s)))
        return obj

and I see that:

Code:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
"http://www.w3.org/TR/1999/REC-html401-19991224/loose.dtd">
<HTML>
<HEAD>
<TITLE>Error</TITLE>
<META HTTP-EQUIV='Content-Type' CONTENT='text/html; charset=ISO-8859-1'>
</HEAD>
<BODY><H1>401 Unauthorized.</H1></BODY>
</HTML>


I have /usr/lib/python3.3/http
that used in bitcoinrpc/authproxy.py
Code:
try:
    import http.client as httplib
except ImportError:
    import httplib

if I use httplib from python2.7 - connection established but many others errors rised ((


Title: Re: Avalon users: bitcoind + eloipool configuration
Post by: icreator on August 25, 2013, 04:07:17 PM
I run simple script:

Code:
from jsonrpc.proxy import ServiceProxy


 
aa = ServiceProxy("http://rpcuser:yighyeg8OnI@127.0.0.1:8332")
              
aa.getinfo()

on python2.7 it successful
on pyton3.3 - error
Code:
 File "probe.py", line 17, in <module>
    aa.getinfo()
  File "/home/icreator/pools/eloipool-3/bitcoinrpc/authproxy.py", line 118, in __call__
    response = self._get_response()
  File "/home/icreator/pools/eloipool-3/bitcoinrpc/authproxy.py", line 156, in _get_response
    parse_float=decimal.Decimal)
  File "/usr/lib/python3.3/json/__init__.py", line 332, in loads
    return cls(**kw).decode(s)
  File "/usr/lib/python3.3/json/decoder.py", line 353, in decode
    obj, end = self.raw_decode(s, idx=_w(s, 0).end())
  File "/usr/lib/python3.3/json/decoder.py", line 371, in raw_decode
    raise ValueError("No JSON object could be decoded")
ValueError: No JSON object could be decoded


Title: Re: Avalon users: bitcoind + eloipool configuration
Post by: madjoe1974 on October 24, 2013, 05:50:44 PM
does anybody knows how can i configure different difficultys for different miners?

i have some avalons and one brandnew bitfury here. but the bitfury have some problems on pools with vardiff (like slush) and also if the diff is set to low

and another question:

is it possible to enable a log-rotate for the sharelog, same like for the pool log itself

best regards joe


Title: Re: Avalon users: bitcoind + eloipool configuration
Post by: madjoe1974 on October 28, 2013, 11:20:39 AM
hi all

since last night i have some strange behavior with eloi.

sometimes i have this in my logs:

Code:
2013-10-28 00:29:27,579	StratumHandler	DEBUG	Traceback (most recent call last):
  File "./eloipool.py", line 668, in receiveShare
    checkShare(share)
  File "./eloipool.py", line 506, in checkShare
    MWL = workLog[None]
KeyError: None

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/daten/bitcoinchain/eloipool/eloipool/stratumserver.py", line 91, in found_terminator
    rv = getattr(self, funcname)(*rpc['params'])
  File "/daten/bitcoinchain/eloipool/eloipool/stratumserver.py", line 199, in _stratum_mining_submit
    self.server.receiveShare(share)
  File "./eloipool.py", line 677, in receiveShare
    logShare(share)
  File "./eloipool.py", line 651, in logShare
    share['solution'] = b2a_hex(swap32(share['data'])).decode('utf8')
KeyError: 'data'


and since 4 hours i have every second this and notihing else:


Code:
2013-10-28 11:44:15,520	merkleMaker	CRITICAL	Traceback (most recent call last):
  File "/daten/bitcoinchain/eloipool/eloipool/merklemaker.py", line 692, in run
    self.merkleMaker_I()
  File "/daten/bitcoinchain/eloipool/eloipool/merklemaker.py", line 682, in merkleMaker_I
    self.merkleMaker_II()
  File "/daten/bitcoinchain/eloipool/eloipool/merklemaker.py", line 660, in merkleMaker_II
    return self._updateMerkleTree()
  File "/daten/bitcoinchain/eloipool/eloipool/merklemaker.py", line 548, in _updateMerkleTree
    self._updateMerkleTree_I()
  File "/daten/bitcoinchain/eloipool/eloipool/merklemaker.py", line 512, in _updateMerkleTree_I
    r = self._updateMerkleTree_fromTS(TS)
  File "/daten/bitcoinchain/eloipool/eloipool/merklemaker.py", line 477, in _updateMerkleTree_fromTS
    MP = self._CallGBT(TS)
  File "/daten/bitcoinchain/eloipool/eloipool/merklemaker.py", line 327, in _CallGBT
    MP = access.getblocktemplate(self.GBTReq)
  File "/daten/bitcoinchain/python-bitcoinrpc/bitcoinrpc/authproxy.py", line 112, in __call__
    'Content-type': 'application/json'})
  File "/usr/lib/python3.2/http/client.py", line 970, in request
    self._send_request(method, url, body, headers)
  File "/usr/lib/python3.2/http/client.py", line 998, in _send_request
    self.putrequest(method, url, **skips)
  File "/usr/lib/python3.2/http/client.py", line 853, in putrequest
    raise CannotSendRequest(self.__state)
http.client.CannotSendRequest: Request-sent


some ideas? please help i'm new to eloi

before this eloi works fine, i've mined 2 blocks...

best regards joe



Title: Re: Avalon users: bitcoind + eloipool configuration
Post by: agibby5 on December 03, 2013, 02:51:35 PM
b) increase share target (note increased '0' and decreased 'f'):
Code:
-ShareTarget = 0x00000000ffffffffffffffffffffffffffffffffffffffffffffffffffffffff
+ShareTarget = 0x000000000fffffffffffffffffffffffffffffffffffffffffffffffffffffff

c) DynamicTargetting = 2

d) DynamicTargetGoal = 6


How do these settings scale for other hash rates?  


Title: Re: Avalon users: bitcoind + eloipool configuration
Post by: agibby5 on December 03, 2013, 02:53:21 PM
hi all

since last night i have some strange behavior with eloi.

sometimes i have this in my logs:

Code:
2013-10-28 00:29:27,579	StratumHandler	DEBUG	Traceback (most recent call last):
  File "./eloipool.py", line 668, in receiveShare
    checkShare(share)
  File "./eloipool.py", line 506, in checkShare
    MWL = workLog[None]
KeyError: None

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/daten/bitcoinchain/eloipool/eloipool/stratumserver.py", line 91, in found_terminator
    rv = getattr(self, funcname)(*rpc['params'])
  File "/daten/bitcoinchain/eloipool/eloipool/stratumserver.py", line 199, in _stratum_mining_submit
    self.server.receiveShare(share)
  File "./eloipool.py", line 677, in receiveShare
    logShare(share)
  File "./eloipool.py", line 651, in logShare
    share['solution'] = b2a_hex(swap32(share['data'])).decode('utf8')
KeyError: 'data'


A few other people have this problem as well, but the inquiries go unanswered in the main eloipool thread.
https://bitcointalk.org/index.php?topic=61731.msg3793182#msg3793182


Title: Re: Avalon users: bitcoind + eloipool configuration
Post by: wuzamarine on January 18, 2014, 11:10:50 PM
I followed the directions and I get no errors. Port 8338 comes live and can be seen via netstat.


tcp6      15      0 :::8338                 :::*                    LISTEN
tcp6       0      0 :::22                   :::*                    LISTEN
tcp6      70      0 192.168.1.8:8338        192.168.1.8:33885       CLOSE_WAIT
tcp6      71      0 192.168.1.8:8338        192.168.1.8:33896       CLOSE_WAIT
tcp6      71      0 192.168.1.8:8338        192.168.1.8:33890       CLOSE_WAIT
tcp6      71      0 192.168.1.8:8338        192.168.1.8:33897       CLOSE_WAIT
tcp6      71      0 192.168.1.8:8338        192.168.1.8:33899       CLOSE_WAIT
tcp6      70      0 192.168.1.8:8338        192.168.1.8:33892       CLOSE_WAIT
tcp6      71      0 192.168.1.8:8338        192.168.1.8:33895       CLOSE_WAIT
tcp6      71      0 192.168.1.8:8338        192.168.1.8:33891       CLOSE_WAIT
tcp6      71      0 192.168.1.8:8338        192.168.1.8:33900       CLOSE_WAIT
tcp6      71      0 192.168.1.8:8338        192.168.1.8:33889       CLOSE_WAIT
tcp6      71      0 192.168.1.8:8338        192.168.1.8:33894       CLOSE_WAIT
tcp6      71      0 192.168.1.8:8338        192.168.1.8:33898       CLOSE_WAIT
tcp6      70      0 192.168.1.8:8338        192.168.1.8:33887       CLOSE_WAIT
tcp6      70      0 192.168.1.8:8338        192.168.1.8:33884       CLOSE_WAIT
tcp6      70      0 127.0.0.1:8338          127.0.0.1:49649         CLOSE_WAIT



gentoo001 home # ./minerd -o stratum+tcp://192.168.1.8:8338 -u admin -p butthole -q
[2014-01-18 22:51:19] 1 miner threads started, using 'scrypt' algorithm.
[2014-01-18 22:51:19] Starting Stratum on stratum+tcp://192.168.1.8:8338
[2014-01-18 22:51:49] stratum_subscribe timed out
[2014-01-18 22:51:49] ...retry after 30 seconds
[2014-01-18 22:52:49] stratum_subscribe timed out
[2014-01-18 22:52:49] ...retry after 30 seconds


Title: Re: Avalon users: bitcoind + eloipool configuration
Post by: ShurikAg on February 14, 2014, 07:15:19 AM
Hi all,

Is there a recommended hardware for the bitcoind + eloipool set?
Also, what should I expect in regards to system utilization?


Title: Re: Avalon users: bitcoind + eloipool configuration
Post by: halcy0n3 on April 30, 2014, 03:55:24 AM
bitcoind and eloipool seem to be up and running

however


root@Bitcoin-server:~# netstat --listen
Active Internet connections (only servers)
Proto Recv-Q Send-Q Local Address           Foreign Address         State
tcp        0      0 *:ssh                   *:*                     LISTEN
tcp        0      0 *:8333                  *:*                     LISTEN
tcp6       0      0 [::]:ssh                [::]:*                  LISTEN
tcp6       0      0 [::]:8332               [::]:*                  LISTEN
tcp6       0      0 [::]:8333               [::]:*                  LISTEN

port 3334 isnt open

my logfile only indicates new blocks on network


Title: Re: Avalon users: bitcoind + eloipool configuration
Post by: halcy0n3 on May 01, 2014, 06:04:43 AM
okay now the port is open and accessible from the internet

but i still cant connect via stratum.... BAH

any ideas?


Title: Re: Avalon users: bitcoind + eloipool configuration
Post by: Carlton Banks on May 01, 2014, 04:20:27 PM
If the reason for using Eloipool is to solo mine, then latest cgminer has solo mining functionality built in (either 4.0.0 or 4.1.0, check the cgminer thread to be sure). I think you can just setup a bitcoind node and point the miner config to it on port 8332


Title: Re: Avalon users: bitcoind + eloipool configuration
Post by: halcy0n3 on May 02, 2014, 02:05:46 AM
well it is and it isnt.

I am using 8332 to mine directly to bitcoind

netstat and lsof -i show me that eloipool is communicating with bitcoind

and infact my local network is reaching out to eloipool on 3334 bfgminer says no however. im using eligius for block announcements though in truth bitcoind is only ~1 second behind so probably just a waste of time.

the log file is giving me nothing to work with..

I'll keep trying


Title: Re: Avalon users: bitcoind + eloipool configuration
Post by: halcy0n3 on May 17, 2014, 03:45:52 AM
well, got it all sorted.

One last piece of the puzzle and everything will be dandy

dynamic targeting seems to be a failure for me

all diff 1 shares
lots of stale shares

i tried commenting out the sharetarget and getworktarget in config.py as suggested in another thread to no avail
youll see in eloipool.py hte value is hard coded if no variable exists in config.py

any help?


Title: Re: Avalon users: bitcoind + eloipool configuration
Post by: Polyatomic on May 19, 2014, 12:03:41 PM
well, got it all sorted.

One last piece of the puzzle and everything will be dandy

dynamic targeting seems to be a failure for me

all diff 1 shares
lots of stale shares

i tried commenting out the sharetarget and getworktarget in config.py as suggested in another thread to no avail
youll see in eloipool.py hte value is hard coded if no variable exists in config.py

any help?

Try adding DynamicTargetServerAddresses to your config man.


Title: Re: Avalon users: bitcoind + eloipool configuration
Post by: bgibso01 on June 07, 2014, 11:06:53 PM
well, got it all sorted.

One last piece of the puzzle and everything will be dandy

dynamic targeting seems to be a failure for me

all diff 1 shares
lots of stale shares

i tried commenting out the sharetarget and getworktarget in config.py as suggested in another thread to no avail
youll see in eloipool.py hte value is hard coded if no variable exists in config.py

any help?

Try adding DynamicTargetServerAddresses= to your config man.

What does this mean/do?  I don't see it listed in the example config file.  I'm having same problem of only diff 1 shares.  Thanks.


Title: Re: Avalon users: bitcoind + eloipool configuration
Post by: cheeha on August 11, 2014, 09:13:42 AM
jsonrpc_getwork WARNING Error importing 'midstate' module; work will not provide midstates

>>> Traceback (most recent call last):
  File "eloipool.py", line 915, in <module>
    MM.start()
  File "/var/www/eloipool/merklemaker.py", line 697, in start
    self._prepare()
  File "/var/www/eloipool/merklemaker.py", line 120, in _prepare
    TS['access'] = URI2Access(TS['uri'])
  File "/var/www/eloipool/merklemaker.py", line 110, in URI2Access
    access = jsonrpc.ServiceProxy(uri)
AttributeError: 'module' object has no attribute 'ServiceProxy'
Actually I get this error now that I fixed midstate'

I have the error "jsonrpc_getwork WARNING Error importing 'midstate' module; work will not provide midstates". 
How did you fix the midstate?
Posted from Bitcointa.lk - #5QoZrEHghq6BtmzU


Title: Re: Avalon users: bitcoind + eloipool configuration
Post by: oups on October 15, 2014, 05:18:06 PM
 I followed all the instruction to set up the pool but I have a problem with :
"nohup: redirecting stderr to stdout" error
Do you know why ?


Title: Re: Avalon users: bitcoind + eloipool configuration
Post by: dwallace on November 17, 2015, 04:53:13 PM
Anyone know where to get the midstate code since gitorious is unavailable?