9.2 Advanced Debugging Techniques
1. Analyzing Node Logs
Spicenet nodes output detailed logs that can be crucial for troubleshooting:
View real-time logs:
tail -f /path/to/spicenet/log/node.log
Search for error messages:
grep -i error /path/to/spicenet/log/node.log
Analyze log patterns:
awk '/pattern/ {print $0}' /path/to/spicenet/log/node.log
2. Monitoring System Resources
Use these commands to get a detailed view of system resource usage:
Overall system status:
htop
Disk usage:
df -h
Network statistics:
netstat -tuln
3. Debugging Transaction Issues
If specific transactions are failing:
Retrieve transaction details:
curl -s http://localhost:12346/ledger/txs/TRANSACTION_HASH | jq
Check transaction status:
./target/debug/sov-cli transactions status TRANSACTION_HASH
Verify account balances:
curl -s http://localhost:12346/modules/bank/tokens/TOKEN_ID/balances/ADDRESS | jq
Last updated
Was this helpful?