Bitcoin Forum
May 05, 2024, 11:52:12 PM *
News: Latest Bitcoin Core release: 27.0 [Torrent]
 
   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 120837 times)
Pfool (OP)
Full Member
***
Offline Offline

Activity: 217
Merit: 100


View Profile WWW
June 18, 2014, 08:25:51 PM
 #81

Just wanted to say thanks for this, it's a great help when mining on Nvidia. Do you have a donation address (BTC one in sig?). I would like to buy you a beer!

Beer received! Cheers!

Thanx Wink
BTC: 19wv8FQKv3NkwTdzBCQn1AGsb9ghqBPWXi
1714953132
Hero Member
*
Offline Offline

Posts: 1714953132

View Profile Personal Message (Offline)

Ignore
1714953132
Reply with quote  #2

1714953132
Report to moderator
1714953132
Hero Member
*
Offline Offline

Posts: 1714953132

View Profile Personal Message (Offline)

Ignore
1714953132
Reply with quote  #2

1714953132
Report to moderator
1714953132
Hero Member
*
Offline Offline

Posts: 1714953132

View Profile Personal Message (Offline)

Ignore
1714953132
Reply with quote  #2

1714953132
Report to moderator
Each block is stacked on top of the previous one. Adding another block to the top makes all lower blocks more difficult to remove: there is more "weight" above each block. A transaction in a block 6 blocks deep (6 confirmations) will be very difficult to remove.
Advertised sites are not endorsed by the Bitcoin Forum. They may be unsafe, untrustworthy, or illegal in your jurisdiction.
1714953132
Hero Member
*
Offline Offline

Posts: 1714953132

View Profile Personal Message (Offline)

Ignore
1714953132
Reply with quote  #2

1714953132
Report to moderator
1714953132
Hero Member
*
Offline Offline

Posts: 1714953132

View Profile Personal Message (Offline)

Ignore
1714953132
Reply with quote  #2

1714953132
Report to moderator
1714953132
Hero Member
*
Offline Offline

Posts: 1714953132

View Profile Personal Message (Offline)

Ignore
1714953132
Reply with quote  #2

1714953132
Report to moderator
Boffinboy
Member
**
Offline Offline

Activity: 80
Merit: 10


View Profile
June 18, 2014, 08:46:00 PM
 #82

Just wanted to say thanks for this, it's a great help when mining on Nvidia. Do you have a donation address (BTC one in sig?). I would like to buy you a beer!

Beer received! Cheers!

No problem! Enjoy!

BTC - 1GVGSkdnHz12Zuy6rYcnMxoy6PMBqvL4z6
qiufeng
Newbie
*
Offline Offline

Activity: 59
Merit: 0


View Profile
June 19, 2014, 08:26:09 AM
 #83

what about sgminer 5 's multi-algorithm support?
https://bitcointalk.org/index.php?topic=632503.0
Pfool (OP)
Full Member
***
Offline Offline

Activity: 217
Merit: 100


View Profile WWW
June 19, 2014, 08:39:09 AM
 #84

The multi-algo is a miner feature. What do you want to know about that ?


Thanx Wink
BTC: 19wv8FQKv3NkwTdzBCQn1AGsb9ghqBPWXi
qiufeng
Newbie
*
Offline Offline

Activity: 59
Merit: 0


View Profile
June 19, 2014, 08:47:21 AM
 #85

The multi-algo is a miner feature. What do you want to know about that ?


like nicehash.com can control what algo to mine!
Pfool (OP)
Full Member
***
Offline Offline

Activity: 217
Merit: 100


View Profile WWW
June 19, 2014, 09:06:36 AM
 #86

The multi-algo is a miner feature. What do you want to know about that ?


like nicehash.com can control what algo to mine!

Do you mean pools for different algo on the proxy ?
It may be possible (maybe not if you use some Getwork miners) but I do not see how the miners connected to the proxy will be aware of the current pool algorithm (and of algorithm switching).

Since in SGminer V5 one algorithm is tied to one pool defined in the miner, I think you will have to launch one instance of the proxy for each algorithm and configure your miners with all the proxies (one by algorithm).

It is a lots of configuration but definitely doable. (even if I do not really see the advantages of using a proxy for this case)

Thanx Wink
BTC: 19wv8FQKv3NkwTdzBCQn1AGsb9ghqBPWXi
qiufeng
Newbie
*
Offline Offline

Activity: 59
Merit: 0


View Profile
June 19, 2014, 09:18:02 AM
 #87

The multi-algo is a miner feature. What do you want to know about that ?


like nicehash.com can control what algo to mine!

Do you mean pools for different algo on the proxy ?
It may be possible (maybe not if you use some Getwork miners) but I do not see how the miners connected to the proxy will be aware of the current pool algorithm (and of algorithm switching).

Since in SGminer V5 one algorithm is tied to one pool defined in the miner, I think you will have to launch one instance of the proxy for each algorithm and configure your miners with all the proxies (one by algorithm).

It is a lots of configuration but definitely doable. (even if I do not really see the advantages of using a proxy for this case)
i see .thank you!
Globee07
Member
**
Offline Offline

Activity: 397
Merit: 11


View Profile
June 20, 2014, 12:45:14 PM
 #88

I always get invalid or corrupt jar file error when i try to run it.
What am i doing wrong? 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
Pfool (OP)
Full Member
***
Offline Offline

Activity: 217
Merit: 100


View Profile WWW
June 20, 2014, 01:31:53 PM
 #89

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

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

Activity: 397
Merit: 11


View Profile
June 20, 2014, 05:04:04 PM
 #90

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.<init>(Unknown Source)
        at java.net.ServerSocket.<init>(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

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 20, 2014, 05:57:54 PM
 #91

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

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

Activity: 397
Merit: 11


View Profile
June 20, 2014, 08:25:34 PM
 #92

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)

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

Activity: 2282
Merit: 1072


https://crowetic.com | https://qortal.org


View Profile WWW
June 20, 2014, 08:36:34 PM
 #93

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!



              ▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓
             ▒▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓
          ▒▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓
        ▒▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓
       ▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓
     ▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓              ▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓
    ▓▓▓▓▓▓▓▓▓▓▓▓▓                    ▓▓▓▓▓▓▓▓▓▓▓▓▓
   ▓▓▓▓▓▓▓▓▓▓▓▓                        ▓▓▓▓▓▓▓▓▓▓▓▓
  ▒▓▓▓▓▓▓▓▓▓▓▒                          ▒▓▓▓▓▓▓▓▓▓▓
  ▓▓▓▓▓▓▓▓▓▓▒                            ▒▓▓▓▓▓▓▓▓▓▓
 ▒▓▓▓▓▓▓▓▓▓▓                              ▓▓▓▓▓▓▓▓▓▓
 ▓▓▓▓▓▓▓▓▓▓▒                              ▒▓▓▓▓▓▓▓▓▓
 ▓▓▓▓▓▓▓▓▓▓▒                               ▓▓▓▓▓▓▓▓▓▓
 ▒▓▓▓▓▓▓▓▓▓▓                      ▒▓▓▓▓▓▒    ▓▓▓▓▓▓▓
  ▓▓▓▓▓▓▓▓▓▓                        ▓▓▓▓▓▓▓    ▓▓▓▓▓
  ▓▓▓▓▓▓▓▓▓▓▓              ▒▒▒▒▒▒     ▓▓▓▓▓▓▒    ▓▓▓
   ▓▓▓▓▓▓▓▓▓▓▓              ▒▓▓▓▓▓▓    ▒▓▓▓▓▓▓
   ▒▓▓▓▓▓▓▓▓▓▓▓▒              ▓▓▓▓▓▓▓    ▒▓▓▓▓▓▓
    ▒▓▓▓▓▓▓▓▓▓▓▓▓▓              ▓▓▓▓▓▓▒    ▓▓▓▓▓▓▓
      ▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▒            ▓▓▓▓▓▓▒    ▓▓▓▓▓▓
       ▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓    ▒▓▓▓▓▓▓▒   ▒▓▓▓▓▓▓
         ▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓    ▒▓▓▓▓▓▓
           ▒▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓    ▓▓▓▓▓▓▓
              ▒▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓
                   ▒▓▓▓▓▓▓▓▓▓▓▓▓▓▓


ORTAL
    ..Web and Application hosting.
     ⊙ decentralized infrastructure
    ..leveling and voting.
| https://qortal.org - Infrastructure for the future World
            Founder/current dev group facilitator
[/td][/tr][/table]

[/table]
Pfool (OP)
Full Member
***
Offline Offline

Activity: 217
Merit: 100


View Profile WWW
June 20, 2014, 08:42:17 PM
 #94

I think he wants to say: the proxy on the pi and several Nvidia based rigs connected to the proxy.

Thanx Wink
BTC: 19wv8FQKv3NkwTdzBCQn1AGsb9ghqBPWXi
leicas
Newbie
*
Offline Offline

Activity: 9
Merit: 0


View Profile
June 20, 2014, 10:52:26 PM
 #95

I think he wants to say: the proxy on the pi and several Nvidia based rigs connected to the proxy.
Yep Smiley
djbert
Member
**
Offline Offline

Activity: 462
Merit: 10


View Profile
June 21, 2014, 12:44:49 PM
 #96

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??
Pfool (OP)
Full Member
***
Offline Offline

Activity: 217
Merit: 100


View Profile WWW
June 21, 2014, 03:52:42 PM
 #97

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

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

Activity: 462
Merit: 10


View Profile
June 21, 2014, 11:34:54 PM
 #98

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
Globee07
Member
**
Offline Offline

Activity: 397
Merit: 11


View Profile
June 23, 2014, 09:30:28 AM
Last edit: June 23, 2014, 09:41:48 AM by Globee07
 #99

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]

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:46:31 AM
 #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.

Thanx Wink
BTC: 19wv8FQKv3NkwTdzBCQn1AGsb9ghqBPWXi
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!