Community-Test (oct8) Ofline

This test is running with 20 4vcpu-8gb droplets as apposed to the last which was 12 2vcpu-2gb.
(will it make a difference? I guess we will find out)
It is not what I was planning but it is up and I figured that I will share it anyway.

If you would like to add a node, you will need sn_node 0.32.0.
safe node install --version 0.32.0

safe node join does not work you so can try joining with the command bellow :point_down: (replace --local-addr with your ip, add your desired port or use 0 to assign a random port)

RUST_LOG=info ~/.safe/node/sn_node --hard-coded-contacts '["178.62.91.184:12000"]' --genesis-key 817193a6d3ad98e543cfcd0fbd5a5d9152d4f040205646509c3120f10fec268fa13ddb8199116ecf37fe8a12b3466342 --local-addr 47.2xx.65.xxx:0 --skip-igd

For CLI
curl -so- https://sn-api.s3.amazonaws.com/install.sh | bash

You can add the config with,

safe networks add community-network https://safe-testnet-tool-1.s3.eu-west-2.amazonaws.com/node_connection_info.config

or use,

safe networks set community-network 817193a6d3ad98e543cfcd0fbd5a5d9152d4f040205646509c3120f10fec268fa13ddb8199116ecf37fe8a12b3466342 178.62.91.184:12000

safe networks switch community-network

To cat please use SN_CLI_QUERY_TIMEOUT=90 at the start of your cat command eg:

SN_CLI_QUERY_TIMEOUT=90 safe cat safe://hygoygyybtrdgdisz1u9my5wpthjg8ziuw4sc7xatmnt85yn7yj5m7gkc5mgy > 12345.jpeg

Or you can set it for the life of the current terminal session and use cat as normal with
export SN_CLI_QUERY_TIMEOUT=90
(set it again each time you close the terminal)

No need for --test-coins

16 Likes

Why no port?
Default 12000 will be used?

2 Likes

ahh cause i am seeing dbl :slight_smile: been a long day

2 Likes

I just wanted to clarify something. At the moment, you should avoid using the safe node join command. The reason is because it wasn’t updated properly for the introduction of the genesis key. As soon as I’ve finished the thing I’m currently working on, I will get this command updated and clarify the exact usage for the next release.

I apologise at the moment for the confusing user experience with this command, but we’ll get it fixed and the docs updated.

I think for now you should run the node binary directly if you want to join.

9 Likes

Ok ill edit, thanks for clarifying.

7 Likes

I’m doing this but I’m getting **error:** Found argument '--genesis-key' which wasn't expected, or isn't valid in this context

Not sure what to dooo :grimacing:

Are you definitely using 0.32.0 of sn_node?

2 Likes

I get the following error

user@user:~$ RUST_LOG=info $HOME/.safe/node/sn_node --hard-coded-contacts '["178.62.91.184:12000"]' --genesis-key 817193a6d3ad98e543cfcd0fbd5a5d9152d4f040205646509c3120f10fec268fa13ddb8199116ecf37fe8a12b3466342 --local-addr 86.129.xxx.xxx:0 --skip-igd
Starting logging to stdout
Oct 08 23:05:03.932  INFO sn_node: 

Running safe_network v0.32.0
============================
Oct 08 23:05:03.935  INFO safe_network::routing::routing_api: 78fd4d.. Bootstrapping a new node.
Error: 
   0: Cannot start node. If this is the first node on the network pass the local address to be used using --first
   1: Routing error:: Cannot connect to the endpoint: Failed to bind UDP socket
   2: Cannot connect to the endpoint: Failed to bind UDP socket
   3: Failed to bind UDP socket
   4: Address not available (os error 99)

Location:
   src/bin/sn_node.rs:201

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

I get that if i try to connect from home @JPL I am spinning up a vultr node now to see if i can connect from there. @Vort did you join?

3 Likes

@Josh - thank you for setting this up!

For others, I had trouble connecting with --local-addr wan_ip:12000 and with --local-addr: internal_lan_ip_of_VM:12000

What ended up working for me is --local-addr 0.0.0.0:12000 with a manual NAT port forward rule from my router. Rule being from WAN interface to the LAN IP of the VM node on port 12000.

6 Likes

not sure @nigel to be honest I just connected via vultr but killed it agian not to hog nodes.

As @chriso said are you defo using 0.32.0

1 Like

Great work guys
Just wish I could have joined in but had a feed of Jura with the father in law and can not see straight enough to type!!

5 Likes

Why did you delete the installation instructions: curl -so- https://sn-api.s3.amazonaws.com/install.sh | bash ?

I rearranged things to what I thought was better order, it is up there.

You are welcome to tweak it, I am out and using my phone so it is difficult. (Please)

2 Likes

I’m in!

Summary

Running safe_network v0.32.0

Oct 09 00:12:35.070 INFO safe_network::routing::routing_api: b948ca… Bootstrapping a new node.
Oct 09 00:12:35.084 INFO safe_network::routing::routing_api: b948ca… Joining as a new node (PID: 1061) our socket: 139.162.227.32:52845, bootstrapper was: 178.62.91.184:12000, network’s genesis key: PublicKey(0171…ec21)
Oct 09 00:12:35.086 INFO safe_network::routing::core::bootstrap::join: Sending JoinRequest { section_key: PublicKey(0171…ec21), resource_proof_response: None } to [(b948ca(10111001)…, 178.62.91.184:12000)]
Oct 09 00:12:35.108 INFO safe_network::routing::core::bootstrap::join: Setting Node name to 5ebaa3…
Oct 09 00:12:35.109 INFO safe_network::routing::core::bootstrap::join: Newer Join response for our prefix SectionAuthorityProvider { prefix: Prefix(), public_key_set: PublicKeySet { public_key: PublicKey(026f…1841), threshold: 4 }, elders: {31a687(00110001)…: 165.22.114.55:12000, 3d169f(00111101)…: 165.22.114.147:12000, 7b2ec9(01111011)…: 178.62.91.184:12000, a802a4(10101000)…: 165.22.122.52:12000, aac6a5(10101010)…: 138.68.150.139:12000, bbcc25(10111011)…: 165.22.117.41:12000, fad338(11111010)…: 209.97.132.120:12000} } from 178.62.91.184:12000
Oct 09 00:12:35.115 INFO safe_network::routing::core::bootstrap::join: Sending JoinRequest { section_key: PublicKey(026f…1841), resource_proof_response: None } to [(31a687(00110001)…, 165.22.114.55:12000), (3d169f(00111101)…, 165.22.114.147:12000), (7b2ec9(01111011)…, 178.62.91.184:12000), (a802a4(10101000)…, 165.22.122.52:12000), (aac6a5(10101010)…, 138.68.150.139:12000), (bbcc25(10111011)…, 165.22.117.41:12000), (fad338(11111010)…, 209.97.132.120:12000)]
Oct 09 00:12:35.132 INFO safe_network::routing::core::bootstrap::join: Sending JoinRequest { section_key: PublicKey(026f…1841), resource_proof_response: Some(ResourceProofResponse { solution: 2, nonce_signature: Signature(c922…7201) }) } to [(7b2ec9(01111011)…, 178.62.91.184:12000)]
Oct 09 00:12:35.137 INFO safe_network::routing::core::bootstrap::join: Sending JoinRequest { section_key: PublicKey(026f…1841), resource_proof_response: Some(ResourceProofResponse { solution: 8, nonce_signature: Signature(1113…7f00) }) } to [(31a687(00110001)…, 165.22.114.55:12000)]
Oct 09 00:12:35.141 INFO safe_network::routing::core::bootstrap::join: Sending JoinRequest { section_key: PublicKey(026f…1841), resource_proof_response: Some(ResourceProofResponse { solution: 6, nonce_signature: Signature(e37b…840c) }) } to [(3d169f(00111101)…, 165.22.114.147:12000)]
Oct 09 00:12:35.145 INFO safe_network::routing::core::bootstrap::join: Sending JoinRequest { section_key: PublicKey(026f…1841), resource_proof_response: Some(ResourceProofResponse { solution: 0, nonce_signature: Signature(2318…5603) }) } to [(bbcc25(10111011)…, 165.22.117.41:12000)]

5 Likes

You on Windows, Mac/Linux @JPL? Did you do anything special or follow OP? So far no joy for me but I’m still tinkering and usually get in eventually.

No, I’m on a cloud Ubuntu instance. And I spoke too soon :frowning:


Encountered a timeout while trying to join the network. Retrying after 3 minutes.
                                                                                Oct 09 00:15:35.070 ERROR sn_node: Encountered a timeout while trying to join the network. Retrying after 3 minutes.
2 Likes

I need to get more familiar with terminal. Props to you guys that are advancing! I’m just spinning my wheels. This newer safe CLI for some reason won’t recognize commands for installing node or switching networks and going through my regular terminal never seems to work for me.

I’m just gonna go to bed now, but if you give some more details about your terminal setup I’d be happy to give you some help with that. Will check back tomorrow.

What OS are you using and how are you installing safe?

Can you give more details please about what you mean when you say it “won’t recognize commands”?

Sorry, I meant to reply to @Nigel there.

4 Likes

Late to this…

Im getting timeouts as well.
Who all managed to join? chunks?

1 Like