Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

how often is "Stratum connection interrupted" #18

Closed
bmatusiak opened this issue Mar 5, 2014 · 32 comments
Closed

how often is "Stratum connection interrupted" #18

bmatusiak opened this issue Mar 5, 2014 · 32 comments

Comments

@bmatusiak
Copy link
Contributor

im getting

debug: [client] Client 'workername' disconnected!

on my workers ... is anybody else experiencing this?

@bmatusiak
Copy link
Contributor Author

on the miner side it says

Stratum connection timed out
Stratum connection interrupted

@bmatusiak
Copy link
Contributor Author

i have tested this on multi machines , with same effect

@vekexasia
Copy link
Contributor

hello @bmatusiak what is the coin you're testing?

@bmatusiak
Copy link
Contributor Author

http://rubycoin.org/

@zone117x
Copy link
Owner

zone117x commented Mar 6, 2014

Can you provide more information? Are any valid shares being processed at all? What percent of miners get disconnected from this? What miner software are you using?

@zone117x zone117x closed this as completed Mar 6, 2014
@zone117x zone117x reopened this Mar 6, 2014
@bmatusiak
Copy link
Contributor Author

@zone117x
Copy link
Owner

zone117x commented Mar 6, 2014

First thing you should do is update to latest code because there is a good chance the issue has been fixed. Your config indicates old version :)

@bmatusiak
Copy link
Contributor Author

yea i found shares, i found a block, i updated my gist with log file

@bmatusiak
Copy link
Contributor Author

i git cloned yeaterday

@bmatusiak
Copy link
Contributor Author

o i must had a older clone

when i updated i get this error


