Pages:
Author

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

full member
Activity: 148
Merit: 100
Is there any way to use the proxy with a local wallet ?
full member
Activity: 217
Merit: 100
I'm not good with java.  Get the following just trying to get help

java -jar stratum-proxy.jar --help
Exception in thread "main" java.lang.NoClassDefFoundError: org/kohsuke/args4j/Cm
dLineException
        at java.lang.Class.getDeclaredMethods0(Native Method)
        at java.lang.Class.privateGetDeclaredMethods(Unknown Source)
        at java.lang.Class.getMethod0(Unknown Source)
        at java.lang.Class.getMethod(Unknown Source)
        at sun.launcher.LauncherHelper.getMainMethod(Unknown Source)
        at sun.launcher.LauncherHelper.checkAndLoadMain(Unknown Source)
Caused by: java.lang.ClassNotFoundException: org.kohsuke.args4j.CmdLineException

        at java.net.URLClassLoader$1.run(Unknown Source)
        at java.net.URLClassLoader$1.run(Unknown Source)
        at java.security.AccessController.doPrivileged(Native Method)
        at java.net.URLClassLoader.findClass(Unknown Source)
        at java.lang.ClassLoader.loadClass(Unknown Source)
        at sun.misc.Launcher$AppClassLoader.loadClass(Unknown Source)
        at java.lang.ClassLoader.loadClass(Unknown Source)
        ... 6 more

In the directory where you have unzipped the package, check that you have the lib directory with some other jar inside.
full member
Activity: 150
Merit: 100
I'm not good with java.  Get the following just trying to get help

java -jar stratum-proxy.jar --help
Exception in thread "main" java.lang.NoClassDefFoundError: org/kohsuke/args4j/Cm
dLineException
        at java.lang.Class.getDeclaredMethods0(Native Method)
        at java.lang.Class.privateGetDeclaredMethods(Unknown Source)
        at java.lang.Class.getMethod0(Unknown Source)
        at java.lang.Class.getMethod(Unknown Source)
        at sun.launcher.LauncherHelper.getMainMethod(Unknown Source)
        at sun.launcher.LauncherHelper.checkAndLoadMain(Unknown Source)
Caused by: java.lang.ClassNotFoundException: org.kohsuke.args4j.CmdLineException

        at java.net.URLClassLoader$1.run(Unknown Source)
        at java.net.URLClassLoader$1.run(Unknown Source)
        at java.security.AccessController.doPrivileged(Native Method)
        at java.net.URLClassLoader.findClass(Unknown Source)
        at java.lang.ClassLoader.loadClass(Unknown Source)
        at sun.misc.Launcher$AppClassLoader.loadClass(Unknown Source)
        at java.lang.ClassLoader.loadClass(Unknown Source)
        ... 6 more
full member
Activity: 217
Merit: 100
I downloaded the proxy but am lost as to what I should do next. Running windows 7. What do I do with the .jar file?

Use the following line in cmd:
java -jar -h poolHost:port [poolHostFailover:port] -u username [usernameFailover] -p password [passwordFailover]

(You can specify several failover pools)
Then redirect your miners to proxyIp:3333

I will add a README file in the package.
member
Activity: 76
Merit: 10
I downloaded the proxy but am lost as to what I should do next. Running windows 7. What do I do with the .jar file?
full member
Activity: 217
Merit: 100
I have tried the pool http://happy.pool.mn and indeed, with several workers configured, there is a lots of rejects with the --pool-append-worker-names option. Only one worker has accepted shares, and not always the same. Unfortunetly, after investigation, I cannot do anything since the mining jobs are assigned "by worker" and not "by connection". I have contacted the pool owner.

Thank you for testing, it is really helpful.
full member
Activity: 148
Merit: 100
I've noticed that some pools don't work well when --pool-append-worker-names is set to true. I only get rejected shares when enabling this on http://happy.pool.mn for example.

But it works just fine on almost all other pools.
full member
Activity: 217
Merit: 100
but ccminer with betarigs not working

CCMiner with betarigs through the proxy ? If so, could you please send me the log file (stratum-proxy.log) of the proxy ? Thanks
hero member
Activity: 616
Merit: 500
but ccminer with betarigs not working
full member
Activity: 217
Merit: 100
I have just tested the proxy between my miners and betarigs and it works fine as is. Betarigs is just a pool like others and it does not use sgminer API (I have seen anything about that on their website). Where have you seen that ?
hero member
Activity: 616
Merit: 500
full member
Activity: 217
Merit: 100
Is this proxy can work with betarigs.com ?

It works between pools and betarigs...never tested between betarigs and miners...but it should work...
between betarigs and miners
betagigs uses API sgminer for monitoring rigs. You can integrate these API methods?

Which API methods are needed ?
hero member
Activity: 616
Merit: 500
Is this proxy can work with betarigs.com ?

It works between pools and betarigs...never tested between betarigs and miners...but it should work...
between betarigs and miners
betagigs uses API sgminer for monitoring rigs. You can integrate these API methods?
full member
Activity: 217
Merit: 100
0.2.0 version released with following improvements and fixes. The upgrade is highly recommended:

-Fix a bug when using failover pools. Some connections where left on lower priority pools when higher ones came back online.
-Return a JSON status on some API methods
-Update API
-Fix a log display issue when retry connection on pool
-Add pool/add and pool/remove API
-Add user management API methods (Kick, ban, unban, list banned)
-Add --pool-append-worker-names, --pool-worker-name-separator and --pool-use-worker-password options to allow some pools to see the workers through the proxy.
-Improve compatibility with some pools with which do not fully respect the stratum protocol.

https://github.com/Stratehm/stratum-proxy/releases
full member
Activity: 217
Merit: 100
All workers should be on the same pool everytime. All workers should switch to pool with priority 1 when pool with priority 0 is down. If you have some workers staying on the lower priority pool when higher priority one is UP, it may be a bug. Could you please send me the log file of the proxy ?

(0 is the highest priority)
newbie
Activity: 9
Merit: 0
I have some trouble understanding the way the failover is working.
I have multiple workers set on my stratum, and they don't always switch on my pool with priority 0.
For example, on the following picture, only one worker is on the favorite pool (which is online from some time already).
http://s21.postimg.org/dfox0eehz/Capture.png

Is there a way to fix this ?
full member
Activity: 217
Merit: 100
Failover is already available.

For loadbalancing: maybe, one day. It is not the priority. But, feel free to fork the project and to add it...
full member
Activity: 148
Merit: 100
Are you planning to add different pool management strategies like failover, loadbalance ?
full member
Activity: 148
Merit: 100
Then, if really needed, I could run one proxy instance for each rig and have independent difficulty per worker.
full member
Activity: 217
Merit: 100
For the difficulty, I think it will not be possible due to the difficulty management in the stratum protocol. (Connection based and not worker based).
Pages:
Jump to: