Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Like your stratum proxy #1

Closed
tytanick opened this issue May 18, 2014 · 13 comments
Closed

Like your stratum proxy #1

tytanick opened this issue May 18, 2014 · 13 comments

Comments

@tytanick
Copy link

checking something...

@Stratehm
Copy link
Owner

Hi,

I think your installed JDK is too old. You have to use a JDK >= 7. If it is already the case, check that your JAVA_HOME environment variable is set to the JDK home directory (maybe you have several version of java installed)

Else, you can use the 0.1.0-SNAPSHOT package that I have built last week. It is in the Release section of github.

Cheers!

--- Message initial ---

De : "tytanick" notifications@github.com
Envoyé : 18 mai 2014 23:02
A : "Stratehm/stratum-proxy" stratum-proxy@noreply.github.com
Objet : [stratum-proxy] Like your stratum proxy (#1)

Hi there,
I would very much run your proxy but i cant compile it.
Could you help me ?
It your stratum proxy will work with one of the server, then i will pay you at least 0.05 btc :)

root@vpn:~/stratum-proxy# mvn clean package
[INFO] Scanning for projects...
[INFO]
[INFO] ------------------------------------------------------------------------
[INFO] Building stratum-proxy 0.1.0-SNAPSHOT
[INFO] ------------------------------------------------------------------------
[INFO]
[INFO] --- maven-clean-plugin:2.3:clean (default-clean) @ stratum-proxy ---
[INFO] Deleting file set: /root/stratum-proxy/target (included: [**], excluded: [])
[INFO]
[INFO] --- maven-resources-plugin:2.3:resources (default-resources) @ stratum-proxy ---
[INFO] Using 'UTF-8' encoding to copy filtered resources.
[INFO] Copying 2 resources
[INFO]
[INFO] --- maven-compiler-plugin:3.1:compile (default-compile) @ stratum-proxy ---
[INFO] Changes detected - recompiling the module!
[INFO] Compiling 40 source files to /root/stratum-proxy/target/classes
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 5.169s
[INFO] Finished at: Sun May 18 16:59:47 EDT 2014
[INFO] Final Memory: 8M/20M
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:3.1:compile (default-compile) on project stratum-proxy: Fatal error compiling: invalid target release: 1.7 -> [Help 1]
[ERROR]
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.
[ERROR] Re-run Maven using the -X switch to enable full debug logging.
[ERROR]
[ERROR] For more information about the errors and possible solutions, please read the following articles:
[ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/MojoExecutionException


Reply to this email directly or view it on GitHub:
#1

@tytanick
Copy link
Author

yes yes i know, thats why i edited my message :)
i finally compiled but still your and slush0 proxy cant connect to:
java -jar stratum-proxy-0.1.0-SNAPSHOT.jar -h eu-01.miningrigrentals.com:3333 -u tytanick.1274 -p x

@Stratehm
Copy link
Owner

Ok, I haven't seen the edit...

Could you please send me the logs i' debug level ? (With --log-level DEBUG)

Thanx

--- Message initial ---

De : "tytanick" notifications@github.com
Envoyé : 18 mai 2014 23:38
A : "Stratehm/stratum-proxy" stratum-proxy@noreply.github.com
Cc: "Stratehm" stratehm@hotmail.com
Objet : Re: [stratum-proxy] Like your stratum proxy (#1)

yes yes i know, thats why i edited my message :)
i finally compiled but still your and slush0 proxy cant connect to:
java -jar stratum-proxy-0.1.0-SNAPSHOT.jar -h eu-01.miningrigrentals.com:3333 -u tytanick.1274 -p x


Reply to this email directly or view it on GitHub:
#1 (comment)

@tytanick
Copy link
Author

Log directory not set or available. Use the tmp OS directory.
2014-05-18 17:46:42,086 INFO [main]:strat.mining.stratum.proxy.Launcher - Using DEBUG LogLevel.
2014-05-18 17:46:42,106 INFO [main]:strat.mining.stratum.proxy.Launcher - Using pools: [Pool [name=eu-01.miningrigrentals.com:3333, host=eu-01.miningrigrentals.com:3333, username=tytanick.1274, password=x, difficulty=null, extranonce1=null, extranonce2Size=null, activeSince=null, isActive=false, isEnabled=true, isExtranonceSubscribeEnabled=true, numberOfSubmit=1, priority=0, acceptedDifficulty=0.0, rejectedDifficulty=0.0]].
2014-05-18 17:46:42,110 INFO [main]:strat.mining.stratum.proxy.pool.Pool - Starting pool eu-01.miningrigrentals.com:3333...
2014-05-18 17:46:42,532 DEBUG [Pool-eu-01.miningrigrentals.com:3333-Thread]:strat.mining.stratum.proxy.network.StratumConnection$1 - Start reading on connection Pool-eu-01.miningrigrentals.com:3333.
2014-05-18 17:46:42,624 DEBUG [main]:strat.mining.stratum.proxy.network.StratumConnection - Pool-eu-01.miningrigrentals.com:3333. Send request: {"id": 0, "method": "mining.subscribe", "params": ["stratum-proxy-0.1.0-SNAPSHOT"]}
2014-05-18 17:46:42,629 INFO [main]:strat.mining.stratum.proxy.manager.StratumProxyManager - ServerSocket opened on 0.0.0.0/0.0.0.0:3333.
2014-05-18 17:46:42,645 DEBUG [Thread-3]:strat.mining.stratum.proxy.manager.StratumProxyManager$1 - Waiting for incoming connection on 0.0.0.0/0.0.0.0:3333...
2014-05-18 17:46:42,679 DEBUG [Pool-eu-01.miningrigrentals.com:3333-Thread]:strat.mining.stratum.proxy.network.StratumConnection - Pool-eu-01.miningrigrentals.com:3333. Line read: {"error": null, "id": 0, "result": [["mining.notify", "ae6812eb4cd7735a302a8a9dd95cf71f"], "f800002e", 4]}
2014-05-18 17:46:42,834 DEBUG [Pool-eu-01.miningrigrentals.com:3333-Thread]:strat.mining.stratum.proxy.network.StratumConnection - Pool-eu-01.miningrigrentals.com:3333. Send request: {"id": 2, "method": "mining.extranonce.subscribe", "params": null}
2014-05-18 17:46:42,878 DEBUG [Pool-eu-01.miningrigrentals.com:3333-Thread]:strat.mining.stratum.proxy.network.StratumConnection - Pool-eu-01.miningrigrentals.com:3333. Send request: {"id": 3, "method": "mining.authorize", "params": ["tytanick.1274", "x"]}
May 18, 2014 5:46:43 PM org.glassfish.jersey.server.ApplicationHandler initialize
INFO: Initiating Jersey application, version Jersey: 2.7 2014-03-12 18:11:31...
2014-05-18 17:46:43,417 DEBUG [Pool-eu-01.miningrigrentals.com:3333-Thread]:strat.mining.stratum.proxy.network.StratumConnection - Pool-eu-01.miningrigrentals.com:3333. Line read: {"method": "client.reconnect", "id": null, "params": ["eu-01.miningrigrentals.com","50142"]}
2014-05-18 17:46:43,418 ERROR [Pool-eu-01.miningrigrentals.com:3333-Thread]:strat.mining.stratum.proxy.pool.PoolConnection - Pool-eu-01.miningrigrentals.com:3333. JSON-RPC parsing error with line: {"method": "client.reconnect", "id": null, "params": ["eu-01.miningrigrentals.com","50142"]}.
java.lang.ClassCastException: java.lang.String cannot be cast to java.lang.Number
at strat.mining.stratum.proxy.json.ClientReconnectNotification.setParams(ClientReconnectNotification.java:74)
at strat.mining.stratum.proxy.json.JsonRpcNotification.(JsonRpcNotification.java:39)
at strat.mining.stratum.proxy.json.ClientReconnectNotification.(ClientReconnectNotification.java:39)
at strat.mining.stratum.proxy.network.StratumConnection.onNotificationReceived(StratumConnection.java:262)
at strat.mining.stratum.proxy.network.StratumConnection.onLineRead(StratumConnection.java:229)
at strat.mining.stratum.proxy.network.StratumConnection.access$200(StratumConnection.java:54)
at strat.mining.stratum.proxy.network.StratumConnection$1.run(StratumConnection.java:151)
2014-05-18 17:46:43,420 ERROR [Pool-eu-01.miningrigrentals.com:3333-Thread]:strat.mining.stratum.proxy.pool.Pool - Disconnect of pool Pool [name=eu-01.miningrigrentals.com:3333, host=eu-01.miningrigrentals.com:3333, username=tytanick.1274, password=x, difficulty=null, extranonce1=f800002e, extranonce2Size=4, activeSince=null, isActive=false, isEnabled=true, isExtranonceSubscribeEnabled=true, numberOfSubmit=1, priority=0, acceptedDifficulty=0.0, rejectedDifficulty=0.0].
java.io.IOException: EOF on inputStream.
at strat.mining.stratum.proxy.network.StratumConnection$1.run(StratumConnection.java:155)
2014-05-18 17:46:43,421 WARN [Pool-eu-01.miningrigrentals.com:3333-Thread]:strat.mining.stratum.proxy.manager.StratumProxyManager - Pool eu-01.miningrigrentals.com:3333 is DOWN. Moving connections to another one.
2014-05-18 17:46:43,430 INFO [Pool-eu-01.miningrigrentals.com:3333-Thread]:strat.mining.stratum.proxy.pool.Pool - Stopping pool eu-01.miningrigrentals.com:3333...
2014-05-18 17:46:43,431 DEBUG [Pool-eu-01.miningrigrentals.com:3333-Thread]:strat.mining.stratum.proxy.network.StratumConnection - Closing connection Pool-eu-01.miningrigrentals.com:3333...
2014-05-18 17:46:43,433 INFO [Pool-eu-01.miningrigrentals.com:3333-Thread]:strat.mining.stratum.proxy.pool.Pool - Pool eu-01.miningrigrentals.com:3333 stopped.
2014-05-18 17:46:43,433 INFO [Pool-eu-01.miningrigrentals.com:3333-Thread]:strat.mining.stratum.proxy.pool.Pool - Trying reconnect of pool eu-01.miningrigrentals.com:3333 in 5 seconds.
2014-05-18 17:46:43,434 INFO [Thread-5]:strat.mining.stratum.proxy.manager.StratumProxyManager$4 - Switching all connections of pool eu-01.miningrigrentals.com:3333.
2014-05-18 17:46:43,476 DEBUG [Pool-eu-01.miningrigrentals.com:3333-Thread]:strat.mining.stratum.proxy.network.StratumConnection - Closing connection Pool-eu-01.miningrigrentals.com:3333...
May 18, 2014 5:46:44 PM org.glassfish.grizzly.http.server.NetworkListener start
INFO: Started listener bound to [0.0.0.0:8888]
May 18, 2014 5:46:44 PM org.glassfish.grizzly.http.server.HttpServer start
INFO: [HttpServer] Started.
2014-05-18 17:46:48,476 INFO [ReconnectTimer-eu-01.miningrigrentals.com:3333]:strat.mining.stratum.proxy.pool.Pool$1 - Trying reconnect of pool eu-01.miningrigrentals.com:3333...
2014-05-18 17:46:48,477 INFO [ReconnectTimer-eu-01.miningrigrentals.com:3333]:strat.mining.stratum.proxy.pool.Pool - Starting pool eu-01.miningrigrentals.com:3333...
2014-05-18 17:46:48,510 DEBUG [ReconnectTimer-eu-01.miningrigrentals.com:3333]:strat.mining.stratum.proxy.network.StratumConnection - Pool-eu-01.miningrigrentals.com:3333. Send request: {"id": 5, "method": "mining.subscribe", "params": ["stratum-proxy-0.1.0-SNAPSHOT"]}
2014-05-18 17:46:48,510 DEBUG [Pool-eu-01.miningrigrentals.com:3333-Thread]:strat.mining.stratum.proxy.network.StratumConnection$1 - Start reading on connection Pool-eu-01.miningrigrentals.com:3333.
2014-05-18 17:46:48,543 DEBUG [Pool-eu-01.miningrigrentals.com:3333-Thread]:strat.mining.stratum.proxy.network.StratumConnection - Pool-eu-01.miningrigrentals.com:3333. Line read: {"error": null, "id": 5, "result": [["mining.notify", "ae6812eb4cd7735a302a8a9dd95cf71f"], "f800002e", 4]}
2014-05-18 17:46:48,576 DEBUG [Pool-eu-01.miningrigrentals.com:3333-Thread]:strat.mining.stratum.proxy.network.StratumConnection - Pool-eu-01.miningrigrentals.com:3333. Send request: {"id": 7, "method": "mining.extranonce.subscribe", "params": null}
2014-05-18 17:46:48,580 DEBUG [Pool-eu-01.miningrigrentals.com:3333-Thread]:strat.mining.stratum.proxy.network.StratumConnection - Pool-eu-01.miningrigrentals.com:3333. Send request: {"id": 8, "method": "mining.authorize", "params": ["tytanick.1274", "x"]}
2014-05-18 17:46:49,151 DEBUG [Pool-eu-01.miningrigrentals.com:3333-Thread]:strat.mining.stratum.proxy.network.StratumConnection - Pool-eu-01.miningrigrentals.com:3333. Line read: {"method": "client.reconnect", "id": null, "params": ["eu-01.miningrigrentals.com","50142"]}
2014-05-18 17:46:49,152 ERROR [Pool-eu-01.miningrigrentals.com:3333-Thread]:strat.mining.stratum.proxy.pool.PoolConnection - Pool-eu-01.miningrigrentals.com:3333. JSON-RPC parsing error with line: {"method": "client.reconnect", "id": null, "params": ["eu-01.miningrigrentals.com","50142"]}.
java.lang.ClassCastException: java.lang.String cannot be cast to java.lang.Number
at strat.mining.stratum.proxy.json.ClientReconnectNotification.setParams(ClientReconnectNotification.java:74)
at strat.mining.stratum.proxy.json.JsonRpcNotification.(JsonRpcNotification.java:39)
at strat.mining.stratum.proxy.json.ClientReconnectNotification.(ClientReconnectNotification.java:39)
at strat.mining.stratum.proxy.network.StratumConnection.onNotificationReceived(StratumConnection.java:262)
at strat.mining.stratum.proxy.network.StratumConnection.onLineRead(StratumConnection.java:229)
at strat.mining.stratum.proxy.network.StratumConnection.access$200(StratumConnection.java:54)
at strat.mining.stratum.proxy.network.StratumConnection$1.run(StratumConnection.java:151)
2014-05-18 17:46:49,152 ERROR [Pool-eu-01.miningrigrentals.com:3333-Thread]:strat.mining.stratum.proxy.pool.Pool - Disconnect of pool Pool [name=eu-01.miningrigrentals.com:3333, host=eu-01.miningrigrentals.com:3333, username=tytanick.1274, password=x, difficulty=null, extranonce1=f800002e, extranonce2Size=4, activeSince=null, isActive=false, isEnabled=true, isExtranonceSubscribeEnabled=true, numberOfSubmit=1, priority=0, acceptedDifficulty=0.0, rejectedDifficulty=0.0].
java.io.IOException: EOF on inputStream.
at strat.mining.stratum.proxy.network.StratumConnection$1.run(StratumConnection.java:155)
2014-05-18 17:46:49,152 WARN [Pool-eu-01.miningrigrentals.com:3333-Thread]:strat.mining.stratum.proxy.manager.StratumProxyManager - Pool eu-01.miningrigrentals.com:3333 is DOWN. Moving connections to another one.
2014-05-18 17:46:49,153 INFO [Pool-eu-01.miningrigrentals.com:3333-Thread]:strat.mining.stratum.proxy.pool.Pool - Stopping pool eu-01.miningrigrentals.com:3333...
2014-05-18 17:46:49,153 DEBUG [Pool-eu-01.miningrigrentals.com:3333-Thread]:strat.mining.stratum.proxy.network.StratumConnection - Closing connection Pool-eu-01.miningrigrentals.com:3333...
2014-05-18 17:46:49,153 INFO [Pool-eu-01.miningrigrentals.com:3333-Thread]:strat.mining.stratum.proxy.pool.Pool - Pool eu-01.miningrigrentals.com:3333 stopped.
2014-05-18 17:46:49,153 INFO [Pool-eu-01.miningrigrentals.com:3333-Thread]:strat.mining.stratum.proxy.pool.Pool - Trying reconnect of pool eu-01.miningrigrentals.com:3333 in 5 seconds.
2014-05-18 17:46:49,153 INFO [Thread-9]:strat.mining.stratum.proxy.manager.StratumProxyManager$4 - Switching all connections of pool eu-01.miningrigrentals.com:3333.
2014-05-18 17:46:49,154 DEBUG [Pool-eu-01.miningrigrentals.com:3333-Thread]:strat.mining.stratum.proxy.network.StratumConnection - Closing connection Pool-eu-01.miningrigrentals.com:3333...
^C2014-05-18 17:46:50,455 INFO [Thread-0]:strat.mining.stratum.proxy.Launcher$1 - User requested shutdown... Gracefuly kill all connections...
2014-05-18 17:46:50,456 INFO [Thread-0]:strat.mining.stratum.proxy.manager.StratumProxyManager - Closing the server socket on 0.0.0.0/0.0.0.0:3333.
2014-05-18 17:46:50,457 INFO [Thread-3]:strat.mining.stratum.proxy.manager.StratumProxyManager$1 - Stop to listen incoming connection on 0.0.0.0/0.0.0.0:3333.
2014-05-18 17:46:50,494 INFO [Thread-0]:strat.mining.stratum.proxy.Launcher$1 - Shutdown !

@tytanick
Copy link
Author

also ofcourse this pool work with cgminer and sgminer, but it doesnt with your and slush0 proxy,
here is error from python stratum proxy :)

/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
--- ---
/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
--- ---
/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
--- ---
/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
--- ---
/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

@Stratehm
Copy link
Owner

Ok I see the error...your pool use a method (client.reconnect) that is not a part of the official stratum protocol (but my proxy has a partial support of it) so the parameters are not well identified...moreover, in the current version of my proxy, I have disabled this feature since an attack have been spotted that were using this method (was on wafflepool)...

So, I will fix the parsing problem to support your pool and add a new command line parameter to disable/enable the client.reconnect method...

--- Message initial ---

De : "tytanick" notifications@github.com
Envoyé : 18 mai 2014 23:47
A : "Stratehm/stratum-proxy" stratum-proxy@noreply.github.com
Cc: "Stratehm" stratehm@hotmail.com
Objet : Re: [stratum-proxy] Like your stratum proxy (#1)

Log directory not set or available. Use the tmp OS directory.
2014-05-18 17:46:42,086 INFO [main]:strat.mining.stratum.proxy.Launcher - Using DEBUG LogLevel.
2014-05-18 17:46:42,106 INFO [main]:strat.mining.stratum.proxy.Launcher - Using pools: [Pool [name=eu-01.miningrigrentals.com:3333, host=eu-01.miningrigrentals.com:3333, username=tytanick.1274, password=x, difficulty=null, extranonce1=null, extranonce2Size=null, activeSince=null, isActive=false, isEnabled=true, isExtranonceSubscribeEnabled=true, numberOfSubmit=1, priority=0, acceptedDifficulty=0.0, rejectedDifficulty=0.0]].
2014-05-18 17:46:42,110 INFO [main]:strat.mining.stratum.proxy.pool.Pool - Starting pool eu-01.miningrigrentals.com:3333...
2014-05-18 17:46:42,532 DEBUG [Pool-eu-01.miningrigrentals.com:3333-Thread]:strat.mining.stratum.proxy.network.StratumConnection$1 - Start reading on connection Pool-eu-01.miningrigrentals.com:3333.
2014-05-18 17:46:42,624 DEBUG [main]:strat.mining.stratum.proxy.network.StratumConnection - Pool-eu-01.miningrigrentals.com:3333. Send request: {"id": 0, "method": "mining.subscribe", "params": ["stratum-proxy-0.1.0-SNAPSHOT"]}
2014-05-18 17:46:42,629 INFO [main]:strat.mining.stratum.proxy.manager.StratumProxyManager - ServerSocket opened on 0.0.0.0/0.0.0.0:3333.
2014-05-18 17:46:42,645 DEBUG [Thread-3]:strat.mining.stratum.proxy.manager.StratumProxyManager$1 - Waiting for incoming connection on 0.0.0.0/0.0.0.0:3333...
2014-05-18 17:46:42,679 DEBUG [Pool-eu-01.miningrigrentals.com:3333-Thread]:strat.mining.stratum.proxy.network.StratumConnection - Pool-eu-01.miningrigrentals.com:3333. Line read: {"error": null, "id": 0, "result": [["mining.notify", "ae6812eb4cd7735a302a8a9dd95cf71f"], "f800002e", 4]}
2014-05-18 17:46:42,834 DEBUG [Pool-eu-01.miningrigrentals.com:3333-Thread]:strat.mining.stratum.proxy.network.StratumConnection - Pool-eu-01.miningrigrentals.com:3333. Send request: {"id": 2, "method": "mining.extranonce.subscribe", "params": null}
2014-05-18 17:46:42,878 DEBUG [Pool-eu-01.miningrigrentals.com:3333-Thread]:strat.mining.stratum.proxy.network.StratumConnection - Pool-eu-01.miningrigrentals.com:3333. Send request: {"id": 3, "method": "mining.authorize", "params": ["tytanick.1274", "x"]}
May 18, 2014 5:46:43 PM org.glassfish.jersey.server.ApplicationHandler initialize
INFO: Initiating Jersey application, version Jersey: 2.7 2014-03-12 18:11:31...
2014-05-18 17:46:43,417 DEBUG [Pool-eu-01.miningrigrentals.com:3333-Thread]:strat.mining.stratum.proxy.network.StratumConnection - Pool-eu-01.miningrigrentals.com:3333. Line read: {"method": "client.reconnect", "id": null, "params": ["eu-01.miningrigrentals.com","50142"]}
2014-05-18 17:46:43,418 ERROR [Pool-eu-01.miningrigrentals.com:3333-Thread]:strat.mining.stratum.proxy.pool.PoolConnection - Pool-eu-01.miningrigrentals.com:3333. JSON-RPC parsing error with line: {"method": "client.reconnect", "id": null, "params": ["eu-01.miningrigrentals.com","50142"]}.
java.lang.ClassCastException: java.lang.String cannot be cast to java.lang.Number
at strat.mining.stratum.proxy.json.ClientReconnectNotification.setParams(ClientReconnectNotification.java:74)
at strat.mining.stratum.proxy.json.JsonRpcNotification.(JsonRpcNotification.java:39)
at strat.mining.stratum.proxy.json.ClientReconnectNotification.(ClientReconnectNotification.java:39)
at strat.mining.stratum.proxy.network.StratumConnection.onNotificationReceived(StratumConnection.java:262)
at strat.mining.stratum.proxy.network.StratumConnection.onLineRead(StratumConnection.java:229)
at strat.mining.stratum.proxy.network.StratumConnection.access$200(StratumConnection.java:54)
at strat.mining.stratum.proxy.network.StratumConnection$1.run(StratumConnection.java:151)
2014-05-18 17:46:43,420 ERROR [Pool-eu-01.miningrigrentals.com:3333-Thread]:strat.mining.stratum.proxy.pool.Pool - Disconnect of pool Pool [name=eu-01.miningrigrentals.com:3333, host=eu-01.miningrigrentals.com:3333, username=tytanick.1274, password=x, difficulty=null, extranonce1=f800002e, extranonce2Size=4, activeSince=null, isActive=false, isEnabled=true, isExtranonceSubscribeEnabled=true, numberOfSubmit=1, priority=0, acceptedDifficulty=0.0, rejectedDifficulty=0.0].
java.io.IOException: EOF on inputStream.
at strat.mining.stratum.proxy.network.StratumConnection$1.run(StratumConnection.java:155)
2014-05-18 17:46:43,421 WARN [Pool-eu-01.miningrigrentals.com:3333-Thread]:strat.mining.stratum.proxy.manager.StratumProxyManager - Pool eu-01.miningrigrentals.com:3333 is DOWN. Moving connections to another one.
2014-05-18 17:46:43,430 INFO [Pool-eu-01.miningrigrentals.com:3333-Thread]:strat.mining.stratum.proxy.pool.Pool - Stopping pool eu-01.miningrigrentals.com:3333...
2014-05-18 17:46:43,431 DEBUG [Pool-eu-01.miningrigrentals.com:3333-Thread]:strat.mining.stratum.proxy.network.StratumConnection - Closing connection Pool-eu-01.miningrigrentals.com:3333...
2014-05-18 17:46:43,433 INFO [Pool-eu-01.miningrigrentals.com:3333-Thread]:strat.mining.stratum.proxy.pool.Pool - Pool eu-01.miningrigrentals.com:3333 stopped.
2014-05-18 17:46:43,433 INFO [Pool-eu-01.miningrigrentals.com:3333-Thread]:strat.mining.stratum.proxy.pool.Pool - Trying reconnect of pool eu-01.miningrigrentals.com:3333 in 5 seconds.
2014-05-18 17:46:43,434 INFO [Thread-5]:strat.mining.stratum.proxy.manager.StratumProxyManager$4 - Switching all connections of pool eu-01.miningrigrentals.com:3333.
2014-05-18 17:46:43,476 DEBUG [Pool-eu-01.miningrigrentals.com:3333-Thread]:strat.mining.stratum.proxy.network.StratumConnection - Closing connection Pool-eu-01.miningrigrentals.com:3333...
May 18, 2014 5:46:44 PM org.glassfish.grizzly.http.server.NetworkListener start
INFO: Started listener bound to [0.0.0.0:8888]
May 18, 2014 5:46:44 PM org.glassfish.grizzly.http.server.HttpServer start
INFO: [HttpServer] Started.
2014-05-18 17:46:48,476 INFO [ReconnectTimer-eu-01.miningrigrentals.com:3333]:strat.mining.stratum.proxy.pool.Pool$1 - Trying reconnect of pool eu-01.miningrigrentals.com:3333...
2014-05-18 17:46:48,477 INFO [ReconnectTimer-eu-01.miningrigrentals.com:3333]:strat.mining.stratum.proxy.pool.Pool - Starting pool eu-01.miningrigrentals.com:3333...
2014-05-18 17:46:48,510 DEBUG [ReconnectTimer-eu-01.miningrigrentals.com:3333]:strat.mining.stratum.proxy.network.StratumConnection - Pool-eu-01.miningrigrentals.com:3333. Send request: {"id": 5, "method": "mining.subscribe", "params": ["stratum-proxy-0.1.0-SNAPSHOT"]}
2014-05-18 17:46:48,510 DEBUG [Pool-eu-01.miningrigrentals.com:3333-Thread]:strat.mining.stratum.proxy.network.StratumConnection$1 - Start reading on connection Pool-eu-01.miningrigrentals.com:3333.
2014-05-18 17:46:48,543 DEBUG [Pool-eu-01.miningrigrentals.com:3333-Thread]:strat.mining.stratum.proxy.network.StratumConnection - Pool-eu-01.miningrigrentals.com:3333. Line read: {"error": null, "id": 5, "result": [["mining.notify", "ae6812eb4cd7735a302a8a9dd95cf71f"], "f800002e", 4]}
2014-05-18 17:46:48,576 DEBUG [Pool-eu-01.miningrigrentals.com:3333-Thread]:strat.mining.stratum.proxy.network.StratumConnection - Pool-eu-01.miningrigrentals.com:3333. Send request: {"id": 7, "method": "mining.extranonce.subscribe", "params": null}
2014-05-18 17:46:48,580 DEBUG [Pool-eu-01.miningrigrentals.com:3333-Thread]:strat.mining.stratum.proxy.network.StratumConnection - Pool-eu-01.miningrigrentals.com:3333. Send request: {"id": 8, "method": "mining.authorize", "params": ["tytanick.1274", "x"]}
2014-05-18 17:46:49,151 DEBUG [Pool-eu-01.miningrigrentals.com:3333-Thread]:strat.mining.stratum.proxy.network.StratumConnection - Pool-eu-01.miningrigrentals.com:3333. Line read: {"method": "client.reconnect", "id": null, "params": ["eu-01.miningrigrentals.com","50142"]}
2014-05-18 17:46:49,152 ERROR [Pool-eu-01.miningrigrentals.com:3333-Thread]:strat.mining.stratum.proxy.pool.PoolConnection - Pool-eu-01.miningrigrentals.com:3333. JSON-RPC parsing error with line: {"method": "client.reconnect", "id": null, "params": ["eu-01.miningrigrentals.com","50142"]}.
java.lang.ClassCastException: java.lang.String cannot be cast to java.lang.Number
at strat.mining.stratum.proxy.json.ClientReconnectNotification.setParams(ClientReconnectNotification.java:74)
at strat.mining.stratum.proxy.json.JsonRpcNotification.(JsonRpcNotification.java:39)
at strat.mining.stratum.proxy.json.ClientReconnectNotification.(ClientReconnectNotification.java:39)
at strat.mining.stratum.proxy.network.StratumConnection.onNotificationReceived(StratumConnection.java:262)
at strat.mining.stratum.proxy.network.StratumConnection.onLineRead(StratumConnection.java:229)
at strat.mining.stratum.proxy.network.StratumConnection.access$200(StratumConnection.java:54)
at strat.mining.stratum.proxy.network.StratumConnection$1.run(StratumConnection.java:151)
2014-05-18 17:46:49,152 ERROR [Pool-eu-01.miningrigrentals.com:3333-Thread]:strat.mining.stratum.proxy.pool.Pool - Disconnect of pool Pool [name=eu-01.miningrigrentals.com:3333, host=eu-01.miningrigrentals.com:3333, username=tytanick.1274, password=x, difficulty=null, extranonce1=f800002e, extranonce2Size=4, activeSince=null, isActive=false, isEnabled=true, isExtranonceSubscribeEnabled=true, numberOfSubmit=1, priority=0, acceptedDifficulty=0.0, rejectedDifficulty=0.0].
java.io.IOException: EOF on inputStream.
at strat.mining.stratum.proxy.network.StratumConnection$1.run(StratumConnection.java:155)
2014-05-18 17:46:49,152 WARN [Pool-eu-01.miningrigrentals.com:3333-Thread]:strat.mining.stratum.proxy.manager.StratumProxyManager - Pool eu-01.miningrigrentals.com:3333 is DOWN. Moving connections to another one.
2014-05-18 17:46:49,153 INFO [Pool-eu-01.miningrigrentals.com:3333-Thread]:strat.mining.stratum.proxy.pool.Pool - Stopping pool eu-01.miningrigrentals.com:3333...
2014-05-18 17:46:49,153 DEBUG [Pool-eu-01.miningrigrentals.com:3333-Thread]:strat.mining.stratum.proxy.network.StratumConnection - Closing connection Pool-eu-01.miningrigrentals.com:3333...
2014-05-18 17:46:49,153 INFO [Pool-eu-01.miningrigrentals.com:3333-Thread]:strat.mining.stratum.proxy.pool.Pool - Pool eu-01.miningrigrentals.com:3333 stopped.
2014-05-18 17:46:49,153 INFO [Pool-eu-01.miningrigrentals.com:3333-Thread]:strat.mining.stratum.proxy.pool.Pool - Trying reconnect of pool eu-01.miningrigrentals.com:3333 in 5 seconds.
2014-05-18 17:46:49,153 INFO [Thread-9]:strat.mining.stratum.proxy.manager.StratumProxyManager$4 - Switching all connections of pool eu-01.miningrigrentals.com:3333.
2014-05-18 17:46:49,154 DEBUG [Pool-eu-01.miningrigrentals.com:3333-Thread]:strat.mining.stratum.proxy.network.StratumConnection - Closing connection Pool-eu-01.miningrigrentals.com:3333...
^C2014-05-18 17:46:50,455 INFO [Thread-0]:strat.mining.stratum.proxy.Launcher$1 - User requested shutdown... Gracefuly kill all connections...
2014-05-18 17:46:50,456 INFO [Thread-0]:strat.mining.stratum.proxy.manager.StratumProxyManager - Closing the server socket on 0.0.0.0/0.0.0.0:3333.
2014-05-18 17:46:50,457 INFO [Thread-3]:strat.mining.stratum.proxy.manager.StratumProxyManager$1 - Stop to listen incoming connection on 0.0.0.0/0.0.0.0:3333.
2014-05-18 17:46:50,494 INFO [Thread-0]:strat.mining.stratum.proxy.Launcher$1 - Shutdown !


Reply to this email directly or view it on GitHub:
#1 (comment)

@tytanick
Copy link
Author

that would be great :)
i am waiting thx :)

@Stratehm
Copy link
Owner

It should be fixed.

Date: Sun, 18 May 2014 15:00:22 -0700
From: notifications@github.com
To: stratum-proxy@noreply.github.com
CC: stratehm@hotmail.com
Subject: Re: [stratum-proxy] Like your stratum proxy (#1)

that would be great :)

i am waiting thx :)


Reply to this email directly or view it on GitHub.

@tytanick
Copy link
Author

i checked nicehash -> https://www.miningrigrentals.com
it connects, even send some shares but after very short wile disconnects and can connect again or connect but doesnt send shares,
when i will be bask in 2h i will check again and tell you

@Stratehm
Copy link
Owner

Ok. If you still the problem, please send me the logs

Date: Tue, 20 May 2014 10:54:28 -0700
From: notifications@github.com
To: stratum-proxy@noreply.github.com
CC: stratehm@hotmail.com
Subject: Re: [stratum-proxy] Like your stratum proxy (#1)

i checked nicehash -> https://www.miningrigrentals.com

it connects, even send some shares but after very short wile disconnects and can connect again or connect but doesnt send shares,

when i will be bask in 2h i will check again and tell you


Reply to this email directly or view it on GitHub.

@Stratehm
Copy link
Owner

Just for information, my timezone is GMT+2 (It is 22:00 for me). What about you ?

From: stratehm@hotmail.com
To: reply@reply.github.com
Subject: RE: [stratum-proxy] Like your stratum proxy (#1)
Date: Tue, 20 May 2014 18:46:25 +0000

Ok. If you still the problem, please send me the logs

Date: Tue, 20 May 2014 10:54:28 -0700
From: notifications@github.com
To: stratum-proxy@noreply.github.com
CC: stratehm@hotmail.com
Subject: Re: [stratum-proxy] Like your stratum proxy (#1)

i checked nicehash -> https://www.miningrigrentals.com

it connects, even send some shares but after very short wile disconnects and can connect again or connect but doesnt send shares,

when i will be bask in 2h i will check again and tell you


Reply to this email directly or view it on GitHub.

@tytanick
Copy link
Author

also, i am from Poland

sky-link.net Tytus Rogalewski
eMail: tytanick@gmail.com
strona: http://sky-link.net
kom. 790 202 300
gg: 210533
skype: tytanick
NIP: 9570976234
REGON: 221197388

2014-05-20 21:47 GMT+02:00 Stratehm notifications@github.com:

Just for information, my timezone is GMT+2 (It is 22:00 for me). What
about you ?

From: stratehm@hotmail.com
To: reply@reply.github.com
Subject: RE: [stratum-proxy] Like your stratum proxy (#1)
Date: Tue, 20 May 2014 18:46:25 +0000

Ok. If you still the problem, please send me the logs

Date: Tue, 20 May 2014 10:54:28 -0700
From: notifications@github.com
To: stratum-proxy@noreply.github.com
CC: stratehm@hotmail.com
Subject: Re: [stratum-proxy] Like your stratum proxy (#1)

i checked nicehash -> https://www.miningrigrentals.com

it connects, even send some shares but after very short wile disconnects
and can connect again or connect but doesnt send shares,

when i will be bask in 2h i will check again and tell you


Reply to this email directly or view it on GitHub.


Reply to this email directly or view it on GitHubhttps://github.com//issues/1#issuecomment-43673876
.

@tytanick
Copy link
Author

i wont make it tonight, i am too tired and have to do some things before
sleep
i will try tomorrow :)

sky-link.net Tytus Rogalewski
eMail: tytanick@gmail.com
strona: http://sky-link.net
kom. 790 202 300
gg: 210533
skype: tytanick
NIP: 9570976234
REGON: 221197388

2014-05-20 22:42 GMT+02:00 Tytus Rogalewski tytanick@gmail.com:

also, i am from Poland

sky-link.net Tytus Rogalewski
eMail: tytanick@gmail.com
strona: http://sky-link.net
kom. 790 202 300
gg: 210533
skype: tytanick
NIP: 9570976234
REGON: 221197388

2014-05-20 21:47 GMT+02:00 Stratehm notifications@github.com:

Just for information, my timezone is GMT+2 (It is 22:00 for me). What

about you ?

From: stratehm@hotmail.com
To: reply@reply.github.com
Subject: RE: [stratum-proxy] Like your stratum proxy (#1)
Date: Tue, 20 May 2014 18:46:25 +0000

Ok. If you still the problem, please send me the logs

Date: Tue, 20 May 2014 10:54:28 -0700
From: notifications@github.com
To: stratum-proxy@noreply.github.com
CC: stratehm@hotmail.com
Subject: Re: [stratum-proxy] Like your stratum proxy (#1)

i checked nicehash -> https://www.miningrigrentals.com

it connects, even send some shares but after very short wile disconnects
and can connect again or connect but doesnt send shares,

when i will be bask in 2h i will check again and tell you


Reply to this email directly or view it on GitHub.


Reply to this email directly or view it on GitHubhttps://github.com//issues/1#issuecomment-43673876
.

@Stratehm Stratehm closed this as completed Jun 6, 2014
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants