ethereum-mining / ethminer

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

0.18 stops on local Parity node #1896

Open stone212 opened 5 years ago

stone212 commented 5 years ago

Describe the bug ethminer 0.18 on local Parity node works for 1-5 minutes and then stops suddenly.

To Reproduce Steps to reproduce the behavior:

  1. Start ethminer with: # /opt/ethminer/bin/ethminer -G -P stratum+tcp://127.0.0.1:8008

  2. See good things like this:

cl 21:25:17 cl-0     Job: c3226fdc… Sol: 0x588d5ed57740353d
 m 21:25:17 ethminer 0:00 A1911 37.32 Mh { cl0 18.65 | cl1 18.66 }
cl 21:25:17 cl-1     Job: c3226fdc… Sol: 0x588d5ed67743d6e3

also this:

 i 21:25:16 ethminer Stratum mode : STRATUM
 i 21:25:16 ethminer Subscribed!
 i 21:25:16 ethminer Authorized worker
 i 21:25:16 ethminer Epoch : 40 Difficulty : 132.74 Kh
 i 21:25:16 ethminer Job: c3226fdc… 127.0.0.1:8008
 i 21:25:16 ethminer Job: c3226fdc… 127.0.0.1:8008
cl 21:25:16 cl-1     Job: c3226fdc… Sol: 0x588d5ed676549dac
  1. See ethminer stop with error:
cl 21:25:19 cl-0     Job: c3226fdc… Sol: 0x588d5ed57964e003
cl 21:25:19 cl-1     Job: c3226fdc… Sol: 0x588d5ed6797b24c8
cl 21:25:19 cl-0     Job: c3226fdc… Sol: 0x588d5ed5796d76b4
cl 21:25:19 cl-1     Job: c3226fdc… Sol: 0x588d5ed6797c372e
cl 21:25:19 cl-1     Job: c3226fdc… Sol: 0x588d5ed679816f11
cl 21:25:19 cl-0     Job: c3226fdc… Sol: 0x588d5ed5796e988f
cl 21:25:19 cl-1     Job: c3226fdc… Sol: 0x588d5ed679860158
cl 21:25:19 cl-1     Job: c3226fdc… Sol: 0x588d5ed679861021
cl 21:25:19 cl-1     Job: c3226fdc… Sol: 0x588d5ed679860158
cl 21:25:19 cl-1     Job: c3226fdc… Sol: 0x588d5ed679861021
cl 21:25:19 cl-0     Job: c3226fdc… Sol: 0x588d5ed5797933cb
cl 21:25:19 cl-1     Job: c3226fdc… Sol: 0x588d5ed6798b05e0
cl 21:25:19 cl-1     Job: c3226fdc… Sol: 0x588d5ed6798e6ac1
cl 21:25:19 cl-1     Job: c3226fdc… Sol: 0x588d5ed6798ec932
cl 21:25:19 cl-1     Job: c3226fdc… Sol: 0x588d5ed6798efc6a
cl 21:25:19 cl-0     Job: c3226fdc… Sol: 0x588d5ed5797b82b2
cl 21:25:19 cl-1     Job: c3226fdc… Sol: 0x588d5ed67993873e
cl 21:25:19 cl-0     Job: c3226fdc… Sol: 0x588d5ed5798275e3
cl 21:25:19 cl-0     Job: c3226fdc… Sol: 0x588d5ed5798550f9
cl 21:25:19 cl-1     Job: c3226fdc… Sol: 0x588d5ed67996b83a
cl 21:25:19 cl-1     Job: c3226fdc… Sol: 0x588d5ed67996d0e0
cl 21:25:19 cl-0     Job: c3226fdc… Sol: 0x588d5ed57988ef4d
cl 21:25:19 cl-1     Job: c3226fdc… Sol: 0x588d5ed6799918c1
cl 21:25:19 cl-1     Job: c3226fdc… Sol: 0x588d5ed6799b167c
 X 21:25:19 ethminer No response received in 2 seconds.
 i 21:25:19 ethminer Disconnected from 127.0.0.1:8008
 i 21:25:19 ethminer No connection. Suspend mining ...
 i 21:25:19 ethminer No more connections to try. Exiting...
 i 21:25:19 ethminer Shutting down miners...
 i 21:25:22 main     Got interrupt ...
 i 21:25:22 ethminer Terminated!

Expected behavior I thought it would continue mining.

Environment (please complete the following information):

Additional context

  1. ethminer 0.12 works with this command: ./bin/ethminer -G -SP 127.0.0.1:8001

  2. using stratum1+ creates this error:

    
    # /opt/ethminer/bin/ethminer -G -P stratum1+tcp://127.0.0.1:8008

ethminer 0.18.0-alpha.3 Build: linux/release/gnu

i 21:31:33 ethminer Configured pool 127.0.0.1:8008 i 21:31:33 ethminer Selected pool 127.0.0.1:8008 i 21:31:33 ethminer Could not login: code:-32601 message:Method not found i 21:31:33 ethminer Disconnected from 127.0.0.1:8008 i 21:31:33 ethminer No connection. Suspend mining ... i 21:31:33 ethminer No more connections to try. Exiting... i 21:31:33 main Got interrupt ... i 21:31:33 ethminer Terminated!



3. using stratum2+tcp creates https://github.com/ethereum-mining/ethminer/issues/1895
AndreaLanfranchi commented 5 years ago

Not an ethminer "error" nor issue. It's expected behavior.

Ethminer keeps finding nonces for the last job received but simply parity node stops responding nor pushes new jobs.

cl 21:25:19 cl-0     Job: c3226fdc… Sol: 0x588d5ed57964e003
cl 21:25:19 cl-1     Job: c3226fdc… Sol: 0x588d5ed6797b24c8
cl 21:25:19 cl-0     Job: c3226fdc… Sol: 0x588d5ed5796d76b4
[...]

Each of those lines should be coupled by an "Accepted" (or "Rejected") line which means parity has responded to submission.

Ethminer has nothing else to do than drop the connection and pass to next failover connection specified (if any).

AndreaLanfranchi commented 5 years ago

Problem 2 is, again, not an ethminer error.

stratum1+tcp is not a supported stratum flavor by parity (only stratum+tcp).

Agree a better error trapping would help ... but noone, to my knowledge, is maintaining ethminer anymore.

stone212 commented 5 years ago

@AndreaLanfranchi

Not an ethminer "error" nor issue. It's expected behavior.

This works with ethminer 0.12. So it is not a problem with the Parity node.

stratum1+tcp is not a supported stratum flavor by parity (only stratum+tcp).

I know. I said I do this: # /opt/ethminer/bin/ethminer -G -P stratum+tcp://127.0.0.1:8008

but noone, to my knowledge, is maintaining ethminer anymore.

Really? Interesting. Do you know a good recommended miner for AMD cards and Ethereum?

AndreaLanfranchi commented 5 years ago

Do you know a good recommended miner for AMD cards and Ethereum?

There are a lot out there. All closed source. Google it.

stone212 commented 5 years ago

@AndreaLanfranchi

There are a lot out there. All closed source.

So as usual you have nothing useful to say, but you still feel like you should reply.

Google it.

You are such a whiner. Thanks for the brilliant suggestion. I am leaving the issue open because the original comment has not been addressed.