tomaszsz
Member
![*](https://bitcointalk.org/Themes/custom1/images/star.gif)
Offline
Activity: 76
Merit: 10
|
![](https://bitcointalk.org/Themes/custom1/images/post/xx.gif) |
March 10, 2013, 09:36:11 PM |
|
some small exception 2013-03-10 22:33:10,264 JSONRPCHandler ERROR Error during JSON-RPC call (UA=b'cgminer 2.10.5', IP=::ffff:82.160.xxx.xxx): doJSON_submitblock['020000000xxxxxxxxxxxxxxxxxx', {}] Traceback (most recent call last): File "/home/xxx/jsonrpcserver.py", line 200, in _doJSON_i rv = getattr(self, method)(*params) File "/home/xxx/jsonrpc_getblocktemplate.py", line 99, in doJSON_submitblock self.server.receiveShare(share) File "/home/xxx/eloipool18.py", line 646, in receiveShare checkShare(share) File "/home/xxx/eloipool18.py", line 476, in checkShare othertxndata = cbtxn.disassemble(retExtra=True) File "/home/xxx/bitcoin/txn.py", line 52, in disassemble self.version = unpack('<L', self.data[:4])[0] AttributeError: 'Txn' object has no attribute 'data'
eloipool works perfect but sometimes above message appears in log file
|
|
|
|
Luke-Jr (OP)
Legendary
Offline
Activity: 2576
Merit: 1186
|
![](https://bitcointalk.org/Themes/custom1/images/post/xx.gif) |
March 10, 2013, 10:20:47 PM |
|
some small exception 2013-03-10 22:33:10,264 JSONRPCHandler ERROR Error during JSON-RPC call (UA=b'cgminer 2.10.5', IP=::ffff:82.160.xxx.xxx): doJSON_submitblock['020000000xxxxxxxxxxxxxxxxxx', {}] Traceback (most recent call last): File "/home/xxx/jsonrpcserver.py", line 200, in _doJSON_i rv = getattr(self, method)(*params) File "/home/xxx/jsonrpc_getblocktemplate.py", line 99, in doJSON_submitblock self.server.receiveShare(share) File "/home/xxx/eloipool18.py", line 646, in receiveShare checkShare(share) File "/home/xxx/eloipool18.py", line 476, in checkShare othertxndata = cbtxn.disassemble(retExtra=True) File "/home/xxx/bitcoin/txn.py", line 52, in disassemble self.version = unpack('<L', self.data[:4])[0] AttributeError: 'Txn' object has no attribute 'data'
eloipool works perfect but sometimes above message appears in log file cgminer bug.
|
|
|
|
kano
Legendary
Offline
Activity: 4578
Merit: 1851
Linux since 1997 RedHat 4
|
![](https://bitcointalk.org/Themes/custom1/images/post/xx.gif) |
March 10, 2013, 10:30:38 PM |
|
some small exception 2013-03-10 22:33:10,264 JSONRPCHandler ERROR Error during JSON-RPC call (UA=b'cgminer 2.10.5', IP=::ffff:82.160.xxx.xxx): doJSON_submitblock['020000000xxxxxxxxxxxxxxxxxx', {}] Traceback (most recent call last): File "/home/xxx/jsonrpcserver.py", line 200, in _doJSON_i rv = getattr(self, method)(*params) File "/home/xxx/jsonrpc_getblocktemplate.py", line 99, in doJSON_submitblock self.server.receiveShare(share) File "/home/xxx/eloipool18.py", line 646, in receiveShare checkShare(share) File "/home/xxx/eloipool18.py", line 476, in checkShare othertxndata = cbtxn.disassemble(retExtra=True) File "/home/xxx/bitcoin/txn.py", line 52, in disassemble self.version = unpack('<L', self.data[:4])[0] AttributeError: 'Txn' object has no attribute 'data'
eloipool works perfect but sometimes above message appears in log file Use the latest cgminer 2.11.2
|
|
|
|
Danilo
Newbie
Offline
Activity: 30
Merit: 0
|
![](https://bitcointalk.org/Themes/custom1/images/post/xx.gif) |
March 11, 2013, 02:10:24 PM |
|
I have the following problem:
Eloipool works. When I work through the 8999 JSONRPC address everything is working properly and is recorded into a MySQL database and file as well (share-logfile).
Only when I go through the stratum on port 3333 miner is working and counting shares but nothing is recorded, not even in the database or the share-logfile.
Is there something special to be adjusted???
Thanks in advance!
|
|
|
|
tomaszsz
Member
![*](https://bitcointalk.org/Themes/custom1/images/star.gif)
Offline
Activity: 76
Merit: 10
|
![](https://bitcointalk.org/Themes/custom1/images/post/xx.gif) |
March 12, 2013, 11:59:08 AM |
|
any upgrade of eloipool needed ? because of stratum and custom bitcoind branch (0.8.0.eligius ) and "bug" ?
|
|
|
|
Luke-Jr (OP)
Legendary
Offline
Activity: 2576
Merit: 1186
|
![](https://bitcointalk.org/Themes/custom1/images/post/xx.gif) |
March 12, 2013, 12:14:30 PM |
|
bitcoind 0.8.0.eligius shares the bug with normal 0.8.0.
Eloipool should work fine with 0.6/0.7.
|
|
|
|
DBordello
|
![](https://bitcointalk.org/Themes/custom1/images/post/xx.gif) |
March 20, 2013, 01:52:17 AM |
|
If TrackerAddr is not defined, will the bitcoind provide a generation address? Ideally I'd like to provide a new address for each block.
|
www.BTCPak.com - Exchange your bitcoins for MP: Secure, Anonymous and Easy!
|
|
|
Parazyd
|
![](https://bitcointalk.org/Themes/custom1/images/post/xx.gif) |
March 20, 2013, 04:59:37 AM |
|
No, you have to set an address.
|
|
|
|
Luke-Jr (OP)
Legendary
Offline
Activity: 2576
Merit: 1186
|
![](https://bitcointalk.org/Themes/custom1/images/post/xx.gif) |
March 26, 2013, 03:00:48 AM |
|
Eloipool is only for python 3.x but the config module it requires is only for python 2.x...
I think you're confused.. the only config "module" is the config file you have to write yourself (possibly based on the included example).
|
|
|
|
tomaszsz
Member
![*](https://bitcointalk.org/Themes/custom1/images/star.gif)
Offline
Activity: 76
Merit: 10
|
![](https://bitcointalk.org/Themes/custom1/images/post/xx.gif) |
March 30, 2013, 07:13:40 PM |
|
what can trigger this error ? 2013-03-29 19:49:56,743 StratumHandler DEBUG Traceback (most recent call last): File "xxxxxxxxxxxxxxxxxxxxxxxxstratumserver.py", line 91, in found_terminator rv = getattr(self, funcname)(*rpc['params']) TypeError: _stratum_mining_subscribe() takes exactly 1 positional argument (2 given)
2013-03-29 19:49:56,805 StratumHandler DEBUG Traceback (most recent call last): File "xxxxxxxxxxxxxxxxxxxxxstratumserver.py", line 91, in found_terminator rv = getattr(self, funcname)(*rpc['params'])
is this version bitcoind 0.8.1 eligious branch is ok from git clone git://gitorious.org/~Luke-Jr/bitcoin/luke-jr-bitcoin.git ?
|
|
|
|
Luke-Jr (OP)
Legendary
Offline
Activity: 2576
Merit: 1186
|
![](https://bitcointalk.org/Themes/custom1/images/post/xx.gif) |
March 30, 2013, 07:43:22 PM |
|
what can trigger this error ? 2013-03-29 19:49:56,743 StratumHandler DEBUG Traceback (most recent call last): File "xxxxxxxxxxxxxxxxxxxxxxxxstratumserver.py", line 91, in found_terminator rv = getattr(self, funcname)(*rpc['params']) TypeError: _stratum_mining_subscribe() takes exactly 1 positional argument (2 given)
2013-03-29 19:49:56,805 StratumHandler DEBUG Traceback (most recent call last): File "xxxxxxxxxxxxxxxxxxxxxstratumserver.py", line 91, in found_terminator rv = getattr(self, funcname)(*rpc['params'])
is this version bitcoind 0.8.1 eligious branch is ok from git clone git://gitorious.org/~Luke-Jr/bitcoin/luke-jr-bitcoin.git ? Ignore it for now.
|
|
|
|
tomaszsz
Member
![*](https://bitcointalk.org/Themes/custom1/images/star.gif)
Offline
Activity: 76
Merit: 10
|
![](https://bitcointalk.org/Themes/custom1/images/post/xx.gif) |
March 31, 2013, 08:22:04 AM Last edit: April 02, 2013, 05:43:17 AM by tomaszsz |
|
everything works fine but in logs , this error appears : 2013-03-31 10:11:20,543 StratumHandler DEBUG Traceback (most recent call last): File "/xxxx/eloipool.py", line 646, in receiveShare checkShare(share) File "/xxxx/eloipool.py", line 490, in checkShare MWL = workLog[None] KeyError: None
During handling of the above exception, another exception occurred:
Traceback (most recent call last): File "/xxxx/stratumserver.py", line 91, in found_terminator rv = getattr(self, funcname)(*rpc['params']) File "/xxxx/stratumserver.py", line 184, in _stratum_mining_submit self.server.receiveShare(share) File "/xxxx/eloipool.py", line 655, in receiveShare logShare(share) File "/xxxx/eloipool.py", line 639, in logShare share['solution'] = b2a_hex(swap32(share['data'])).decode('utf8') KeyError: 'data'
2013-03-31 10:11:20,543 StratumHandler DEBUG Traceback (most recent call last): File "/xxxx/eloipool.py", line 646, in receiveShare checkShare(share) File "/xxxx/eloipool.py", line 490, in checkShare MWL = workLog[None] KeyError: None and this 2013-03-31 05:16:04,681 redflag CRITICAL issuing duplicate work 2013-03-31 05:16:04,682 JSONRPCHandler ERROR Error during JSON-RPC call (UA=None, IP=::ffff:83.......): doJSON_getwork[] Traceback (most recent call last): File "/xxx/jsonrpcserver.py", line 200, in _doJSON_i rv = getattr(self, method)(*params) File "/xxx/jsonrpc_getwork.py", line 54, in doJSON_getwork raise self.server.RaiseRedFlags(RuntimeError('issuing duplicate work')) RuntimeError: issuing duplicate work
2013-03-31 05:16:04,695 redflag CRITICAL issuing duplicate work 2013-03-31 05:16:04,721 JSONRPCHandler ERROR Error during JSON-RPC call (UA=b'phoenix/v1.7.5', IP=::ffff:188........): doJSON_getwork[] Traceback (most recent call last): File "/xxx/jsonrpcserver.py", line 200, in _doJSON_i rv = getattr(self, method)(*params) File "/xxx/jsonrpc_getwork.py", line 54, in doJSON_getwork raise self.server.RaiseRedFlags(RuntimeError('issuing duplicate work')) RuntimeError: issuing duplicate work
2013-03-31 05:16:04,725 redflag CRITICAL issuing duplicate work 2013-03-31 05:16:04,725 JSONRPCHandler ERROR Error during JSON-RPC call (UA=b'bfgminer 2.5.0', IP=::ffff:212.........): doJSON_getwork[] Traceback (most recent call last): File "/xxx/jsonrpcserver.py", line 200, in _doJSON_i rv = getattr(self, method)(*params) File "/xxx/jsonrpc_getwork.py", line 54, in doJSON_getwork raise self.server.RaiseRedFlags(RuntimeError('issuing duplicate work')) RuntimeError: issuing duplicate work
it is because of bugs in clinet software ?
|
|
|
|
bitcoindaddy
|
![](https://bitcointalk.org/Themes/custom1/images/post/xx.gif) |
March 31, 2013, 02:38:57 PM |
|
I'm getting a few errors, Luke, can you point me in the right direction?
2013-03-31 14:26:19,779 jsonrpc_getwork WARNING Error importing 'midstate' module; work will not provide midstates
>>> 2013-03-31 14:26:19,788 sharelogging ERROR Error setting up share logger sql: (<class 'ImportError'>, ImportError('No module named psycopg2',), <traceback object at 0x15beab8>) 2013-03-31 14:26:19,789 sharelogging ERROR Error setting up share logger sql: (<class 'ImportError'>, ImportError('No module named pymysql',), <traceback object at 0x15beab8>) 2013-03-31 14:26:19,865 merkleMaker INFO New block: 0000000000000255c9ca83e5caaff3c67ba0e90106b09f1c84a4cca10efa9ab0 (height: 228928; bits: 1a02816e) 2013-03-31 14:26:19,867 JSONRPCServer INFO Waiting 14.9 seconds to longpoll 2013-03-31 14:26:20,779 JSONRPCServer INFO Ignoring longpoll attempt while another is waiting 2013-03-31 14:26:34,813 JSONRPCServer INFO Nobody to longpoll 2013-03-31 14:31:10,740 newBlockNotification INFO Received new block notification 2013-03-31 14:31:37,100 StratumHandler DEBUG Traceback (most recent call last): File "/home/eloipool/Downloads/eloipool/stratumserver.py", line 91, in found_terminator rv = getattr(self, funcname)(*rpc['params']) TypeError: _stratum_mining_subscribe() takes exactly 1 positional argument (2 given)
Exception in thread Thread-5: Traceback (most recent call last): File "/home/eloipool/Downloads/eloipool/sharelogging/sql.py", line 61, in _thread self._doInsert(o) File "/home/eloipool/Downloads/eloipool/sharelogging/sql.py", line 50, in _doInsert dbc.execute(stmt, params) sqlite3.OperationalError: no such table: shares
During handling of the above exception, another exception occurred:
Traceback (most recent call last): File "/usr/lib/python3.2/threading.py", line 740, in _bootstrap_inner self.run() File "/usr/lib/python3.2/threading.py", line 693, in run self._target(*self._args, **self._kwargs) File "/home/eloipool/Downloads/eloipool/sharelogging/sql.py", line 63, in _thread _logger.critical(traceback.format_exc()) NameError: global name 'traceback' is not defined
|
|
|
|
Luke-Jr (OP)
Legendary
Offline
Activity: 2576
Merit: 1186
|
![](https://bitcointalk.org/Themes/custom1/images/post/xx.gif) |
March 31, 2013, 03:22:11 PM |
|
2013-03-31 14:26:19,779 jsonrpc_getwork WARNING Error importing 'midstate' module; work will not provide midstates This is only a problem for DiabloMiner, since it still needs the long-deprecated midstate key. >>> 2013-03-31 14:26:19,788 sharelogging ERROR Error setting up share logger sql: (<class 'ImportError'>, ImportError('No module named psycopg2',), <traceback object at 0x15beab8>) PostgreSQL share logging requires the psycopg2 module. TypeError: _stratum_mining_subscribe() takes exactly 1 positional argument (2 given) Eloipool master does not (yet) support stratum resuming. You can ignore this.
|
|
|
|
bitcoindaddy
|
![](https://bitcointalk.org/Themes/custom1/images/post/xx.gif) |
March 31, 2013, 03:24:59 PM |
|
2013-03-31 14:26:19,779 jsonrpc_getwork WARNING Error importing 'midstate' module; work will not provide midstates This is only a problem for DiabloMiner, since it still needs the long-deprecated midstate key. >>> 2013-03-31 14:26:19,788 sharelogging ERROR Error setting up share logger sql: (<class 'ImportError'>, ImportError('No module named psycopg2',), <traceback object at 0x15beab8>) PostgreSQL share logging requires the psycopg2 module. TypeError: _stratum_mining_subscribe() takes exactly 1 positional argument (2 given) Eloipool master does not (yet) support stratum resuming. You can ignore this. Thanks!
|
|
|
|
zero-asic
Member
![*](https://bitcointalk.org/Themes/custom1/images/star.gif)
Offline
Activity: 79
Merit: 10
|
![](https://bitcointalk.org/Themes/custom1/images/post/xx.gif) |
April 01, 2013, 06:34:24 PM |
|
I have one quick question about config.py.
Does TrackerAddr have to be set to a wallet address in bitcoind or can I set it to any address to receive the rewards?
I'd hate to lose rewards.
|
|
|
|
Luke-Jr (OP)
Legendary
Offline
Activity: 2576
Merit: 1186
|
![](https://bitcointalk.org/Themes/custom1/images/post/xx.gif) |
April 01, 2013, 07:15:01 PM |
|
I have one quick question about config.py.
Does TrackerAddr have to be set to a wallet address in bitcoind or can I set it to any address to receive the rewards?
I'd hate to lose rewards.
Any version 0 address (ie, no P2SH yet).
|
|
|
|
Aseras
|
![](https://bitcointalk.org/Themes/custom1/images/post/xx.gif) |
April 04, 2013, 05:32:37 PM |
|
Thanks Luke, Got my first solo block on the avalons 2013-04-03 12:47:18,968 checkShare INFO BLKHASH: 1aad1acfb70c8687b84c11149e6956ec259f4285ba767b113c4 2013-04-03 12:47:18,969 checkShare INFO TARGET: 2816e0000000000000000000000000000000000000000000000 2013-04-03 12:47:18,969 checkShare INFO Submitting upstream 2013-04-03 12:47:18,978 checkShare INFO Real block payload: 02000000e27b70c6dd7809a4534d88fdf2c5a4562d36240d71ac3d355302000000000000 2013-04-03 12:47:19,154 Waker for BitcoinNode DEBUG Read wakeup 2013-04-03 12:47:19,155 BitcoinNode INFO Sent `block' to 1 nodes 2013-04-03 12:47:19,155 merkleMaker INFO New block: 00000000000001aad1acfb70c8687b84c11149e6956ec259f4285ba767b113c4 (height: 229535; bits: 1a02816e) 2013-04-03 12:47:19,157 JSONRPCServer INFO Nobody to longpoll 2013-04-03 12:47:19,400 blockSubmission DEBUG Upstream 'primary' accepted block 2013-04-03 12:47:19,428 newBlockNotification INFO Received new block notification
|
|
|
|
dreamwatcher
Legendary
Offline
Activity: 1064
Merit: 1000
|
![](https://bitcointalk.org/Themes/custom1/images/post/xx.gif) |
April 07, 2013, 07:45:00 PM Last edit: April 07, 2013, 08:55:05 PM by dreamwatcher |
|
Any quick answer answer on how to suppress the error :TypeError: _stratum_mining_subscribe() takes exactly 1 positional argument ( I have tried in a number of places in stratumserver.py to use a :
if (e.StratumErrMsg.find ('TypeError: _stratum_mining_subscribe() takes exactly 1 positional argument ')): pass Type of code to suppress the error from being reported.
Either it does not work or I accidentally end up suppressing a needed RPC result.
Where is it safe to suppress this particular error from showing on screen?Figured it out: In stratumserver.py: Line 108-109 if not hasattr(e, 'StratumQuiet'): self.logger.debug(fexc) Change/add: if not hasattr(e, 'StratumQuiet'): if fexc.find('takes exactly 1 positional argument') == -1: self.logger.debug(fexc) Not the prettiest solution, but for some reason I was having a problem with making the first 'if" statement as a compound statement that would work correctly. I do not see the need to present this on git, as it is a fix for a non-fatal temporary annoyance type issue. Though I will put in a request if Luke asks, or he is free to change and add as he sees fit.
|
|
|
|
voidale
Newbie
Offline
Activity: 17
Merit: 0
|
![](https://bitcointalk.org/Themes/custom1/images/post/xx.gif) |
April 10, 2013, 03:20:26 AM Last edit: April 10, 2013, 10:46:00 AM by voidale |
|
I can finally post, Don't have to spam Luke via PM's! And this might be useful for everyone else as well. I was wondering will Eloipool.py will use all CPU cores, Or I have to use something to make sure it does? Looking to balance the load for it. And any tips on how balancing the load on the ports and some optimizing tips?
edit: How can I see Mh/s stats? And what should I use as a miner username the bitcoin address? I'm using random name and it generate shares with no issues is this fine or I must use bitcoin address as a username in my miner?
|
|
|
|
|