Your logs show it’s listening on a UDP address, so I am afraid it’s still an old version. The 0.1.0 is a little misleading, because we’re not doing proper releases yet.
The most recent versions should log a first line with Current build's git commit hash.
On a Windows 10 machine behind a NAT firewall, VPN, and no port-forwarding. Grabbed, unzipped, and placed the safenode directory at root and then using PowerShell as an administrator:
Everything worked as expected…the node shut down after a few minutes:
Error: We have been determined to be behind a NAT. This means we are not reachable externally by other nodes. In the future, the network will implement relays that allow us to still join the network.
Yes, on Windows (and Linux) it shows that unfortunately. Which is my mistake. I built those binaries this morning on a Windows partition I don’t do developing on. I hadn’t checked it out with git, but downloaded the zip of the repository via GitHub. Which then it means it doesn’t know the current revision it’s building. Linux is probably some mistake with the checkout too. Hopefully will be resolved by next testnet!
I guess it depends on use cases of people. I’m also not sure what the Windows or macOS equivalent of that would be.
Toivo - It is confusing when there are different safe binaries for different purposes … this might help…
For testnets like this, where we are using very specific binaries that will likely be only useful for hours or days at a push, one strategy is to download and extract to a temporary dir - say /tmp/safetestnet/ and run the commands from there
then when the test has done its stuff, just delete all of /tmp/safetestnet.
Always do a ls -al $(which safe) when you are in any doubt and check that the date is sensible. which safe will point to the safe binary that will run if you do not give a specific path
[2023-05-26T16:07:46.243123Z INFO safenode::network] Node (PID: 13196) with PeerId: 12D3KooWDjaP99CX25KCisoZ487bYyVpXbCbhupbqtwtawfSmDkw
C:\abc>safenode --log-dir=/tmp/safenode --root-dir=/tmp/safenodedata --peer=/ip4/206.189.29.202/tcp/38379/p2p/12D3KooWN7AJe7wxVckZ6SF3ybYXVgetQ9hkYWHCHLokpSRC31W2
Starting logging to directory: "/tmp/safenode"
Node is stopping in 1s... Node log path: /tmp/safenode
Error: We have been determined to be behind a NAT. This means we are not reachable externally by other nodes. In the future, the network will implement relays that allow us to still join the network.
Location:
safenode\src/bin/safenode/main.rs:235:36
Strange one. If I run a node from say /home/user/Downloads with /home/user/Downloads/safenode --log-dir=.. etc it works as expected - ie it gets detected as being behind NAT and stops after a couple of minutes.
But
If I copy the binary into /usr/local/bin and run it from outside that dir with safenode --log-dir=.. etc it doesn’t die, just keeps on listening. I changed the owner and group from root to my username but it didn’t make any difference.