ethereum-mining / ethminer

Ethereum miner with OpenCL, CUDA and stratum support
GNU General Public License v3.0
5.98k stars 2.28k forks source link

The I/O operation has been aborted because of either a thread exit or an application request #1696

Closed scholes88 closed 5 years ago

scholes88 commented 5 years ago

Describe the bug Get latest master, build myself, run with ethermine pool, got this error: X 18:08:06 stratum Error [2606:4700:90:0:5f75:d2fd:8cfe:d849]:4444 [ The I/O operation has been aborted because of either a thread exit or an application request ]

To Reproduce Seems like related to environment, I use the same executable to run in another environment and everything works fine. I'm trying to understand why this error happens.

Expected behavior It should work.

Desktop (please complete the following information):

Additional context I tried debug a little bit, it seems like the problem is in EthStratumClient.cpp -> line: 526 connect_handler(). The ec is "The I/O operation has been aborted because of either a thread exit or an application request". Host resolver works fine. I've tried to change all different protocols (Stratum123 + tcp/ssl/tsl12), other pools, all failed in same place. Searching online doesn't help. I've also tried other miner programs on same machine, e.g. finminer, it works fine. If I use same ethminer.exe and run on an different machine (with different network), it works fine too. So probably related to some configurations that specific to this machine. Does anyone know what could be the problem?

AndreaLanfranchi commented 5 years ago

It's highly probable your network adapter does not have an IPv6 address.

scholes88 commented 5 years ago

I've tried with ipv4 address directly, it's failing with same reason.

AndreaLanfranchi commented 5 years ago

Can you please post a trace log longer than that single line ? When does the error happen ? Immediatley at connection or after some time ? Is Windows firewall disabled ?

scholes88 commented 5 years ago

The firewall has been disabled, it failed immediately at connection.

m 10:03:15 main     ethminer 0.17.0-alpha.1+commit.b1055ca3.dirty
 m 10:03:15 main     Build: windows/release
cu 10:03:16 main     Using grid size: 8,192, block size: 128
 i 10:03:16 main     Configured pool 172.65.245.119:4444
 i 10:03:16 main     Selected pool 172.65.245.119:4444
 X 10:03:17 stratum  Error  172.65.245.119:4444 [ The I/O operation has been aborted because of either a thread exit or an application request ]
 X 10:03:17 stratum  No more IP addresses to try for host: 172.65.245.119
 i 10:03:17 main     Selected pool 172.65.245.119:4444
 i 10:03:17 main     Disconnected from  [172.65.245.119:4444]
 X 10:03:18 stratum  Error  172.65.245.119:4444 [ The I/O operation has been aborted because of either a thread exit or an application request ]
 X 10:03:18 stratum  No more IP addresses to try for host: 172.65.245.119
 i 10:03:18 main     Disconnected from  [172.65.245.119:4444]
 i 10:03:19 main     Selected pool 172.65.245.119:4444
 X 10:03:20 stratum  Error  172.65.245.119:4444 [ The I/O operation has been aborted because of either a thread exit or an application request ]
 X 10:03:20 stratum  No more IP addresses to try for host: 172.65.245.119
 i 10:03:20 main     Selected pool 172.65.245.119:4444
 i 10:03:20 main     Disconnected from  [172.65.245.119:4444]
 m 10:03:21 main     not-connected
 X 10:03:21 stratum  Error  172.65.245.119:4444 [ The I/O operation has been aborted because of either a thread exit or an application request ]
 X 10:03:21 stratum  No more IP addresses to try for host: 172.65.245.119
 i 10:03:21 main     Disconnected from  [172.65.245.119:4444]
svenrenhoek commented 5 years ago

I have received this error by using the incorrect stratum protocol. Try using stratum1+tcp:// or stratum2+tcp://

AndreaLanfranchi commented 5 years ago

I think the key factor is this

If I use same ethminer.exe and run on an different machine (with different network)

Probably you're on a network you do not control with a firewall at gateway which blocks comunications on not well known ports. (maybe work office ?)

Closing by know as we have no evidence and the error clearly states ethminer can't establish a connection with remote endpoint.