Pages:
Author

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

legendary
Activity: 2576
Merit: 1186
I got an error:
Code:
makeCoinbaseTxn	ERROR	Coinbaser failed!
then i do some debug
line 105 in eloipool.py raise an error
Code:
nout = int(p.stdout.readline())
I guess CoinbaserCmd is invalid, then i run the command in terminal
Code:
echo -e "1\\n$((%d / 100))\\n1579aXhdwvKZEMrAKoCZhzGuqMa8EonuXU"
the result is:
Code:
bash: %d / 100: syntax error: operand expected (error token is "%d / 100")
any ideas?
My guess would be a non-BASH default shell...
I found the reason
Code:
p.stdout.readline()
return
Code:
b'-e 1\n'
My default shell is Bash,I use Python 3.3.1 on Ubuntu
If your default shell was BASH, you wouldn't get that result.
newbie
Activity: 14
Merit: 0
I got an error:
Code:
makeCoinbaseTxn	ERROR	Coinbaser failed!
then i do some debug
line 105 in eloipool.py raise an error
Code:
nout = int(p.stdout.readline())
I guess CoinbaserCmd is invalid, then i run the command in terminal
Code:
echo -e "1\\n$((%d / 100))\\n1579aXhdwvKZEMrAKoCZhzGuqMa8EonuXU"
the result is:
Code:
bash: %d / 100: syntax error: operand expected (error token is "%d / 100")
any ideas?
My guess would be a non-BASH default shell...
I found the reason
Code:
p.stdout.readline()
return
Code:
b'-e 1\n'
My default shell is Bash,I use Python 3.3.1 on Ubuntu
legendary
Activity: 2576
Merit: 1186
I got an error:
Code:
makeCoinbaseTxn	ERROR	Coinbaser failed!
then i do some debug
line 105 in eloipool.py raise an error
Code:
nout = int(p.stdout.readline())
I guess CoinbaserCmd is invalid, then i run the command in terminal
Code:
echo -e "1\\n$((%d / 100))\\n1579aXhdwvKZEMrAKoCZhzGuqMa8EonuXU"
the result is:
Code:
bash: %d / 100: syntax error: operand expected (error token is "%d / 100")
any ideas?
My guess would be a non-BASH default shell...
newbie
Activity: 14
Merit: 0
I got an error:
Code:
makeCoinbaseTxn	ERROR	Coinbaser failed!
then i do some debug
line 105 in eloipool.py raise an error
Code:
nout = int(p.stdout.readline())
I guess CoinbaserCmd is invalid, then i run the command in terminal
Code:
echo -e "1\\n$((%d / 100))\\n1579aXhdwvKZEMrAKoCZhzGuqMa8EonuXU"
the result is:
Code:
bash: %d / 100: syntax error: operand expected (error token is "%d / 100")
any ideas?
donator
Activity: 1055
Merit: 1020
>>> 2013-05-09 09:52:26,704     sharelogging    ERROR   Error setting up share logger sql: (, NameError("name 'long' is not defined",), )


I am trying to get mysql to record the shares.  I set up the 'shares' table and columns but it is not recording shares.

legendary
Activity: 2576
Merit: 1186
member
Activity: 76
Merit: 10
You're missing the GotWorkURI stuff.

You saw README, right?

yes , i saw

README:
Quote
"Eloipool supports merged mining using the setworkaux/gotwork RPC interface."

and in config.py

Quote
# URI to send gotwork with info for every share submission
#GotWorkURI = ''
and thats ALL...


 

SO
finall configuration

Quote
mining proxy command

Code:
python merged-mining-proxy  -w 8330 -p http://ssecreteloipool:[email protected]:9947/ -x http://namecoinrpc:manecoinrpcpass@localhost:9377/

eloipool config.py


Code:
# Secret username allowed to use setworkaux
SecretUser = "ssecreteloipool"

# Addresses to listen on for JSON-RPC GBT/getwork server
JSONRPCAddresses = (
        ('', 9947),
)

