Bitcoin Forum
May 11, 2024, 06:03:51 AM *
News: Latest Bitcoin Core release: 27.0 [Torrent]
 
   Home   Help Search Login Register More  
Pages: [1]
  Print  
Author Topic: Stratum mining proxy is disconnecting  (Read 1806 times)
tytanick (OP)
Legendary
*
Offline Offline

Activity: 2660
Merit: 1096


Simplemining.net Admin


View Profile WWW
May 16, 2014, 09:10:27 AM
Last edit: May 19, 2014, 01:35:19 PM by tytanick
 #1

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

Manage your GPU farm the easy way with Mining OS (30 days free):  SimpleMining.net
Support available at Discord: https://simplemining.net/page/discord and admin@simplemining.net
Bitcointalk thread: https://bitcointalk.org/index.php?topic=1541084.0
1715407431
Hero Member
*
Offline Offline

Posts: 1715407431

View Profile Personal Message (Offline)

Ignore
1715407431
Reply with quote  #2

1715407431
Report to moderator
1715407431
Hero Member
*
Offline Offline

Posts: 1715407431

View Profile Personal Message (Offline)

Ignore
1715407431
Reply with quote  #2

1715407431
Report to moderator
There are several different types of Bitcoin clients. The most secure are full nodes like Bitcoin Core, but full nodes are more resource-heavy, and they must do a lengthy initial syncing process. As a result, lightweight clients with somewhat less security are commonly used.
Advertised sites are not endorsed by the Bitcoin Forum. They may be unsafe, untrustworthy, or illegal in your jurisdiction.
1715407431
Hero Member
*
Offline Offline

Posts: 1715407431

View Profile Personal Message (Offline)

Ignore
1715407431
Reply with quote  #2

1715407431
Report to moderator
1715407431
Hero Member
*
Offline Offline

Posts: 1715407431

View Profile Personal Message (Offline)

Ignore
1715407431
Reply with quote  #2

1715407431
Report to moderator
alexrossi
Legendary
*
Offline Offline

Activity: 3738
Merit: 1742


Join the world-leading crypto sportsbook NOW!


View Profile
May 17, 2014, 12:34:54 PM
 #2

Have you already tried to switch temporarily to another pool to see if the one that you are using now is the problem?

  ▄▄███████▄███████▄▄▄
 █████████████
▀▀▀▀▀▀████▄▄
███████████████
       ▀▀███▄
███████████████
          ▀███
 █████████████
             ███
███████████▀▀               ███
███                         ███
███                         ███
 ███                       ███
  ███▄                   ▄███
   ▀███▄▄             ▄▄███▀
     ▀▀████▄▄▄▄▄▄▄▄▄████▀▀
         ▀▀▀███████▀▀▀
░░░████▄▄▄▄
░▄▄░
▄▄███████▄▀█████▄▄
██▄████▌▐█▌█████▄██
████▀▄▄▄▌███░▄▄▄▀████
██████▄▄▄█▄▄▄██████
█░███████░▐█▌░███████░█
▀▀██▀░██░▐█▌░██░▀██▀▀
▄▄▄░█▀░█░██░▐█▌░██░█░▀█░▄▄▄
██▀░░░░▀██░▐█▌░██▀░░░░▀██
▀██
█████▄███▀▀██▀▀███▄███████▀
▀███████████████████████▀
▀▀▀▀███████████▀▀▀▀
▄▄██████▄▄
▀█▀
█  █▀█▀
  ▄█  ██  █▄  ▄
█ ▄█ █▀█▄▄█▀█ █▄ █
▀▄█ █ ███▄▄▄▄███ █ █▄▀
▀▀ █    ▄▄▄▄    █ ▀▀
   ██████   █
█     ▀▀     █
▀▄▀▄▀▄▀▄▀▄▀▄
▄ ██████▀▀██████ ▄
▄████████ ██ ████████▄
▀▀███████▄▄███████▀▀
▀▀▀████████▀▀▀
█████████████LEADING CRYPTO SPORTSBOOK & CASINO█████████████
MULTI
CURRENCY
1500+
CASINO GAMES
CRYPTO EXCLUSIVE
CLUBHOUSE
FAST & SECURE
PAYMENTS
.
..PLAY NOW!..
tytanick (OP)
Legendary
*
Offline Offline

Activity: 2660
Merit: 1096


Simplemining.net Admin


View Profile WWW
May 17, 2014, 04:26:01 PM
 #3

yes but i want that one to work, and it is working normally when i put my cgminer directly to it Smiley

Manage your GPU farm the easy way with Mining OS (30 days free):  SimpleMining.net
Support available at Discord: https://simplemining.net/page/discord and admin@simplemining.net
Bitcointalk thread: https://bitcointalk.org/index.php?topic=1541084.0
w5pn73
Sr. Member
****
Offline Offline

Activity: 635
Merit: 251


View Profile
May 19, 2014, 01:42:52 PM
 #4

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.
tytanick (OP)
Legendary
*
Offline Offline

Activity: 2660
Merit: 1096


Simplemining.net Admin


View Profile WWW
May 22, 2014, 11:06:41 AM
 #5

the problem has been solved
https://github.com/Stratehm/stratum-proxy/issues/1

Manage your GPU farm the easy way with Mining OS (30 days free):  SimpleMining.net
Support available at Discord: https://simplemining.net/page/discord and admin@simplemining.net
Bitcointalk thread: https://bitcointalk.org/index.php?topic=1541084.0
Pages: [1]
  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!