Pages:
Author

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

legendary
Activity: 2576
Merit: 1186
what can  trigger this error ?

Code:
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.
member
Activity: 76
Merit: 10
what can  trigger this error ?

Code:
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 ?

 

member
Activity: 81
Merit: 1002
It was only the wind.
Eloipool is only for python 3.x but the config module it requires is only for python 2.x...
legendary
Activity: 2576
Merit: 1186
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).
hero member
Activity: 812
Merit: 587
Space Lord
No, you have to set an address.
sr. member
Activity: 349
Merit: 250
BTCPak.com - Exchange your Bitcoins for MP!
If TrackerAddr is not defined, will the bitcoind provide a generation address?  Ideally I'd like to provide a new address for each block.
legendary
Activity: 2576
Merit: 1186
bitcoind 0.8.0.eligius shares the bug with normal 0.8.0.

Eloipool should work fine with 0.6/0.7.
member
Activity: 76
Merit: 10
any upgrade of eloipool needed  ? because of stratum and custom bitcoind branch (0.8.0.eligius  )  and "bug"   ?   

newbie
Activity: 30
Merit: 0
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!
legendary
Activity: 4592
Merit: 1851
Linux since 1997 RedHat 4
some small exception

Quote
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('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
legendary
Activity: 2576
Merit: 1186
some small exception

Quote
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('AttributeError: 'Txn' object has no attribute 'data'

eloipool works perfect but sometimes above message appears in log file
cgminer bug.
member
Activity: 76
Merit: 10
some small exception

Quote
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('AttributeError: 'Txn' object has no attribute 'data'

eloipool works perfect but sometimes above message appears in log file
legendary
Activity: 2688
Merit: 1240
lend me yours ;-)

ok i'll put something up when i got time...
legendary
Activity: 1260
Merit: 1000
legendary
Activity: 2688
Merit: 1240
As this is the - interesting - open source backend.. Is there also an open source frontend based on this pool software and php / mysql ?
legendary
Activity: 1064
Merit: 1000
2013-02-26 22:19:38,420 jsonrpc_getwork WARNING Error importing 'midstate' module; work will not provide midstates

2013-02-26 22:19:38,440 sharelogging    ERROR   Error setting up share logger sql: (, ImportError('No module named psycopg2',), )
>>> 2013-02-26 22:19:38,441     sharelogging    ERROR   Error setting up share logger sql: (, ImportError('No module named pymysql',), )
2013-02-26 22:19:38,473 merkleMaker     INFO    New block: 0000000000000015f4b9cf9b1c9e8b1e95460cdf6397ab2cf2e8a67d7228b655 (height: 223339; bits: 1a04985c)
2013-02-26 22:19:38,476 JSONRPCServer   INFO    Waiting 15 seconds to longpoll
2013-02-26 22:19:39,441 JSONRPCServer   INFO    Ignoring longpoll attempt while another is waiting
2013-02-26 22:19:53,465 JSONRPCServer   INFO    Nobody to longpoll
2013-02-26 22:21:40,147 merkleMaker     INFO    New block: 000000000000039c13a0e83af734cf6c0c5accc06b83ed0cb6c77ff9bd38e0f4 (height: 223340; bits: 1a04985c)
2013-02-26 22:21:40,150 JSONRPCServer   INFO    Nobody to longpoll
2013-02-26 22:21:40,708 JSONRPCServer   INFO    Nobody to longpoll


What am I doing wrong? 

You need to install the python3 psycopg2 module.

sudo apt-get install python3-psycopg2

or

sudo aptitude install python3-psycopg2

member
Activity: 76
Merit: 10
probably you dont have midstate module (compile this from source file midstate.so needed )
and no sql libs pymysql etc (install python modules)
donator
Activity: 1057
Merit: 1021
2013-02-26 22:19:38,420 jsonrpc_getwork WARNING Error importing 'midstate' module; work will not provide midstates

2013-02-26 22:19:38,440 sharelogging    ERROR   Error setting up share logger sql: (, ImportError('No module named psycopg2',), )
>>> 2013-02-26 22:19:38,441     sharelogging    ERROR   Error setting up share logger sql: (, ImportError('No module named pymysql',), )
2013-02-26 22:19:38,473 merkleMaker     INFO    New block: 0000000000000015f4b9cf9b1c9e8b1e95460cdf6397ab2cf2e8a67d7228b655 (height: 223339; bits: 1a04985c)
2013-02-26 22:19:38,476 JSONRPCServer   INFO    Waiting 15 seconds to longpoll
2013-02-26 22:19:39,441 JSONRPCServer   INFO    Ignoring longpoll attempt while another is waiting
2013-02-26 22:19:53,465 JSONRPCServer   INFO    Nobody to longpoll
2013-02-26 22:21:40,147 merkleMaker     INFO    New block: 000000000000039c13a0e83af734cf6c0c5accc06b83ed0cb6c77ff9bd38e0f4 (height: 223340; bits: 1a04985c)
2013-02-26 22:21:40,150 JSONRPCServer   INFO    Nobody to longpoll
2013-02-26 22:21:40,708 JSONRPCServer   INFO    Nobody to longpoll


What am I doing wrong? 
member
Activity: 76
Merit: 10
Quote
2013-02-23 16:29:37,753 JSONRPCServer   INFO    Longpoll woke up 2 clients in 0.272 seconds
2013-02-23 16:30:45,122 merkleMaker     ERROR   Upstream 'primary' rejected proposed block from 'primary': stale-prevblk
2013-02-23 16:30:45,132 merkleMaker     CRITICAL        Traceback (most recent call last):
  File "/home/xxxx/merklemaker.py", line 680, in run
    self.merkleMaker_I()
  File "/home/xxxxx/merklemaker.py", line 670, in merkleMaker_I
    self.merkleMaker_II()
  File "/home/xxxxx/merklemaker.py", line 648, in merkleMaker_II
    return self._updateMerkleTree()
  File "/home/xxxxxx/merklemaker.py", line 536, in _updateMerkleTree
    self._updateMerkleTree_I()
  File "/home/xxxx/merklemaker.py", line 522, in _updateMerkleTree_I
    raise RuntimeError('Failed to create usable template')
RuntimeError: Failed to create usable template
Happens sometimes. bitcoind has found a new block, so is reporting our proposal stale. I'm assuming it's followed very quickly with a new block notification?


i don't think that is after new block notyfication  about minute after  new block ?

and usualy new block is annouced without this message , just normal like this:


Quote
2013-02-23 20:14:03,307 JSONRPCServer   INFO    Longpoll woke up 8 clients in 0.030 seconds
2013-02-23 20:22:16,810 merkleMaker     INFO    New block: 00000000000000112079f0792 (height: 222748; bits: 1a04985c)
2013-02-23 20:22:16,956 JSONRPCServer   INFO    Longpoll woke up 8 clients in 0.081 seconds
2013-02-23 20:22:17,951 JSONRPCServer   INFO    Waiting 4 seconds to longpoll
2013-02-23 20:22:21,972 JSONRPCServer   INFO    Longpoll woke up 7 clients in 0.010 seconds
2013-02-23 20:27:41,546 merkleMaker     INFO    New block: 00000000000001d403f01 (height: 222749; bits: 1a04985c)
2013-02-23 20:27:41,769 JSONRPCServer   INFO    Longpoll woke up 8 clients in 0.089 seconds
2013-02-23 20:27:44,384 JSONRPCServer   INFO    Waiting 2.39 seconds to longpoll
2013-02-23 20:27:58,363 JSONRPCServer   INFO    Longpoll woke up 7 clients in 0.062 seconds
legendary
Activity: 2576
Merit: 1186
Quote
2013-02-23 14:04:49,958 merkleMaker     INFO    New block: 00000000000002323fa1359645f9c26ec005792f9d463faa55931f32cde12020 (height: 222693; bits: 1a04985c)
2013-02-23 14:04:50,111 JSONRPCServer   INFO    Longpoll woke up 6 clients in 0.042 seconds
2013-02-23 14:04:50,126 merkleMaker     CRITICAL        Traceback (most recent call last):
  File "/home/xxxxxx/merklemaker.py", line 680, in run
    self.merkleMaker_I()
  File "/home/xxxxx/merklemaker.py", line 670, in merkleMaker_I
    self.merkleMaker_II()
  File "/home/xxxxx/merklemaker.py", line 648, in merkleMaker_II
    return self._updateMerkleTree()
  File "/home/xxxxx/merklemaker.py", line 536, in _updateMerkleTree
    self._updateMerkleTree_I()
  File "/home/xxxxx/merklemaker.py", line 506, in _updateMerkleTree_I
    r = self._updateMerkleTree_fromTS(TS)
  File "/home/xxx/merklemaker.py", line 485, in _updateMerkleTree_fromTS
    AcceptRatio = AcceptedScore / TotalScore
ZeroDivisionError: int division or modulo by zero
Fixed in git.

Quote
2013-02-23 16:14:17,978 JSONRPCHandler  ERROR   Error during JSON-RPC call (UA=b'cgminer 2.10.2', IP=::ffff:xx.xx.41.73): doJSON_submitblock['02000000d6b2ca723dd01ffffffff025d5988ac00000000', {}]
Traceback (most recent call last):
  File "/home/xxxx/jsonrpcserver.py", line 200, in _doJSON_i
    rv = getattr(self, method)(*params)
  File "/home/xxxxx/jsonrpc_getblocktemplate.py", line 91, in doJSON_submitblock
    data = bytes.fromhex(data)
ValueError: non-hexadecimal number found in fromhex() arg at position 166

i think it is bug in cgminer 2.10.2 ?
Yep.

Quote
2013-02-23 16:29:37,753 JSONRPCServer   INFO    Longpoll woke up 2 clients in 0.272 seconds
2013-02-23 16:30:45,122 merkleMaker     ERROR   Upstream 'primary' rejected proposed block from 'primary': stale-prevblk
2013-02-23 16:30:45,132 merkleMaker     CRITICAL        Traceback (most recent call last):
  File "/home/xxxx/merklemaker.py", line 680, in run
    self.merkleMaker_I()
  File "/home/xxxxx/merklemaker.py", line 670, in merkleMaker_I
    self.merkleMaker_II()
  File "/home/xxxxx/merklemaker.py", line 648, in merkleMaker_II
    return self._updateMerkleTree()
  File "/home/xxxxxx/merklemaker.py", line 536, in _updateMerkleTree
    self._updateMerkleTree_I()
  File "/home/xxxx/merklemaker.py", line 522, in _updateMerkleTree_I
    raise RuntimeError('Failed to create usable template')
RuntimeError: Failed to create usable template
Happens sometimes. bitcoind has found a new block, so is reporting our proposal stale. I'm assuming it's followed very quickly with a new block notification?

Quote
2013-02-23 14:33:47,374 merkleMaker     WARNING Transaction-longpoll requested 22 seconds ago, and still not ready. Is your server fast enough to keep up with your configured WorkQueueSizeRegular maximum? (doing longpoll merkle roots)
2013-02-23 14:33:47,374 merkleMaker     WARNING Haven't updated the merkle tree in at least 22 seconds! Is your server fast enough to keep up with your configured work queue minimums? (doing longpoll merkle roots)
2013-02-23 14:33:49,320 JSONRPCServer   INFO    Nobody to longpoll
2013-02-23 14:34:26,101 StratumServer   ERROR   Traceback (most recent call last):
  File "/home/yyyyyyy/networkserver.py", line 413, in serve_forever
    o.handle_read()
  File "/home/yyyyy/networkserver.py", line 59, in handle_read
    self.handle_readbuf()
  File "/homeyyyyy/networkserver.py", line 111, in handle_readbuf
    self.found_terminator()
  File "/home/yyyyyy/stratumserver.py", line 60, in found_terminator
    inbuf = b"".join(self.incoming).decode('ascii')
UnicodeDecodeError: 'ascii' codec can't decode byte 0xb9 in position 32: ordinal not in range(128)
Sounds like bad data sent to the server.
Pages:
Jump to: