website logo
⌘K
📜Overview
Getting Started
DOS Tokenomics
Network Details
DOS Ecosystem
Validators
Run a Mainnet Node on DOS Chain
Monitor and troubleshoot your validator
Bridge
Migrate to DOS Chain
Polygon
BNB Chain
Docs powered by archbee 

Monitor and troubleshoot your validator

9min

Resource

  • https://docs.avax.network/apis/avalanchego/apis/info
  • https://docs.avax.network/apis/avalanchego/apis/health

How to check avalanchego logs?

tail .avalanchego/logs/main.log

How to check the subnet successfully deployed?

if the logs file contain these lines:

[04-17|15:50:45.332] INFO server/server.go:269 adding route {"url": "/ext/bc/22v7AG7h6qaVxd4bLvAsSsg2LZ4RCn5iVYgFn7a2Fj1LCuYwjv", "endpoint": "/rpc"} [04-17|15:50:45.332] INFO server/server.go:269 adding route {"url": "/ext/bc/22v7AG7h6qaVxd4bLvAsSsg2LZ4RCn5iVYgFn7a2Fj1LCuYwjv", "endpoint": "/ws"}

If you place the subnet-evm in wrong directory or wrong file name, what happens?

You will find this line:

ERROR node/node.go:849 failed to register VM {"vmID": "X5tFvg9JwoXgaYPQbceSzhGoCF6dhwrDm5BnAav6meFp3xxmg", "error": "handshake failed: vm process not found"}

how to get node information?

curl -X POST --data '{ "jsonrpc":"2.0", "id" :1, "method" :"info.getNodeID" }' -H 'content-type:application/json;' 127.0.0.1:9650/ext/info

sample output:

{ "jsonrpc": "2.0", "result": { "nodeID": "NodeID-5mb46qkSBj81k9g9e4VFjGGSbaaSLFRzD", "nodePOP": { "publicKey": "0x8f95423f7142d00a48e1014a3de8d28907d420dc33b3052a6dee03a3f2941a393c2351e354704ca66a3fc29870282e15", "proofOfPossession": "0x86a3ab4c45cfe31cae34c1d06f212434ac71b1be6cfe046c80c162e057...." } }, "id": 1 }

Make sure your node healthy:

curl -X POST --data '{ "jsonrpc":"2.0", "id" :1, "method" :"health.health" }' -H 'content-type:application/json;' 127.0.0.1:9650/ext/health

Your should see the words "healthy": true in the response object.

Updated 20 Apr 2023
Did this page help you?
Yes
No
PREVIOUS
Run a Mainnet Node on DOS Chain
NEXT
Bridge
Docs powered by archbee 
TABLE OF CONTENTS
Resource
How to check avalanchego logs?
How to check the subnet successfully deployed?
If you place the subnet-evm in wrong directory or wrong file name, what happens?
how to get node information?
Make sure your node healthy: