Bitcoin Forum
December 13, 2024, 12:09:22 PM *
News: Latest Bitcoin Core release: 28.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 120895 times)
Pfool (OP)
Full Member
***
Offline Offline

Activity: 217
Merit: 100


View Profile WWW
December 24, 2014, 09:29:52 AM
 #321

It is not a configuration problem. You are certainly using the latest BFGminer version which has broken its JSON-RPC protocol implementation (string IDs are not allowed in JSON-RPC). A workaround has been implemented in the proxy on the git repository. (and not yet released).

You should try to build the proxy package from the git repository to have the latest fixes. If you do not know how to do, I will soon build a pre-release of the next version.

Thanx Wink
BTC: 19wv8FQKv3NkwTdzBCQn1AGsb9ghqBPWXi
jk9694
Full Member
***
Offline Offline

Activity: 274
Merit: 122


View Profile
December 24, 2014, 03:20:59 PM
 #322

So I compiled the source and here is what im getting now

2014-12-24 10:19:20,254 INFO     [/192.168.1.13:60323-Thread]:strat.mining.stratum.proxy.manager.ProxyManager - New WorkerConnection /192.168.1.13:60323 subscribed. 1 connections active on pool Paycoin.
2014-12-24 10:19:20,267 WARN     [/192.168.1.13:60323-Thread]:strat.mining.stratum.proxy.network.StratumConnection - Unknown request type on connection /192.168.1.13:60323. methodName: mining.get_transactions, id: txlist29c, params: [29c]
Pfool (OP)
Full Member
***
Offline Offline

Activity: 217
Merit: 100


View Profile WWW
December 24, 2014, 03:49:21 PM
 #323

Hum...It is a request that I do not know...

I have asked a question about it in the Stratum protocol thread.

Thanx Wink
BTC: 19wv8FQKv3NkwTdzBCQn1AGsb9ghqBPWXi
cloudhashing_patrick
Newbie
*
Offline Offline

Activity: 5
Merit: 0


View Profile
December 25, 2014, 07:47:48 PM
 #324

It is not a configuration problem. You are certainly using the latest BFGminer version which has broken its JSON-RPC protocol implementation (string IDs are not allowed in JSON-RPC).

Quote
id - The request id. This can be of any type. It is used to match the response with the request that it is replying to.
http://json-rpc.org/wiki/specification

(To be fair that is probably quite the nuisance to implement correctly...)
Pfool (OP)
Full Member
***
Offline Offline

Activity: 217
Merit: 100


View Profile WWW
December 25, 2014, 08:05:38 PM
 #325

Hum...my bad. I have indeed misread the specs. So, here is an erratum:

It is not a configuration problem. You are certainly using the latest BFGminer version which uses a string for JSON-RPC requests ids and my broken JSON-RPC protocol implementation does not handle correctly this id. The fix is available on the git repo.

Thank you cloudhashing_patrick

Thanx Wink
BTC: 19wv8FQKv3NkwTdzBCQn1AGsb9ghqBPWXi
tekke
Legendary
*
Offline Offline

Activity: 854
Merit: 1000



View Profile
January 03, 2015, 07:42:29 PM
 #326

Hi to all. I have downloaded the proxy. Kudos to the author, thanks for it

I'm having a problem. I create a simple .conf file using the minimal sample. everithing boot up ok ( I guess) , I access to the web but I can't see any info on any of the tabs but on Logs. Also I can't get it to work , my remote worker tries to connect but I end up having this error on the log

Code:

2015-01-03 15:03:58,603 INFO     [StratumProxyManagerSeverSocketListener]:strat.mining.stratum.proxy.manager.ProxyManager$1 - New connection on /0.0.0.0:3333 from /186.14.28.73:52305.
2015-01-03 15:03:58,641 ERROR    [/186.14.28.73:52305-Thread]:strat.mining.stratum.proxy.worker.StratumWorkerConnection - Parsing error on worker connection /186.14.28.73:52305. Failed to parse line {"id": 0, "method": "mining.subscribe", "params": ["cgminer/3.7.0"]}.




my cgminer conf is also very simple:
Code:
{
"url" : "stratum+tcp://proxyip:3333",
"user" : "1",
"pass" : "x"
},


This is my .conf for the proxy


Code:
{
  "pools" : [ {
    "host" : "stratum+tcp://us1.coinking.io",
    "user" : "u1.3"
  }
  } ]
}


Thanks for the help
altcointalk14
Sr. Member
****
Offline Offline

Activity: 751
Merit: 253


View Profile
January 03, 2015, 09:56:03 PM
 #327

Hello,

I have about 60 asic running thru the stratum proxy server then to a btc pool.  It seems the stratum server goes down for 30-40 seconds each time a block is found.

Is this normal?

If not, what can I do to reduce this downtime.?  Thank You!
Pfool (OP)
Full Member
***
Offline Offline

Activity: 217
Merit: 100


View Profile WWW
January 03, 2015, 10:04:47 PM
 #328

Hello,

I have about 60 asic running thru the stratum proxy server then to a btc pool.  It seems the stratum server goes down for 30-40 seconds each time a block is found.

Is this normal?

If not, what can I do to reduce this downtime.?  Thank You!

Really odd. I cannot tell you what happen. How do you see that the proxy disconnects from the pool after a block is found ? Through the logs or through the GUI ?

Thanx Wink
BTC: 19wv8FQKv3NkwTdzBCQn1AGsb9ghqBPWXi
altcointalk14
Sr. Member
****
Offline Offline

Activity: 751
Merit: 253


View Profile
January 04, 2015, 12:15:32 AM
 #329

I am watching the cgminer terminal window in linux.  Now it wont do it, I am trying to catch a screenshot.  Watching multiple workers/windows they would all do it at the same time
altcointalk14
Sr. Member
****
Offline Offline

Activity: 751
Merit: 253


View Profile
January 04, 2015, 12:36:19 AM
 #330

Here is a screen shot, it is about 30-40 seconds every time it happens.

Pfool (OP)
Full Member
***
Offline Offline

Activity: 217
Merit: 100


View Profile WWW
January 04, 2015, 04:58:53 AM
 #331

Could you send me the log file of the proxy ? (By default, in the temp directory of your OS and named stratum-proxy.log)

Thanks

Thanx Wink
BTC: 19wv8FQKv3NkwTdzBCQn1AGsb9ghqBPWXi
Anon39
Legendary
*
Offline Offline

Activity: 1526
Merit: 1010


▇ ▅ ▃ ▇ ▅ █


View Profile
January 05, 2015, 10:25:53 PM
 #332

Hi guys, i installed the stratum but i have this error:

Code:
xxx on pool 1. Booo !!!!. Error: JsonRpcError [ code=23, message=low difficulty share of 0.000027396682152006082, traceback=null]
i can't understand why  Angry Shocked
Pfool (OP)
Full Member
***
Offline Offline

Activity: 217
Merit: 100


View Profile WWW
January 05, 2015, 11:18:53 PM
 #333

Hi guys, i installed the stratum but i have this error:

Code:
xxx on pool 1. Booo !!!!. Error: JsonRpcError [ code=23, message=low difficulty share of 0.000027396682152006082, traceback=null]
i can't understand why  Angry Shocked

Hi,
Which algorithm ? Wich mining software and hardware ?

Thanx Wink
BTC: 19wv8FQKv3NkwTdzBCQn1AGsb9ghqBPWXi
Anon39
Legendary
*
Offline Offline

Activity: 1526
Merit: 1010


▇ ▅ ▃ ▇ ▅ █


View Profile
January 06, 2015, 12:37:37 AM
 #334

Hi guys, i installed the stratum but i have this error:

Code:
xxx on pool 1. Booo !!!!. Error: JsonRpcError [ code=23, message=low difficulty share of 0.000027396682152006082, traceback=null]
i can't understand why  Angry Shocked

Hi,
Which algorithm ? Wich mining software and hardware ?
algo: scrypt

i have this problem with:

- amd radeon HD 7870 with cgminer 3.7.2
- rented gridseedx3

100% rejected with the above error

it seems to work with an unknown rented rig of 2.6 MH/s

PS: my radeon works perfectly if i point it directly to any pool
Pfool (OP)
Full Member
***
Offline Offline

Activity: 217
Merit: 100


View Profile WWW
January 06, 2015, 04:56:25 AM
 #335

Cgminer 3.7.2 has an extranonce2 size management bug. This bug prevents cgminer to work behind a proxy. You should try to upgrade to sgminer instead: https://www.nicehash.com/index.jsp?p=software#sgminer

For rented rigs, it depends if the renter's rigs run with this buggy version of cgminer or with a newer one.

Thanx Wink
BTC: 19wv8FQKv3NkwTdzBCQn1AGsb9ghqBPWXi
girino
Legendary
*
Offline Offline

Activity: 2296
Merit: 1170


Advertise Here - PM for more info!


View Profile
January 07, 2015, 05:29:18 PM
 #336

Hi,

i've been using this proxy for quite sometime and it is great. I just need to know a little more about this:

-Up to 256 workers at the same time (stratum and getwork)

1- is this the number of workers, or the number of connections? Can I have a single worker with 300 connections, for example?
2- is this a restriction of the architecture or can this be changed? (I don't mind having to compile the code to increase it, just need to know where to change it).

I have being looking into to the code and have not seen this restriction coded anywhere, that's why i asked question 2.

Thanks in advance,
Girino.

Advertise Here - PM for more info!
Pfool (OP)
Full Member
***
Offline Offline

Activity: 217
Merit: 100


View Profile WWW
January 07, 2015, 06:52:58 PM
 #337

Hi,

i've been using this proxy for quite sometime and it is great. I just need to know a little more about this:

-Up to 256 workers at the same time (stratum and getwork)

1- is this the number of workers, or the number of connections? Can I have a single worker with 300 connections, for example?
2- is this a restriction of the architecture or can this be changed? (I don't mind having to compile the code to increase it, just need to know where to change it).

I have being looking into to the code and have not seen this restriction coded anywhere, that's why i asked question 2.

Thanks in advance,
Girino.

This is a limit on the number of connections.

You can try to increase this limit to 65536 connections by modifying a constant in the source code. It should work but I never tested it. The drawback is that you may have problems with Nicehash. It should be rare but it may happen depending on the pool of the job you will work on (But you have no control on that). The symptom will be a disconnection of the pool with the message "The extranonce2Size for the pool nameOfThePool is too low. Size: X, mininum needed Y.". But on the next reconnection of the pool (if you are lucky), the problem will vanish since Nicehash will affect you on a different job.

Change the value of the constant DEFAULT_EXTRANONCE1_TAIL_SIZE in the Constants.java file from 1 to 2.

In all cases, I am interested by the result of your experiment.
Good luck.

Thanx Wink
BTC: 19wv8FQKv3NkwTdzBCQn1AGsb9ghqBPWXi
Anon39
Legendary
*
Offline Offline

Activity: 1526
Merit: 1010


▇ ▅ ▃ ▇ ▅ █


View Profile
January 07, 2015, 07:01:57 PM
 #338

Cgminer 3.7.2 has an extranonce2 size management bug. This bug prevents cgminer to work behind a proxy. You should try to upgrade to sgminer instead: https://www.nicehash.com/index.jsp?p=software#sgminer

For rented rigs, it depends if the renter's rigs run with this buggy version of cgminer or with a newer one.

thank you very much!  Smiley
i will try to mine with sgminer
girino
Legendary
*
Offline Offline

Activity: 2296
Merit: 1170


Advertise Here - PM for more info!


View Profile
January 07, 2015, 07:13:42 PM
 #339

Hi,

i've been using this proxy for quite sometime and it is great. I just need to know a little more about this:

-Up to 256 workers at the same time (stratum and getwork)

1- is this the number of workers, or the number of connections? Can I have a single worker with 300 connections, for example?
2- is this a restriction of the architecture or can this be changed? (I don't mind having to compile the code to increase it, just need to know where to change it).

I have being looking into to the code and have not seen this restriction coded anywhere, that's why i asked question 2.

Thanks in advance,
Girino.

This is a limit on the number of connections.

You can try to increase this limit to 65536 connections by modifying a constant in the source code. It should work but I never tested it. The drawback is that you may have problems with Nicehash. It should be rare but it may happen depending on the pool of the job you will work on (But you have no control on that). The symptom will be a disconnection of the pool with the message "The extranonce2Size for the pool nameOfThePool is too low. Size: X, mininum needed Y.". But on the next reconnection of the pool (if you are lucky), the problem will vanish since Nicehash will affect you on a different job.

Change the value of the constant DEFAULT_EXTRANONCE1_TAIL_SIZE in the Constants.java file from 1 to 2.

In all cases, I am interested by the result of your experiment.
Good luck.


Thanks for the answer. I am trying it right. Just out of curiosity, what happens when the number of connections exceeds 256?

I had this weird problem last Saturday in which the pool simply stopped working. the web interface was ok, but it did not accept connections nor connected to the pool. Seemed like the thread expecting connections had stopped. But there was no exception or any error in the logs.

The only thing I could think of is that just before it stopped i had an increase in connections (i do not control the connections, they come as a "2% time share" paid by those who use my optimized X11 miner, so more people using it, more connections). So i 'ill try this change and see if it will work, but it may take a long time before such a surge in connections happens again (usually whenever x11 mining profitability increases).

Advertise Here - PM for more info!
Pfool (OP)
Full Member
***
Offline Offline

Activity: 217
Merit: 100


View Profile WWW
January 08, 2015, 08:51:59 AM
 #340

The pool connection problem you describe sould not be caused by the connection limit. If you can retrieve the logs when this problem comes back, please send me the file.


When the limit number of connections is reached, the connection is rejected with the following error in the logs:

Too many connections on pool xxxx for the connection xxxxxx. Sending error and close the connection.


On the client side, the following error should be displayed in the mining software:

Too many connection on the pool.


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!