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.logSearch for error messages:
grep -i error /path/to/spicenet/log/node.logAnalyze log patterns:
awk '/pattern/ {print $0}' /path/to/spicenet/log/node.log2. Monitoring System Resources
Use these commands to get a detailed view of system resource usage:
Overall system status:
htopDisk usage:
df -hNetwork statistics:
netstat -tuln3. Debugging Transaction Issues
If specific transactions are failing:
Retrieve transaction details:
curl -s http://localhost:12346/ledger/txs/TRANSACTION_HASH | jqCheck transaction status:
./target/debug/sov-cli transactions status TRANSACTION_HASHVerify account balances:
curl -s http://localhost:12346/modules/bank/tokens/TOKEN_ID/balances/ADDRESS | jqLast updated
Was this helpful?