GotWorkURI = "http://mergedproxyuser:[email protected]:8330/"





namecoind config

Code:
rpcuser=namecoinrpc
rpcpassword=manecoinrpcpass
 
 
 rpcport=9377



Code:
and user miner program connect to 9947 



is it ok ?
legendary
Activity: 2576
Merit: 1186
You're missing the GotWorkURI stuff.

You saw README, right?
member
Activity: 76
Merit: 10

Miner talks to Eloipool.

ok it is easy Smiley

MMP talks to namecoind.

ok, thats easy too Smiley but


Eloipool talks to bitcoind and MMP independently.

which params (MMP url, MMP host, MMP port ? )

in eloipool makes that eloipool talks to MMP ? 

or my configuration

Quote
mining proxy command

Code:
python merged-mining-proxy  -w 8330 -p http://ssecreteloipool:[email protected]:9947/ -x http://namecoinrpc:manecoinrpcpass@localhost:9377/

eloipool config.py


Code:
# Secret username allowed to use setworkaux
SecretUser = "ssecreteloipool"

# Addresses to listen on for JSON-RPC GBT/getwork server
JSONRPCAddresses = (
        ('', 9947),
)



namecoind config

Code:
rpcuser=namecoinrpc
rpcpassword=manecoinrpcpass
 
 
 rpcport=9377

is ok, and i should just point miner to eloipool (port 9947 ) , instead  MMP (port 8330)   ?



legendary
Activity: 2576
Merit: 1186
Mining proxy talks to Eloipool and Namecoind, nothing else.

so we have this configuration


Code:
client miner <--->  mining proxy <--> eloipool  <---->   bitcoind
                            |
                             | -------> namecoind ?
 


mining proxy command

Code:
python merged-mining-proxy  -w 8330 -p http://ssecreteloipool:[email protected]:9947/ -x http://namecoinrpc:manecoinrpcpass@localhost:9377/

eloipool config.py


Code:
# Secret username allowed to use setworkaux
SecretUser = "ssecreteloipool"

# Addresses to listen on for JSON-RPC GBT/getwork server
JSONRPCAddresses = (
        ('', 9947),
)



namecoind config

Code:
rpcuser=namecoinrpc
rpcpassword=manecoinrpcpass
 
 
 rpcport=9377


and normal configuracjion connection to bitcoin
Code:
....




why i cannot connect /point miner to 8330 port ? and still get this errors

Quote
001-0: ztex_ufm1_15d4-0001-02-01-1: Error: Invalid length of string: Disabling URL http://serverurl.com:8330 for 60s
...
...
..


miner with eloipool works perfect

but with merged mining configuracion still cannot connect minner to mining proxy ...

what should i change in my configuration  ?

No.

Miner talks to Eloipool.
Eloipool talks to bitcoind and MMP independently.
MMP talks to namecoind.
member
Activity: 76
Merit: 10
Mining proxy talks to Eloipool and Namecoind, nothing else.

so we have this configuration


Code:
client miner <--->  mining proxy <--> eloipool  <---->   bitcoind
                            |
                             | -------> namecoind ?
 


mining proxy command

Code:
python merged-mining-proxy  -w 8330 -p http://ssecreteloipool:[email protected]:9947/ -x http://namecoinrpc:manecoinrpcpass@localhost:9377/

eloipool config.py


Code:
# Secret username allowed to use setworkaux
SecretUser = "ssecreteloipool"

# Addresses to listen on for JSON-RPC GBT/getwork server
JSONRPCAddresses = (
        ('', 9947),
)



namecoind config

Code:
rpcuser=namecoinrpc
rpcpassword=manecoinrpcpass
 
 
 rpcport=9377


and normal configuracjion connection to bitcoin
Code:
....




why i cannot connect /point miner to 8330 port ? and still get this errors

Quote
001-0: ztex_ufm1_15d4-0001-02-01-1: Error: Invalid length of string: Disabling URL http://serverurl.com:8330 for 60s
...
...
..


miner with eloipool works perfect

but with merged mining configuracion still cannot connect minner to mining proxy ...

what should i change in my configuration  ?
legendary
Activity: 2576
Merit: 1186


The only supported scenario is:

Code:
client miner <--> eloipool <--> bitcoind
                            |-> mining proxy <--> namecoind


so if 
Code:
 client miner <--> eloipool <-->  mining proxy <--> (bitcond + namecoind) 
   is WRONG


how to connect eloipool to bitcoind AND to mining proxy  ? 
Code:
 client miner <--> eloipool <-->  (mining proxy  + namecoind) <--> bitcoind  ?  

i see that normally mining proxy "split" connection into two daemon (BTC, NMC)

but how to do this in eloipool ?


[/quote]Mining proxy talks to Eloipool and Namecoind, nothing else.
member
Activity: 76
Merit: 10


The only supported scenario is:

Code:
client miner <--> eloipool <--> bitcoind
                            |-> mining proxy <--> namecoind

[/quote]

so if 
Code:
 client miner <--> eloipool <-->  mining proxy <--> (bitcond + namecoind) 
   is WRONG


how to connect eloipool to bitcoind AND to mining proxy  ? 
Code:
 client miner <--> eloipool <-->  (mining proxy  + namecoind) <--> bitcoind  ?  

i see that normally mining proxy "split" connection into two daemon (BTC, NMC)

but how to do this in eloipool ?

legendary
Activity: 2576
Merit: 1186



mining proxy need setworkaux so i think 1) will be ok  ?

so why in first scenario i get errors on client miner ?

The only supported scenario is:

Code:
client miner <--> eloipool <--> bitcoind
                            |-> mining proxy <--> namecoind


you mean


client miner  <---->  eloipool <----->    mining proxy <----> bitcoind
                                                                 |
                                                                  | ---->   namecond



so i must use patched bitcoind (with setworkaux function) ?

or maybe




client miner  <---->  eloipool <----->    mining proxy <----> eloipool  <--- > bitcoind
                                                                 |
                                                                  | ---->   namecond


? Smiley

No, I meant exactly what I said...
member
Activity: 76
Merit: 10



mining proxy need setworkaux so i think 1) will be ok  ?

so why in first scenario i get errors on client miner ?

The only supported scenario is:

Code:
client miner <--> eloipool <--> bitcoind
                            |-> mining proxy <--> namecoind


you mean


client miner  <---->  eloipool <----->    mining proxy <----> bitcoind
                                                                 |
                                                                  | ---->   namecond



so i must use patched bitcoind (with setworkaux function) ?

or maybe




client miner  <---->  eloipool <----->    mining proxy <----> eloipool  <--- > bitcoind
                                                                 |
                                                                  | ---->   namecond


? Smiley
newbie
Activity: 14
Merit: 0
Code:
2013-05-06 18:03:17,740	merkleMaker	CRITICAL	Traceback (most recent call last):
  File "/usr/lib/python3.2/json/decoder.py", line 369, in raw_decode
    obj, end = self.scan_once(s, idx)
StopIteration

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/llj/eloipool/merklemaker.py", line 692, in run
    self.merkleMaker_I()
  File "/home/llj/eloipool/merklemaker.py", line 682, in merkleMaker_I
    self.merkleMaker_II()
  File "/home/llj/eloipool/merklemaker.py", line 648, in merkleMaker_II
    return self._updateMerkleTree()
  File "/home/llj/eloipool/merklemaker.py", line 548, in _updateMerkleTree
    self._updateMerkleTree_I()
  File "/home/llj/eloipool/merklemaker.py", line 512, in _updateMerkleTree_I
    r = self._updateMerkleTree_fromTS(TS)
  File "/home/llj/eloipool/merklemaker.py", line 477, in _updateMerkleTree_fromTS
    MP = self._CallGBT(TS)
  File "/home/llj/eloipool/merklemaker.py", line 327, in _CallGBT
    MP = access.getblocktemplate(self.GBTReq)
  File "/usr/local/lib/python3.2/dist-packages/bitcoinrpc/authproxy.py", line 102, in __call__
    response = self._get_response()
  File "/usr/local/lib/python3.2/dist-packages/bitcoinrpc/authproxy.py", line 128, in _get_response
    parse_float=decimal.Decimal)
  File "/usr/lib/python3.2/json/__init__.py", line 322, in loads
    return cls(**kw).decode(s)
  File "/usr/lib/python3.2/json/decoder.py", line 353, in decode
    obj, end = self.raw_decode(s, idx=_w(s, 0).end())
  File "/usr/lib/python3.2/json/decoder.py", line 371, in raw_decode
    raise ValueError("No JSON object could be decoded")
