Bitcoin Forum
June 22, 2024, 07:31:21 AM *
News: Voting for pizza day contest
 
   Home   Help Search Login Register More  
Pages: « 1 2 3 4 5 [6] 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 »
  Print  
Author Topic: New stratum/getwork proxy with Web-based GUI and pools management  (Read 120841 times)
Globee07
Member
**
Offline Offline

Activity: 397
Merit: 11


View Profile
June 23, 2014, 09:48:28 AM
 #101

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.

DeepOnion    ▬▬  Anonymous and Untraceable  ▬▬    ENJOY YOUR PRIVACY  •  JOIN DEEPONION
▐▐▐▐▐▐▐▐   ANN  Whitepaper  Facebook  Twitter  Telegram  Discord   ▌▌▌▌▌▌▌▌
Get $ONION  (✔Cryptopia  ✔KuCoin)  |  VoteCentral  Register NOW!  |  Download DeepOnion
Pfool (OP)
Full Member
***
Offline Offline

Activity: 217
Merit: 100


View Profile WWW
June 23, 2014, 09:57:35 AM
 #102

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 Wink
BTC: 19wv8FQKv3NkwTdzBCQn1AGsb9ghqBPWXi
Globee07
Member
**
Offline Offline

Activity: 397
Merit: 11


View Profile
June 23, 2014, 10:14:36 AM
 #103

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.

DeepOnion    ▬▬  Anonymous and Untraceable  ▬▬    ENJOY YOUR PRIVACY  •  JOIN DEEPONION
▐▐▐▐▐▐▐▐   ANN  Whitepaper  Facebook  Twitter  Telegram  Discord   ▌▌▌▌▌▌▌▌
Get $ONION  (✔Cryptopia  ✔KuCoin)  |  VoteCentral  Register NOW!  |  Download DeepOnion
Pfool (OP)
Full Member
***
Offline Offline

Activity: 217
Merit: 100


View Profile WWW
June 23, 2014, 11:00:33 AM
 #104

Thanks. So finally, I have no idea about the bug. Could you send me the log file ?

Thanx Wink
BTC: 19wv8FQKv3NkwTdzBCQn1AGsb9ghqBPWXi
Globee07
Member
**
Offline Offline

Activity: 397
Merit: 11


View Profile
June 23, 2014, 01:45:31 PM
 #105

Thanks. So finally, I have no idea about the bug. Could you send me the log file ?

Logfile sent, thanks in advance Smiley

DeepOnion    ▬▬  Anonymous and Untraceable  ▬▬    ENJOY YOUR PRIVACY  •  JOIN DEEPONION
▐▐▐▐▐▐▐▐   ANN  Whitepaper  Facebook  Twitter  Telegram  Discord   ▌▌▌▌▌▌▌▌
Get $ONION  (✔Cryptopia  ✔KuCoin)  |  VoteCentral  Register NOW!  |  Download DeepOnion
restless
Legendary
*
Offline Offline

Activity: 1151
Merit: 1001


View Profile
June 23, 2014, 06:05:28 PM
Last edit: June 23, 2014, 06:21:03 PM by restless
 #106

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
Code:
{
  "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
Code:
][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)
Full Member
***
Offline Offline

Activity: 217
Merit: 100


View Profile WWW
June 23, 2014, 06:47:06 PM
 #107

Just ask! and calm down...all is fine...the sun is shining...

So, a basic command line to use only one pool is:

Code:
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:
Code:
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:
Code:
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 Wink
BTC: 19wv8FQKv3NkwTdzBCQn1AGsb9ghqBPWXi
restless
Legendary
*
Offline Offline

Activity: 1151
Merit: 1001


View Profile
June 23, 2014, 06:51:16 PM
 #108

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)
Full Member
***
Offline Offline

Activity: 217
Merit: 100


View Profile WWW
June 23, 2014, 07:02:06 PM
 #109

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  Wink)
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.

Code:
[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 Wink
BTC: 19wv8FQKv3NkwTdzBCQn1AGsb9ghqBPWXi
restless
Legendary
*
Offline Offline

Activity: 1151
Merit: 1001


View Profile
June 23, 2014, 08:59:39 PM
 #110

It seems i have error starting proxy:
Quote
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)
Full Member
***
Offline Offline

Activity: 217
Merit: 100


View Profile WWW
June 23, 2014, 09:07:50 PM
 #111

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):
Code:
netstat -n -a -b
and looking for the line with 3333 LISTENING

On Linux:
Code:
netstat -natp | grep 3333

Thanx Wink
BTC: 19wv8FQKv3NkwTdzBCQn1AGsb9ghqBPWXi
Boffinboy
Member
**
Offline Offline

Activity: 80
Merit: 10


View Profile
June 26, 2014, 06:53:02 PM
 #112

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.

Code:
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.

Code:
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)
Full Member
***
Offline Offline

Activity: 217
Merit: 100


View Profile WWW
June 26, 2014, 08:09:43 PM
 #113

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 Wink
BTC: 19wv8FQKv3NkwTdzBCQn1AGsb9ghqBPWXi
Boffinboy
Member
**
Offline Offline

Activity: 80
Merit: 10


View Profile
June 26, 2014, 09:47:25 PM
 #114

Thanks Pool. I am away from at the moment but will post tomorrow or at the weekend!

BTC - 1GVGSkdnHz12Zuy6rYcnMxoy6PMBqvL4z6
Pfool (OP)
Full Member
***
Offline Offline

Activity: 217
Merit: 100


View Profile WWW
June 26, 2014, 10:07:48 PM
 #115

I will be away for 3 days...I will look at these problems when back.

Thanx Wink
BTC: 19wv8FQKv3NkwTdzBCQn1AGsb9ghqBPWXi
Boffinboy
Member
**
Offline Offline

Activity: 80
Merit: 10


View Profile
June 27, 2014, 05:40:26 AM
 #116

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 Offline

Activity: 80
Merit: 10


View Profile
June 28, 2014, 04:15:29 PM
 #117

Command line I have been using is:

Code:
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:
Code:
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)
Full Member
***
Offline Offline

Activity: 217
Merit: 100


View Profile WWW
June 30, 2014, 11:08:43 AM
 #118

Command line I have been using is:

Code:
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:
Code:
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 Wink
BTC: 19wv8FQKv3NkwTdzBCQn1AGsb9ghqBPWXi
Boffinboy
Member
**
Offline Offline

Activity: 80
Merit: 10


View Profile
June 30, 2014, 06:21:30 PM
 #119

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 Offline

Activity: 59
Merit: 0


View Profile
July 02, 2014, 01:42:54 PM
 #120

cloud add muti-profies? can change profie live?
Pages: « 1 2 3 4 5 [6] 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 »
  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!