This guide will help you diagnose and resolve common issues you might encounter while running ON1Builder.
Use this flowchart to quickly diagnose and navigate to the appropriate section for your issue:
flowchart TD
Start([Start Troubleshooting]) --> Running{Is ON1Builder
running?}
Running -->|No| StartupIssue{Startup Issue}
Running -->|Yes| RunningIssue{System Running
But Has Issues}
StartupIssue -->|Config Error| ConfigIssues[Configuration Issues]
StartupIssue -->|Connection Error| ConnectionIssues[Connection Issues]
StartupIssue -->|Dependency Error| DependencyIssues[Installation & Dependency Issues]
RunningIssue -->|Not Executing
Transactions| TxIssues[Transaction Issues]
RunningIssue -->|Slow Performance| PerfIssues[Performance Issues]
RunningIssue -->|No Alerts/Metrics| MonitorIssues[Monitoring Issues]
RunningIssue -->|Database Problems| DBIssues[Database Issues]
RunningIssue -->|Security Concerns| SecurityIssues[Security Issues]
ConfigIssues --> Solutions[Find Solution
in Relevant Section]
ConnectionIssues --> Solutions
DependencyIssues --> Solutions
TxIssues --> Solutions
PerfIssues --> Solutions
MonitorIssues --> Solutions
DBIssues --> Solutions
SecurityIssues --> Solutions
style Start fill:#bbf,stroke:#333,stroke-width:2px
style Solutions fill:#bfb,stroke:#333,stroke-width:2px
style ConfigIssues fill:#fbb,stroke:#333,stroke-width:1px
style ConnectionIssues fill:#fbb,stroke:#333,stroke-width:1px
style TxIssues fill:#fbb,stroke:#333,stroke-width:1px
style PerfIssues fill:#fbb,stroke:#333,stroke-width:1px
Below are the most common issues and their solutions, organized by category:
Symptoms:
Possible Causes:
Solutions:
# Test HTTP endpoint
curl -X POST -H "Content-Type: application/json" --data '{"jsonrpc":"2.0","method":"eth_blockNumber","params":[],"id":1}' YOUR_HTTP_ENDPOINT
# Configure backup endpoints in your config file
HTTP_ENDPOINT: "https://mainnet.infura.io/v3/YOUR_KEY"
BACKUP_HTTP_ENDPOINTS:
- "https://eth-mainnet.alchemyapi.io/v2/YOUR_KEY"
- "https://rpc.ankr.com/eth"
# Add retry configuration
CONNECTION_RETRIES: 5
RETRY_DELAY_SECONDS: 2
AUTO_RECONNECT: true
Symptoms:
Solutions:
WS_HEARTBEAT_INTERVAL: 30 # Send heartbeat every 30 seconds
WS_AUTO_RECONNECT: true
WS_MAX_RECONNECT_ATTEMPTS: 10
Symptoms:
Solutions:
python -m on1builder validate-config --config your_config.yaml
configs/chains/example_config.yamlSymptoms:
Solutions:
export WALLET_KEY=your_private_key
python -m on1builder debug-env --config your_config.yaml
Symptoms:
Possible Causes:
Solutions:
python -m on1builder wallet-balance --address YOUR_WALLET_ADDRESS
# Adjust gas settings in config
MAX_GAS_PRICE_GWEI: 150 # Increase maximum gas price
GAS_PRICE_MULTIPLIER: 1.2 # Use 120% of recommended gas price
SLIPPAGE_DEFAULT: 0.05 # 5% slippage tolerance
SIMULATE_TRANSACTIONS: true
Symptoms:
Solutions:
python -m on1builder reset-nonce --address YOUR_WALLET_ADDRESS
AUTO_NONCE_MANAGEMENT: true
python -m on1builder clear-pending-tx --address YOUR_WALLET_ADDRESS
Symptoms:
Solutions:
# Subscribe only to necessary events
SUBSCRIBE_NEW_BLOCKS: true
SUBSCRIBE_PENDING_TX: false # Disable if not needed
BLOCK_POLLING_INTERVAL_MS: 5000 # Increase polling interval
# Run with resource monitoring
python -m on1builder run --config your_config.yaml --monitor-resources
MAX_CONCURRENT_REQUESTS: 10
Symptoms:
Solutions:
GAS_PRICE_STRATEGY: "fast"
PRIORITY_FEE_GWEI: 2
PERFORMANCE_LOGGING: true
Symptoms:
Solutions:
# Verify metrics endpoint is accessible
curl http://localhost:9090/metrics
METRICS_DEBUG: true
Symptoms:
Solutions:
LOG_LEVEL: "DEBUG"
chmod 755 data/logs/
LOG_FORMAT: "json"
Symptoms:
Solutions:
DB_TYPE: "sqlite" # or "postgresql"
DB_PATH: "data/db/on1builder.db" # for SQLite
# For PostgreSQL
# DB_HOST: "localhost"
# DB_PORT: 5432
# DB_NAME: "on1builder"
# DB_USER: "on1builder"
# DB_PASSWORD: "${DB_PASSWORD}"
# For SQLite
ls -la data/db/
# For PostgreSQL
psql -h localhost -U on1builder -d on1builder -c "SELECT 1"
python -m on1builder init-db --config your_config.yaml
Symptoms:
Solutions:
WALLET_KEY: "${WALLET_KEY}" # Store actual key in .env file
chmod 600 .env
USE_HARDWARE_WALLET: true
HARDWARE_WALLET_TYPE: "ledger"
Symptoms:
Solutions:
SECURITY_LOGGING: true
API_ENABLE_AUTH: true
API_ALLOWED_IPS: ["127.0.0.1", "10.0.0.0/24"]
ON1Builder includes several diagnostic tools to help troubleshoot issues:
Test your blockchain connection:
python -m on1builder test-connection --endpoint YOUR_HTTP_ENDPOINT
Validate your configuration file:
python -m on1builder validate-config --config your_config.yaml
Run a complete system diagnostic:
python -m on1builder diagnostics --config your_config.yaml
Analyze logs for patterns and issues:
python -m on1builder analyze-logs --log-file data/logs/on1builder.log
If you're unable to resolve an issue using this guide:
python -m on1builder collect-diagnostics --output diagnostic_report.zip
After resolving your issues, consider: