🔠Useful server commands

THIS IS A NEW VERSION OF THE SERVER COMMANDS

If you are looking for the old version, you will find it here OLD - Useful server commands

Node service commands

Please look in Node Service Commands

Node info (peerID, balance, frame number...)

Please look in Check your node info

Kill node process

Use this in case you need to stop the node and kill the process.

If you are running the node as a service, the service will restart the node immediately, so use the command service ceremonyclient stop instead.

pkill node && pkill -f "go run ./..."

Empty "store" folder

CAREFUL: this will empty your "store" folder, only use it if you know what you are doing. Sometimes when you receive errors that you cannot debug, you can solve by killing the node process, emptying the store folder and starting the node again from scratch.

sudo rm -r ~/ceremonyclient/node/.config/store

Backup keys.yml and config.yml to a root/backup folder

This may be useful if you have to clean up your ceremonyclient folder and don't want to download locally your config.yml and keys.yml. You can just back up them remotely on a root/backup folder and copy them again in the node folder later on.

Copy the files from your node folder to the root/backup folder

mkdir -p /root/backup && cp /root/ceremonyclient/node/.config/config.yml /root/backup && cp /root/ceremonyclient/node/.config/keys.yml /root/backup

Copy the files back from root/backup to your node folder (a copy will also remain in the root/backup folder)

cp /root/backup/{config.yml,keys.yml} /root/ceremonyclient/node/.config/

Check total nodes connected to the network

Install grpcURL

go install github.com/fullstorydev/grpcurl/cmd/grpcurl@latest

Run

/root/go/bin/grpcurl -plaintext -max-msg-sz 5000000 localhost:8337 quilibrium.node.node.pb.NodeService.GetPeerInfo | grep peerId | wc -l

Last updated