Grin v1.0 Step by Step Miner Guide on Ubuntu [English version]

You didn’t follow the instructions in the first append of this thread. Specifically Steps B3 B4 and B5.

yes i did. like i said, i can get the node and miner running just fine after initial install but when i close them with the ‘Q’ command, the grin node throws those ‘false’ errors.

By “throws those ‘false’ errors” do you mean:

Those are not errors. It means that the copy of grin-server.toml being used has not been edited so that:
enable_stratum_server = true

Are you in the directory ~/grin when you run the grin command?
cd ~/grin; grin

all working now; again :slight_smile:

thanx

Today was an interesting case. grin-miner (1.0.2, binary) was working almost OK until today, then after the next restart (my 4x280Ti rig is still in debugging state) it refused to start with message:

error while loading shared libraries: libncursesw.so.5: cannot open shared object file

ldd showed that this file is absent. OK, but how does grin-miner worked without it? :confused:

I installed libncursesw5 package and everything became well again. :sunglasses:

I see that grin-miner is CPU-intensive. But does it use all available CPU threads? It seems that no:

Hello people i’m having trouble with this guide . I’m a newbe at Linux but very computer literate with most things about computer , building , trouble shooting , However i’m a total neeb at Linux .
I have been able to follow the guide up to step

  • Add command grin to environment variables for current user permanently
 cd
 vi .profile

Add the following line to the last line of .profile and save

 export PATH="$HOME/grin/target/release:$PATH"

Then i’ lost the vi or vim editor is totally a piece of crap to use i can not add the line to it so i need detailed insturction on what keybord keys to push to be able to edit the profile file .(whomever wrote vi is a moron and hasn’t herd of keep it simple ,simple)
i have tried to read up on vi or vim as it’s also called but i’m not shore why the help page i’m reading does not seem to work the way it says and (whats with rewriting keyboard commands in a freaking text editor, why not use the 12 function keys or the 18 number keys as i said a moron wrote it)

could someone please guide me through the B 3 . step
when i type vi .profile a file opens what do i do to add the ```
export PATH="$HOME/grin/target/release:$PATH"

Hello again people don’t worry helping me this noob figured it out and i still think Vi or vim is the crappiest text editor i have ever used but i figured it out…Yeeeeeee the node is working all i have to do is now finish part C

hello i’m getting errors while trying to set up the miner .
I have built the node however while tring to build the miner i get these errors

Compiling cuckoo_miner v1.0.2 (/home/glenn/grin-miner/cuckoo-miner)
warning: unused import: sanity::Finder
–> cuckoo-miner/src/build.rs:26:5
|
26 | use sanity::Finder;
| ^^^^^^^^^^^^^^
|
= note: #[warn(unused_imports)] on by default

warning: struct is never constructed: Finder
–> cuckoo-miner/src/sanity.rs:28:1
|
28 | pub struct Finder {
| ^^^^^^^^^^^^^^^^^
|
= note: #[warn(dead_code)] on by default

warning: method is never used: new
–> cuckoo-miner/src/sanity.rs:34:2
|
34 | pub fn new() -> Self {
| ^^^^^^^^^^^^^^^^^^^^

warning: method is never used: maybe_have
–> cuckoo-miner/src/sanity.rs:41:2
|
41 | pub fn maybe_have<S: AsRef>(&mut self, cmd: S) -> Option {
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

and then it says this

Compiling crossbeam-channel v0.2.6
error[E0433]: failed to resolve. Use of undeclared type or module util
–> cuckoo-miner/src/miner/consensus.rs:208:3
|
208 | util::to_hex(self.0.to_vec())
| ^^^^ Use of undeclared type or module util

error: aborting due to previous error

For more information about this error, try rustc --explain E0433.
error: Could not compile cuckoo_miner.

To learn more, run the command again with --verbose.

can anybody tell this noob what i am doing wrong please

I get the following error:

20190227 13:29:42.738 INFO grin - This is Grin version 1.0.2 (git v1.0.2-3-gfe9fa51), built for x86_64-unknown-linux-gn$20190227 13:29:42.762 WARN grin::cmd::server - Starting GRIN in UI mode…
20190227 13:29:42.846 INFO grin_servers::grin::server - Starting server, genesis block: 40adad0aec27
20190227 13:29:45.068 ERROR grin_util::logger -
thread ‘main’ panicked at 'called Result::unwrap() on an Err value: Chain(Error { inner: LmdbErr(Error::Code(-30782$

Store Error: LmdbErr(Error::Code(-30782, ‘MDB_BAD_TXN: Transaction must abort, has a child, or is invalid’)), reason: L$
0: grin_util::logger::send_panic_to_log::{{closure}}::h4b7ede3e7432d241 (0x7f7a8f48b8c0)
1: std::panicking::rust_panic_with_hook::h8cbdfe43764887be (0x7f7a8f5c6159)
at src/libstd/panicking.rs:495
2: std::panicking::continue_panic_fmt::h3d3c5a833c00a5e1 (0x7f7a8f5c5c01)
at src/libstd/panicking.rs:398
3: rust_begin_unwind (0x7f7a8f5c5ae5)
at src/libstd/panicking.rs:325
4: core::panicking::panic_fmt::h4d67173bc68f6d5a (0x7f7a8f5e241c)
at src/libcore/panicking.rs:95

When I start my listener it say: Starting HTTP Foreign listener API server at 127.0.0.1:3415

When I start the grin miner it say: Can’t establish server connection to 127.0.0.1:3416

Should I change the config file so the api listener work on port 3416 ?

It seems that the config is initially wrong.

Thanks for this awesome guide!

I got all the way to “enable_stratum_server = true” and I’m getting the error: enable_stratum_server: command not found

Please let me know if you have any idea what I might be doing wrong!

Hi! After several hours, I think I’m working on this end. I would like to test whether my wallet will receive, can someone help me with that?

Finally%20working

That’s not a command. It is a line you need to change in the grin-server.toml file:
In the file ~/.grin/main/grin-server.toml , change:
enable_stratum_server = false
To:
enable_stratum_server = true

2 Likes

image

IS it normal to mine this much and have a balance of 0?

Hello,

I am new in mining and I rented a RIG of 8 gpu nvidia in 1070, after having followed the tutorial, I find myself with this error:

luginNotFoundError("/home/nv08/grin-miner/target/debug/plugins/cuckaroo_cuda_29.cuckooplugin - Custom { kind: Other, error: StringError("/home/nv08/grin-miner/target/debug/plugins/cuckaroo_cuda_29.cuckooplugin: cannot open shared object file: No such file or directory") }")

my file grin-miner.toml is :

#[[mining.miner_plugin_config]]
#plugin_name = “cuckaroo_cpu_compat_29”
#[mining.miner_plugin_config.parameters]
#nthreads = 4

and :

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

thanks :slight_smile:

I would suggest you go for Hive OS its so simple and free

Getting the error below after trying to run grin wallet init

error: Found argument 'init' which wasn't expected, or isn't valid in this context

USAGE:
As of v1.1.0, the wallet has been split into a separate executable. See https://github.com/mimblewimble/grin-wallet/releases to download

For more information try --help

What could I have done wrong or what do I need to update?

As of v1.1.0, the wallet has been split into a separate executable. See https://github.com/mimblewimble/grin-wallet/releases to download