/home/bmatusiak/rubycoin/stratum/node-stratum2/lib/varDiff.js:51
    Object.keys(ports).forEach(function(port){
           ^
TypeError: Object.keys called on non-object
    at Function.keys (native)
    at new varDiff (/home/bmatusiak/rubycoin/stratum/node-stratum2/lib/varDiff.js:51:12)
    at SetupVarDiff (/home/bmatusiak/rubycoin/stratum/node-stratum2/lib/pool.js:72:25)
    at pool.start (/home/bmatusiak/rubycoin/stratum/node-stratum2/lib/pool.js:41:9)
    at Object.<anonymous> (/home/bmatusiak/rubycoin/stratum/stratum.js:110:6)
    at Module._compile (module.js:456:26)
    at Object.Module._extensions..js (module.js:474:10)
    at Module.load (module.js:356:32)
    at Function.Module._load (module.js:312:12)
    at Function.Module.runMain (module.js:497:10)

@zone117x
Copy link
Owner

zone117x commented Mar 6, 2014

You have an old config, look at the example config in the readme.

@bmatusiak
Copy link
Contributor Author

k i updated to latest, i am gonna close this for now

@zone117x
Copy link
Owner

zone117x commented Mar 6, 2014

Also its easier to help you when you answer my debug questions :)

"Can you provide more information? Are any valid shares being processed at all? What percent of miners get disconnected from this? What miner software are you using?"

cgminer? I just committed an update to the stratum subscription reply which I think may fix your issue.

@bmatusiak
Copy link
Contributor Author

im using 3 "minerd" and 1 "cgminer"

both are giving the interupted connection

minerd just sent this on latest

Stratum connection timed out
Stratum connection interrupted

its cant to find the version i have for minerd... but it has always worked for stratum mining

@bmatusiak bmatusiak reopened this Mar 6, 2014
@zone117x
Copy link
Owner

zone117x commented Mar 6, 2014

If you could get a wireshark trace of the tcp packets between miner and server then we can very likely fix this problem. It looks like somehow the server isn't acknowledging some message from the miner.

@bmatusiak
Copy link
Contributor Author

running wireshark now...

what expression did you want me to use?

atm im using expression tcp.dstport == 3335

3335 is the port stratum is listening on,, and im running wireshark on the machine with minerd

@bmatusiak
Copy link
Contributor Author

this is new

C:\Users\bmatusiak\Desktop\minerd>minerd.exe --url stratum+tcp://192.168.0.17:3335 --user bmatusiak.1 -p 1 -t 3 --quie
t
[2014-03-06 18:27:26] Starting Stratum on stratum+tcp://192.168.0.17:3335
[2014-03-06 18:27:26] 3 miner threads started, using 'scrypt' algorithm.
[2014-03-06 18:29:12] accepted: 1/1 (100.00%), 11.17 khash/s (yay!!!)
[2014-03-06 18:29:37] Stratum detected new block
[2014-03-06 18:29:54] accepted: 2/2 (100.00%), 11.12 khash/s (yay!!!)
[2014-03-06 18:31:18] accepted: 3/3 (100.00%), 11.21 khash/s (yay!!!)
[2014-03-06 18:32:28] Stratum detected new block
[2014-03-06 18:33:59] accepted: 4/4 (100.00%), 11.26 khash/s (yay!!!)
[2014-03-06 18:35:14] accepted: 5/5 (100.00%), 11.31 khash/s (yay!!!)
[2014-03-06 18:36:08] Stratum detected new block
[2014-03-06 18:36:25] accepted: 6/6 (100.00%), 11.40 khash/s (yay!!!)
[2014-03-06 18:37:27] accepted: 7/7 (100.00%), 11.30 khash/s (yay!!!)
[2014-03-06 18:37:46] accepted: 8/8 (100.00%), 11.31 khash/s (yay!!!)
[2014-03-06 18:38:01] Stratum detected new block
[2014-03-06 18:38:26] accepted: 9/9 (100.00%), 11.17 khash/s (yay!!!)
[2014-03-06 18:38:55] accepted: 10/10 (100.00%), 11.18 khash/s (yay!!!)
[2014-03-06 18:39:21] accepted: 11/11 (100.00%), 11.30 khash/s (yay!!!)
[2014-03-06 18:41:22] Stratum connection timed out
[2014-03-06 18:41:22] Stratum connection interrupted
[2014-03-06 18:42:57] accepted: 12/12 (100.00%), 11.27 khash/s (yay!!!)
[2014-03-06 18:43:14] accepted: 13/13 (100.00%), 11.27 khash/s (yay!!!)
[2014-03-06 18:46:14] stratum_recv_line failed
[2014-03-06 18:46:14] Stratum connection interrupted

@bmatusiak
Copy link
Contributor Author

ahh, ok im now following tcp stream raw data

@bmatusiak
Copy link
Contributor Author

https://gist.github.com/bmatusiak/f91244b62dd505d7634a

is this what your looking for on wireshark?

@zone117x
Copy link
Owner

zone117x commented Mar 7, 2014

Can you update to the latest code again? I added data to the subscription response that may fix the issue. I see in the tcp log that its not using latest fix I did f43a583

@zone117x
Copy link
Owner

zone117x commented Mar 7, 2014

If the problem still happens with my latest code, TheSeven (who is really good at fixing these types of things) says: "I'd suggest the tester to filter for your IP address ("ip.addr eq 123.123.123.123") and then export the visible packets to a capture file and attach that to the issue"

@bmatusiak
Copy link
Contributor Author

@zone117x
Copy link
Owner

zone117x commented Mar 7, 2014

What's your connectionTimeout set to? Make it something really high like over 9000 because that could be causing your disconnect.

@bmatusiak
Copy link
Contributor Author

so i set the timeout verry high "900000", still had a disconnect, it seems miner is causing the timeout after 120 sec of not sending any shares, i set the diff lower on pool and miner send more shares, but once it gets to a heavy share it still gets killed after the 120 sec

@zone117x
Copy link
Owner

zone117x commented Mar 7, 2014

[3:55:39 AM] TheSeven: the wireshark trace doesn't seem to be complete, it stops in the middle of frame 5187
[3:55:51 AM] TheSeven: up to that point there's no trace of the connectiong being closed by either side
[3:58:02 AM] TheSeven: nothing unusual at all in that trace
[3:58:35 AM] TheSeven: so either the trace stops before the problem occurred, or the problem is that the miner spuriously thinks that the connection was closed or something
[3:58:45 AM] TheSeven: the first of which seems more likely

@bmatusiak
Copy link
Contributor Author

i think the miner is just closing the connection on a heavy share, i see in the mimerd logs that it closes exactly 2 minits after previous share

@bmatusiak
Copy link
Contributor Author

what irc channel are you on?

@zone117x
Copy link
Owner

zone117x commented Mar 7, 2014

TheSeven was helping over a skype private convo. Although I just created two irc channels for discussion on freenode, #nomp & #nomp-dev

@bmatusiak
Copy link
Contributor Author

i found this

https://bitcointalk.org/index.php?topic=215441.msg2923337#msg2923337

i didnt see if node-stratum is doing this or not yet, and is mabe causing my issue

@zone117x
Copy link
Owner

zone117x commented Mar 9, 2014

4a088b1

This should fix the issue. Please verify

@iarcho
Copy link

iarcho commented Mar 9, 2014

i get the same error
debug: [ client] Client 'undefined' disconnected!

and the last fix does not fix it

@bmatusiak
Copy link
Contributor Author

yes thanks!

88plug pushed a commit to cryptoandcoffee/node-stratum-pool that referenced this issue Nov 26, 2018
bug/fixed-conditional-getinfo
norens pushed a commit to norens/node-stratum-pool that referenced this issue Apr 1, 2019
fixing timeout issue in paymentProcessor (and get rid of paytxfee - it doesn't help)
MottyLab pushed a commit to MottyLab/bari-node-stratum-pool that referenced this issue Apr 3, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants