How do one make a comnet now?

I get this

error: The following required arguments were not provided:
    <CONTACTS_FILE_LOCATION>

USAGE:
    safe networks add <NETWORK_NAME> <CONTACTS_FILE_LOCATION>

For more information try --help
Switching to 'mynet' network...
Error: 
   0: No network with name 'mynet' was found in the config. Please use the networks 'add'/'set' subcommand to add it

Location:
   sn_cli/src/operations/config.rs:457

Backtrace omitted. Run with RUST_BACKTRACE=1 environment variable to display it.
Run with RUST_BACKTRACE=full to include source snippets.

when I try to launch the first node with:
/home/smooth/.safe/node/sn_node --first --local-addr '192.168.2.7':12000 --public-addr '5.55.28.10':12000 --skip-auto-port-forwarding --root-dir '/home/smooth/.safe/node/local_node00/' --log-dir '/home/smooth/.safe/node/local_node00/

2 Likes

do I need to add a set command? but how to add if its the --first?

I tried safe networks add mynet ~/.safe/cli/config.json
and
safe networks switch mynet

but it says that I need to use add/ set

with
safe networks set mynet instead of switch I get also error about that set is not recognised and maybe I wanted to say sections? any help please?

seems like the generated config.json doesnt propagate correctly

cat ~/.safe/cli/config.json
{"networks":{}}

I think I am getting somewhere, found the contacts!

cat ~/.safe/node/local_node00/section_tree 
{"sections":{"":{"value":{"prefix":"","public_key_set":{"commit":{"coeff":[[180,1,71,216,18,4,21,221,204,108,91,215,37,138,69,34,36,178,188,139,137,182,169,9,180,199,103,193,12,86,46,216,15,165,153,251,71,106,185,57,163,10,63,253,223,242,45,121]]}},"elders":{"016a60782fe5c26676a9f65fbccab8a35d32d8e1a4e111c18ca58aaf990690ff":"5.55.28.10:12000"},"members":{"016a60782fe5c26676a9f65fbccab8a35d32d8e1a4e111c18ca58aaf990690ff":{"name":"016a60782fe5c26676a9f65fbccab8a35d32d8e1a4e111c18ca58aaf990690ff","addr":"5.55.28.10:12000","state":"Joined","previous_name":null}},"membership_gen":0},"sig":{"public_key":[180,1,71,216,18,4,21,221,204,108,91,215,37,138,69,34,36,178,188,139,137,182,169,9,180,199,103,193,12,86,46,216,15,165,153,251,71,106,185,57,163,10,63,253,223,242,45,121],"signature":[163,99,97,215,181,91,148,73,156,125,153,121,8,80,84,108,214,115,210,151,176,123,137,193,123,53,116,86,164,142,170,161,240,2,1,43,176,157,170,45,142,110,165,209,184,182,222,17,13,202,26,78,251,195,140,166,84,99,65,17,116,77,40,217,115,188,7,157,101,121,169,255,203,181,205,17,59,27,162,172,109,85,31,195,167,26,138,98,29,18,56,163,241,61,106,28]}}},"sections_dag":{"root":[180,1,71,216,18,4,21,221,204,108,91,215,37,138,69,34,36,178,188,139,137,182,169,9,180,199,103,193,12,86,46,216,15,165,153,251,71,106,185,57,163,10,63,253,223,242,45,121],"tree":[]}}
1 Like

ok found the solution:

you do:

safe networks add mynet <root_dir>/section_tree
safe networks switch mynet
4 Likes

I cannot safe file put test.txt?

What is the error msg?
How many nodes are connected?

no error message, its 15 nodes with genesis, it just hangs!

hot to check how many are connected?

on Ubuntu, open system monitor and go to the Processes tab. Count the no of sn_node processes running. Check total disk write column.

Or ps aux |grep sn_node and count the lines. You could pipe that into wc -l but you need to subtract one for the grep process itself

2 Likes

well only genesis is running… weird

2 Likes

Make sure that you have deleted all the dirs in ~/.safe/node/local_node00 and try again.

Watch as it starts and make sure you see all the nodes initialising.

1 Like

it wants --network-contacts-file

what do I type next to that?

found this gem

so I guess its there

also here is how to start the nodes

Southside now the sn_node are 14, all nodes do nothing in the trace logs,

Running sn_node v0.66.2
=======================
[2022-08-29T23:48:14.567705Z DEBUG sn_node::node::monitoring::load_sampling] num physical cores: 6
[2022-08-29T23:48:14.573098Z INFO sn_node::node::node_starter] c93998.. Bootstrapping as a new node.
[2022-08-29T23:48:14.573871Z DEBUG sn_node::comm/bootstrap] Starting bootstrap process with bootstrap nodes: [5.55.28.10:12000]
[2022-08-29T23:48:14.574597Z DEBUG sn_node::node::monitoring] Load sample LoadAvg { one: 3.3333333333333335, five: 3.3333333333333335, fifteen: 3.3333333333333335 }
[2022-08-29T23:48:14.574610Z DEBUG sn_node::node::monitoring::event_rates] Load per cmds 0.013333333333333334 (1 [time unit] moving avg)
[2022-08-29T23:48:14.574614Z DEBUG sn_node::node::monitoring::event_rates] Max cmds per s 1125.0 (1 [chosen period] moving avg)
[2022-08-29T23:48:14.574618Z DEBUG sn_node::node::monitoring::event_rates] Load per msgs 0.006666666666666667 (1 [time unit] moving avg)
[2022-08-29T23:48:14.574620Z DEBUG sn_node::node::monitoring::event_rates] Max msgs per s 2250.0 (1 [chosen period] moving avg)

and only genesis is repeating

[2022-08-29T23:50:13.773445Z TRACE sn_node::node::flow_ctrl::cmd_ctrl] Empty queue, waiting 100ms to not loop heavily
[2022-08-29T23:50:13.773579Z TRACE sn_node] Node event! 2022-08-29T23:50:13.773400381+00:00: Started id: 986, parent: None prio: 20, queued for 0 ms. Cmd: SendMsg
[2022-08-29T23:50:13.773597Z TRACE sn_node] Node event! 2022-08-29T23:50:13.773566855+00:00: Finished id: 986, prio: 20, Cmd: SendMsg
[2022-08-29T23:50:13.874791Z TRACE sn_node::node::flow_ctrl::cmd_ctrl] Empty queue, waiting 100ms to not loop heavily
[2022-08-29T23:50:13.975018Z TRACE sn_node::node::flow_ctrl::cmd_ctrl] Empty queue, waiting 100ms to not loop heavily
[2022-08-29T23:50:14.076216Z TRACE sn_node::node::flow_ctrl::cmd_ctrl] Empty queue, waiting 100ms to not loop heavily
[2022-08-29T23:50:14.177442Z TRACE sn_node::node::flow_ctrl::cmd_ctrl] Empty queue, waiting 100ms to not loop heavily
[2022-08-29T23:50:14.278649Z TRACE sn_node::node::flow_ctrl::cmd_ctrl] Empty queue, waiting 100ms to not loop heavily
[2022-08-29T23:50:14.379881Z TRACE sn_node::node::flow_ctrl::cmd_ctrl] Empty queue, waiting 100ms to not loop heavily
[2022-08-29T23:50:14.481070Z TRACE sn_node::node::flow_ctrl::cmd_ctrl] Empty queue, waiting 100ms to not loop heavily
[2022-08-29T23:50:14.540477Z TRACE sn_node::node::logging/log] (Prefix()): Node resource usage: Process { memory: 45276, virtual_memory: 101023744, cpu_usage: 0.06669445, disk_usage: DiskUsage { total_written_bytes: 1720320, written_bytes: 24576, total_read_bytes: 1753088, read_bytes: 0 } }
[2022-08-29T23:50:14.582829Z TRACE sn_node::node::flow_ctrl::cmd_ctrl] Empty queue, waiting 100ms to not loop heavily
[2022-08-29T23:50:14.683015Z TRACE sn_node::node::flow_ctrl::cmd_ctrl] Empty queue, waiting 100ms to not loop heavily
[2022-08-29T23:50:14.784194Z TRACE sn_node::node::flow_ctrl::cmd_ctrl] Empty queue, waiting 100ms to not loop heavily
[2022-08-29T23:50:14.885402Z TRACE sn_node::node::flow_ctrl::cmd_ctrl] Empty queue, waiting 100ms to not loop heavily
[2022-08-29T23:50:14.986583Z TRACE sn_node::node::flow_ctrl::cmd_ctrl] Empty queue, waiting 100ms to not loop heavily
[2022-08-29T23:50:15.087053Z TRACE sn_node::node::flow_ctrl::cmd_ctrl] Empty queue, waiting 100ms to not loop heavily
[2022-08-29T23:50:15.188249Z TRACE sn_node::node::flow_ctrl::cmd_ctrl] Empty queue, waiting 100ms to not loop heavily
[2022-08-29T23:50:15.289455Z TRACE sn_node::node::flow_ctrl::cmd_ctrl] Empty queue, waiting 100ms to not loop heavily
[2022-08-29T23:50:15.390687Z TRACE sn_node::node::flow_ctrl::cmd_ctrl] Empty queue, waiting 100ms to not loop heavily
[2022-08-29T23:50:15.491856Z TRACE sn_node::node::flow_ctrl::cmd_ctrl] Empty queue, waiting 100ms to not loop heavily
[2022-08-29T23:50:15.593087Z TRACE sn_node::node::flow_ctrl::cmd_ctrl] Empty queue, waiting 100ms to not loop heavily
[2022-08-29T23:50:15.694269Z INFO sn_node::node::flow_ctrl::periodic_checks] Starting to check the section's health
[2022-08-29T23:50:15.694443Z TRACE sn_node::node::messaging::service_msgs] ServiceMsgToBeHandled Query(DataQuery { variant: GetChunk(ChunkAddress(dfad5b(11011111)..)), adult_index: 0 })
[2022-08-29T23:50:15.694462Z TRACE sn_node::node::data::records] DataQueryReceviedAtElder preparing to query adults for data at Chunk(ChunkAddress(dfad5b(11011111)..)) with op_id: OpId-564162..
[2022-08-29T23:50:15.694491Z TRACE sn_node::node::data::records] Chunk holders of dfad5b(11011111).. are non-full adults: {} and full adults: {}
[2022-08-29T23:50:15.694500Z DEBUG sn_node::node::data::records] No targets found for MsgId(ae52..d886)
[2022-08-29T23:50:15.694551Z TRACE sn_node::node::flow_ctrl::cmd_ctrl] Empty queue, waiting 100ms to not loop heavily
[2022-08-29T23:50:15.694666Z TRACE sn_node::comm/send/send_to_one] Sending message (643 bytes, msg_id: MsgId(93f5..13b4)) to Peer { name: b23c7c(10110010).., addr: 5.55.28.10:12000 }
[2022-08-29T23:50:15.694696Z TRACE sn_node] Node event! 2022-08-29T23:50:15.694525165+00:00: Started id: 987, parent: None prio: 19, queued for 0 ms. Cmd: SendMsg
[2022-08-29T23:50:15.795841Z TRACE sn_node::node::flow_ctrl::cmd_ctrl] Empty queue, waiting 100ms to not loop heavily
[2022-08-29T23:50:15.896014Z TRACE sn_node::node::flow_ctrl::cmd_ctrl] Empty queue, waiting 100ms to not loop heavily
[2022-08-29T23:50:15.997185Z TRACE sn_node::node::flow_ctrl::cmd_ctrl] Empty queue, waiting 100ms to not loop heavily
[2022-08-29T23:50:16.098596Z TRACE sn_node::node::flow_ctrl::cmd_ctrl] Empty queue, waiting 100ms to not loop heavily
[2022-08-29T23:50:16.199784Z TRACE sn_node::node::flow_ctrl::cmd_ctrl] Empty queue, waiting 100ms to not loop heavily
[2022-08-29T23:50:16.299998Z TRACE sn_node::node::flow_ctrl::cmd_ctrl] Empty queue, waiting 100ms to not loop heavily
[2022-08-29T23:50:16.401196Z TRACE sn_node::node::flow_ctrl::cmd_ctrl] Empty queue, waiting 100ms to not loop heavily
[2022-08-29T23:50:16.502419Z TRACE sn_node::node::flow_ctrl::cmd_ctrl] Empty queue, waiting 100ms to not loop heavily
[2022-08-29T23:50:16.603612Z TRACE sn_node::node::flow_ctrl::cmd_ctrl] Empty queue, waiting 100ms to not loop heavily
[2022-08-29T23:50:16.704823Z DEBUG sn_node::node::flow_ctrl::periodic_checks] Going to health check elders
[2022-08-29T23:50:16.704847Z INFO sn_node::node::core] ProbeMsg target our section Prefix() recipients {Peer { name: b23c7c(10110010).., addr: 5.55.28.10:12000 }}
[2022-08-29T23:50:16.704857Z TRACE sn_node::node::messaging::system_msgs] SendToNodes: AntiEntropyProbe(PublicKey(05c9..8c7a))
[2022-08-29T23:50:16.704988Z TRACE sn_node::node::flow_ctrl::cmd_ctrl] Empty queue, waiting 100ms to not loop heavily
[2022-08-29T23:50:16.705127Z TRACE sn_node::comm/send/send_to_one] Sending message (608 bytes, msg_id: MsgId(8147..fa96)) to Peer { name: b23c7c(10110010).., addr: 5.55.28.10:12000 }
[2022-08-29T23:50:16.705156Z TRACE sn_node::node::core] Logging issue AwaitingProbeResponse in dysfunction for b23c7c..
[2022-08-29T23:50:16.705170Z TRACE sn_node] Node event! 2022-08-29T23:50:16.704900526+00:00: Started id: 989, parent: None prio: 20, queued for 0 ms. Cmd: SendMsg
[2022-08-29T23:50:16.705183Z TRACE sn_node] Node event! 2022-08-29T23:50:16.704957523+00:00: Started id: 988, parent: None prio: 9, queued for 0 ms. Cmd: TrackNodeIssueInDysfunction b23c7c(10110010).., AwaitingProbeResponse
[2022-08-29T23:50:16.705187Z TRACE sn_node] Node event! 2022-08-29T23:50:16.705162029+00:00: Finished id: 988, prio: 9, Cmd: TrackNodeIssueInDysfunction b23c7c(10110010).., AwaitingProbeResponse
[2022-08-29T23:50:16.806395Z TRACE sn_node::node::flow_ctrl::cmd_ctrl] Empty queue, waiting 100ms to not loop heavily
[2022-08-29T23:50:16.907580Z TRACE sn_node::node::flow_ctrl::cmd_ctrl] Empty queue, waiting 100ms to not loop heavily
[2022-08-29T23:50:17.008791Z TRACE sn_node::node::flow_ctrl::cmd_ctrl] Empty queue, waiting 100ms to not loop heavily
[2022-08-29T23:50:17.108979Z TRACE sn_node::node::flow_ctrl::cmd_ctrl] Empty queue, waiting 100ms to not loop heavily

and of course put failed

safe files put test.txt 
Error: 
   0: ClientError: Failed to stablish a connection with node Peer { name: b23c7c(10110010).., addr: 5.55.28.10:12000 }: timed out.
   1: Failed to stablish a connection with node Peer { name: b23c7c(10110010).., addr: 5.55.28.10:12000 }: timed out.

Location:
   sn_cli/src/subcommands/files.rs:213

Backtrace omitted. Run with RUST_BACKTRACE=1 environment variable to display it.
Run with RUST_BACKTRACE=full to include source snippets.
1 Like

OK - what happens if you do a “vanilla” safe node run-baby-fleming with the latest release?

I think I did it with latest and work great!

4 Likes

Yaay!!!
Fixing my garage roof so I am pretty much AFK for now.

Trying not to fall through corrugated asbestos sheeting demands full concentration.

@SmoothOperatorGR How are you getting on?

I have had to stop for the evening cos I lost the chuck key for the drill - again :frowning:

Going to eat and then address myself to SAFE things. - After a day of doing unsafe things at height over fragile asbestos sheeting.

2 Likes

This topic was automatically closed after 60 days. New replies are no longer allowed.