Announcement:
https://x.com/nockchain/status/1918500089833644100
Github repo:
Announcement:
https://x.com/nockchain/status/1918500089833644100
Github repo:
After successfully booting my node and exiting, I get the following error when I attempt to run it again using make run-nockchain-leader
. I assume this is because there is another command I should be using to restart the node?
I (10:07:32) [cr] kernel::boot: kernel: starting
I (10:07:32) [cr] kernel::form: Checkpoint file(s) found, validating and loading from jam
I (10:07:33) nockchain: Discarding existing peer ID and generating a new one
I (10:07:33) nockchain: Generated new identity as peer 12D3KooWCaVZG5QsCoqf1MsihDcBXPENJBhF7omcsMHQsv9bxZZA
allowed_peers_path: None
I (10:07:33) libp2p_swarm: local_peer_id=12D3KooWCaVZG5QsCoqf1MsihDcBXPENJBhF7omcsMHQsv9bxZZA
D (10:07:33) nockchain: peer_multiaddrs: [/ip4/127.0.0.1/udp/3006/quic-v1]
I (10:07:33) nockchain: Dialed initial peer /ip4/127.0.0.1/udp/3006/quic-v1
D (10:07:33) nockchain_bitcoin_sync: Starting bitcoin_watcher_driver with node_type: Leader
D (10:07:33) nockchain_bitcoin_sync: No Bitcoin RPC connection provided, using test genesis block
D (10:07:33) nockchain_bitcoin_sync: Creating test genesis block for leader node
Error: Os { code: 48, kind: AddrInUse, message: "Address already in use" }
make: *** [run-nockchain-leader] Error 1
This AddrInUse error occurs because the node attempts to bind to a socket that has an existing .sock
file. You can quickly fix it by simply deleting the .sock
file for nockchain-leader. Alternatively, I made a commit that should fix this bug by deleting it automatically before binding, but I was told they’d include this in the repository tomorrow.
Sharing my step-by-step progress/troubleshooting here with running nockchain on a 2GB/2CPU AMD Digital Ocean VPS so anyone will be able to follow the steps exactly. Firstly, here is a screenshot of the state of the VPS after running ‘apt update && apt upgrade -y’ and rebooting.
Install Rust: curl --proto ‘=https’ --tlsv1.2 -sSf https://sh.rustup.rs
| sh
Reboot as suggested: reboot
Clone repository and enter nockchain directory: git clone https://github.com/zorp-corp/nockchain.git
cd nockchain
Install make command: apt install make
Install build tools: apt install build-essential
Install choo compiler: make install-choo
Compile Hoon code: make build-hoon-all
And this is where the novice Linux user like myself runs into a “thread panic” error that I’ve been unable to troubleshoot(via ChatGPT/Google etc). Errors shown in screenshots below.
Hmm, make sure you have enough RAM.
Also, install libclang and try again.
Thanks to your post I revisited the memory issue, which turned out to be the solution(first tried installing libclang but still had the same error). I am monitoring memory usage in real-time and didn’t see any spikes near my 2GB max, but regardless, I increased my swapspace from 2GB to 8GB and was able to successfully compile the Hoon code and continue the process.
So to anyone following this process, next create 8GB of swapspace: fallocate -l 8G /swapfile && chmod 600 /swapfile && mkswap /swapfile && swapon /swapfile && echo ‘/swapfile none swap sw 0 0’ >> /etc/fstab && free -h
Then compile the Hoon Code: make build-hoon-all
Then compile the Rust code for the node: make build
Then start the node: make run-nockchain-leader
Then we are running!!!
Next I’ll reply to my original post with the solution to my current problem of finding no peers(assuming there is an unofficial testnet running)…
And thanks again CasimirPolandZorp!!!