Bitcoin Forum

Bitcoin => Mining software (miners) => Topic started by: tytanick on May 16, 2014, 09:10:27 AM



Title: Stratum mining proxy is disconnecting
Post by: tytanick on May 16, 2014, 09:10:27 AM
Hi guys,
I have problem that my stratum mining proxy is disconnecting from remote server
Any ideas why ? Google cant help me.


Code:
/usr/local/lib/python2.7/dist-packages/zope.interface-4.1.1-py2.7-linux-x86_64.egg/zope/__init__.py:3: UserWarning: Module twisted was already imported from /usr/local/lib/python2.7/dist-packages/Twisted-14.0.0-py2.7-linux-x86_64.egg/twisted/__init__.pyc, but /usr/local/lib/python2.7/dist-packages/autobahn-0.8.8-py2.7.egg is being added to sys.path
  import pkg_resources
2014-05-18 15:20:52,026 WARNING proxy # Stratum proxy version: 1.5.6
2014-05-18 15:20:52,028 WARNING proxy # Checking for updates...
2014-05-18 15:20:52,301 WARNING proxy # Trying to connect to Stratum pool at eu-01.miningrigrentals.com:3333
2014-05-18 15:20:52,421 WARNING proxy # Authorizing custom user tytanick.1274, password x
2014-05-18 15:20:52,435 WARNING proxy # -----------------------------------------------------------------------
2014-05-18 15:20:52,436 WARNING proxy # PROXY IS LISTENING ON ALL IPs ON PORT 3333 (stratum) AND 8332 (getwork)
2014-05-18 15:20:52,436 WARNING proxy # -----------------------------------------------------------------------
2014-05-18 15:20:53,637 ERROR protocol # [Failure instance: Traceback: <type 'exceptions.ValueError'>: need more than 2 values to unpack
/usr/local/lib/python2.7/dist-packages/Twisted-14.0.0-py2.7-linux-x86_64.egg/twisted/internet/posixbase.py:614:_doReadOrWrite
/usr/local/lib/python2.7/dist-packages/Twisted-14.0.0-py2.7-linux-x86_64.egg/twisted/internet/tcp.py:214:doRead
/usr/local/lib/python2.7/dist-packages/Twisted-14.0.0-py2.7-linux-x86_64.egg/twisted/internet/tcp.py:220:_dataReceived
/usr/local/lib/python2.7/dist-packages/stratum-0.2.15-py2.7.egg/stratum/protocol.py:192:dataReceived
--- <exception caught here> ---
/usr/local/lib/python2.7/dist-packages/stratum-0.2.15-py2.7.egg/stratum/protocol.py:238:lineReceived
/usr/local/lib/python2.7/dist-packages/stratum-0.2.15-py2.7.egg/stratum/event_handler.py:7:_handle_event
/root/stratum-mining-proxy/mining_libs/client_service.py:83:handle_event
]
Traceback (most recent call last):
  File "/usr/local/lib/python2.7/dist-packages/stratum-0.2.15-py2.7.egg/stratum/protocol.py", line 238, in lineReceived
    result = self.event_handler._handle_event(msg_method, msg_params, connection_ref=self)
  File "/usr/local/lib/python2.7/dist-packages/stratum-0.2.15-py2.7.egg/stratum/event_handler.py", line 7, in _handle_event
    return defer.maybeDeferred(wrap_result_object, self.handle_event(msg_method, msg_params, connection_ref))
  File "/root/stratum-mining-proxy/mining_libs/client_service.py", line 83, in handle_event
    (hostname, port, wait) = params[:3]
ValueError: need more than 2 values to unpack
2014-05-18 15:20:56,220 WARNING proxy # Authorizing custom user tytanick.1274, password x
2014-05-18 15:20:56,804 ERROR protocol # [Failure instance: Traceback: <type 'exceptions.ValueError'>: need more than 2 values to unpack
/usr/local/lib/python2.7/dist-packages/Twisted-14.0.0-py2.7-linux-x86_64.egg/twisted/internet/posixbase.py:614:_doReadOrWrite
/usr/local/lib/python2.7/dist-packages/Twisted-14.0.0-py2.7-linux-x86_64.egg/twisted/internet/tcp.py:214:doRead
/usr/local/lib/python2.7/dist-packages/Twisted-14.0.0-py2.7-linux-x86_64.egg/twisted/internet/tcp.py:220:_dataReceived
/usr/local/lib/python2.7/dist-packages/stratum-0.2.15-py2.7.egg/stratum/protocol.py:192:dataReceived
--- <exception caught here> ---
/usr/local/lib/python2.7/dist-packages/stratum-0.2.15-py2.7.egg/stratum/protocol.py:238:lineReceived
/usr/local/lib/python2.7/dist-packages/stratum-0.2.15-py2.7.egg/stratum/event_handler.py:7:_handle_event
/root/stratum-mining-proxy/mining_libs/client_service.py:83:handle_event
]
Traceback (most recent call last):
  File "/usr/local/lib/python2.7/dist-packages/stratum-0.2.15-py2.7.egg/stratum/protocol.py", line 238, in lineReceived
    result = self.event_handler._handle_event(msg_method, msg_params, connection_ref=self)
  File "/usr/local/lib/python2.7/dist-packages/stratum-0.2.15-py2.7.egg/stratum/event_handler.py", line 7, in _handle_event
    return defer.maybeDeferred(wrap_result_object, self.handle_event(msg_method, msg_params, connection_ref))
  File "/root/stratum-mining-proxy/mining_libs/client_service.py", line 83, in handle_event
    (hostname, port, wait) = params[:3]
ValueError: need more than 2 values to unpack
2014-05-18 15:21:00,100 WARNING proxy # Authorizing custom user tytanick.1274, password x
2014-05-18 15:21:00,679 ERROR protocol # [Failure instance: Traceback: <type 'exceptions.ValueError'>: need more than 2 values to unpack
/usr/local/lib/python2.7/dist-packages/Twisted-14.0.0-py2.7-linux-x86_64.egg/twisted/internet/posixbase.py:614:_doReadOrWrite
/usr/local/lib/python2.7/dist-packages/Twisted-14.0.0-py2.7-linux-x86_64.egg/twisted/internet/tcp.py:214:doRead
/usr/local/lib/python2.7/dist-packages/Twisted-14.0.0-py2.7-linux-x86_64.egg/twisted/internet/tcp.py:220:_dataReceived
/usr/local/lib/python2.7/dist-packages/stratum-0.2.15-py2.7.egg/stratum/protocol.py:192:dataReceived
--- <exception caught here> ---
/usr/local/lib/python2.7/dist-packages/stratum-0.2.15-py2.7.egg/stratum/protocol.py:238:lineReceived
/usr/local/lib/python2.7/dist-packages/stratum-0.2.15-py2.7.egg/stratum/event_handler.py:7:_handle_event
/root/stratum-mining-proxy/mining_libs/client_service.py:83:handle_event
]
Traceback (most recent call last):
  File "/usr/local/lib/python2.7/dist-packages/stratum-0.2.15-py2.7.egg/stratum/protocol.py", line 238, in lineReceived
    result = self.event_handler._handle_event(msg_method, msg_params, connection_ref=self)
  File "/usr/local/lib/python2.7/dist-packages/stratum-0.2.15-py2.7.egg/stratum/event_handler.py", line 7, in _handle_event
    return defer.maybeDeferred(wrap_result_object, self.handle_event(msg_method, msg_params, connection_ref))
  File "/root/stratum-mining-proxy/mining_libs/client_service.py", line 83, in handle_event
    (hostname, port, wait) = params[:3]
ValueError: need more than 2 values to unpack
2014-05-18 15:21:03,084 WARNING proxy # Authorizing custom user tytanick.1274, password x
2014-05-18 15:21:03,643 ERROR protocol # [Failure instance: Traceback: <type 'exceptions.ValueError'>: need more than 2 values to unpack
/usr/local/lib/python2.7/dist-packages/Twisted-14.0.0-py2.7-linux-x86_64.egg/twisted/internet/posixbase.py:614:_doReadOrWrite
/usr/local/lib/python2.7/dist-packages/Twisted-14.0.0-py2.7-linux-x86_64.egg/twisted/internet/tcp.py:214:doRead
/usr/local/lib/python2.7/dist-packages/Twisted-14.0.0-py2.7-linux-x86_64.egg/twisted/internet/tcp.py:220:_dataReceived
/usr/local/lib/python2.7/dist-packages/stratum-0.2.15-py2.7.egg/stratum/protocol.py:192:dataReceived
--- <exception caught here> ---
/usr/local/lib/python2.7/dist-packages/stratum-0.2.15-py2.7.egg/stratum/protocol.py:238:lineReceived
/usr/local/lib/python2.7/dist-packages/stratum-0.2.15-py2.7.egg/stratum/event_handler.py:7:_handle_event
/root/stratum-mining-proxy/mining_libs/client_service.py:83:handle_event
]
Traceback (most recent call last):
  File "/usr/local/lib/python2.7/dist-packages/stratum-0.2.15-py2.7.egg/stratum/protocol.py", line 238, in lineReceived
    result = self.event_handler._handle_event(msg_method, msg_params, connection_ref=self)
  File "/usr/local/lib/python2.7/dist-packages/stratum-0.2.15-py2.7.egg/stratum/event_handler.py", line 7, in _handle_event
    return defer.maybeDeferred(wrap_result_object, self.handle_event(msg_method, msg_params, connection_ref))
  File "/root/stratum-mining-proxy/mining_libs/client_service.py", line 83, in handle_event
    (hostname, port, wait) = params[:3]
ValueError: need more than 2 values to unpack
^C


Title: Re: [Bounty 0.02 BTC] Stratum mining proxy is disconnecting
Post by: alexrossi on May 17, 2014, 12:34:54 PM
Have you already tried to switch temporarily to another pool to see if the one that you are using now is the problem?


Title: Re: [Bounty 0.02 BTC] Stratum mining proxy is disconnecting
Post by: tytanick on May 17, 2014, 04:26:01 PM
yes but i want that one to work, and it is working normally when i put my cgminer directly to it :)


Title: Re: Stratum mining proxy is disconnecting
Post by: w5pn73 on May 19, 2014, 01:42:52 PM
From the stack trace looks like it doesn't handle the client.reconnect message properly.
That is if the stack trace is related to slush's stratum proxy. Without the full source you are actually using nor a dump of what is received it is hard to tell for sure.


Title: Re: Stratum mining proxy is disconnecting
Post by: tytanick on May 22, 2014, 11:06:41 AM
the problem has been solved
https://github.com/Stratehm/stratum-proxy/issues/1