Pages:
Author

Topic: New stratum/getwork proxy with Web-based GUI and pools management - page 28. (Read 120841 times)

legendary
Activity: 1151
Merit: 1001
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 .................................................

:/

full member
Activity: 217
Merit: 100
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)


legendary
Activity: 1151
Merit: 1001
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
member
Activity: 397
Merit: 11
Thanks. So finally, I have no idea about the bug. Could you send me the log file ?

Logfile sent, thanks in advance Smiley
full member
Activity: 217
Merit: 100
Thanks. So finally, I have no idea about the bug. Could you send me the log file ?
member
Activity: 397
Merit: 11
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.
full member
Activity: 217
Merit: 100
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.
member
Activity: 397
Merit: 11
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.
full member
Activity: 217
Merit: 100
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.
member
Activity: 397
Merit: 11
Code:
I have an issue running the proxy.
As I have explained above, the proxy is running on a machine collecting work from miner rigs. The proxy is conencted to a rental site where my proxy machine is visible as a "big rig".

When I start the proxy and the rigs everything runs just fine. The "big rig" is visible at the rental site and hashing flawlessly.

For some hours atleast, then the proxy starts to give such errors:

[quote]2014-06-22 08:50:04,112 INFO  [Grizzly-worker(5)]: [GetworkWorkerConnection]    REJECTED share (diff: 0.005) from workername@Getwork-/000.000.000.000 on eu-01.miningrigrentals.com:3333. Booo !!!!. Error: JsonRpcError [code=24, message=unauthorized worker, traceback=null][/quote]


(the workername and ip address was masked by me)

The only way to get it work properly again is to terminate the proxy and start running it again.

The very strange thing is that when i start the proxy is runs just fine for 3-4-6 then starts to fail.

Any ideas?
[/code]
member
Activity: 462
Merit: 10
I have an odd issue...i am using a Erupter Cube (sha256), which can only use the getwork protocol, however it will not start or get work through the java proxy. the java proxy connects just fine (nicehash 256sha pool), recognizes the Cube, but never sends or receives any work from it. The proxy eventually shuts down the connection, because it says it is inactive. But the java proxy just keeps showing a new block as been detected on the pool, so i am guessing it is connected ok. I then connect to the Cube and it showing it is idle as well. any ideas on this??

Could you run the proxy with the option --log-level DEBUG and send me the log file ? (which is called stratum-proxy.log in the OS temp directory, or you can change the directory with --log-directory).

Thanks

I PM'd you a excerpt of the log file. thank you for the help
full member
Activity: 217
Merit: 100
I have an odd issue...i am using a Erupter Cube (sha256), which can only use the getwork protocol, however it will not start or get work through the java proxy. the java proxy connects just fine (nicehash 256sha pool), recognizes the Cube, but never sends or receives any work from it. The proxy eventually shuts down the connection, because it says it is inactive. But the java proxy just keeps showing a new block as been detected on the pool, so i am guessing it is connected ok. I then connect to the Cube and it showing it is idle as well. any ideas on this??

Could you run the proxy with the option --log-level DEBUG and send me the log file ? (which is called stratum-proxy.log in the OS temp directory, or you can change the directory with --log-directory).

Thanks
member
Activity: 462
Merit: 10
I have an odd issue...i am using a Erupter Cube (sha256), which can only use the getwork protocol, however it will not start or get work through the java proxy. the java proxy connects just fine (nicehash 256sha pool), recognizes the Cube, but never sends or receives any work from it. The proxy eventually shuts down the connection, because it says it is inactive. But the java proxy just keeps showing a new block as been detected on the pool, so i am guessing it is connected ok. I then connect to the Cube and it showing it is idle as well. any ideas on this??
newbie
Activity: 9
Merit: 0
I think he wants to say: the proxy on the pi and several Nvidia based rigs connected to the proxy.
Yep Smiley
full member
Activity: 217
Merit: 100
I think he wants to say: the proxy on the pi and several Nvidia based rigs connected to the proxy.
legendary
Activity: 2282
Merit: 1072
https://crowetic.com | https://qortal.org
I'm using your proxy on a Raspberry Pi and with several Nvidia card mining X11, working great !

Also I've been coding some php-frontend to log info from the JSON data you provide, thanks a lot for your work.

how are you running a pi with nvidia cards, could you please PM with an answer? Thanks!
member
Activity: 397
Merit: 11
No problem, everybody has been a "noob" one day.  Wink

This error happens when a port used by the proxy is already used by another program. In your case, the proxy tries to bind the port 3333 for the stratum protocol (even if you do not use it). I think your old proxy is still running and is bound to the port 3333 for stratum.

You should add --stratum-listen-port 3334 on your command line. (or any other port which is not already used).

Thanks a lot!

I forgot to mention that, that proxy machine is a miner also, but as i have read your post i figured that it must be that locking the port.
Funny thing about java is that it turns out if i start the proxy first then the sgminer then everything works like a charm, but if the miner is running when i start the proxy then its not working.
(the miner is connecting to the same pool with different worker name, not through the proxy)
full member
Activity: 217
Merit: 100
No problem, everybody has been a "noob" one day.  Wink

This error happens when a port used by the proxy is already used by another program. In your case, the proxy tries to bind the port 3333 for the stratum protocol (even if you do not use it). I think your old proxy is still running and is bound to the port 3333 for stratum.

You should add --stratum-listen-port 3334 on your command line. (or any other port which is not already used).
member
Activity: 397
Merit: 11
I always get invalid or corrupt jar file error when i try to run it.
What am i doing wrong? Smiley

Could you post the error you get from the command line ?
Could you try to open the stratum-proxy.jar file with a zip archiver (winrar, winzip, 7-zip...)? Does it work ?

Thanks

Actually I was able to run it later on but now Im stuck at another issue.

Let me explain the case quickly Smiley

I have some rigs behind a firewall that is really restrictive and i have absolutely no control of.

They were running scrypt with that above mentioned old proxy in a way like:

The miners behind the firewall and internet proxy were using: "http:proxyaddress:8080|http://xxx.xxx.xxx.xxx:563"

xxx.xxx.xxx.xxx:563 is the address of a router attached directly to the internet where the 563 port is forwarded to a local address and 8332 port.

the stratum proxy is running on that local machine which can connect to any pool on any port. All i had to set-up for the proxy is a pool address and a pool port and it was working like a charm.

But now its time to switch them to x11.

here is what i get from your proxy:

Quote
C:\Users\admin\Desktop\stratum-proxy-0.3.0>java -jar stratum-proxy.jar -h eu-01.
miningrigrentals.com:3333 -u asusmatrix280x.3277 -p x --getwork-listen-port 8332

Log directory not set or available. Use the tmp OS directory.
2014-06-20 18:56:43,195 INFO     [main]:strat.mining.stratum.proxy.Launcher - Lo
gLevel not set, using INFO.
2014-06-20 18:56:43,212 INFO     [main]:strat.mining.stratum.proxy.Launcher - Us
ing pools: [Pool [name=eu-01.miningrigrentals.com:3333, host=eu-01.miningrigrent
als.com:3333, uri=null, username=asusmatrix280x.3277, password=x, difficulty=nul
l, extranonce1=null, extranonce2Size=null, activeSince=null, isActive=false, isE
nabled=true, isExtranonceSubscribeEnabled=false, numberOfSubmit=1, priority=0, a
cceptedDifficulty=0.0, rejectedDifficulty=0.0]].
2014-06-20 18:56:43,683 ERROR    [main]:strat.mining.stratum.proxy.Launcher - Fa
iled to start the stratum 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.(Unknown Source)
        at java.net.ServerSocket.(Unknown Source)
        at strat.mining.stratum.proxy.manager.StratumProxyManager.startListening
IncomingConnections(StratumProxyManager.java:148)
        at strat.mining.stratum.proxy.Launcher.initProxyManager(Launcher.java:18
2)
        at strat.mining.stratum.proxy.Launcher.main(Launcher.java:115)
2014-06-20 18:56:44,409 ERROR    [Pool-eu-01.miningrigrentals.com:3333-Thread]:s
trat.mining.stratum.proxy.pool.Pool - Stopping pool eu-01.miningrigrentals.com:3
333 since user asusmatrix280x.3277 is not authorized.
2014-06-20 18:56:44,412 WARN     [Pool-eu-01.miningrigrentals.com:3333-Thread]:s
trat.mining.stratum.proxy.manager.StratumProxyManager - Pool eu-01.miningrigrent
als.com:3333 is DOWN. Moving connections to another one.
2014-06-20 18:56:44,419 INFO     [Pool-eu-01.miningrigrentals.com:3333-Thread]:s
trat.mining.stratum.proxy.pool.Pool - Pool eu-01.miningrigrentals.com:3333 stopp
ed.
2014-06-20 18:56:44,422 INFO     [Pool-eu-01.miningrigrentals.com:3333-Thread]:s
trat.mining.stratum.proxy.pool.Pool - Trying reconnect of pool eu-01.miningrigre
ntals.com:3333 in 5.0 seconds.

I might be missing something really obvious, im still a begginer at this whole proxy thing so don't be surprised if i did something terribly wrong Smiley
full member
Activity: 217
Merit: 100
I always get invalid or corrupt jar file error when i try to run it.
What am i doing wrong? Smiley

Could you post the error you get from the command line ?
Could you try to open the stratum-proxy.jar file with a zip archiver (winrar, winzip, 7-zip...)? Does it work ?

Thanks
Pages:
Jump to: