Trying to mine, getting 0 gps

Hi

I successfully compiled fresh grin and grin-miner 0.5.0 with cuda support.
Now I’m trying to launch the mining. I’ve enebled mining in grin server config, miner connects successfully.

But getting these in minier log with CUDA plugin:

Dec 30 12:55:23.062 DEBG Mining: Plugin 0 - Device 0 () at Cuck(at)oo0 - Status: OK : Last Graph time: 0s; Graphs per second: inf - Total Attempts: 0
Dec 30 12:55:23.062 INFO Mining: Cuck(at)oo at 0 gps (graphs per second)
Dec 30 12:55:24.398 INFO This is Grin-Miner version 0.5.0 (git 113295d), built for x86_64-unknown-linux-gnu by rustc 1.31.1 (b6c32da9b 2018-12-18).
Dec 30 12:55:24.398 DEBG Built with profile "release", features "" on Sun, 30 Dec 2018 08:54:51 GMT.
Dec 30 12:55:24.398 DEBG Starting solvers
Dec 30 12:55:24.398 DEBG Loading miner plugin: /home/limpbrains/mw/grin-miner/target/release/plugins/cuckaroo_cuda_29.cuckooplugin
Dec 30 12:55:24.402 DEBG Loading miner plugin: /home/limpbrains/mw/grin-miner/target/release/plugins/cuckaroo_cuda_29.cuckooplugin
Dec 30 12:55:25.405 WARN Connection Status: Connected to Grin server at 127.0.0.1:13416.
Dec 30 12:55:25.505 DEBG sending request: {"id":"0","jsonrpc":"2.0","method":"getjobtemplate","params":null}
Dec 30 12:55:27.049 DEBG Mining: Plugin 0 - Device 0 () at Cuck(at)oo0 - Status: OK : Last Graph time: 0s; Graphs per second: inf - Total Attempts: 0
Dec 30 12:55:27.049 INFO Mining: Cuck(at)oo at 0 gps (graphs per second)
Dec 30 12:55:30.023 DEBG Mining: Plugin 0 - Device 0 () at Cuck(at)oo0 - Status: OK : Last Graph time: 0s; Graphs per second: inf - Total Attempts: 0
Dec 30 12:55:30.023 INFO Mining: Cuck(at)oo at 0 gps (graphs per second)
Dec 30 12:55:33.107 DEBG Mining: Plugin 0 - Device 0 () at Cuck(at)oo0 - Status: OK : Last Graph time: 0s; Graphs per second: inf - Total Attempts: 0
Dec 30 12:55:33.107 INFO Mining: Cuck(at)oo at 0 gps (graphs per second)
Dec 30 12:55:36.082 DEBG Mining: Plugin 0 - Device 0 () at Cuck(at)oo0 - Status: OK : Last Graph time: 0s; Graphs per second: inf - Total Attempts: 0
Dec 30 12:55:36.082 INFO Mining: Cuck(at)oo at 0 gps (graphs per second)
Dec 30 12:55:39.056 DEBG Mining: Plugin 0 - Device 0 () at Cuck(at)oo0 - Status: OK : Last Graph time: 0s; Graphs per second: inf - Total Attempts: 0
Dec 30 12:55:39.056 INFO Mining: Cuck(at)oo at 0 gps (graphs per second)
Dec 30 12:55:23.062 DEBG Mining: Plugin 0 - Device 0 () at Cuck(at)oo0 - Status: OK : Last Graph time: 0s; Graphs per second: inf - Total Attempts: 0
Dec 30 12:55:23.062 INFO Mining: Cuck(at)oo at 0 gps (graphs per second)
Dec 30 12:55:24.398 INFO This is Grin-Miner version 0.5.0 (git 113295d), built for x86_64-unknown-linux-gnu by rustc 1.31.1 (b6c32da9b 2018-12-18).
Dec 30 12:55:24.398 DEBG Built with profile "release", features "" on Sun, 30 Dec 2018 08:54:51 GMT.
Dec 30 12:55:24.398 DEBG Starting solvers
Dec 30 12:55:24.398 DEBG Loading miner plugin: /home/limpbrains/mw/grin-miner/target/release/plugins/cuckaroo_cuda_29.cuckooplugin
Dec 30 12:55:24.402 DEBG Loading miner plugin: /home/limpbrains/mw/grin-miner/target/release/plugins/cuckaroo_cuda_29.cuckooplugin
Dec 30 12:55:25.405 WARN Connection Status: Connected to Grin server at 127.0.0.1:13416.
Dec 30 12:55:25.505 DEBG sending request: {"id":"0","jsonrpc":"2.0","method":"getjobtemplate","params":null}
Dec 30 12:55:27.049 DEBG Mining: Plugin 0 - Device 0 () at Cuck(at)oo0 - Status: OK : Last Graph time: 0s; Graphs per second: inf - Total Attempts: 0
Dec 30 12:55:27.049 INFO Mining: Cuck(at)oo at 0 gps (graphs per second)
Dec 30 12:55:30.023 DEBG Mining: Plugin 0 - Device 0 () at Cuck(at)oo0 - Status: OK : Last Graph time: 0s; Graphs per second: inf - Total Attempts: 0
Dec 30 12:55:30.023 INFO Mining: Cuck(at)oo at 0 gps (graphs per second)
Dec 30 12:55:33.107 DEBG Mining: Plugin 0 - Device 0 () at Cuck(at)oo0 - Status: OK : Last Graph time: 0s; Graphs per second: inf - Total Attempts: 0
Dec 30 12:55:33.107 INFO Mining: Cuck(at)oo at 0 gps (graphs per second)
Dec 30 12:55:36.082 DEBG Mining: Plugin 0 - Device 0 () at Cuck(at)oo0 - Status: OK : Last Graph time: 0s; Graphs per second: inf - Total Attempts: 0
Dec 30 12:55:36.082 INFO Mining: Cuck(at)oo at 0 gps (graphs per second)
Dec 30 12:55:39.056 DEBG Mining: Plugin 0 - Device 0 () at Cuck(at)oo0 - Status: OK : Last Graph time: 0s; Graphs per second: inf - Total Attempts: 0
Dec 30 12:55:39.056 INFO Mining: Cuck(at)oo at 0 gps (graphs per second)

With cpu plugin:

Dec 30 12:48:14.943 INFO This is Grin-Miner version 0.5.0 (git 113295d), built for x86_64-unknown-linux-gnu by rustc 1.31.1 (b6c32da9b 2018-12-18).
Dec 30 12:48:14.943 DEBG Built with profile "release", features "" on Sun, 30 Dec 2018 08:54:51 GMT.
Dec 30 12:48:14.944 DEBG Starting solvers
Dec 30 12:48:14.944 DEBG Loading miner plugin: /home/limpbrains/mw/grin-miner/target/release/plugins/cuckaroo_cpu_compat_29.cuckooplugin
Dec 30 12:48:14.947 DEBG Loading miner plugin: /home/limpbrains/mw/grin-miner/target/release/plugins/cuckaroo_cpu_compat_29.cuckooplugin
Dec 30 12:48:15.949 WARN Connection Status: Can't establish server connection to 127.0.0.1:13416. Will retry every 5 seconds
Dec 30 12:48:16.049 DEBG sending request: {"id":"0","jsonrpc":"2.0","method":"getjobtemplate","params":null}
Dec 30 12:48:16.055 ERRO 
thread 'client_controller' panicked at 'called `Option::unwrap()` on a `None` value': libcore/option.rs:355stack backtrace:
   0:     0x560d2521eb2d - backtrace::backtrace::trace::h6a895d5d279a8d2f
   1:     0x560d2521dd42 - <backtrace::capture::Backtrace as core::default::Default>::default::h03a8d770395d927e
   2:     0x560d2521ddb9 - backtrace::capture::Backtrace::new::h2eb1c11c92f206be
   3:     0x560d251f2900 - grin_miner_util::logger::send_panic_to_log::{{closure}}::h06648fb394307b06
   4:     0x560d25249286 - std::panicking::rust_panic_with_hook::hde420d6fd4455550
                        at libstd/panicking.rs:480
   5:     0x560d25248dd1 - std::panicking::continue_panic_fmt::h8f394f3c578bcc76
                        at libstd/panicking.rs:390
   6:     0x560d25248cb5 - rust_begin_unwind
                        at libstd/panicking.rs:325
   7:     0x560d2528f97c - core::panicking::panic_fmt::hca5dc4e8b320bc56
                        at libcore/panicking.rs:77
   8:     0x560d2528f8ab - core::panicking::panic::hca17aeb7dac42859
                        at libcore/panicking.rs:52
   9:     0x560d25147f2c - grin_miner::client::Controller::send_message::h6b2bf32a6a0a7403
  10:     0x560d25149163 - grin_miner::client::Controller::run::hc0c7748e2b78351b
  11:     0x560d250f4523 - std::sys_common::backtrace::__rust_begin_short_backtrace::had7a952599963906
  12:     0x560d25129418 - std::panicking::try::do_call::h7d8f66c998267009
  13:     0x560d25259319 - __rust_maybe_catch_panic
                        at libpanic_unwind/lib.rs:102
  14:     0x560d25131867 - <F as alloc::boxed::FnBox<A>>::call_box::hc315528b830bb444
  15:     0x560d252466dd - <alloc::boxed::Box<(dyn alloc::boxed::FnBox<A, Output=R> + 'a)> as core::ops::function::FnOnce<A>>::call_once::h9d902c911a417e39
                        at liballoc/boxed.rs:682
                         - std::sys_common::thread::start_thread::h44127e03e78ca137
                        at libstd/sys_common/thread.rs:24
  16:     0x560d25237a35 - std::sys::unix::thread::Thread::new::thread_start::h8f17b97f2223146c
                        at libstd/sys/unix/thread.rs:90
  17:     0x7f01cdc2b6da - start_thread
  18:     0x7f01cd73c88e - __clone
  19:                0x0 - <unknown>


Dec 30 12:48:17.041 DEBG Mining: Plugin 0 - Device 0 () at Cuck(at)oo0 - Status: OK : Last Graph time: 0s; Graphs per second: inf - Total Attempts: 0
Dec 30 12:48:17.041 INFO Mining: Cuck(at)oo at 0 gps (graphs per second)
Dec 30 12:48:20.015 DEBG Mining: Plugin 0 - Device 0 () at Cuck(at)oo0 - Status: OK : Last Graph time: 0s; Graphs per second: inf - Total Attempts: 0
Dec 30 12:48:20.015 INFO Mining: Cuck(at)oo at 0 gps (graphs per second)
Dec 30 12:48:23.099 DEBG Mining: Plugin 0 - Device 0 () at Cuck(at)oo0 - Status: OK : Last Graph time: 0s; Graphs per second: inf - Total Attempts: 0
Dec 30 12:48:23.099 INFO Mining: Cuck(at)oo at 0 gps (graphs per second)

Thanks

Your miners are not getting jobs from the grin server. You should see requests answered like

Dec 29 15:31:58.144 DEBG sending request: {“id”:“0”,“jsonrpc”:“2.0”,“method”:“getjobtemplate”,“params”:null}
Dec 29 15:31:59.067 DEBG Received message: {“id”:“Stratum”,“jsonrpc”:“2.0”,“method”:“job”,“params”:{“difficulty”:1,“height”:940,“job_id”:0,“pre_pow”:“000100000000000003ac000000005c27855e00a2e9b5b41cc3c0d2b8a455abcd0873363fc7053f5aee5a37678275980d28fe63a0a0cfee5b6ca928123cd92da21ec586cb342d7967c20d74ceca634130c0e2b321eccd9743ad4a3774a28f2265e8b5d1ad991a0c00a1547ee19b11a350b3cc40135f84dc647d5a58671c3790a32cff7f33157d91b6bacbd7924ce82d7201a3512a3e1f795eda334b3e231ea113942f0765802623229bce6857237717bf1eef0000000000000000000000000000000000000000000000000000000000000000000000000000075300000000000007530000000003e56d0600000584”}}
Dec 29 15:31:59.067 DEBG Received request type: job
Dec 29 15:31:59.068 INFO Got a new job: JobTemplate { height: 940, job_id: 0, difficulty: 1, pre_pow: “000100000000000003ac000000005c27855e00a2e9b5b41cc3c0d2b8a455abcd0873363fc7053f5aee5a37678275980d28fe63a0a0cfee5b6ca928123cd92da21ec586cb342d7967c20d74ceca634130c0e2b321eccd9743ad4a3774a28f2265e8b5d1ad991a0c00a1547ee19b11a350b3cc40135f84dc647d5a58671c3790a32cff7f33157d91b6bacbd7924ce82d7201a3512a3e1f795eda334b3e231ea113942f0765802623229bce6857237717bf1eef0000000000000000000000000000000000000000000000000000000000000000000000000000075300000000000007530000000003e56d0600000584” }

Did you enable stratum in grin-server.toml and run a wallet listener?

Didn’t know that I need to run a listener also.
Trying to run in now and get.

limpbrains@tower:~$ grin wallet init
Mainnet not ready yet! In the meantime run 'grin --floonet ...'
limpbrains@tower:~$ grin --floonet wallet listen
Wallet seed file doesn't exist. Run `grin wallet init` first

I already initialized it a couple of days ago on a previous verision, maybe this is the issue ?

Run grin --floonet wallet init or move your existing wallet to the new directory. The floonet files are now stored in ~/.grin/floo

It works now, thanks!