grin-miner icon indicating copy to clipboard operation
grin-miner copied to clipboard

Miner does not resume on stratum server restart

Open bladedoyle opened this issue 5 years ago • 1 comments

The grin-miner should resume mining after it reconnects and gets a job:

Feb 28 17:41:35.030 INFO Share Accepted!!
Feb 28 17:41:37.007 DEBG Received message: {"id":"Stratum","jsonrpc":"2.0","method":"job","params":{"difficulty":1,"height":65308,"job_id":65308000,"pre_pow":"0001000000000000ff1c000000005c788dcf09e71a5aaff00777c01ecb31d0fdf0daa878249fc083e2f53f7337538334e8d040827337cc2edd63d847dbf5b7a11a244f346a9a9f5e63147b894f31fbd6d1548e835a37c128c06551532946f99f9d9ce94be381c9ea029b3707dbc1370a975e8f2b2b5d6c962823ba1ebc7dd682207db36deddea14b1b682896c6b95c07f9d5e4f9c553518297ac5645f41d3249a9641843610e71835f1ea7643f03c93b78460923ca79a3fdcf589220bb674205441a660b58de84b81b44408336d5a2b1d335000000000003b214000000000002bc3d00000003d0237fbd0000000d"}}

Feb 28 17:41:37.007 DEBG Received request type: job
Feb 28 17:41:37.007 INFO Got a new job: JobTemplate { height: 65308, job_id: 65308000, difficulty: 1, pre_pow: "0001000000000000ff1c000000005c788dcf09e71a5aaff00777c01ecb31d0fdf0daa878249fc083e2f53f7337538334e8d040827337cc2edd63d847dbf5b7a11a244f346a9a9f5e63147b894f31fbd6d1548e835a37c128c06551532946f99f9d9ce94be381c9ea029b3707dbc1370a975e8f2b2b5d6c962823ba1ebc7dd682207db36deddea14b1b682896c6b95c07f9d5e4f9c553518297ac5645f41d3249a9641843610e71835f1ea7643f03c93b78460923ca79a3fdcf589220bb674205441a660b58de84b81b44408336d5a2b1d335000000000003b214000000000002bc3d00000003d0237fbd0000000d" }
Feb 28 17:41:37.007 ERRO Error reading message: ConnectionError("broken pipe")
Feb 28 17:41:37.031 WARN Connection Status: Connected to Grin server at stratum.mwfloopool.com:3333.
Feb 28 17:41:37.041 DEBG sending request: {"id":"0","jsonrpc":"2.0","method":"login","params":{"agent":"grin-miner","login":"foobarbaz","pass":""}}
Feb 28 17:41:37.041 DEBG sending request: {"id":"0","jsonrpc":"2.0","method":"getjobtemplate","params":null}
Feb 28 17:41:37.088 DEBG Miner received message: ReceivedJob(65308, 65308000, 1, "0001000000000000ff1c000000005c788dcf09e71a5aaff00777c01ecb31d0fdf0daa878249fc083e2f53f7337538334e8d040827337cc2edd63d847dbf5b7a11a244f346a9a9f5e63147b894f31fbd6d1548e835a37c128c06551532946f99f9d9ce94be381c9ea029b3707dbc1370a975e8f2b2b5d6c962823ba1ebc7dd682207db36deddea14b1b682896c6b95c07f9d5e4f9c553518297ac5645f41d3249a9641843610e71835f1ea7643f03c93b78460923ca79a3fdcf589220bb674205441a660b58de84b81b44408336d5a2b1d335000000000003b214000000000002bc3d00000003d0237fbd0000000d")
Feb 28 17:41:37.088 DEBG Pause message sent
Feb 28 17:41:37.088 DEBG Resume message sent
Feb 28 17:41:37.088 DEBG Miner received message: StopJob
Feb 28 17:41:37.088 DEBG Stopping jobs
Feb 28 17:41:37.088 DEBG Pause message sent
Feb 28 17:41:37.088 DEBG Mining: Plugin 0 - Device 0 (GeForce RTX 2070) at Cuck(at)oo29 - Status: OK : Last Graph time: 0.246261731s; Graphs per second: 4.061 - Total Attempts: 137
Feb 28 17:41:37.088 INFO Mining: Cuck(at)oo at 4.060720258642217 gps (graphs per second)
Feb 28 17:41:37.091 DEBG solver_thread - solver_loop_rx got msg: Pause
Feb 28 17:41:37.092 DEBG solver_thread - solver_loop_rx got msg: Resume
Feb 28 17:41:37.340 DEBG solver_thread - solver_loop_rx got msg: Pause
Feb 28 17:41:39.008 DEBG Received message: {"id":"0","jsonrpc":"2.0","method":"login","result":"ok","error":null}

Feb 28 17:41:39.008 DEBG Received response with id: 0
Feb 28 17:41:39.008 DEBG Received message: {"id":"0","jsonrpc":"2.0","method":"getjobtemplate","result":{"difficulty":1,"height":65308,"job_id":65308000,"pre_pow":"0001000000000000ff1c000000005c788dcf09e71a5aaff00777c01ecb31d0fdf0daa878249fc083e2f53f7337538334e8d040827337cc2edd63d847dbf5b7a11a244f346a9a9f5e63147b894f31fbd6d1548e835a37c128c06551532946f99f9d9ce94be381c9ea029b3707dbc1370a975e8f2b2b5d6c962823ba1ebc7dd682207db36deddea14b1b682896c6b95c07f9d5e4f9c553518297ac5645f41d3249a9641843610e71835f1ea7643f03c93b78460923ca79a3fdcf589220bb674205441a660b58de84b81b44408336d5a2b1d335000000000003b214000000000002bc3d00000003d0237fbd0000000d"},"error":null}

Feb 28 17:41:39.008 DEBG Received response with id: 0
Feb 28 17:41:39.008 INFO Got a job at height 65308 and difficulty 1
Feb 28 17:41:39.089 DEBG Miner received message: ReceivedJob(65308, 65308000, 1, "0001000000000000ff1c000000005c788dcf09e71a5aaff00777c01ecb31d0fdf0daa878249fc083e2f53f7337538334e8d040827337cc2edd63d847dbf5b7a11a244f346a9a9f5e63147b894f31fbd6d1548e835a37c128c06551532946f99f9d9ce94be381c9ea029b3707dbc1370a975e8f2b2b5d6c962823ba1ebc7dd682207db36deddea14b1b682896c6b95c07f9d5e4f9c553518297ac5645f41d3249a9641843610e71835f1ea7643f03c93b78460923ca79a3fdcf589220bb674205441a660b58de84b81b44408336d5a2b1d335000000000003b214000000000002bc3d00000003d0237fbd0000000d")
Feb 28 17:41:40.090 DEBG Mining: Plugin 0 - Device 0 (GeForce RTX 2070) at Cuck(at)oo29 - Status: OK : Last Graph time: 0.247896016s; Graphs per second: 4.034 - Total Attempts: 139
Feb 28 17:41:40.090 INFO Mining: Cuck(at)oo at 4.03394946048669 gps (graphs per second)
Feb 28 17:41:43.093 DEBG Mining: Plugin 0 - Device 0 (GeForce RTX 2070) at Cuck(at)oo29 - Status: OK : Last Graph time: 0.247896016s; Graphs per second: 4.034 - Total Attempts: 139
Feb 28 17:41:43.093 INFO Mining: Cuck(at)oo at 4.03394946048669 gps (graphs per second)
Feb 28 17:41:46.095 DEBG Mining: Plugin 0 - Device 0 (GeForce RTX 2070) at Cuck(at)oo29 - Status: OK : Last Graph time: 0.247896016s; Graphs per second: 4.034 - Total Attempts: 139
Feb 28 17:41:46.095 INFO Mining: Cuck(at)oo at 4.03394946048669 gps (graphs per second)
Feb 28 17:41:49.098 DEBG Mining: Plugin 0 - Device 0 (GeForce RTX 2070) at Cuck(at)oo29 - Status: OK : Last Graph time: 0.247896016s; Graphs per second: 4.034 - Total Attempts: 139
Feb 28 17:41:49.098 INFO Mining: Cuck(at)oo at 4.03394946048669 gps (graphs per second)
Feb 28 17:41:52.000 DEBG Mining: Plugin 0 - Device 0 (GeForce RTX 2070) at Cuck(at)oo29 - Status: OK : Last Graph time: 0.247896016s; Graphs per second: 4.034 - Total Attempts: 139
Feb 28 17:41:52.000 INFO Mining: Cuck(at)oo at 4.03394946048669 gps (graphs per second)
Feb 28 17:41:55.003 DEBG Mining: Plugin 0 - Device 0 (GeForce RTX 2070) at Cuck(at)oo29 - Status: OK : Last Graph time: 0.247896016s; Graphs per second: 4.034 - Total Attempts: 139
Feb 28 17:41:55.003 INFO Mining: Cuck(at)oo at 4.03394946048669 gps (graphs per second)
Feb 28 17:41:58.005 DEBG Mining: Plugin 0 - Device 0 (GeForce RTX 2070) at Cuck(at)oo29 - Status: OK : Last Graph time: 0.247896016s; Graphs per second: 4.034 - Total Attempts: 139
Feb 28 17:41:58.005 INFO Mining: Cuck(at)oo at 4.03394946048669 gps (graphs per second)
Feb 28 17:42:01.007 DEBG Mining: Plugin 0 - Device 0 (GeForce RTX 2070) at Cuck(at)oo29 - Status: OK : Last Graph time: 0.247896016s; Graphs per second: 4.034 - Total Attempts: 139
Feb 28 17:42:01.007 INFO Mining: Cuck(at)oo at 4.03394946048669 gps (graphs per second)
Feb 28 17:42:03.002 DEBG sending request: {"id":"0","jsonrpc":"2.0","method":"status","params":null}
Feb 28 17:42:04.010 DEBG Mining: Plugin 0 - Device 0 (GeForce RTX 2070) at Cuck(at)oo29 - Status: OK : Last Graph time: 0.24789

bladedoyle avatar Mar 01 '19 01:03 bladedoyle

This part?

Feb 28 17:41:37.088 DEBG Miner received message: ReceivedJob(65308, 65308000, 1, "0001000000000000ff1c000000005c788dcf09e71a5aaff00777c01ecb31d0fdf0daa878249fc083e2f53f7337538334e8d040827337cc2edd63d847dbf5b7a11a244f346a9a9f5e63147b894f31fbd6d1548e835a37c128c06551532946f99f9d9ce94be381c9ea029b3707dbc1370a975e8f2b2b5d6c962823ba1ebc7dd682207db36deddea14b1b682896c6b95c07f9d5e4f9c553518297ac5645f41d3249a9641843610e71835f1ea7643f03c93b78460923ca79a3fdcf589220bb674205441a660b58de84b81b44408336d5a2b1d335000000000003b214000000000002bc3d00000003d0237fbd0000000d")
Feb 28 17:41:37.088 DEBG Pause message sent
Feb 28 17:41:37.088 DEBG Resume message sent
Feb 28 17:41:37.088 DEBG Miner received message: StopJob
Feb 28 17:41:37.088 DEBG Stopping jobs
Feb 28 17:41:37.088 DEBG Pause message sent
Feb 28 17:41:37.088 DEBG Mining: Plugin 0 - Device 0 (GeForce RTX 2070) at Cuck(at)oo29 - Status: OK : Last Graph time: 0.246261731s; Graphs per second: 4.061 - Total Attempts: 137
Feb 28 17:41:37.088 INFO Mining: Cuck(at)oo at 4.060720258642217 gps (graphs per second)
Feb 28 17:41:37.091 DEBG solver_thread - solver_loop_rx got msg: Pause
Feb 28 17:41:37.092 DEBG solver_thread - solver_loop_rx got msg: Resume
Feb 28 17:41:37.340 DEBG solver_thread - solver_loop_rx got msg: Pause

Note that when a new job request is sent by the stratum server, the miner does finally start back up:

Feb 28 17:53:37.019 INFO Mining: Cuck(at)oo at 4.03394946048669 gps (graphs per second)
Feb 28 17:53:40.021 DEBG Mining: Plugin 0 - Device 0 (GeForce RTX 2070) at Cuck(at)oo29 - Status: OK : Last Graph time: 0.247896016s; Graphs per second: 4.034 - Total Attempts: 139
Feb 28 17:53:40.021 INFO Mining: Cuck(at)oo at 4.03394946048669 gps (graphs per second)
Feb 28 17:53:41.006 DEBG Received message: {"id":"Stratum","jsonrpc":"2.0","method":"job","params":{"difficulty":1,"height":65309,"job_id":65309000,"pre_pow":"0001000000000000ff1d000000005c7890a41bf77a09b0832230ffcfd13218b928977bee903ae2ffc41e9a913728237c34064879fea94d2da0b7738a44a9d8df184d84010fa57064abba4c74e23b6a2a39c7a1be2ddacc01975319aad1415bfcc9ac3d0f7d30042d00edc2d723b7c0b43df65d8da5bd99f956ee1075b27c570d204c7746815837baa59f0da113f530067ca8ed747b3a17b935660d02040c7880cbff03f2bf7603b5cc3f9a53616f0991ff510923ca79a3fdcf589220bb674205441a660b58de84b81b44408336d5a2b1d335000000000003b219000000000002bc4000000003d023802c0000000d"}}

Feb 28 17:53:41.006 DEBG Received request type: job
Feb 28 17:53:41.006 INFO Got a new job: JobTemplate { height: 65309, job_id: 65309000, difficulty: 1, pre_pow: "0001000000000000ff1d000000005c7890a41bf77a09b0832230ffcfd13218b928977bee903ae2ffc41e9a913728237c34064879fea94d2da0b7738a44a9d8df184d84010fa57064abba4c74e23b6a2a39c7a1be2ddacc01975319aad1415bfcc9ac3d0f7d30042d00edc2d723b7c0b43df65d8da5bd99f956ee1075b27c570d204c7746815837baa59f0da113f530067ca8ed747b3a17b935660d02040c7880cbff03f2bf7603b5cc3f9a53616f0991ff510923ca79a3fdcf589220bb674205441a660b58de84b81b44408336d5a2b1d335000000000003b219000000000002bc4000000003d023802c0000000d" }
Feb 28 17:53:41.022 DEBG Miner received message: ReceivedJob(65309, 65309000, 1, "0001000000000000ff1d000000005c7890a41bf77a09b0832230ffcfd13218b928977bee903ae2ffc41e9a913728237c34064879fea94d2da0b7738a44a9d8df184d84010fa57064abba4c74e23b6a2a39c7a1be2ddacc01975319aad1415bfcc9ac3d0f7d30042d00edc2d723b7c0b43df65d8da5bd99f956ee1075b27c570d204c7746815837baa59f0da113f530067ca8ed747b3a17b935660d02040c7880cbff03f2bf7603b5cc3f9a53616f0991ff510923ca79a3fdcf589220bb674205441a660b58de84b81b44408336d5a2b1d335000000000003b219000000000002bc4000000003d023802c0000000d")
Feb 28 17:53:41.022 DEBG Pause message sent
Feb 28 17:53:41.022 DEBG Resume message sent
Feb 28 17:53:41.022 DEBG solver_thread - solver_loop_rx got msg: Pause
Feb 28 17:53:41.022 DEBG solver_thread - solver_loop_rx got msg: Resume
Feb 28 17:53:43.024 DEBG Mining: Plugin 0 - Device 0 (GeForce RTX 2070) at Cuck(at)oo29 - Status: OK : Last Graph time: 0.241488829s; Graphs per second: 4.141 - Total Attempts: 146

bladedoyle avatar Mar 01 '19 01:03 bladedoyle