Pages:
Author

Topic: Avalon users: bitcoind + eloipool configuration - page 2. (Read 36142 times)

legendary
Activity: 1554
Merit: 1008
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,
# },
)
legendary
Activity: 1246
Merit: 1001
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?

legendary
Activity: 1246
Merit: 1001
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.

full member
Activity: 192
Merit: 100
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.

newbie
Activity: 22
Merit: 0
Hey !
Thanks, good to know.
Can you shed any ligt on the "nobody to longpoll" info in the logging ?
All the best
Ras
legendary
Activity: 2576
Merit: 1186
midstate is not needed for anything except DiabloMiner.
newbie
Activity: 22
Merit: 0
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
legendary
Activity: 2576
Merit: 1186
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)
mrb
legendary
Activity: 1512
Merit: 1027
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?)
legendary
Activity: 2576
Merit: 1186
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.
legendary
Activity: 2576
Merit: 1186
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 ...
member
Activity: 79
Merit: 10
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.
legendary
Activity: 2576
Merit: 1186
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.
sr. member
Activity: 490
Merit: 255
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?
sr. member
Activity: 351
Merit: 250
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?
donator
Activity: 1055
Merit: 1020
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!!!
donator
Activity: 1055
Merit: 1020
!/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
    import jsonrpc_getwork
  File "/var/www/eloipool/jsonrpc_getwork.py", line 18, in
    from jsonrpcserver import JSONRPCHandler
  File "/var/www/eloipool/jsonrpcserver.py", line 19, in
    import json
  File "/var/www/eloipool/python-bitcoinrpc/jsonrpc/json.py", line 2, in
    loads = _json.loads
AttributeError: 'module' object has no attribute 'loads'

member
Activity: 75
Merit: 10
HAL10K developer
member
Activity: 75
Merit: 10
HAL10K developer
!/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!

donator
Activity: 1055
Merit: 1020
!/bin/sh

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


Pages:
Jump to: