Overview
This section helps you diagnose and resolve common issues with NCN Network v2.
Quick Diagnostics
Health Check Commands
# Check Gateway
curl http://localhost:8080/health
# Check P2P Registry (if health endpoint available)
grpcurl -plaintext localhost:50050 grpc.health.v1.Health/Check
# Check process status
ps aux | grep -E "(gateway|compute|registry)"
# Check port bindings
netstat -tlnp | grep -E "(50050|50051|8080|9000|8828)"Log Locations
Gateway
stdout/stderr or ./logs/gateway.log
Compute
stdout/stderr or ./logs/compute.log
Registry
stdout/stderr or ./logs/registry.log
Enable Debug Logging
Troubleshooting Guides
General issues affecting all components:
Build failures
Configuration errors
Network connectivity
Gateway-specific problems:
Connection failures
Payment processing
Compute node management
Compute node problems:
Sandbox failures
Model loading
Execution timeouts
Blockchain and payment problems:
Transaction failures
Confirmation delays
Refund issues
Frequently asked questions
Common Issues Quick Reference
Build Failures
linker not found
Missing build tools
Install build-essential
protoc not found
Missing protoc
Install protobuf-compiler
cannot find -lssl
Missing OpenSSL
Install libssl-dev
Connection Failures
Connection refused
Service not running
Start the service
DNS resolution failed
Wrong hostname
Check service address
TLS handshake failed
Certificate issue
Verify TLS config
Execution Failures
Timeout exceeded
Slow execution
Increase timeout
Out of memory
Model too large
Increase memory limit
Permission denied
Sandbox restriction
Check sandbox config
Error Messages
Gateway Errors
Cause: No compute node supports the requested model Solution:
Verify compute nodes are connected
Check model is in subnet
Verify compute node's
--model-path
Cause: Blockchain transaction not visible Solution:
Wait for more confirmations
Verify RPC URL is correct
Check transaction hash
Compute Node Errors
Cause: Model attempted blocked syscall Solution:
Check model compatibility
Use
SANDBOX_MODE=permissivefor debuggingReview seccomp filter
Cause: Model file missing Solution:
Verify
--model-pathis correctEnable
--sync-modelsfor auto-downloadCheck file permissions
Registry Errors
Cause: Not enough validators available Solution:
Register more validators
Check validator connectivity
Reduce
MIN_VALIDATORS_FOR_CONSENSUS
Diagnostic Tools
Network Diagnostics
Process Diagnostics
Blockchain Diagnostics
Recovery Procedures
Gateway Recovery
Stop gateway:
pkill gateway_nodeCheck state file:
ls -la ./data/gateway_state.jsonBackup if needed:
cp ./data/gateway_state.json ./data/gateway_state.json.bakRestart:
cargo run --bin gateway_node
Compute Node Recovery
Stop compute node:
pkill compute_nodeClear model cache:
rm -rf ./cache/*Verify models:
ls -la ./models/Restart:
cargo run --bin compute_node -- --gateway-addr http://localhost:50051
Registry Recovery
Stop registry:
pkill p2p_registryCheck DHT data:
ls -la ./data/dht/Clear if corrupted:
rm -rf ./data/dht/*Restart:
cargo run --bin p2p_registry_node
Getting Help
Information to Provide
When reporting issues, include:
Component and version:
cargo run --bin gateway_node -- --versionOS and architecture:
uname -aFull error message: Copy complete error
Logs: Relevant log excerpts
Configuration: Sanitized config (no private keys!)
Steps to reproduce: How to trigger the issue
Support Channels
GitHub Issues: Bug reports and feature requests
Documentation: This troubleshooting guide
Community: [Discord/Telegram link if available]
Debug Mode
Enable Debug Mode
Debug Specific Issues
Performance Profiling
Next Steps
Common Issues - Detailed solutions
Gateway Issues - Gateway-specific help
Compute Issues - Compute node help
FAQ - Frequently asked questions
Last updated
