Pages:
Author

Topic: Avalon users: bitcoind + eloipool configuration (Read 36206 times)

newbie
Activity: 6
Merit: 0
November 17, 2015, 11:53:13 AM
Anyone know where to get the midstate code since gitorious is unavailable?
newbie
Activity: 1
Merit: 0
 I followed all the instruction to set up the pool but I have a problem with :
"nohup: redirecting stderr to stdout" error
Do you know why ?
newbie
Activity: 3
Merit: 0
jsonrpc_getwork WARNING Error importing 'midstate' module; work will not provide midstates

>>> Traceback (most recent call last):
  File "eloipool.py", line 915, in
    MM.start()
  File "/var/www/eloipool/merklemaker.py", line 697, in start
    self._prepare()
  File "/var/www/eloipool/merklemaker.py", line 120, in _prepare
    TS['access'] = URI2Access(TS['uri'])
  File "/var/www/eloipool/merklemaker.py", line 110, in URI2Access
    access = jsonrpc.ServiceProxy(uri)
AttributeError: 'module' object has no attribute 'ServiceProxy'
Actually I get this error now that I fixed midstate'

I have the error "jsonrpc_getwork WARNING Error importing 'midstate' module; work will not provide midstates". 
How did you fix the midstate?
Posted from Bitcointa.lk - #5QoZrEHghq6BtmzU
legendary
Activity: 1218
Merit: 1001
well, got it all sorted.

One last piece of the puzzle and everything will be dandy

dynamic targeting seems to be a failure for me

all diff 1 shares
lots of stale shares

i tried commenting out the sharetarget and getworktarget in config.py as suggested in another thread to no avail
youll see in eloipool.py hte value is hard coded if no variable exists in config.py

any help?

Try adding DynamicTargetServerAddresses= to your config man.

What does this mean/do?  I don't see it listed in the example config file.  I'm having same problem of only diff 1 shares.  Thanks.
sr. member
Activity: 257
Merit: 250
well, got it all sorted.

One last piece of the puzzle and everything will be dandy

dynamic targeting seems to be a failure for me

all diff 1 shares
lots of stale shares

i tried commenting out the sharetarget and getworktarget in config.py as suggested in another thread to no avail
youll see in eloipool.py hte value is hard coded if no variable exists in config.py

any help?

Try adding DynamicTargetServerAddresses to your config man.
newbie
Activity: 31
Merit: 0
well, got it all sorted.

One last piece of the puzzle and everything will be dandy

dynamic targeting seems to be a failure for me

all diff 1 shares
lots of stale shares

i tried commenting out the sharetarget and getworktarget in config.py as suggested in another thread to no avail
youll see in eloipool.py hte value is hard coded if no variable exists in config.py

any help?
newbie
Activity: 31
Merit: 0
well it is and it isnt.

I am using 8332 to mine directly to bitcoind

netstat and lsof -i show me that eloipool is communicating with bitcoind

and infact my local network is reaching out to eloipool on 3334 bfgminer says no however. im using eligius for block announcements though in truth bitcoind is only ~1 second behind so probably just a waste of time.

the log file is giving me nothing to work with..

I'll keep trying
legendary
Activity: 3430
Merit: 3080
If the reason for using Eloipool is to solo mine, then latest cgminer has solo mining functionality built in (either 4.0.0 or 4.1.0, check the cgminer thread to be sure). I think you can just setup a bitcoind node and point the miner config to it on port 8332
newbie
Activity: 31
Merit: 0
okay now the port is open and accessible from the internet

but i still cant connect via stratum.... BAH

any ideas?
newbie
Activity: 31
Merit: 0
bitcoind and eloipool seem to be up and running

however


root@Bitcoin-server:~# netstat --listen
Active Internet connections (only servers)
Proto Recv-Q Send-Q Local Address           Foreign Address         State
tcp        0      0 *:ssh                   *:*                     LISTEN
tcp        0      0 *:8333                  *:*                     LISTEN
tcp6       0      0 [::]:ssh                [::]:*                  LISTEN
tcp6       0      0 [::]:8332               [::]:*                  LISTEN
tcp6       0      0 [::]:8333               [::]:*                  LISTEN

port 3334 isnt open

my logfile only indicates new blocks on network
newbie
Activity: 9
Merit: 0
Hi all,

Is there a recommended hardware for the bitcoind + eloipool set?
Also, what should I expect in regards to system utilization?
sr. member
Activity: 264
Merit: 250
derp
I followed the directions and I get no errors. Port 8338 comes live and can be seen via netstat.


tcp6      15      0 :::8338                 :::*                    LISTEN
tcp6       0      0 :::22                   :::*                    LISTEN
tcp6      70      0 192.168.1.8:8338        192.168.1.8:33885       CLOSE_WAIT
tcp6      71      0 192.168.1.8:8338        192.168.1.8:33896       CLOSE_WAIT
tcp6      71      0 192.168.1.8:8338        192.168.1.8:33890       CLOSE_WAIT
tcp6      71      0 192.168.1.8:8338        192.168.1.8:33897       CLOSE_WAIT
tcp6      71      0 192.168.1.8:8338        192.168.1.8:33899       CLOSE_WAIT
tcp6      70      0 192.168.1.8:8338        192.168.1.8:33892       CLOSE_WAIT
tcp6      71      0 192.168.1.8:8338        192.168.1.8:33895       CLOSE_WAIT
tcp6      71      0 192.168.1.8:8338        192.168.1.8:33891       CLOSE_WAIT
tcp6      71      0 192.168.1.8:8338        192.168.1.8:33900       CLOSE_WAIT
tcp6      71      0 192.168.1.8:8338        192.168.1.8:33889       CLOSE_WAIT
tcp6      71      0 192.168.1.8:8338        192.168.1.8:33894       CLOSE_WAIT
tcp6      71      0 192.168.1.8:8338        192.168.1.8:33898       CLOSE_WAIT
tcp6      70      0 192.168.1.8:8338        192.168.1.8:33887       CLOSE_WAIT
tcp6      70      0 192.168.1.8:8338        192.168.1.8:33884       CLOSE_WAIT
tcp6      70      0 127.0.0.1:8338          127.0.0.1:49649         CLOSE_WAIT



gentoo001 home # ./minerd -o stratum+tcp://192.168.1.8:8338 -u admin -p butthole -q
[2014-01-18 22:51:19] 1 miner threads started, using 'scrypt' algorithm.
[2014-01-18 22:51:19] Starting Stratum on stratum+tcp://192.168.1.8:8338
[2014-01-18 22:51:49] stratum_subscribe timed out
[2014-01-18 22:51:49] ...retry after 30 seconds
[2014-01-18 22:52:49] stratum_subscribe timed out
[2014-01-18 22:52:49] ...retry after 30 seconds
sr. member
Activity: 267
Merit: 250
hi all

since last night i have some strange behavior with eloi.

sometimes i have this in my logs:

Code:
2013-10-28 00:29:27,579 StratumHandler DEBUG Traceback (most recent call last):
  File "./eloipool.py", line 668, in receiveShare
    checkShare(share)
  File "./eloipool.py", line 506, in checkShare
    MWL = workLog[None]
KeyError: None

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/daten/bitcoinchain/eloipool/eloipool/stratumserver.py", line 91, in found_terminator
    rv = getattr(self, funcname)(*rpc['params'])
  File "/daten/bitcoinchain/eloipool/eloipool/stratumserver.py", line 199, in _stratum_mining_submit
    self.server.receiveShare(share)
  File "./eloipool.py", line 677, in receiveShare
    logShare(share)
  File "./eloipool.py", line 651, in logShare
    share['solution'] = b2a_hex(swap32(share['data'])).decode('utf8')
KeyError: 'data'


A few other people have this problem as well, but the inquiries go unanswered in the main eloipool thread.
https://bitcointalksearch.org/topic/m.3793182
sr. member
Activity: 267
Merit: 250
b) increase share target (note increased '0' and decreased 'f'):
Code:
-ShareTarget = 0x00000000ffffffffffffffffffffffffffffffffffffffffffffffffffffffff
+ShareTarget = 0x000000000fffffffffffffffffffffffffffffffffffffffffffffffffffffff

c) DynamicTargetting = 2

d) DynamicTargetGoal = 6


How do these settings scale for other hash rates?  
newbie
Activity: 24
Merit: 0
hi all

since last night i have some strange behavior with eloi.

sometimes i have this in my logs:

Code:
2013-10-28 00:29:27,579 StratumHandler DEBUG Traceback (most recent call last):
  File "./eloipool.py", line 668, in receiveShare
    checkShare(share)
  File "./eloipool.py", line 506, in checkShare
    MWL = workLog[None]
KeyError: None

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/daten/bitcoinchain/eloipool/eloipool/stratumserver.py", line 91, in found_terminator
    rv = getattr(self, funcname)(*rpc['params'])
  File "/daten/bitcoinchain/eloipool/eloipool/stratumserver.py", line 199, in _stratum_mining_submit
    self.server.receiveShare(share)
  File "./eloipool.py", line 677, in receiveShare
    logShare(share)
  File "./eloipool.py", line 651, in logShare
    share['solution'] = b2a_hex(swap32(share['data'])).decode('utf8')
KeyError: 'data'


and since 4 hours i have every second this and notihing else:


Code:
2013-10-28 11:44:15,520 merkleMaker CRITICAL Traceback (most recent call last):
  File "/daten/bitcoinchain/eloipool/eloipool/merklemaker.py", line 692, in run
    self.merkleMaker_I()
  File "/daten/bitcoinchain/eloipool/eloipool/merklemaker.py", line 682, in merkleMaker_I
    self.merkleMaker_II()
  File "/daten/bitcoinchain/eloipool/eloipool/merklemaker.py", line 660, in merkleMaker_II
    return self._updateMerkleTree()
  File "/daten/bitcoinchain/eloipool/eloipool/merklemaker.py", line 548, in _updateMerkleTree
    self._updateMerkleTree_I()
  File "/daten/bitcoinchain/eloipool/eloipool/merklemaker.py", line 512, in _updateMerkleTree_I
    r = self._updateMerkleTree_fromTS(TS)
  File "/daten/bitcoinchain/eloipool/eloipool/merklemaker.py", line 477, in _updateMerkleTree_fromTS
    MP = self._CallGBT(TS)
  File "/daten/bitcoinchain/eloipool/eloipool/merklemaker.py", line 327, in _CallGBT
    MP = access.getblocktemplate(self.GBTReq)
  File "/daten/bitcoinchain/python-bitcoinrpc/bitcoinrpc/authproxy.py", line 112, in __call__
    'Content-type': 'application/json'})
  File "/usr/lib/python3.2/http/client.py", line 970, in request
    self._send_request(method, url, body, headers)
  File "/usr/lib/python3.2/http/client.py", line 998, in _send_request
    self.putrequest(method, url, **skips)
  File "/usr/lib/python3.2/http/client.py", line 853, in putrequest
    raise CannotSendRequest(self.__state)
http.client.CannotSendRequest: Request-sent


some ideas? please help i'm new to eloi

before this eloi works fine, i've mined 2 blocks...

best regards joe

newbie
Activity: 24
Merit: 0
does anybody knows how can i configure different difficultys for different miners?

i have some avalons and one brandnew bitfury here. but the bitfury have some problems on pools with vardiff (like slush) and also if the diff is set to low

and another question:

is it possible to enable a log-rotate for the sharelog, same like for the pool log itself

best regards joe
legendary
Activity: 1554
Merit: 1008
I run simple script:

Code:
from jsonrpc.proxy import ServiceProxy


 
aa = ServiceProxy("http://rpcuser:[email protected]:8332")
              
aa.getinfo()

on python2.7 it successful
on pyton3.3 - error
Code:
File "probe.py", line 17, in
    aa.getinfo()
  File "/home/icreator/pools/eloipool-3/bitcoinrpc/authproxy.py", line 118, in __call__
    response = self._get_response()
  File "/home/icreator/pools/eloipool-3/bitcoinrpc/authproxy.py", line 156, in _get_response
    parse_float=decimal.Decimal)
  File "/usr/lib/python3.3/json/__init__.py", line 332, in loads
    return cls(**kw).decode(s)
  File "/usr/lib/python3.3/json/decoder.py", line 353, in decode
    obj, end = self.raw_decode(s, idx=_w(s, 0).end())
  File "/usr/lib/python3.3/json/decoder.py", line 371, in raw_decode
    raise ValueError("No JSON object could be decoded")
ValueError: No JSON object could be decoded
legendary
Activity: 1554
Merit: 1008
I insert print (responce) in:
#/usr/lib/python3.3/json/decoder.py
Code:
   def decode(self, s, _w=WHITESPACE.match):
        """Return the Python representation of ``s`` (a ``str`` instance
        containing a JSON document).

        """
        print('                 decoder.decode')
        print( ' str:',s)
        obj, end = self.raw_decode(s, idx=_w(s, 0).end())
        end = _w(s, end).end()
        if end != len(s):
            raise ValueError(errmsg("Extra data", s, end, len(s)))
        return obj

and I see that:

Code:
"http://www.w3.org/TR/1999/REC-html401-19991224/loose.dtd">


Error


401 Unauthorized.





I have /usr/lib/python3.3/http
that used in bitcoinrpc/authproxy.py
Code:
try:
    import http.client as httplib
except ImportError:
    import httplib

if I use httplib from python2.7 - connection established but many others errors rised ((
legendary
Activity: 1554
Merit: 1008
updatetd - see first mess - user:pass = user:pass
hero member
Activity: 574
Merit: 501
ConnectionRefusedError: [Errno 111] Connection refused

You aren't connecting to bitcoind - wrong password, or username possibly, or not listening on localhost....
Make sure you don't have a firewall set up that's rejecting connections on the port you are using.
Pages:
Jump to: