thanks, that fixed it.
BTW, I am using git://github.com/generalfault/stratum-mining-proxy.git
located ./stratum-mining/externals/stratum-mining-proxy
GW_ENABLE = True # Enable the Proxy (If enabled you MUST run update_submodules)
GW_PORT = 8331 # Getwork Proxy Port
GW_DISABLE_MIDSTATE = False # Disable midstate's (Faster but breaks some clients)
GW_SEND_REAL_TARGET = False # Propigate >1 difficulty to Clients (breaks some clients)
Midstate is detected and I ran update_submodules.
Issue I am having is: getwork is not detected on port 8331, however, stratum is detected on port 3333. (so says latest version of GUIminer)
thoughts? BTW, great support Slush and General!
Update:
http://pastebin.com/BwuBWVQPIs the debug normal? There is a connection timeout..?
2013-02-07 21:42:07-0600 [-] Unhandled error in Deferred:
2013-02-07 21:42:07-0600 [-] Unhandled Error
Traceback (most recent call last):
Failure: stratum.custom_exceptions.TransportException: SocketTransportClientFactory connection timed out
2013-02-07 21:42:07,328 DEBUG socket_transport socket_transport.clientConnectionFailed # [Failure instance: Traceback (failure with no frames): : User timeout caused connection failure.
]
and
2013-02-07 21:51:37,329 ERROR proxy client_service.on_timeout # Connection to upstream pool timed out
Upstream pool is on localhost. That is the stratum mining server... ?
also
Webstats output on port 8889:
web.Server Traceback (most recent call last):
exceptions.TypeError: int() argument must be a string or a number, not 'NoneType'
/usr/local/lib/python2.7/dist-packages/Twisted-12.3.0-py2.7-linux-x86_64.egg/twisted/web/server.py:192 in process
191 self._encoder = encoder
192 self.render(resrc)
193 except:
/usr/local/lib/python2.7/dist-packages/Twisted-12.3.0-py2.7-linux-x86_64.egg/twisted/web/server.py:241 in render
240 try:
241 body = resrc.render(self)
242 except UnsupportedMethod as e:
/usr/local/lib/python2.7/dist-packages/Twisted-12.3.0-py2.7-linux-x86_64.egg/twisted/web/resource.py:250 in render
249 raise UnsupportedMethod(allowedMethods)
250 return m(request)
251
/opt/stratum-mining/lib/basic_stats.py:99 in render_GET
98 r+="%s | %s/%s | %s/%s | %s |
"%(
99 wc,wi,format(int(wd["speed"]),"n"),wd["difficulty"],format(int(wd["total_shares"]),"n"),
100 format(int(wd["total_rejects"]),"n"),format(int(wd["total_found"]),"n"))
exceptions.TypeError: int() argument must be a string or a number, not 'NoneType'
Thanks all!
legendary
Activity: 1386
Merit: 1097
What is causing this error:
You're missing Crypto package. If I remember well, it is python-crypto in Debian/Ubuntu.
hero member
Activity: 742
Merit: 503
What is causing this error:
Unhandled error in Deferred:
Unhandled Error
Traceback (most recent call last):
File "/usr/local/lib/python2.7/dist-packages/Twisted-12.3.0-py2.7-linux-x86_64.egg/twisted/application/service.py", line 405, in loadApplication
application = sob.loadValueFromFile(filename, 'application', passphrase)
File "/usr/local/lib/python2.7/dist-packages/Twisted-12.3.0-py2.7-linux-x86_64.egg/twisted/persisted/sob.py", line 210, in loadValueFromFile
exec fileObj in d, d
File "launcher.tac", line 36, in
mining.setup(on_startup)
File "/usr/local/lib/python2.7/dist-packages/Twisted-12.3.0-py2.7-linux-x86_64.egg/twisted/internet/defer.py", line 1214, in unwindGenerator
return _inlineCallbacks(None, gen, Deferred())
--- ---
File "/usr/local/lib/python2.7/dist-packages/Twisted-12.3.0-py2.7-linux-x86_64.egg/twisted/internet/defer.py", line 1071, in _inlineCallbacks
result = g.send(result)
File "/opt/stratum-mining/mining/__init__.py", line 30, in setup
from lib.block_template import BlockTemplate
File "/opt/stratum-mining/lib/block_template.py", line 7, in
import halfnode
File "/opt/stratum-mining/lib/halfnode.py", line 13, in
from Crypto.Hash import SHA256
exceptions.ImportError: No module named Crypto.Hash
full member
Activity: 158
Merit: 100
here's a patch I've made against Stratum-Mining-Proxy 1.3.0.
Thanks for the patch, although I'm slightly against accepting, because the information when the share was accepted (and how long it took) is somewhat more important and interesting than when it has been sent. So if we make output less verbose, I think marking "Submitting share" as debug output instead of "Share accepted ..." has more sense.
Yes, the "Share accepted" info makes more sense. My primary goal was to have the "share diff"/"pool diff" info available and it was very easy to implement in submit().