User Experience for the CLIs

willie@gagarin:~/projects/maidsafe/safe_network$ git pull && cargo build --release && sudo cp target/release/safe target/release/safenode target/release/testnet /usr/local/bin/

1 Like

Yaaay !!! :confetti_ball: :beer: :stuck_out_tongue_winking_eye: :white_check_mark: #GotChunks

and memory use is minimal on a 4Gb upload just there

Thank you @oetyng @bochaco @qi_ma @dirvine @joshuef and all the rest of the devs. :clap: :clap: :clap: :clap:

8 Likes

Joshnet… Closer… :innocent:

7 Likes

I broke it.
Don’t try to store empty files.

Storing file "theweapon.jpg" of 50308 bytes..
Successfully stored file to ChunkAddress(61638a(01100001)..)
Storing file "trajectory.jpg" of 177313 bytes..
Successfully stored file to ChunkAddress(7e16de(01111110)..)
Storing file "amis.png" of 173336 bytes..
Successfully stored file to ChunkAddress(61ff4c(01100001)..)
Storing file "temp.dbc" of 29560 bytes..
Successfully stored file to ChunkAddress(fa8ad7(11111010)..)
Storing file "dbc" of 0 bytes..
thread 'main' panicked at 'Did not store file "dbc" to all nodes in the close group! Chunks error Cannot store empty file..', safenode/src/bin/cli/files.rs:66:21
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace

I doubt this will delay Joshnet by much :slight_smile:

2 Likes

It better not :crazy_face:

2 Likes

Great post from @shu in the update thread
Linking here cos I think it is more on-topic in this thread.

I feel this is the more methodical structured testing we need.

1 Like

Yes, these are needless panics placed in there as temporary stuff. I’m removing them now.

5 Likes

Just the man I was looking for :slight_smile: are downloads still going to memory?

Edit: A little off topic but I have been wondering, what your thoughts are on EventStore, is that something you will revisit in the future.

5 Likes

Looks like it…
But I havent pulled for a few hours.

5 Likes

safe on local lan #ItJustWorks :confetti_ball:

I have my desktop backup server Pi4 and BananaPi1 all adding chunks and registers to each disk.
Almost zero config required :slight_smile:

start a testnet on my desktop 30 nodes
upload some files, create some registers, note the trees growing under ~./safe/node/chunks and registers

copy safe safenode testnet binaries to /usr/local/bin on the backup server

cross compile the latest for arm7 and aarch64

scp the appropriate safe safenode testnet binaries to /usr/local/bin on each SBC

open at least two ssh sessions to each remote device - use tmux or screen unless you have multi monitors
touch ~/.safe/node/safenode.log && tail -f ~/.safe/node/safenode.log
in one terminal and in the other
safenode --log-dir ~/.safe/node/

for each remote device

admire screens of scrolling txt as all your nodes get to know each other.
Open further terminals to upload some files, create some registers, from each device note all the trees growing under ~./safe/node/chunks and registers.

I thought this would be a hassle assigning network ports etc but it was dead easy. Thanks @devs :slight_smile:

Update - two nodes running now on the 1Gb Banana Pi

7 Likes

nodes just find each other? MIND BLOWN

multinodes in one system? SMOOTHNET HERE I COME!!!

I have a tickle in my back of my head… did you just said there was no setup needed? (for the nodes to connect?)

7 Likes

εικόνα
that is just… 99.9% rust
εικόνα

on a side note, do we really need shell code? (just my perfectionist mania)

cant a rust binary run alone?

3 Likes

@anyone @everyone @allhumans @Southside @maidsafe
can I run a smoothnet? through lan only? through internet? pleeeeaaase teeeellll me yes and how :crazy_face:

I dont see any instructions for a safe network that is over lan or internet on github repo?

:eye_in_speech_bubble:
εικόνα
Southside is pumping a huge post, thats only possitive (cant wait) :crazy_face:

2 Likes

It Just Works through lan only
cos the default ip addr is 0.0.0.0 and the port is randomly assigned

I had sufficient nodes running on the other devices that I could killall safenode on the desktop and blow away 30 nodes. I lost chunks and the download failed

But the network kept running on the remaining 15 nodes. very slow for a while but new chunks and registers got stored

Its a bit meaningless really, cos its effectively write only at this stage.

A BananaPi with 1Gb RAM and 2 nodes running took 12 mins to store 100 registers

Creating Register with 'register99' at xorname: 42d8c818337861d8ee980d648e8794693ae325a0cc4f1e2e533d40fd76f32a59 and tag 3006
Successfully created register 'register99' at 42d8c8(01000010).., 3006!
Creating Register with 'register100' at xorname: 94ca22e9142860bb408a70d8c3c98c115728290e839cc0dafd6d793cd2604923 and tag 3006
Successfully created register 'register100' at 94ca22(10010100).., 3006!

real	12m10.918s
user	3m55.161s
sys	0m41.391s

Lots to play with :slight_smile:
Wallets next if I can find a valid genesis.dbc. I keep getting this error when I try to load dbc files from a few weeks back.

willie@gagarin:~$ safe wallet deposit projects/maidsafe/DBC-testing/dbcs/wheen.dbc
Reading deposited tokens from "wheen.dbc".
This file does not appear to have valid hex-encoded DBC data. Skipping it.
Nothing deposited.
4 Likes

ok I am on it!!! have one laptop two desktops!!

2 Likes

Fill yer boots
Its dawn - time for me to sleep

3 Likes

Getting fixed here: feat: download files to filesystem by oetyng · Pull Request #169 · maidsafe/safe_network (github.com)

7 Likes

Yes I think I will come to something like this eventually. An ever expanding database over safe network.
This time in rust though :slight_smile:

8 Likes

Imagine and event store that added trained AI models as well as open ended AI evolutionary algorithm based neural nets. Now there’s a thing :slight_smile:

10 Likes

:partying_face:

Writing 6562 bytes to "/home/josh/.safe/client/downloaded_files/361adff80ea7efb05cbf865803a7bfa134b9137fd02efec724f6cad2cf20414d"

Great news, I skimmed through your and @fergish’s chat again yesterday. Still worth a listen.

9 Likes