As I have an issue with IPv6 inside a podman container, I’m asked to create a test network outside of containers and see what the result is of that.
But for some reason I encounter a different issue, which is that all my nodes seem to be looking at 127.0.0.1.
Anyone got any idea why that could be?
node_dir_1/sn_node.log
to node_dir15/sn_node.log
INFO 2022-03-17T07:08:37.003712Z [sn/src/node/api/mod.rs:L209]:
➤ d9367e.. Bootstrapping a new node.
ERROR 2022-03-17T07:09:13.399735Z [/cargo/registry/src/github.com-1ecc6299db9ec823/qp2p-0.28.5/src/endpoint.rs:L278]:
➤ bootstrap {bootstrap_nodes=[127.0.0.1:12000]}
➤ Failed to bootstrap to the network, last error: timed out
node_dir_0/sn_node.log
INFO 2022-03-17T22:05:38.063977Z [sn/src/node/api/mod.rs:L144]:
➤ a15b0f.. Starting a new network as the genesis node (PID: 7217).
INFO 2022-03-17T22:05:38.136114Z [sn/src/node/core/mod.rs:L146]:
➤ Creating Liveness checks
INFO 2022-03-17T22:05:38.136232Z [sn/src/node/core/mod.rs:L155]:
➤ Liveness check: Liveness { unfulfilled_requests: {},
closest_nodes_to: {} }
INFO 2022-03-17T22:05:38.136387Z [sn/src/node/api/mod.rs:L187]:
➤ a15b0f.. Genesis node started!. Genesis key PublicKey(00b4..13a5),
hex: 80b4...07e3
INFO 2022-03-17T22:05:38.136485Z [sn/src/node/api/dispatcher.rs:L113]:
➤ Starting to probe network
INFO 2022-03-17T22:05:38.136543Z [sn/src/node/api/dispatcher.rs:L143]:
➤ Starting cleaning up network links
INFO 2022-03-17T22:05:38.136561Z [sn/src/node/api/dispatcher.rs:L164]:
➤ Writing our PrefixMap to disk
INFO 2022-03-17T22:05:38.136566Z [sn/src/node/core/mod.rs:L211]:
➤ Writing our latest PrefixMap to disk
INFO 2022-03-17T22:05:38.140426Z [sn/src/node/api/mod.rs:L112]:
➤ Node PID: 7217, prefix: Prefix(), name: a15b0f(10100001)..,
age: 255, connection info: "[x:x:x:x:x:x:x:x]:12000"
sn_network.sh
#!/bin/bash
NODE_PATH=~/.safe/node
HOST_IP=[$(ip -6 -o addr show up primary scope global | while read -r num dev fam addr rest; do echo ${addr%/*}; done | head -n 1)]
PORT_BASE=12000
PORT=$PORT_BASE
VERBOSE=-vv
NUM_NODES=15
sn_node $VERBOSE \
--idle-timeout-msec 5500 \
--keep-alive-interval-msec 4000 \
--skip-auto-port-forwarding \
--local-addr $HOST_IP:$PORT \
--public-addr $HOST_IP:$PORT \
--log-dir $NODE_PATH/node_dir_0 \
--root-dir $NODE_PATH/node_dir_0 \
--first &
sleep 10
safe networks add sjefolaht
safe networks switch sjefolaht
for (( i = 1; i <= NUM_NODES; i++ ))
do
PORT=$(($PORT_BASE + $i))
sudo sn_node $VERBOSE \
--idle-timeout-msec 5500 \
--keep-alive-interval-msec 4000 \
--skip-auto-port-forwarding \
--local-addr $HOST_IP:$PORT \
--public-addr $HOST_IP:$PORT \
--log-dir $NODE_PATH/node_dir_$i \
--root-dir $NODE_PATH/node_dir_$i &
sleep 5
done
/home/folaht/.safe/cli/networks/sjefolaht_node_connection_info.config
& /home/folaht/.safe/node/node_connection_info.config
["xxxxxx...xxxxxxx",["[x:x:x:x:x:x:x:x]:12000"]]