sgminer-dev / sgminer

Scrypt GPU miner
GNU General Public License v3.0
631 stars 825 forks source link

Weird interaction with nicehash at start sometimes #325

Open mrbrdo opened 10 years ago

mrbrdo commented 10 years ago

Sometimes something weird happens with nicehash when starting sgminer, it interprets what is going on as if all pools are offline. After starting sgminer again it starts without problems. I think this only happens when using nicehash's settings via password e.g. I am using: "f0=0;f2=0;f3=3.85;f4=2.69;f5=331.5;f6=2.58;f7=6.5;c0=0;c2=0;c3=0.1;c4=0.1;c5=0.16;c6=0.1;c7=0.1"

Log:

[20:24:34] Closing socket for stratum NiceHash_X15_multi
[20:24:34] Select timeout/failed connect
[20:24:34] Failed to connect to stratum on stratum.nicehash.com:4337
[20:24:34] setup_stratum_socket() on NiceHash_X13_multi failed
[20:24:34] Initiating stratum failed on NiceHash_X13_multi
[20:24:34] Select timeout/failed connect
[20:24:34] Failed to connect to stratum on stratum.nicehash.com:4336
[20:24:34] setup_stratum_socket() on NiceHash_X11_multi failed
[20:24:34] Initiating stratum failed on NiceHash_X11_multi
[20:25:33] No servers were found that could be used to get work from.
[20:25:33] Please check the details from the list below of the servers you have input
[20:25:33] Most likely you have input the wrong URL, forgotten to add a port, or have not set up workers
[20:25:33] Pool: 0  URL: stratum+tcp://stratum.nicehash.com:4336  User: user  Password: f0=0;f2=0;f3=3.85;f4=2.69;f5=331.5;f6=2.58;f7=6.5;c0=0;c2=0;c3=0.1;c4=0.1;c5=0.16;c6=0.1;c7=0.1
[20:25:33] Pool: 1  URL: stratum+tcp://stratum.nicehash.com:4337  User: user  Password: f0=0;f2=0;f3=3.85;f4=2.69;f5=331.5;f6=2.58;f7=6.5;c0=0;c2=0;c3=0.1;c4=0.1;c5=0.16;c6=0.1;c7=0.1
[20:25:33] Pool: 2  URL: stratum+tcp://stratum.nicehash.com:4339  User: user
[20:25:33] Pool: 3  URL: stratum+tcp://stratum.nicehash.com:4340  User: user  Password: f0=0;f2=0;f3=3.85;f4=2.69;f5=331.5;f6=2.58;f7=6.5;c0=0;c2=0;c3=0.1;c4=0.1;c5=0.16;c6=0.1;c7=0.1
[20:25:33] Pool: 4  URL: stratum+tcp://stratum.nicehash.com:4338  User: user  Password: f0=0;f2=0;f3=3.85;f4=2.69;f5=331.5;f6=2.58;f7=6.5;c0=0;c2=0;c3=0.1;c4=0.1;c5=0.16;c6=0.1;c7=0.1
[20:25:33] No servers could be used! Exiting.
m  Password: f0=0;f2=0;f3=3.85;f4=2.69;f5=331.5;f6=2.58;f7=6.5;c0=0;c2=0;c3=0.1;c4=0.1;c5=0.16;c6=0.1;c7=0.1
[20:25:33] Pool: 3  URL: stratum+tcp://stratum.nicehash.com:4340  User: user  Password: f0=0;f2=0;f3=3.85;f4=2.69;f5=331.5;f6=2.58;f7=6.5;c0=0;c2=0;c3=0.1;c4=0.1;c5=0.16;c6=0.1;c7=0.1
[20:25:33] Pool: 4  URL: stratum+tcp://stratum.nicehash.com:4338  User: user  Password: f0=0;f2=0;f3=3.85;f4=2.69;f5=331.5;f6=2.58;f7=6.5;c0=0;c2=0;c3=0.1;c4=0.1;c5=0.16;c6=0.1;c7=0.1
[20:25:33] No servers could be used! Exiting.

It might be a nicehash issue but probably sgminer could handle this better.

ystarnaud commented 10 years ago

I wonder is it possible that this is some form of DDOS protection that throttles connections on nicehash's end?

mrbrdo commented 10 years ago

I think I'm whitelisted on nicehash for testing so not sure if they throttle me. It's possible but I wonder what setup_stratum_socket fail means, didn't look into it yet. Since the other pools failed with timeout.