Globee07
Member
Offline
Activity: 397
Merit: 11
|
|
June 23, 2014, 09:48:28 AM |
|
Based on the error returned by miningrigs (Code: (24, message=unauthorized worker, traceback=null)), it seems that the worker is no more authorized to submit shares but I don't known why.
Could you run the proxy with the --log-level DEBUG option and send me the log file when the bug happens? I will also need your command line options.
One thing to add, the workername and ip address what i have masked is the workername and ip address of my miners behind the proxy, that is why i thought it might be an issue with the proxy not the rental site.
|
|
|
|
Pfool (OP)
|
|
June 23, 2014, 09:57:35 AM |
|
Do you use the --append-worker-name option ? If not, is the username specified on the proxy command line is the one given by betarigs ? Are the usernames defined on your workers are all the same (and are they the username given by betarigs ?)
I think I have found the bug in the proxy but I need the above details to confirm the bug.
|
Thanx BTC: 19wv8FQKv3NkwTdzBCQn1AGsb9ghqBPWXi
|
|
|
Globee07
Member
Offline
Activity: 397
Merit: 11
|
|
June 23, 2014, 10:14:36 AM |
|
Do you use the --append-worker-name option ? If not, is the username specified on the proxy command line is the one given by betarigs ? Are the usernames defined on your workers are all the same (and are they the username given by betarigs ?)
I think I have found the bug in the proxy but I need the above details to confirm the bug.
Currently im not using the --append-worker-name option. The worker name what i use with -u and -p is provided by miningrigrentals.com and I have the same workername and pw set up on all the miner rigs behind the proxy.
|
|
|
|
Pfool (OP)
|
|
June 23, 2014, 11:00:33 AM |
|
Thanks. So finally, I have no idea about the bug. Could you send me the log file ?
|
Thanx BTC: 19wv8FQKv3NkwTdzBCQn1AGsb9ghqBPWXi
|
|
|
Globee07
Member
Offline
Activity: 397
Merit: 11
|
|
June 23, 2014, 01:45:31 PM |
|
Thanks. So finally, I have no idea about the bug. Could you send me the log file ?
Logfile sent, thanks in advance
|
|
|
|
restless
Legendary
Offline
Activity: 1151
Merit: 1001
|
|
June 23, 2014, 06:05:28 PM Last edit: June 23, 2014, 06:21:03 PM by restless |
|
Is there ANY example how to start AND use it? bat.file to start proxy: "C:\Program Files (x86)\Java\jre8\bin\java.exe" -jar stratum-proxy.jar -f stratum-750.conf contents of conf file { "logDirectory" : "", "logLevel" : "INFO", "stratumListenPort" : 3333, "stratumListenAddress" : "0.0.0.0", "getworkListenPort" : 8332, "getworkListenAddress" : "0.0.0.0", "apiListenPort" : 8888, "apiListenAddress" : "0.0.0.0", "poolConnectionRetryDelay" : 5, "poolReconnectStabilityPeriod" : 5, "poolNoNotifyTimeout" : 120, "rejectReconnectOnDifferentHost" : false, "poolHashrateSamplingPeriod" : 600, "userHashrateSamplingPeriod" : 600, "connectionHashrateSamplingPeriod" : 600, "isScrypt" : false, "databaseDirectory": "", "hashrateDatabaseSamplingPeriod": 1, "hashrateDatabaseHistoryDepth": 7, "noMidstate": false, "pools" : [ { "name" : "Survivor X11", "host" : "pool.xhash.net:3384", "user" : "xxx.h", "password" : "h", "enableExtranonceSubscribe" : false, "appendWorkerNames" : false, "workerNameSeparator" : ".", "useWorkerPassword" : true }, { "name" : "TMB X11", "host" : "am01.eu.trademybit.com:4440", "user" : "xxx.750", "password" : "750", "enableExtranonceSubscribe" : false, "appendWorkerNames" : false, "workerNameSeparator" : ".", "useWorkerPassword" : true }, { "name" : "TMB X11", "host" : "east01.us.trademybit.com:4440", "user" : "xxx.750", "password" : "750", "enableExtranonceSubscribe" : false, "appendWorkerNames" : false, "workerNameSeparator" : ".", "useWorkerPassword" : true } ] } Starting ccminer with ccminer.exe -a x11 -o stratum+tcp://127.0.0.1:3333 ][2014-06-23 21:03:41] ...retry after 30 seconds JSON-RPC call failed: [ 20, "No pool available on this proxy.", null Ok, maybe this is for jaba nerds only, but 6 pages and not a single example how to start the miner? PSL also tried ccminer with -x - no luck
|
|
|
|
Pfool (OP)
|
|
June 23, 2014, 06:47:06 PM |
|
Just ask! and calm down...all is fine...the sun is shining... So, a basic command line to use only one pool is: java -jar stratum-proxy.jar -h stratum.nicehash.com:3333 -u nicehashUsername -p nicehashPassword The explanation: -h to specify the URLs of the pools -u to set the users of the pools -p to set the passwords of the pools For details of others options, use: java -jar stratum-proxy.jar --help By default, the proxy listen to incoming stratum connection on port 3333, getwork requests on port 8332 and the API is accessible on port 8888 Now, for several pools: java -jar stratum-proxy.jar -h stratum.nicehash.com:3333 eu.wafflepool.com:3333 -u nicehashUsername wafflepoolUsername -p nicehashPassword wafflepoolPassword --set-extranonce-subscribe true false A more generic way to write it: -h pool1Url pool2Url pool3Url -u pool1User pool2User pool3User -p pool1Pass pool2Pass pool3Pass --set-extranonce-subscribe pool1Value pool2Value pool3Value From the 0.4.0 version (which is just an alpha version at the moment, so it may be unstable), you can use a configuration file (like the one you have posted) with the -f option. I have tested your configuration file and indeed, there is a big regression in the 0.4.0-SNAPSHOT version (pools cannot reconnect on failure). I will fix the regression in another snapshot. I recommand to use the 0.3.0 version with command line to avoid this kind of problems. But, the connections to your pools fail for the following reasons: Survivor X11: Connection refused TMB X11: The worker xxx.750 is not authorized. (But I think you have obfuscated your username/passwords)
|
Thanx BTC: 19wv8FQKv3NkwTdzBCQn1AGsb9ghqBPWXi
|
|
|
restless
Legendary
Offline
Activity: 1151
Merit: 1001
|
|
June 23, 2014, 06:51:16 PM |
|
yup, user name is hidden.
The point is, I got the stratum-proxy working, it connects and reports pool is UP
I can't connect the miner - ccminer in this case to the proxy! can you give example how to connect to the proxy? eg if not for ccminer, then for cgminer cgminer .................................................
:/
|
|
|
|
Pfool (OP)
|
|
June 23, 2014, 07:02:06 PM |
|
In the command line of ccminer that you gave, just add the username and password with whatever value. Example for sgminer (I do not use ccminer, I am just a poor AMD miner ) sgminer -o stratum+tcp://127.0.0.1:3333 -u Miner1 -p x About the error you have posted: the proxy was not yet connected to a pool. [2014-06-23 21:03:41] ...retry after 30 seconds JSON-RPC call failed: [ 20, "No pool available on this proxy.", null Just wait for the next connection retry of your miner (30 seconds) and it should be OK.
|
Thanx BTC: 19wv8FQKv3NkwTdzBCQn1AGsb9ghqBPWXi
|
|
|
restless
Legendary
Offline
Activity: 1151
Merit: 1001
|
|
June 23, 2014, 08:59:39 PM |
|
It seems i have error starting proxy: 2014-06-23 23:58:12,850 INFO [Pool-TMB X11-Thread]:strat.mining.stratum.proxy.man ager.StratumProxyManager - Set difficulty 0.005 on pool TMB X11. 2014-06-23 23:58:12,892 ERROR [main]:strat.mining.stratum.proxy.Launcher - Failed to start the proxy. java.net.BindException: Address already in use: JVM_Bind at java.net.DualStackPlainSocketImpl.bind0(Native Method) at java.net.DualStackPlainSocketImpl.socketBind(Unknown Source) at java.net.AbstractPlainSocketImpl.bind(Unknown Source) at java.net.PlainSocketImpl.bind(Unknown Source) at java.net.ServerSocket.bind(Unknown Source) at java.net.ServerSocket.<init>(Unknown Source) at strat.mining.stratum.proxy.manager.StratumProxyManager.startListeningIncom ingConnections(StratumProxyManager.java:160) at strat.mining.stratum.proxy.Launcher.initProxyManager(Launcher.java:220) at strat.mining.stratum.proxy.Launcher.main(Launcher.java:95) 2014-06-23 23:58:13,161 INFO [Pool-TMB X11-Thread]:strat.mining.stratum.proxy.man ager.StratumProxyManager - Set difficulty 0.005 on pool TMB X11.
|
|
|
|
Pfool (OP)
|
|
June 23, 2014, 09:07:50 PM |
|
You have another process which is bound to the stratum port (3333 by default). On Windows, you can see which program is bound to this port the command (need an administrator console): and looking for the line with 3333 LISTENING On Linux: netstat -natp | grep 3333
|
Thanx BTC: 19wv8FQKv3NkwTdzBCQn1AGsb9ghqBPWXi
|
|
|
Boffinboy
Member
Offline
Activity: 80
Merit: 10
|
|
June 26, 2014, 06:53:02 PM |
|
Hi there, i am having some problems with the proxy. have it working great for jackpotcoin, but am struggling with a couple of others. Not sure if I am doing something wrong in my command line, or if it's a bug. Messages below. End up with these on all 4 pools on the config. 2014-06-25 00:01:01,438 ERROR [Pool-eu1.coinking.io:6666-Thread]: [Pool] Disconnect of pool Pool [name=eu1.coinking.io:6666, host=eu1.coinking.io:6666, uri=stratum+tcp://eu1.coinking.io:6666, username=USER.1, password=x, difficulty=0.016, extranonce1=f800557a, extranonce2Size=4, activeSince=Tue Jun 24 23:31:06 BST 2014, isActive=true, isEnabled=true, isExtranonceSubscribeEnabled=false, numberOfSubmit=1, priority=0, acceptedDifficulty=21.56599999999939, rejectedDifficulty=0.064]. java.io.IOException: EOF on inputStream. at strat.mining.stratum.proxy.network.StratumConnection$1.run(StratumConnection.java:156) 2014-06-25 00:01:01,438 WARN [Pool-eu1.coinking.io:6666-Thread]: [StratumProxyManager] Pool eu1.coinking.io:6666 is DOWN. Moving connections to another one. 2014-06-25 00:01:07,129 WARN [Pool-eu1.coinking.io:6666-Thread]: [StratumProxyManager] Pool eu1.coinking.io:6666 is UP. 2014-06-25 00:15:04,169 ERROR [TimerExecutorThread-95]: [Pool] Failed to connect the pool eu1.coinking.io:6666. java.net.UnknownHostException: eu1.coinking.io at java.net.AbstractPlainSocketImpl.connect(AbstractPlainSocketImpl.java:178) at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:392) at java.net.Socket.connect(Socket.java:579) at java.net.Socket.connect(Socket.java:528) at strat.mining.stratum.proxy.pool.Pool.startPool(Pool.java:176) at strat.mining.stratum.proxy.pool.Pool$2.run(Pool.java:609) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615) at java.lang.Thread.run(Thread.java:744)
|
BTC - 1GVGSkdnHz12Zuy6rYcnMxoy6PMBqvL4z6
|
|
|
Pfool (OP)
|
|
June 26, 2014, 08:09:43 PM |
|
The first error happens when the pool close the connection. But we cannot easily know why. I will need to make some tests.
The second error happens when the DNS resolution of the host fails...which is odd this it has succeed several times before. After some google search, it seems that som JVM versions have this problem.
For the first problem, could you post your command line ? For the second problem, could you tell me which version of the JVM you use ? (java -version)
|
Thanx BTC: 19wv8FQKv3NkwTdzBCQn1AGsb9ghqBPWXi
|
|
|
Boffinboy
Member
Offline
Activity: 80
Merit: 10
|
|
June 26, 2014, 09:47:25 PM |
|
Thanks Pool. I am away from at the moment but will post tomorrow or at the weekend!
|
BTC - 1GVGSkdnHz12Zuy6rYcnMxoy6PMBqvL4z6
|
|
|
Pfool (OP)
|
|
June 26, 2014, 10:07:48 PM |
|
I will be away for 3 days...I will look at these problems when back.
|
Thanx BTC: 19wv8FQKv3NkwTdzBCQn1AGsb9ghqBPWXi
|
|
|
Boffinboy
Member
Offline
Activity: 80
Merit: 10
|
|
June 27, 2014, 05:40:26 AM |
|
I will be away for 3 days...I will look at these problems when back.
thanks! I am updating my mining rig this weekend, maybe it will resolve it!
|
BTC - 1GVGSkdnHz12Zuy6rYcnMxoy6PMBqvL4z6
|
|
|
Boffinboy
Member
Offline
Activity: 80
Merit: 10
|
|
June 28, 2014, 04:15:29 PM |
|
Command line I have been using is: java -jar stratum-proxy.jar -h eu1.coinking.io:6666 eu2.coinking.io:6666 am01.eu.trademybit.com:4440 am02.eu.trademybit.com:4440 -u USER.1 USER.1 USER.1 USER.1 -p x x x x --log-directory /home/max/stratum-proxy-0.3.0/logs --log-level WARN Java version is: java version "1.7.0_51" OpenJDK Runtime Environment (IcedTea 2.4.4) (7u51-2.4.4-0ubuntu0.13.04.2) OpenJDK 64-Bit Server VM (build 24.45-b08, mixed mode)
but am aiming to update server this weekend, so should be newer
|
BTC - 1GVGSkdnHz12Zuy6rYcnMxoy6PMBqvL4z6
|
|
|
Pfool (OP)
|
|
June 30, 2014, 11:08:43 AM |
|
Command line I have been using is: java -jar stratum-proxy.jar -h eu1.coinking.io:6666 eu2.coinking.io:6666 am01.eu.trademybit.com:4440 am02.eu.trademybit.com:4440 -u USER.1 USER.1 USER.1 USER.1 -p x x x x --log-directory /home/max/stratum-proxy-0.3.0/logs --log-level WARN Java version is: java version "1.7.0_51" OpenJDK Runtime Environment (IcedTea 2.4.4) (7u51-2.4.4-0ubuntu0.13.04.2) OpenJDK 64-Bit Server VM (build 24.45-b08, mixed mode)
but am aiming to update server this weekend, so should be newer I have done some test on your pools and all was fine. I know that some pools disconnect workers when no shares are submitted for a certain amount of time. Maybe the difficulty set on the pool is too high for your workers and shares are not submitted fast enough.
|
Thanx BTC: 19wv8FQKv3NkwTdzBCQn1AGsb9ghqBPWXi
|
|
|
Boffinboy
Member
Offline
Activity: 80
Merit: 10
|
|
June 30, 2014, 06:21:30 PM |
|
OK, thank you. Will give it another go once server fully updated and let you know if still have issues!
|
BTC - 1GVGSkdnHz12Zuy6rYcnMxoy6PMBqvL4z6
|
|
|
qiufeng
Newbie
Offline
Activity: 59
Merit: 0
|
|
July 02, 2014, 01:42:54 PM |
|
cloud add muti-profies? can change profie live?
|
|
|
|
|