Pages:
Author

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

sr. member
Activity: 294
Merit: 262
Hi I've installed bitcoind, got all blocks, installed eloipool and set it up. I've used https://bitcointalk.org/index.php?topic=158105.0;all as a guidance. Now I have the problem, eloipool and bitcoind are running, but eloipool does not respond at all.. I've tried several ports, usernames, no usernames, different miners, it just does not respond.

Is there something big I am missing?
member
Activity: 61
Merit: 10
Alright I got to a new point in my install.

Code:
>>> Traceback (most recent call last):
  File "./eloipool.py", line 863, in
    BitcoinLink(bcnode, dest=config.UpstreamBitcoindNode)
  File "/root/eloipool/bitcoin/node.py", line 50, in __init__
    sock.connect(dest)
socket.error: [Errno 111] Connection refused

As far as I can tell UpstreamBitcoindNode is set correctly in config.py:

Code:
UpstreamBitcoindNode = ('127.0.0.1', 18333)  # testnet

Is there something I'm missing?

Edit: fixed midstate module error
legendary
Activity: 2576
Merit: 1186
Is there a particular OS/Python version you have been successful with?
I run Gentoo  + Python 3.1 or 3.2.

Another possibility (more likely perhaps) is that you miscompiled the midstate module for your system... be sure to check CFLAGS in the Makefile.
member
Activity: 61
Merit: 10
This is all I get when I try running ./eloipool.py:

Code:
root@pool:~/eloipool# ./eloipool.py
Illegal instruction

Any ideas?  Huh

I checked the log but it's empty.
Almost certainly something wrong with your OS or Python.

Is there a particular OS/Python version you have been successful with?
legendary
Activity: 2576
Merit: 1186
This is all I get when I try running ./eloipool.py:

Code:
root@pool:~/eloipool# ./eloipool.py
Illegal instruction

Any ideas?  Huh

I checked the log but it's empty.
Almost certainly something wrong with your OS or Python.
newbie
Activity: 20
Merit: 0
This is all I get when I try running ./eloipool.py:

Code:
root@pool:~/eloipool# ./eloipool.py
Illegal instruction

Any ideas?  Huh
try this
Code:
root@pool:~/eloipool# python ./eloipool.py

Gives the same message.

Edit: tried with "python eloipool.py -d" but there's no debug info either.
sr. member
Activity: 315
Merit: 250
Official sponsor of Microsoft Corp.
This is all I get when I try running ./eloipool.py:

Code:
root@pool:~/eloipool# ./eloipool.py
Illegal instruction

Any ideas?  Huh
try this
Code:
root@pool:~/eloipool# python ./eloipool.py
newbie
Activity: 20
Merit: 0
This is all I get when I try running ./eloipool.py:

Code:
root@pool:~/eloipool# ./eloipool.py
Illegal instruction

Any ideas?  Huh

I checked the log but it's empty.
newbie
Activity: 43
Merit: 0
Sometimes i have in the Sharelog :
Code:
1366382986.688058 ::ffff:192.168.178.11 Tester N - high-hash 00000002455625af0d541dbc1b0a5b178522ec1c2f4529d768622586000000dd00000000318ba5ab5df7fcc99e6c55904d245306e74095e39a678cfa0eab1618ec30cfd15171593d1a01de948933c68e

It is defined in the Stratumprotocol , but what does it mean ?

Thanks.
newbie
Activity: 17
Merit: 0
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?
legendary
Activity: 1064
Merit: 1000
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.





hero member
Activity: 658
Merit: 500
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
legendary
Activity: 2576
Merit: 1186
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).
member
Activity: 79
Merit: 10
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.
hero member
Activity: 481
Merit: 500
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: (, ImportError('No module named psycopg2',), )
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!
legendary
Activity: 2576
Merit: 1186
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: (, ImportError('No module named psycopg2',), )
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.
hero member
Activity: 481
Merit: 500
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: (, ImportError('No module named psycopg2',), )
2013-03-31 14:26:19,789 sharelogging    ERROR   Error setting up share logger sql: (, ImportError('No module named pymysql',), )
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
member
Activity: 81
Merit: 1002
It was only the wind.
Bump. Any help?

EDIT: Never mind, I'm an idiot >.<
member
Activity: 76
Merit: 10
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 ?
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...
I think you're confused.. the only config "module" is the config file you have to write yourself (possibly based on the included example).

import config
ImportError: No module named 'config'
Pages:
Jump to: