Closed arielylim closed 3 years ago
Do you get the same error using this binary? https://github.com/PoC-Consortium/scavenger/releases/download/1.7.8/scavenger-1.7.8-aarch64-unknown-linux-android-cpu-only.tar.xz
For dev reference, error is https://doc.rust-lang.org/std/option/enum.Option.html#method.unwrap
Download the binaries and compile on the raspberry Pi 4 itself.
Download binaries: ~ wget https://github.com/signum-network/signum-miner/archive/refs/tags/v1.8.0.tar.gz Unzip: ~ tar -xf v1.8.0.tar.gz Navigate into it: ~ cd signum-miner-1.8.0 Compile version: ~ cargo build --release Test the version with: ~ cargo test Find the version in: ~ cd target/release Copy the miner into your prefered dir where your config.yaml is located at: ~ cp signum-miner /home/ubuntu/
Run the miner within /home/ubuntu (example directory here): ~ ./signum-miner
I just tested it a few minutes ago and it worked out in my case running on a RaspberryPi4+ (8GB)
Downloaded the aarch64 binary and tried running it. Getting this error. What does it mean? How do I get it to run?
[INFO] signum-miner v.1.8.0 [INFO] SIMD extensions: NEON thread 'main' panicked at 'called `Option::unwrap()` in a `None` value', src/libcore/option.rs:105:60 note: Run with `RUST_BACKTRACE=1` environment variable to display a backtrace
Maybe your config file has something invalid. Unfortunately it is not the best reporting those.
Download the binaries and compile on the raspberry Pi 4 itself.
Will it only work on Ubuntu? I'm running raspberry pi os 64-bit.
I do have another Pi where I can follow this but would be great if I can use the same pi.
tried it first on Raspberry pi os 64-bit (current system) and encountered this error during the cargo test
failures:
---- config::tests::test_load_cfg stdout ----
thread 'config::tests::test_load_cfg' panicked at 'assertion failed: `(left == right)`
left: `[]`,
right: `["test_data"]`', src/config.rs:327:9
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace
failures:
config::tests::test_load_cfg
test result: FAILED. 10 passed; 1 failed; 0 ignored; 0 measured; 0 filtered out; finished in 2.40s
Again, on Raspberry Pi OS 64-bit, continuing the instructions despite the test error above, i.e. copy signum-miner
inside target/release
to a my /home/pi/signum
and edited the config.yaml
i downloaded directly and added to the same folder
Tried running and got a bunch of errors. I followed each one and modified the config.yaml
and finally got it to run.
My problem now is it's not reading any of my plots.
pi@raspberrypi:~/signum $ ./signum-miner
10:57:30 [INFO] signum-miner v.1.8.0
10:57:30 [INFO] path=/media/pi/USB01/Burst, files=0, size=0.0000 TiB
10:57:30 [WARN] no plots in /media/pi/USB01/Burst
10:57:30 [INFO] path=/media/pi/DAS03/Burst, files=0, size=0.0000 TiB
10:57:30 [WARN] no plots in /media/pi/DAS03/Burst
10:57:30 [INFO] plot files loaded: total drives=0, total capacity=0.0000 TiB
10:57:30 [INFO] reader-threads=3 CPU-threads=4
10:57:30 [INFO] CPU-buffer=4(+4)
10:57:31 [INFO] new block: height=892103, scoop=926
10:57:34 [INFO] new block: height=892104, scoop=2733
A couple of questions:
new block: heaight=892105, scoop=2756
and after a while, adds another block. Does that mean it's working properly? Anything i need to watch out for? On a separate pi running Ubuntu Desktop 20.04, i encountered the same thing. I downloaded the aarch64 package and it worked right away. Now, my issue is signum miner isn't recognizing my plots.
Some other steps I did:
Does that mean Signum miner doesn't recognize the plots from TurboPlotter? Or I'm doing something wrong?
(screenshot: terminal log showing zero plots in directory but finder has the plots)
So there's definitely something wrong. I forgot about the test_data
and just added it to the config. It reads the path but returns zero files.
Maybe there's something I need to download for signum to read the plots?
i did it! i think. does this mean it's now mining properly?
pi@raspberrypi:~/scavenger-1.7.8-cpu-gpu $ ./scavenger
19:03:43 [INFO] Scavenger v.1.7.8
19:03:43 [INFO] SIMD extensions: none
19:03:43 [INFO] path=/media/pi/USB01/Burst, files=0, size=0.0000 TiB
19:03:43 [WARN] no plots in /media/pi/USB01/Burst
19:03:43 [INFO] path=/media/pi/USB02/Burst, files=3, size=0.1824 TiB
19:03:43 [INFO] plot files loaded: total drives=1, total capacity=0.1824 TiB
19:03:43 [INFO] reader-threads=3 CPU-threads=4
19:03:43 [INFO] CPU-buffer=4(+4)
19:03:43 [INFO] new block: height=892224, scoop=1004
19:03:44 [INFO] round finished: roundtime=388ms, speed=120.33MiB/s
19:03:44 [INFO] deadline accepted: account=1234567, nonce=17001491091888819781, deadline=28033856
19:04:31 [INFO] new block: height=892225, scoop=3707
19:04:32 [INFO] round finished: roundtime=508ms, speed=91.90MiB/s
anything i should watch out for?
for reference, i went back at some threads and the people referenced scavenger. i looked thru the previous releases and tried them all.
i copied my config.yaml
to all the installations. the one that worked was the scavenger 1.7.8 arm linux cpu gpu version
1, does this mean it's now mining properly?
I'll try to do some testing in the emulated environment to investigate (and also see if I can build a working binary for signum miner). In response to your questions:
Going to try to replicate this issue in Qemu, I'll PR if I find anything.
Gotcha. Thanks. Let me know if you need more info from me to replicate the issue or something.
Yes, although I see that your USB01 has no plots, which you might want to check
I was moving around some plots so this was expected. Thanks for checking the small details.
I do have other questions but I think discord might be better place for it.
Please close the issue if the problem was on your config file or on your end.
I was able to get it to run but had to revert back to an older version. Anyway, I'll close this now thanks for all the help!
When I'm doing my testing, I may reopen this if the same config doesn't succeed on all builds. That'll be no sooner than Saturday.
From: arielylim @.> Sent: Friday, June 11, 2021 6:53 AM To: signum-network/signum-miner @.> Cc: Dimelo Waterson @.>; Comment @.> Subject: Re: [signum-network/signum-miner] Error when running on Raspberry Pi 4 (#4)
Closed #4https://github.com/signum-network/signum-miner/issues/4.
— You are receiving this because you commented. Reply to this email directly, view it on GitHubhttps://github.com/signum-network/signum-miner/issues/4#event-4875265970, or unsubscribehttps://github.com/notifications/unsubscribe-auth/AM4UEJEU43WER6ZZC4PAC5TTSFXTNANCNFSM46LIG4BQ.
Downloaded the aarch64 binary and tried running it. Getting this error. What does it mean? How do I get it to run?