Bitcoin Forum
May 06, 2024, 07:45:40 AM *
News: Latest Bitcoin Core release: 27.0 [Torrent]
 
   Home   Help Search Login Register More  
Pages: « 1 2 3 4 5 [6] 7 8 9 10 11 12 13 14 15 16 17 »  All
  Print  
Author Topic: [ANN] Eloipool - FAST Python3 pool server software - GBT/stratum/dyntarget/proxy  (Read 123080 times)
tomaszsz
Member
**
Offline Offline

Activity: 76
Merit: 10


View Profile
March 10, 2013, 09:36:11 PM
 #101

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('<L', self.data[:4])[0]
AttributeError: 'Txn' object has no attribute 'data'

eloipool works perfect but sometimes above message appears in log file
1714981540
Hero Member
*
Offline Offline

Posts: 1714981540

View Profile Personal Message (Offline)

Ignore
1714981540
Reply with quote  #2

1714981540
Report to moderator
"In a nutshell, the network works like a distributed timestamp server, stamping the first transaction to spend a coin. It takes advantage of the nature of information being easy to spread but hard to stifle." -- Satoshi
Advertised sites are not endorsed by the Bitcoin Forum. They may be unsafe, untrustworthy, or illegal in your jurisdiction.
Luke-Jr (OP)
Legendary
*
Offline Offline

Activity: 2576
Merit: 1186



View Profile
March 10, 2013, 10:20:47 PM
 #102

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('<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 Offline

Activity: 4494
Merit: 1808


Linux since 1997 RedHat 4


View Profile
March 10, 2013, 10:30:38 PM
 #103

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('<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

Pool: https://kano.is - low 0.5% fee PPLNS 3 Days - Most reliable Solo with ONLY 0.5% fee   Bitcointalk thread: Forum
Discord support invite at https://kano.is/ Majority developer of the ckpool code - k for kano
The ONLY active original developer of cgminer. Original master git: https://github.com/kanoi/cgminer
Danilo
Newbie
*
Offline Offline

Activity: 30
Merit: 0


View Profile
March 11, 2013, 02:10:24 PM
 #104

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
**
Offline Offline

Activity: 76
Merit: 10


View Profile
March 12, 2013, 11:59:08 AM
 #105

any upgrade of eloipool needed  ? because of stratum and custom bitcoind branch (0.8.0.eligius  )  and "bug"   ?   

Luke-Jr (OP)
Legendary
*
Offline Offline

Activity: 2576
Merit: 1186



View Profile
March 12, 2013, 12:14:30 PM
 #106

bitcoind 0.8.0.eligius shares the bug with normal 0.8.0.

Eloipool should work fine with 0.6/0.7.

DBordello
Sr. Member
****
Offline Offline

Activity: 349
Merit: 250


BTCPak.com - Exchange your Bitcoins for MP!


View Profile WWW
March 20, 2013, 01:52:17 AM
 #107

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
Hero Member
*****
Offline Offline

Activity: 812
Merit: 587


Space Lord


View Profile WWW
March 20, 2013, 04:59:37 AM
 #108

No, you have to set an address.
Luke-Jr (OP)
Legendary
*
Offline Offline

Activity: 2576
Merit: 1186



View Profile
March 26, 2013, 03:00:48 AM
 #109

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
**
Offline Offline

Activity: 76
Merit: 10


View Profile
March 30, 2013, 07:13:40 PM
 #110

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 ?

 

Luke-Jr (OP)
Legendary
*
Offline Offline

Activity: 2576
Merit: 1186



View Profile
March 30, 2013, 07:43:22 PM
 #111

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.

tomaszsz
Member
**
Offline Offline

Activity: 76
Merit: 10


View Profile
March 31, 2013, 08:22:04 AM
Last edit: April 02, 2013, 05:43:17 AM by tomaszsz
 #112

everything works fine but in logs , this error appears :

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


Code:
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
Hero Member
*****
Offline Offline

Activity: 481
Merit: 500


View Profile
March 31, 2013, 02:38:57 PM
 #113

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 Offline

Activity: 2576
Merit: 1186



View Profile
March 31, 2013, 03:22:11 PM
 #114

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
Hero Member
*****
Offline Offline

Activity: 481
Merit: 500


View Profile
March 31, 2013, 03:24:59 PM
 #115

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
**
Offline Offline

Activity: 79
Merit: 10


View Profile
April 01, 2013, 06:34:24 PM
 #116

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.

Eloipool + bitcoind Ubuntu 12.04 install scripts: https://bitcointalk.org/index.php?topic=171782.0
Luke-Jr (OP)
Legendary
*
Offline Offline

Activity: 2576
Merit: 1186



View Profile
April 01, 2013, 07:15:01 PM
 #117

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
Hero Member
*****
Offline Offline

Activity: 658
Merit: 500


View Profile
April 04, 2013, 05:32:37 PM
 #118

Thanks Luke, Got my first solo block on the avalons

Quote
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 Offline

Activity: 1064
Merit: 1000


View Profile WWW
April 07, 2013, 07:45:00 PM
Last edit: April 07, 2013, 08:55:05 PM by dreamwatcher
 #119

Any quick answer answer on how to suppress the error :

Code:
TypeError: _stratum_mining_subscribe() takes exactly 1 positional argument (

I have tried in a number of places in stratumserver.py to use a :

Code:
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
Code:
if not hasattr(e, 'StratumQuiet'):
self.logger.debug(fexc)

Change/add:
Code:
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 Offline

Activity: 17
Merit: 0


View Profile
April 10, 2013, 03:20:26 AM
Last edit: April 10, 2013, 10:46:00 AM by voidale
 #120

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?
Pages: « 1 2 3 4 5 [6] 7 8 9 10 11 12 13 14 15 16 17 »  All
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.19 | SMF © 2006-2009, Simple Machines Valid XHTML 1.0! Valid CSS!