ValueError: No JSON object could be decoded
any ideas?
legendary
Activity: 2576
Merit: 1186
It's not a proxy. Miners continue to talk to Eloipool.

idont understand your suggestion Tongue


maybe it should be


1)
client minrer <--->  mining proxy <--> eloipool  <---->   bitcoind
                                    |
                                     | -------> namecoind ?



or


2)

client miner  <---->  eloipool <----->    mining proxy <----> bitcoind
                                                                 |
                                                                  | ---->   namecond




mining proxy need setworkaux so i think 1) will be ok  ?

so why in first scenario i get errors on client miner ?

The only supported scenario is:

Code:
client miner <--> eloipool <--> bitcoind
                            |-> mining proxy <--> namecoind
member
Activity: 76
Merit: 10
It's not a proxy. Miners continue to talk to Eloipool.

idont understand your suggestion Tongue


maybe it should be


1)
client minrer <--->  mining proxy <--> eloipool  <---->   bitcoind
                                    |
                                     | -------> namecoind ?



or


2)

client miner  <---->  eloipool <----->    mining proxy <----> bitcoind
                                                                 |
                                                                  | ---->   namecond




mining proxy need setworkaux so i think 1) will be ok  ?

so why in first scenario i get errors on client miner ?
legendary
Activity: 2576
Merit: 1186
It's not a proxy. Miners continue to talk to Eloipool.
member
Activity: 76
Merit: 10
eloipool works OK  Smiley in normal mining THANKS LUKE -JR Smiley

but i try to setup merged mining with namecoin,
and

Code:
python merged-mine-proxy  -w 8330 -p http://secretusereloipool:[email protected]:9341/ -x http://secretusernamecoin:secretpassnamecoin@localhost:8477/

and it look ok, mining proxy start

i get this

Code:
2013-05-04T16:49:00.165102,updateaux
2013-05-04T16:49:00.324030,updateaux
2013-05-04T16:49:05.324250,updateaux
and it looks ok ?

BUT

when i try to use miner on port 8330 i get

Code:
001-0: ztex_ufm1_15d4-0001-02-01-1: Error: Invalid length of string: Disabling URL http://serwerpool.eu:8330 for 60s
   (when i use ztex miner)



or

Code:
2013-05-04 18:38:51: Listener for "Default": serwerpool.eu:8330 04/05/2013 18:38:51, checking for stratum...
2013-05-04 18:38:51: Listener for "Default": serwerpool.eu:8330 04/05/2013 18:38:51, server error: Method not found
2013-05-04 18:38:51: Listener for "Default": serwerpool.eu:8330 04/05/2013 18:38:51, no response to getwork, using as stratum
2013-05-04 18:39:01: Listener for "Default": serwerpool.eu:8330 04/05/2013 18:39:01, Failed to subscribe
2013-05-04 18:39:03: Listener for "Default": serwerpool.eu:8330 04/05/2013 18:39:03, IO errors - 1, tolerance 2


should I set something additional in eloipool or merged mining proxy ? to get merged mining BTC + NMC work  ?

I use bitcoind  'version' => 80100, 'protocolversion' => 70001,
and
namecoin  [version] => 35000,

maybe i should  run other version namecoin  ?
Pages:
Jump to: