Pages:
Author

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

full member
Activity: 217
Merit: 100
Does the appendWorkerNames feature work with NiceHash / WestHash?

I keep getting "worker not authorized" errors, and it seems that only one worker makes it through to the pool.

I do not remember if Nicehash is able to track each of your worker individually (with a worker name like that BTC_ADDRESS.WORKER_NAME). But I think that only one worker can be authorized by TCP connection on Nicehash. If so, the appendWorkerNames will not work (and should indeed send this kind of error).

For your others errors:
-Do you now have access to the WebClient ?
-Do you connect your workers to the proxy through stratum or getwork ?
hero member
Activity: 700
Merit: 504
Run a Bitcoin node.
Does the appendWorkerNames feature work with NiceHash / WestHash?

I keep getting "worker not authorized" errors, and it seems that only one worker makes it through to the pool.
hero member
Activity: 700
Merit: 504
Run a Bitcoin node.
Got one miner working through the proxy server.

When I add new miners, it doesn't seem that the proxy server is picking them up. Do I have to restart the proxy server every time I add a new miner?
hero member
Activity: 700
Merit: 504
Run a Bitcoin node.
Thanks Pfool for this awesome software! I'm trying to get it working so I can connect my miners to WestHash/NiceHash.

My configuration file looks like this (bitcoin address snipped):
Code:
{
 "logDirectory" : "/tmp/"
,"logLevel" : "INFO"
,"validateSha26GetworkShares": true
,"pools" :
  [
    {
     "name" : "WestHash SHA-256"
    ,"host" : "stratum.westhash.com:3334"
    ,"user" : "16k...br"
    ,"password" : ""
    ,"enableExtranonceSubscribe" : true
    }
  , {
     "name" : "NiceHash SHA-256"
    ,"host" : "stratum.nicehash.com:3334"
    ,"user" : "16k..br"
    ,"password" : ""
    ,"enableExtranonceSubscribe" : true
    }
  ]
}

What I see when I run it (again, bitcoin address snipped):
Code:
java -jar stratum-proxy.jar -f /home/zelek/stratum-proxy-0.5.1/stratum-proxy.conf
Use log directory /tmp
2014-12-17 07:00:35,486 INFO     [main]:strat.mining.stratum.proxy.configuration.ConfigurationManager - Using INFO LogLevel.
2014-12-17 07:00:35,491 INFO     [main]:strat.mining.stratum.proxy.configuration.ConfigurationManager - API log level not set. API logging disabled.
2014-12-17 07:00:35,507 INFO     [main]:strat.mining.stratum.proxy.configuration.ConfigurationManager - Database directory not specified. Using default one: /home/zelek/stratum-proxy-0.5.1/database.
2014-12-17 07:00:35,516 INFO     [main]:strat.mining.stratum.proxy.database.DatabaseManager - Starting DatabaseManager...
2014-12-17 07:00:36,086 INFO     [main]:strat.mining.stratum.proxy.database.DatabaseManager - DatabaseManager started.
2014-12-17 07:00:36,087 INFO     [main]:strat.mining.stratum.proxy.Launcher - Using pools: [Pool [name=WestHash SHA-256, host=stratum.westhash.com:3334, username=16kefMjm83C6Wb6D3p8db1pgD864dx6hbr, password=, readySince=null, isReady=false, isEnabled=true, isStable=false, priority=0, weight=1], Pool [name=NiceHash SHA-256, host=stratum.nicehash.com:3334, username=16kefMjm83C6Wb6D3p8db1pgD864dx6hbr, password=, readySince=null, isReady=false, isEnabled=true, isStable=false, priority=1, weight=1]].
2014-12-17 07:00:36,761 ERROR    [main]:strat.mining.stratum.proxy.pool.Pool - Failed to connect the pool NiceHash SHA-256.
java.net.ConnectException: Connection refused
at java.net.PlainSocketImpl.socketConnect(Native Method)
at java.net.AbstractPlainSocketImpl.doConnect(AbstractPlainSocketImpl.java:339)
at java.net.AbstractPlainSocketImpl.connectToAddress(AbstractPlainSocketImpl.java:200)
at java.net.AbstractPlainSocketImpl.connect(AbstractPlainSocketImpl.java:182)
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:185)
at strat.mining.stratum.proxy.manager.ProxyManager.startPools(ProxyManager.java:134)
at strat.mining.stratum.proxy.Launcher.initProxyManager(Launcher.java:369)
at strat.mining.stratum.proxy.Launcher.main(Launcher.java:126)
2014-12-17 07:00:36,768 INFO     [main]:strat.mining.stratum.proxy.pool.Pool - Trying reconnect of pool NiceHash SHA-256 in 5.0 seconds.
2014-12-17 07:00:36,772 INFO     [main]:strat.mining.stratum.proxy.manager.ProxyManager - ServerSocket opened on /0.0.0.0:3333.
2014-12-17 07:00:36,878 INFO     [Pool-WestHash SHA-256-Thread]:strat.mining.stratum.proxy.pool.Pool - Extranonce change subscribed on pool WestHash SHA-256.
2014-12-17 07:00:37,052 INFO     [Pool-WestHash SHA-256-Thread]:strat.mining.stratum.proxy.manager.ProxyManager - Set difficulty 256.0 on pool WestHash SHA-256.
2014-12-17 07:00:37,053 INFO     [Pool-WestHash SHA-256-Thread]:strat.mining.stratum.proxy.manager.ProxyManager - New block detected on pool WestHash SHA-256.
2014-12-17 07:00:37,054 INFO     [Pool-WestHash SHA-256-Thread]:strat.mining.stratum.proxy.pool.Pool - Pool WestHash SHA-256 started
2014-12-17 07:00:37,055 WARN     [Pool-WestHash SHA-256-Thread]:strat.mining.stratum.proxy.manager.ProxyManager - Pool WestHash SHA-256 is STABLE.
2014-12-17 07:00:37,059 WARN     [Pool-WestHash SHA-256-Thread]:strat.mining.stratum.proxy.manager.ProxyManager - Pool WestHash SHA-256 is UP.
2014-12-17 07:00:37,516 ERROR    [main]:strat.mining.stratum.proxy.Launcher - Failed to start the proxy.
javax.ws.rs.ProcessingException: Failed to start Grizzly HTTP server: Address already in use
at org.glassfish.jersey.grizzly2.httpserver.GrizzlyHttpServerFactory.createHttpServer(GrizzlyHttpServerFactory.java:244)
at org.glassfish.jersey.grizzly2.httpserver.GrizzlyHttpServerFactory.createHttpServer(GrizzlyHttpServerFactory.java:87)
at strat.mining.stratum.proxy.Launcher.initGetwork(Launcher.java:349)
at strat.mining.stratum.proxy.Launcher.main(Launcher.java:129)
Caused by: java.net.BindException: Address already in use
at sun.nio.ch.Net.bind0(Native Method)
at sun.nio.ch.Net.bind(Net.java:444)
at sun.nio.ch.Net.bind(Net.java:436)
at sun.nio.ch.ServerSocketChannelImpl.bind(ServerSocketChannelImpl.java:214)
at sun.nio.ch.ServerSocketAdaptor.bind(ServerSocketAdaptor.java:74)
at org.glassfish.grizzly.nio.transport.TCPNIOBindingHandler.bindToChannelAndAddress(TCPNIOBindingHandler.java:132)
at org.glassfish.grizzly.nio.transport.TCPNIOBindingHandler.bind(TCPNIOBindingHandler.java:88)
at org.glassfish.grizzly.nio.transport.TCPNIOTransport.bind(TCPNIOTransport.java:233)
at org.glassfish.grizzly.nio.transport.TCPNIOTransport.bind(TCPNIOTransport.java:213)
at org.glassfish.grizzly.nio.transport.TCPNIOTransport.bind(TCPNIOTransport.java:204)
at org.glassfish.grizzly.http.server.NetworkListener.start(NetworkListener.java:680)
at org.glassfish.grizzly.http.server.HttpServer.start(HttpServer.java:276)
at org.glassfish.jersey.grizzly2.httpserver.GrizzlyHttpServerFactory.createHttpServer(GrizzlyHttpServerFactory.java:241)
... 3 more
2014-12-17 07:00:40,275 INFO     [Pool-WestHash SHA-256-Thread]:strat.mining.stratum.proxy.manager.ProxyManager - New block detected on pool WestHash SHA-256.
2014-12-17 07:00:41,771 INFO     [TimerExecutorThread-0]:strat.mining.stratum.proxy.pool.Pool$2 - Trying reconnect of pool ReconnectTask-NiceHash SHA-256...
2014-12-17 07:00:42,088 ERROR    [TimerExecutorThread-0]:strat.mining.stratum.proxy.pool.Pool - Failed to connect the pool NiceHash SHA-256.
java.net.ConnectException: Connection refused
at java.net.PlainSocketImpl.socketConnect(Native Method)
at java.net.AbstractPlainSocketImpl.doConnect(AbstractPlainSocketImpl.java:339)
at java.net.AbstractPlainSocketImpl.connectToAddress(AbstractPlainSocketImpl.java:200)
at java.net.AbstractPlainSocketImpl.connect(AbstractPlainSocketImpl.java:182)
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:185)
at strat.mining.stratum.proxy.pool.Pool$2.run(Pool.java:673)
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)
2014-12-17 07:00:42,090 INFO     [TimerExecutorThread-0]:strat.mining.stratum.proxy.pool.Pool - Trying reconnect of pool NiceHash SHA-256 in 5.0 seconds.
2014-12-17 07:00:47,090 INFO     [TimerExecutorThread-0]:strat.mining.stratum.proxy.pool.Pool$2 - Trying reconnect of pool ReconnectTask-NiceHash SHA-256...
2014-12-17 07:00:47,398 ERROR    [TimerExecutorThread-0]:strat.mining.stratum.proxy.pool.Pool - Failed to connect the pool NiceHash SHA-256.
java.net.ConnectException: Connection refused
at java.net.PlainSocketImpl.socketConnect(Native Method)
at java.net.AbstractPlainSocketImpl.doConnect(AbstractPlainSocketImpl.java:339)
at java.net.AbstractPlainSocketImpl.connectToAddress(AbstractPlainSocketImpl.java:200)
at java.net.AbstractPlainSocketImpl.connect(AbstractPlainSocketImpl.java:182)
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:185)
at strat.mining.stratum.proxy.pool.Pool$2.run(Pool.java:673)
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)
2014-12-17 07:00:47,400 INFO     [TimerExecutorThread-0]:strat.mining.stratum.proxy.pool.Pool - Trying reconnect of pool NiceHash SHA-256 in 5.0 seconds.
2014-12-17 07:00:52,400 INFO     [TimerExecutorThread-0]:strat.mining.stratum.proxy.pool.Pool$2 - Trying reconnect of pool ReconnectTask-NiceHash SHA-256...
2014-12-17 07:00:52,781 ERROR    [TimerExecutorThread-0]:strat.mining.stratum.proxy.pool.Pool - Failed to connect the pool NiceHash SHA-256.
java.net.ConnectException: Connection refused
at java.net.PlainSocketImpl.socketConnect(Native Method)
at java.net.AbstractPlainSocketImpl.doConnect(AbstractPlainSocketImpl.java:339)
at java.net.AbstractPlainSocketImpl.connectToAddress(AbstractPlainSocketImpl.java:200)
at java.net.AbstractPlainSocketImpl.connect(AbstractPlainSocketImpl.java:182)
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:185)
at strat.mining.stratum.proxy.pool.Pool$2.run(Pool.java:673)
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)
2014-12-17 07:00:52,783 INFO     [TimerExecutorThread-0]:strat.mining.stratum.proxy.pool.Pool - Trying reconnect of pool NiceHash SHA-256 in 5.0 seconds.
^C2014-12-17 07:00:53,571 INFO     [Thread-0]:strat.mining.stratum.proxy.database.DatabaseManager - Close databases.
[db4o 8.0.249.16098   2014-12-17 07:00:53]
 '/home/zelek/stratum-proxy-0.5.1/database/dbpools' closed by ShutdownHook.
2014-12-17 07:00:53,657 INFO     [Thread-0]:strat.mining.stratum.proxy.Launcher$1 - User requested shutdown... Gracefuly kill all connections...
2014-12-17 07:00:53,657 INFO     [Thread-0]:strat.mining.stratum.proxy.manager.ProxyManager - Closing the server socket on /0.0.0.0:3333.
2014-12-17 07:00:53,658 INFO     [StratumProxyManagerSeverSocketListener]:strat.mining.stratum.proxy.manager.ProxyManager$1 - Stop to listen incoming connection on /0.0.0.0:3333.
2014-12-17 07:00:53,659 WARN     [Thread-0]:strat.mining.stratum.proxy.manager.ProxyManager - Pool WestHash SHA-256 is DOWN. Moving connections to another one.
2014-12-17 07:00:53,666 INFO     [Thread-0]:strat.mining.stratum.proxy.pool.Pool - Pool WestHash SHA-256 stopped.
2014-12-17 07:00:53,666 INFO     [Thread-0]:strat.mining.stratum.proxy.Launcher$1 - Shutdown !

I'm trying to get this running on a laptop on Linux Mint 16.

Looking at this again... is it actually working? If it is connecting to WestHash, why does it try to connect to NiceHash, and why does that fail? I tried connecting one of my miners, but couldn't get it working. I was using 127.0.0.1:8888, but I'll try again with the IP address of the laptop.

Also, I can't get the web page working. I tried:
http://proxyIp:8888
where proxyIp is the IP address of the stratum proxy server (i.e. my laptop).
full member
Activity: 217
Merit: 100
Your mining software try to connect on the proxy with the GetBlockTemplate protocol. This protocol is not supported by the proxy.

You should configure your mining software to use getwork instead. I know that cgminer/sgminer try to connect the first time with getblocktemplate then fallback to getwork if the first request fails (there is no problem with this behavior on this proxy).
sr. member
Activity: 342
Merit: 250
2014-12-15 07:38:05,940 ERROR    [Grizzly-worker(4)]:strat.mining.stratum.proxy.worker.GetworkRequestHandler - Unsupported request content from 192.168.1.2: {"id": 0, "method": "getblocktemplate", "params": [{"capabilities": ["coinbasetxn", "workid", "coinbase/append"]}]}
2014-12-15 07:38:21,994 ERROR    [Grizzly-worker(4)]:strat.mining.stratum.proxy.worker.GetworkRequestHandler - Unsupported request content from 192.168.1.2: {"id": 0, "method": "getblocktemplate", "params": [{"capabilities": ["coinbasetxn", "workid", "coinbase/append"]}]}
2014-12-15 07:38:27,737 INFO     [Pool-NICEHASH-Thread]:strat.mining.stratum.proxy.manager.ProxyManager - New block detected on pool NICEHASH.
2014-12-15 07:38:37,360 ERROR    [Grizzly-worker(4)]:strat.mining.stratum.proxy.worker.GetworkRequestHandler - Unsupported request content from 192.168.1.2: {"id": 0, "method": "getblocktemplate", "params": [{"capabilities": ["coinbasetxn", "workid", "coinbase/append"]}]}

I keep getting this error when I try to connect my miner. 
legendary
Activity: 1500
Merit: 1002
Mine Mine Mine
any new developements ? is it possible to add quota function ? want to split hashes to diff pools.

tia
member
Activity: 462
Merit: 10
it has been sometime since I posted here and I am glad to see this post is still kicking! Well, I came here to ask if any thought has been made towards making a Synology NAS package for this proxy? I know there are Java packages for Synology NAS's, so I am guessing it would be a rather simple cross-over. Of course I am asking this because would love to use my NAS as my hub of sorts for all my miners, as opposed to running the proxy on my computer all the time. Thoughts anyone?  Cool
full member
Activity: 217
Merit: 100
hy

if i use my gpus stratum work well to 5 different pools

if i rent a rig (miningrig) i have a lot of problem

someone could post a config parametrr for 10 workers in wheightedround etc etc

thanks

What kind of problems ?
sr. member
Activity: 293
Merit: 250
hy

if i use my gpus stratum work well to 5 different pools

if i rent a rig (miningrig) i have a lot of problem

someone could post a config parametrr for 10 workers in wheightedround etc etc

thanks
legendary
Activity: 3248
Merit: 1070
can you implement something like the command "--balance" of cgminer? because round rublin isn't that good for renting, the connection keeps crashing, i need something that mine simultaneously on multiple workers

In a proxy, this feature is much more difficult to implement than in a mining software.

I will not be able to split a worker hashing power on several pools at the same time. The best thing I could do is to bind worker1 on pool1, worker2 on pool2, worker3 on pool1, worker4 on pool2 and so on...

Unfortunatly and as usual, I have not enough time to implement this feature at the moment (I have already some bugs to fix and some little tweaks to do for 2 months).

well ok, i was just asking  Grin
full member
Activity: 217
Merit: 100
can you implement something like the command "--balance" of cgminer? because round rublin isn't that good for renting, the connection keeps crashing, i need something that mine simultaneously on multiple workers

In a proxy, this feature is much more difficult to implement than in a mining software.

I will not be able to split a worker hashing power on several pools at the same time. The best thing I could do is to bind worker1 on pool1, worker2 on pool2, worker3 on pool1, worker4 on pool2 and so on...

Unfortunatly and as usual, I have not enough time to implement this feature at the moment (I have already some bugs to fix and some little tweaks to do for 2 months).
sr. member
Activity: 293
Merit: 250
can you implement something like the command "--balance" of cgminer? because round rublin isn't that good for renting, the connection keeps crashing, i need something that mine simultaneously on multiple workers
me too

thank to all
legendary
Activity: 3248
Merit: 1070
can you implement something like the command "--balance" of cgminer? because round rublin isn't that good for renting, the connection keeps crashing, i need something that mine simultaneously on multiple workers
full member
Activity: 217
Merit: 100
You should use a release of the proxy (as described in the Amph post) instead of building from sources (the release version is considered as stable, contrary to the git repo).

If you really want to build from the git repo, do not launch the proxy from the target maven directory. Unzip the ZIP file of the target directory in another folder and launch the proxy from this new location.
legendary
Activity: 3248
Merit: 1070
sudo apt-get update

sudo apt-get install default-jre(or the package that you like)

wget url of this stratum.java.zip

apt-get install unzip

unzip stratum-proxy.rar

enjoy
sr. member
Activity: 293
Merit: 250
hy

there is an install procedure?

I'm not so able with linux and i need it.

thanks to everyone

legendary
Activity: 3248
Merit: 1070
yeah, i'm contacting the rig owner of my renting
full member
Activity: 217
Merit: 100
i found it in your OP



i'm pointing it to a vps under a vm

This error can come from the 3.7.2 cgminer version. This version has a bug with the extranonce2 size management. It does not respect the extranonce2Size sent by pools (and proxies). This version can not be used with statum proxies. Some ASIC miners also use a forsk of this cgminer version and are also impacted.

legendary
Activity: 3248
Merit: 1070
i found it in your OP



i'm pointing it to a vps under a vm
Pages:
Jump to: