Bitcoin Forum
November 05, 2024, 06:25:36 PM *
News: Latest Bitcoin Core release: 28.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 123133 times)
Luke-Jr (OP)
Legendary
*
Offline Offline

Activity: 2576
Merit: 1186



View Profile
September 22, 2014, 05:17:56 AM
 #301

Shocked  Shocked  Shocked

I am hopefully on my last error but, since I have not seen any of the errors above this line, I am skeptical this will be the end-all.

Hello, I am seeing a bug, tried changing my hostname already, that was not the cause.

2014-09-21 19:13:26,818 SocketListener  ERROR   ('127.0.0.1', 8338)
Traceback (most recent call last):
  File "/home/pi/eloipool/util.py", line 144, in tryErr
    return func(*a, **kw)
  File "/home/pi/eloipool/networkserver.py", line 262, in setup_socket
    sock = self._makebind(server_address)
  File "/home/pi/eloipool/networkserver.py", line 253, in _makebind
    return self._makebind_py(*a, **ka)
  File "/home/pi/eloipool/networkserver.py", line 229, in _makebind_py
    sock = socket.socket(self.address_family, socket.SOCK_STREAM)
  File "/usr/lib/python3.2/socket.py", line 94, in __init__
    _socket.socket.__init__(self, family, type, proto, fileno)
socket.error: [Errno 97] Address family not supported by protocol

 Huh  Huh  Huh


Eloipool only supports IPv6.
If you want to use obsolete IPv4, you will need an OS that supports IPv4 connections on IPv6 sockets (like Linux) and configure it to bind on the appropriate iPv6 address (as in the example config).

bitzcointalk
Member
**
Offline Offline

Activity: 111
Merit: 10

My avatar is in the shop


View Profile
September 22, 2014, 05:37:33 PM
 #302

I managed to get it to work by replacing all INET6 with INET.
I am good at this point.
I have a new error, not sure if it is component configuration related or not...

I found a scrypt version of eloipool and im trying to merge-mine litecoin and dogecoin.
I think the configuration is...


Miner -> Eloipool -> merged-mine-proxy -> litecoin wallet + dogecoin wallet.

Please confirm if I have this conceptually correct.
I think the setworkaux is missing in the wallet, so, I suspect I need to modify the wallet code?
I am confused because I saw setworkaux in some of the pool code to as though my componets above might not be correct.
Please confirm.

                Thank you in advance  Grin

 Shocked
bitzcointalk
Member
**
Offline Offline

Activity: 111
Merit: 10

My avatar is in the shop


View Profile
September 22, 2014, 08:11:21 PM
Last edit: September 23, 2014, 05:29:57 AM by bitzcointalk
 #303

I started at the beginning of the forum and found my answer he he he  Grin

I'll go ahead and re-post it here:

Thanks Luke!

client miner <--> eloipool <--> bitcoind
                     |-> merged mining proxy (MMP) <--> namecoind


merged-mining-proxy:
python merged-mining-proxy  -w 8330 -p http://ssecreteloipool:222@127.0.0.1:9947/ -x http://namecoinrpc:manecoinrpcpass@localhost:9377/

eloipool config.py:
# Secret username allowed to use setworkaux
SecretUser = "ssecreteloipool"

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

GotWorkURI = "http://mergedproxyuser:mergedproxypass@127.0.0.1:8330/"

namecoin config:
rpcuser=namecoinrpc
rpcpassword=manecoinrpcpass
rpcport=9377

and user miner program connect to 9947

Attempting the above, stand by......


bitzcointalk
Member
**
Offline Offline

Activity: 111
Merit: 10

My avatar is in the shop


View Profile
September 23, 2014, 12:05:38 AM
 #304

Still working on it... (Looks now like the target was set so high I always find blocks =/ so, no worries)
More clues:

Posting "method": "gotwork" i get:

<html>
  <head><title>404 - No Such Resource</title></head>
  <body>
    <h1>No Such Resource</h1>
    <p>No such child resource.</p>
  </body>
</html>

trying to debug it.
I'm guessing it means I did something odd.
I'm using Python3.2 and a couple of these script seems to have needed a conversion from 2to3 via the 2to3 app.
Perhaps I should do that to all of them...

And on we trudge.
bitzcointalk
Member
**
Offline Offline

Activity: 111
Merit: 10

My avatar is in the shop


View Profile
September 23, 2014, 02:37:10 AM
Last edit: September 23, 2014, 05:30:24 AM by bitzcointalk
 #305

MMP uses Twisted library, which seems to be having an issue.
I still keep getting the following when eloipool sends gotwork to the MMP.

<html>
  <head><title>404 - No Such Resource</title></head>
  <body>
    <h1>No Such Resource</h1>
    <p>No such child resource.</p>
  </body>
</html>

Still debugging, any suggestions?
Using Python3.2
Twisted 14.0.2
NOOBS RPI
Not using twistd dont think I need it.

 Huh

And on we trudge.
bitzcointalk
Member
**
Offline Offline

Activity: 111
Merit: 10

My avatar is in the shop


View Profile
September 23, 2014, 06:44:33 PM
Last edit: September 23, 2014, 09:05:43 PM by bitzcointalk
 #306

Ah! I just had to restart after all the installations.
Owh, Wait, But what do we have here.... Another error  Roll Eyes
Communications between the MMP and Eloipool are broken, I think the script has serious issues in Python3.
Its going to take week to sort this out since in know precisely nothing about Python  Sad
Sure, just buy some hardware, plug it in, hash away, and bank some crytpo coins, humff.

I guess what I really need is a working tested Python 3.2 or 3.x version of MMP so I can merge in the changes.
bitzcointalk
Member
**
Offline Offline

Activity: 111
Merit: 10

My avatar is in the shop


View Profile
September 24, 2014, 12:48:34 AM
Last edit: September 24, 2014, 03:55:02 AM by bitzcointalk
 #307

Its the Unicode issue, Twisted library is a pain to use in 3.x since python changed default handling.
If I leave out the MerkleTree import, then I can use Python2.7.
Please advise if the MMP absolutely needs the MerkleTree import.  Huh  Huh  Huh

Wait, wait, looked at the code, it says only 1 subchain will work, interesting...
So, really do have a delema here... I have to make 1/2 work in v3 which I have already managed, and 1/2 work in v2 for MMP.

And on we trudge.
bitzcointalk
Member
**
Offline Offline

Activity: 111
Merit: 10

My avatar is in the shop


View Profile
September 24, 2014, 07:50:10 PM
 #308

Ha! That worked... some massaging but, I got it  Grin
Now to test it  Wink

And on we trudge.
Sergio_Demian_Lerner
Hero Member
*****
Offline Offline

Activity: 555
Merit: 654


View Profile WWW
September 30, 2014, 07:23:59 PM
 #309

I've setup a local stratum server using eloipool. I'm trying to test the stratum server manually using either telnet or curl as in:

curl --data-binary '{"id": 1, "method": "mining.subscribe", "params": []}'  -H 'content-type:text/plain;' http://myuser:mypassword@127.0.0.1:3334/

The connection is closed as soon as the first line of the http headers is sent (usually POST) (curl prints: curl: (52) Empty reply from server)

Any idea of what's happening?

Luke-Jr (OP)
Legendary
*
Offline Offline

Activity: 2576
Merit: 1186



View Profile
September 30, 2014, 07:36:17 PM
 #310

I've setup a local stratum server using eloipool. I'm trying to test the stratum server manually using either telnet or curl as in:

curl --data-binary '{"id": 1, "method": "mining.subscribe", "params": []}'  -H 'content-type:text/plain;' http://myuser:mypassword@127.0.0.1:3334/

The connection is closed as soon as the first line of the http headers is sent (usually POST) (curl prints: curl: (52) Empty reply from server)

Any idea of what's happening?
Eloipool does not support StratumMP over HTTP (nor does any other StratumMP server AFAIK), only GBT and getwork.
For StratumMP, you need to connect over a raw TCP stream.

Sergio_Demian_Lerner
Hero Member
*****
Offline Offline

Activity: 555
Merit: 654


View Profile WWW
September 30, 2014, 08:07:54 PM
 #311

Thank you very much Luke.
knowndragon
Newbie
*
Offline Offline

Activity: 28
Merit: 0


View Profile
January 16, 2015, 08:29:11 AM
 #312

Luke you probably don't remember me but you help teach me to overclock on a phenom II well push it further with memory timings. I am gonna try this out. Subbing gonna read all first but hopefully it sounds what I am looking for.
Agamenon
Newbie
*
Offline Offline

Activity: 23
Merit: 0


View Profile
February 12, 2015, 08:57:06 PM
 #313

Luke, sorry, I got stuck here-->

Quote
jsonrpc_getwork WARNING Error importing 'midstate' module; work will not provide midstates
>>> Traceback (most recent call last):
  File "./eloipool.py", line 957, in <module>
    MM.start()
  File "/home/pool/eloipool/merklemaker.py", line 699, in start
    self._prepare()
  File "/home/pool/eloipool/merklemaker.py", line 121, in _prepare
    TS['access'] = URI2Access(TS['uri'])
  File "/home/pool/eloipool/merklemaker.py", line 111, in URI2Access
    access = jsonrpc.ServiceProxy(uri)
AttributeError: 'module' object has no attribute 'ServiceProxy'

Any help pls?  Huh
SargeR33
Member
**
Offline Offline

Activity: 112
Merit: 10

★Bitin.io★ - Instant Exchange


View Profile
February 14, 2015, 04:56:05 AM
 #314

Although I have never done any of this before and have no idea what prerequisites are needed, I will attempt to give this a try on my linux system. I'm trying to setup a private pool for my machines to run off.

tuaris
Hero Member
*****
Offline Offline

Activity: 780
Merit: 501



View Profile WWW
March 09, 2015, 04:12:32 PM
 #315

Is it possible to submit a block without using an JSON-RPC call to bitcoind?  Is that what bitcoin/node.py is for?
Reason I ask is because I constantly experience an issue that is similar to this: https://github.com/bitcoin/bitcoin/issues/2889

NginUS
Full Member
***
Offline Offline

Activity: 190
Merit: 100


View Profile
September 27, 2015, 07:18:45 AM
 #316

0.045 BTC Bounty- Help me get my eloipool running right so people can connect & fees are deducted


Hi,

I got bitcoind & eloipool up & running on my VPS, but I have no mining gear with which to test it- bfgminer returns an error about 'no servers to connect to' when I run it from my desktop using the public IP address of the VPS.

Bounty will be paid to anyone who can sort out the configuration such that bitcoin miners can connect to the pool & pool fees are deducted properly.

It could be configured properly now, but I can't tell without connecting to it myself to see. Either way, I'd like you to record the screen or something to prove its working right, so I can pay you knowing I'm not getting scammed.

PM me if interested.

Thanks,

-N
hodedowe
Sr. Member
****
Offline Offline

Activity: 359
Merit: 251


View Profile
October 19, 2015, 08:45:40 PM
 #317

I just got this running and mining is working (finally!) but I'm receiving an error in my log file, similar to another user. If a fix was posted I didn't see it.

Does anyone with more python experience have an idea of where to troubleshoot?

Code:
2015-10-19 15:05:54,195	BitcoinRPC	DEBUG	-45550-> getblocktemplate [{"capabilities": ["coinbasevalue", "coinbase/append", "coinbase", "generation", "time", "transactions/remove", "prevblock"]}]
2015-10-19 15:05:54,216 BitcoinRPC DEBUG -45551-> getmemorypool [{"tx": "obj", "capabilities": ["coinbasevalue", "coinbase/append", "coinbase", "generation", "time", "transactions/remove", "prevblock"]}]
2015-10-19 15:05:54,216 BitcoinRPC DEBUG -45552-> getmemorypool []
2015-10-19 15:05:54,218 merkleMaker CRITICAL Traceback (most recent call last):
  File "/eloipool/merklemaker.py", line 704, in run
    self.merkleMaker_I()
  File "/eloipool/merklemaker.py", line 694, in merkleMaker_I
    self.merkleMaker_II()
  File "/eloipool/merklemaker.py", line 660, in merkleMaker_II
    return self._updateMerkleTree()
  File "/eloipool/merklemaker.py", line 560, in _updateMerkleTree
    self._updateMerkleTree_I()
  File "/eloipool/merklemaker.py", line 523, in _updateMerkleTree_I
    r = self._updateMerkleTree_fromTS(TS)
  File "/eloipool/merklemaker.py", line 484, in _updateMerkleTree_fromTS
    MP = self._CallGBT(TS)
  File "/eloipool/merklemaker.py", line 332, in _CallGBT
    MP = access.getblocktemplate(self.GBTReq)
  File "/eloipool/bitcoinrpc/authproxy.py", line 134, in __call__
    'Content-type': 'application/json'})
  File "/usr/lib/python3.2/http/client.py", line 971, in request
    self._send_request(method, url, body, headers)
  File "/usr/lib/python3.2/http/client.py", line 999, in _send_request
    self.putrequest(method, url, **skips)
  File "/usr/lib/python3.2/http/client.py", line 854, in putrequest
    raise CannotSendRequest(self.__state)
http.client.CannotSendRequest: Request-sent

Solo mining is alive and profitable!
Helped? Thanks! 1CXRFh4bDVFBsUzoHMMDbTMPcBP14RUTus
Luke-Jr (OP)
Legendary
*
Offline Offline

Activity: 2576
Merit: 1186



View Profile
October 20, 2015, 12:41:13 AM
 #318

Downgrade python-bitcoinrpc.

hodedowe
Sr. Member
****
Offline Offline

Activity: 359
Merit: 251


View Profile
October 20, 2015, 12:56:19 AM
Last edit: October 20, 2015, 03:34:18 AM by hodedowe
 #319

Will do. What version should I be using?

I've "downgraded" by using this command

Code:
git checkout -b 770881c8bd9b1f92427290270b37a28751cf9df0


This sent my "bad" shares & rejected through the roof.  Shocked


Solo mining is alive and profitable!
Helped? Thanks! 1CXRFh4bDVFBsUzoHMMDbTMPcBP14RUTus
hodedowe
Sr. Member
****
Offline Offline

Activity: 359
Merit: 251


View Profile
October 22, 2015, 11:27:39 PM
 #320

I'm working on a "Cut and paste" version of this pool server for the average "joe" to download, fire up, and begin mining. No programming or linux experience necessary. I've got most of the bugs worked out and instructions typed, but the Python errors are tangling me up. If you've put this server together and can provide a little insight for the greater good, PM me.

Solo mining is alive and profitable!
Helped? Thanks! 1CXRFh4bDVFBsUzoHMMDbTMPcBP14RUTus
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!