Pages:
Author

Topic: [ANN] Eloipool - FAST Python3 pool server software - GBT/stratum/dyntarget/proxy - page 6. (Read 123149 times)

member
Activity: 98
Merit: 10
so... no scrypt support?
sr. member
Activity: 267
Merit: 250
I occasionally get this error. any ideas what it could be?

Code:
  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 "/home/bitcoin/eloipool/stratumserver.py", line 91, in found_terminator
    rv = getattr(self, funcname)(*rpc['params'])
  File "/home/bitcoin/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'

From what I can make out the checkShare fails to handle the share being passed but not sure other than that.

This is a very mysterious problem, apparently.

full member
Activity: 162
Merit: 100
I occasionally get this error. any ideas what it could be?

Code:
  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 "/home/bitcoin/eloipool/stratumserver.py", line 91, in found_terminator
    rv = getattr(self, funcname)(*rpc['params'])
  File "/home/bitcoin/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'

From what I can make out the checkShare fails to handle the share being passed but not sure other than that.
full member
Activity: 162
Merit: 100
Hello,

I've installed eloipool and everything is working fine except for one thing, my miner stays at difficulty 0. Is there some setting I did wrong or is there some extra configuration needed for vardiff to work ?

Thanks for the reply!

Regards,

Danny
There is a workaround at https://bitcointalksearch.org/topic/m.3598140

full member
Activity: 162
Merit: 100
Restart pool server (including upgrades) without miners losing work.

Can someone let me know how to restart the pool server without miners losing work?

Many thanks.
member
Activity: 85
Merit: 11
Hello,

I've installed eloipool and everything is working fine except for one thing, my miner stays at difficulty 0. Is there some setting I did wrong or is there some extra configuration needed for vardiff to work ?

Thanks for the reply!

Regards,

Danny
aTg
legendary
Activity: 1358
Merit: 1000
Hi Luke, I installed eloi and it works perfectly, my question is, how can I make the rewards go only to the user who submitted the winning hash, I understand it has to be configured in diff1 to two different people not working in the same hash but how?
Thanks in advance.
sr. member
Activity: 267
Merit: 250
How would I go about setting up multiple instances of eloipool on one server for multiple crypto coins?  I'm guessing there is a problem with sending signals to the eloipool process if there are many running... for example.

I figured this out on my own.  I don't know if this is the right way, but I copied and renamed my eloipool-server folder and changed the name of the eloipool.py file and made sure my newblock script was sending the message to the right process name and it workes fine!
sr. member
Activity: 267
Merit: 250
Also, how hard would it be to add share log file rotation? Mine grows out of control.
Already supported.

I tried to use the same mechanism as I use for the regular log file and it doesn't appear to be working...


I keep getting the following error repeatedly.

Ideas?

Quote
2013-10-25 12:38:04,438   StratumHandler   DEBUG   Traceback (most recent call last):
  File "../eloipool/eloipool.py", line 668, in receiveShare
    checkShare(share)
  File "../eloipool/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 "/media/raid5/working/mining/eloipool-server/eloipool/stratumserver.py", line 91, in found_terminator
    rv = getattr(self, funcname)(*rpc['params'])
  File "/media/raid5/working/mining/eloipool-server/eloipool/stratumserver.py", line 199, in _stratum_mining_submit
    self.server.receiveShare(share)
  File "../eloipool/eloipool.py", line 677, in receiveShare
    logShare(share)
  File "../eloipool/eloipool.py", line 651, in logShare
    share['solution'] = b2a_hex(swap32(share['data'])).decode('utf8')
KeyError: 'data'

Is this a setup issue? Or is this a code issue?  Has anyone else seen his?  Everything else seems to work properly, but then I get this error all the time. I'm not sure if I'm getting blocks or not.  I'm using this pool software for Alt-SHA256 coins... I just started this up again yesterday and I haven't seen any payouts yet.  This makes me worried.


EDIT: looks like someone else has seen this...
I keep getting the following exception though.

Code:
2013-11-23 03:58:18,716 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 "/home/foo/build/eloipool/stratumserver.py", line 91, in found_terminator
    rv = getattr(self, funcname)(*rpc['params'])
  File "/home/foo/build/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'

2013-11-23 03:58:18,720 JSONRPCServer   INFO    Nobody to longpoll


I am wondering if I should be concerned that eloipool won't be handling winning shares correctly.

Anyone work around this?

Is this a known issue?

I had this four times overnight.
legendary
Activity: 2576
Merit: 1186
Also, how hard would it be to add share log file rotation? Mine grows out of control.
Already supported.
sr. member
Activity: 267
Merit: 250
Also, how hard would it be to add share log file rotation? Mine grows out of control.
sr. member
Activity: 267
Merit: 250
I keep getting the following error repeatedly.

Ideas?

Quote
2013-10-25 12:38:04,438   StratumHandler   DEBUG   Traceback (most recent call last):
  File "../eloipool/eloipool.py", line 668, in receiveShare
    checkShare(share)
  File "../eloipool/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 "/media/raid5/working/mining/eloipool-server/eloipool/stratumserver.py", line 91, in found_terminator
    rv = getattr(self, funcname)(*rpc['params'])
  File "/media/raid5/working/mining/eloipool-server/eloipool/stratumserver.py", line 199, in _stratum_mining_submit
    self.server.receiveShare(share)
  File "../eloipool/eloipool.py", line 677, in receiveShare
    logShare(share)
  File "../eloipool/eloipool.py", line 651, in logShare
    share['solution'] = b2a_hex(swap32(share['data'])).decode('utf8')
KeyError: 'data'

Is this a setup issue? Or is this a code issue?  Has anyone else seen his?  Everything else seems to work properly, but then I get this error all the time. I'm not sure if I'm getting blocks or not.  I'm using this pool software for Alt-SHA256 coins... I just started this up again yesterday and I haven't seen any payouts yet.  This makes me worried.


EDIT: looks like someone else has seen this...
I keep getting the following exception though.

Code:
2013-11-23 03:58:18,716 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 "/home/foo/build/eloipool/stratumserver.py", line 91, in found_terminator
    rv = getattr(self, funcname)(*rpc['params'])
  File "/home/foo/build/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'

2013-11-23 03:58:18,720 JSONRPCServer   INFO    Nobody to longpoll


I am wondering if I should be concerned that eloipool won't be handling winning shares correctly.

Anyone work around this?

Is this a known issue?
sr. member
Activity: 267
Merit: 250
How would I go about setting up multiple instances of eloipool on one server for multiple crypto coins?  I'm guessing there is a problem with sending signals to the eloipool process if there are many running... for example.
full member
Activity: 162
Merit: 100
I don't know if it was the git reset or that I commented out the ShareTarget, and GotWorkTarget. but it seems to be working
I was getting the same error and commented out ShareTarget and GotWorkTarget and now working correctly.

Thanks for posting your work around.
sr. member
Activity: 490
Merit: 255
The exception I was getting with bitcoinrpc was addressed by following jgarzik's steps in the avalon/eloipool thread... https://bitcointalksearch.org/topic/avalon-users-bitcoind-eloipool-configuration-158105

Quote

eloipool setup
...
python-bitcoinrpc       https://github.com/jgarzik/python-bitcoinrpc
...
2) For python-bitcoinrpc, check out an older release,

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

So... that part is good. I keep getting the following exception though.

Code:
2013-11-23 03:58:18,716 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 "/home/foo/build/eloipool/stratumserver.py", line 91, in found_terminator
    rv = getattr(self, funcname)(*rpc['params'])
  File "/home/foo/build/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'

2013-11-23 03:58:18,720 JSONRPCServer   INFO    Nobody to longpoll


I am wondering if I should be concerned that eloipool won't be handling winning shares correctly.

Anyone work around this?
legendary
Activity: 986
Merit: 1027
Miner-Control.de Pooler
Dont work on CentOS:

Code:
# python3 eloipool.py
Traceback (most recent call last):
  File "eloipool.py", line 81, in
    import jsonrpc
  File "/opt/python3/lib/python3.3/site-packages/jsonrpc/__init__.py", line 24, in
    from jsonrpc.serviceHandler import ServiceMethod, ServiceHandler, ServiceMethodNotFound, ServiceException
  File "/opt/python3/lib/python3.3/site-packages/jsonrpc/serviceHandler.py", line 54
    except ServiceRequestNotTranslatable, e:
                                        ^
SyntaxError: invalid syntax
 

BUT WHAT IS WRONG HERE?!
newbie
Activity: 37
Merit: 0
I don't know if it was the git reset or that I commented out the ShareTarget, and GotWorkTarget. but it seems to be working
hero member
Activity: 725
Merit: 500
Any idea's what I'm missing now :

Code:
Traceback (most recent call last):
  File "eloipool.py", line 77, in
    bcnode = BitcoinNode(config.UpstreamNetworkId)
  File "/eloipool/bitcoin/node.py", line 146, in __init__
    super().__init__(*a, **ka)
TypeError: super() takes at least 1 argument (0 given)
sr. member
Activity: 490
Merit: 255
I keep getting the following error repeatedly.

Ideas?

Quote
2013-10-25 12:38:04,438   StratumHandler   DEBUG   Traceback (most recent call last):
  File "../eloipool/eloipool.py", line 668, in receiveShare
    checkShare(share)
  File "../eloipool/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 "/media/raid5/working/mining/eloipool-server/eloipool/stratumserver.py", line 91, in found_terminator
    rv = getattr(self, funcname)(*rpc['params'])
  File "/media/raid5/working/mining/eloipool-server/eloipool/stratumserver.py", line 199, in _stratum_mining_submit
    self.server.receiveShare(share)
  File "../eloipool/eloipool.py", line 677, in receiveShare
    logShare(share)
  File "../eloipool/eloipool.py", line 651, in logShare
    share['solution'] = b2a_hex(swap32(share['data'])).decode('utf8')
KeyError: 'data'

I have seen the same error in my debug log.  Not sure if I should be concerned or not, though 'checkshare' is how I was planning on tracking the status of my micro-pool.  It looks like checkshare logs when a submitted hash looks like a winner.

In a semi-related note.
Anyone know if there are any issues with swallowing the authproxy generated CannotSendRequest exception?

Code:
[bitcoinrpc]$ git diff
diff --git a/bitcoinrpc/authproxy.py b/bitcoinrpc/authproxy.py
index 2914477..cfad7fb 100644
--- a/bitcoinrpc/authproxy.py
+++ b/bitcoinrpc/authproxy.py
@@ -105,11 +105,15 @@ class AuthServiceProxy(object):
                                'method': self.__service_name,
                                'params': args,
                                'id': self.__id_count})
-        self.__conn.request('POST', self.__url.path, postdata,
+        try:
+            self.__conn.request('POST', self.__url.path, postdata,
                             {'Host': self.__url.hostname,
                              'User-Agent': USER_AGENT,
                              'Authorization': self.__auth_header,
                              'Content-type': 'application/json'})
+        except http.client.CannotSendRequest:
+            ## swallow exception
+            pass
 
         response = self._get_response()
         if response['error'] is not None:

It looks like the exception message to the cannot send request exception is "request-sent" which seems like the exception isn't valid. It also looks like there is some defensive code after this block to check the response state.  Anyway... I am going to see if anything blows up I guess with this change.   My python skills are currently pretty poor, but if someone knows better... would be glad to hear it.   (I guess this is a question really for Garzik).

newbie
Activity: 37
Merit: 0
Same problem here.

My miner connects to the pool, pool sets diff to 64. After a minute or so diff drops down to 1.

Please advice!



I don't even get the initial jump... shares are always diff 1
Pages:
Jump to: