# Help with mining config (ubuntu)

**URL:** <https://forum.grin.mw/t/help-with-mining-config-ubuntu/3005>\
**Category:** Mining\
**Created:** [January 23, 2019, 5:55am UTC](https://forum.grin.mw/t/help-with-mining-config-ubuntu/3005 "2019-01-23T05:55:01Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![kyron35](https://avatars.discourse-cdn.com/v4/letter/k/48db29/32.png) [@kyron35](https://forum.grin.mw/u/kyron35)\
**Post date:** [January 23, 2019, 5:55am UTC](https://forum.grin.mw/t/help-with-mining-config-ubuntu/3005/1 "2019-01-23T05:55:01Z")

</div>

Hi all - I’m trying to get a mining rig setup on Ubuntu, and seem to be running into issues. I’m hoping someone can point me in the right direction to what I am doing wrong, as I am lost.

I’ve built both grin, and the grin-miner successfully, and enabled the gpu plugins. However, after starting grin and grin-miner, after listening to the wallet, the program immediately quits with a message of "illegal instruction (core dumped). At first, I thought it may be due to gpu plugin/and possibly a misconfigured grin-miner.toml file (I have several cards), but even if I disable the cuda-plugin in the config file and just cpu mine with 2 threads, it immediately bombs out with the same error.

Checking the error log I get this:

"Jan 22 21:31:38.859 ERRO  
thread ‘unnamed’ panicked at ‘called `Option::unwrap()` on a `None` value’: libcore/option.rs:355stack backtrace:  
0: 0x56483c31e376 - backtrace::backtrace::libunwind::trace::h67350768f045b497  
at /home/miner2/.cargo/registry/src/github.com-1ecc6299db9ec823/backtrace-0.3.9/src/backtrace/libunwind.rs:53  
- backtrace::backtrace::trace::hfa024cb19a0de9eb  
at /home/miner2/.cargo/registry/src/github.com-1ecc6299db9ec823/backtrace-0.3.9/src/backtrace/mod.rs:42  
1: 0x56483c318a83 - backtrace::capture::Backtrace::new\_unresolved::ha4147d1e7635c793  
at /home/miner2/.cargo/registry/src/github.com-1ecc6299db9ec823/backtrace-0.3.9/src/capture.rs:88  
2: 0x56483c3189dd - backtrace::capture::Backtrace:🆕:ha063bbb620b340dc  
at /home/miner2/.cargo/registry/src/github.com-1ecc6299db9ec823/backtrace-0.3.9/src/capture.rs:63  
3: 0x56483c250a97 - grin\_miner\_util::logger::send\_panic\_to\_log::{{closure}}::hb54c5b2221551583  
at util/src/logger.rs:120  
4: 0x56483c3bc796 - std::panicking::rust\_panic\_with\_hook::hde420d6fd4455550  
at libstd/panicking.rs:480  
5: 0x56483c3bc2e1 - std::panicking::continue\_panic\_fmt::h8f394f3c578bcc76  
at libstd/panicking.rs:390  
6: 0x56483c3bc1c5 - rust\_begin\_unwind  
at libstd/panicking.rs:325  
7: 0x56483c402e9c - core::panicking::panic\_fmt::hca5dc4e8b320bc56  
at libcore/panicking.rs:77  
8: 0x56483c402dcb - core::panicking::panic::hca17aeb7dac42859  
at libcore/panicking.rs:52  
9: 0x56483c20340f - \<core::option::Option\>::unwrap::hd3c5a83c3be6f792  
at libcore/macros.rs:20  
10: 0x56483c207126 - cuckoo\_miner::miner::miner::CuckooMiner::solver\_thread::h52de15be728fb576  
at cuckoo-miner/src/miner/miner.rs:95  
11: 0x56483c210188 - cuckoo\_miner::miner::miner::CuckooMiner::start\_solvers::{{closure}}::h5f55ec623f78f993  
at cuckoo-miner/src/miner/miner.rs:226  
12: 0x56483c2183a6 - std::sys\_common::backtrace::\_\_rust\_begin\_short\_backtrace::hcbb9f7d65e353066  
at libstd/sys\_common/backtrace.rs:136  
13: 0x56483c2147b5 - std:🧵:Builder::spawn::{{closure}}::{{closure}}::hf92603606ef8c993  
at libstd/thread/mod.rs:409  
14: 0x56483c2184b5 - \<std::panic::AssertUnwindSafe as core::ops::function::FnOnce\<()\>\>::call\_once::hd0bf12d7382fbf2a  
at libstd/panic.rs:313  
15: 0x56483c219d91 - std::panicking::try::do\_call::h307618887e6955ff  
at libstd/panicking.rs:310  
16: 0x56483c3cc829 - \_\_rust\_maybe\_catch\_panic  
at libpanic\_unwind/lib.rs:102  
17: 0x56483c219bf7 - std::panicking::try::h3c020e099b04b87a  
at libstd/panicking.rs:289  
18: 0x56483c218547 - std::panic::catch\_unwind::hd606699f51518756  
at libstd/panic.rs:392  
19: 0x56483c21454c - std:🧵:Builder::spawn::{{closure}}::haf72def0de8e8d31  
at libstd/thread/mod.rs:408  
20: 0x56483c214808 - \<F as alloc::boxed::FnBox\>::call\_box::h08f1182abfd3db35  
at liballoc/boxed.rs:672  
21: 0x56483c3b9bed - \<alloc::boxed::Box\<(dyn alloc::boxed::FnBox\<A, Output=R\> + 'a)\> as core::ops::function::FnOnce\>::call\_once::h9d902c911a417e39  
at liballoc/boxed.rs:682  
- std::sys\_common:🧵:start\_thread::h44127e03e78ca137  
at libstd/sys\_common/thread.rs:24  
22: 0x56483c3aaf05 - std::sys::unix:🧵🧵🆕:thread\_start::h8f17b97f2223146c  
at libstd/sys/unix/thread.rs:90  
23: 0x7f0e5b73c6b9 - start\_thread  
24: 0x7f0e5b25c41c - clone  
25: 0x0 - "

 

Does anyone have any pointers or helpful suggestions so I can get this going? While I’m here, does anyone have any suggestions on how best to craft the config file for multiple GPU’s (specifically gtx 1070’s)? I literally just copied this block:

 
# currently requires 5.5GB+ GPU memory
 

[[mining.miner\_plugin\_config]]  
plugin\_name = “cuckaroo\_cuda\_29”  
#[mining.miner\_plugin\_config.parameters]  
device = 0  
cpuload = 1  
ntrims = 176  
genablocks = 4096  
genatpb = 128  
genbtpb = 128  
trimtpb = 512  
tailtpb = 1024  
recoverblocks = 1024  
recovertpb = 1024

 

for each device listed in nvidia-smi, which admittedly may be a dumb way to achieve this.

 

Thank you in advance for any help you may be able to offer.
