Troubleshooting¶
Solutions to common issues.
Quick Checks¶
node --version # Need v22+
docker info # Docker running?
npx hardhat arb:node status # Node running?
Docker Issues¶
Docker Not Running¶
Fix: Start Docker Desktop or sudo systemctl start docker
Permission Denied (Linux)¶
Fix:
Port Issues¶
Port Already in Use¶
Fix: Use different port or stop existing process:
# Option 1: Different port
npx hardhat arb:node start --http-port 9545
# Option 2: Find and stop process
lsof -i :8547
kill <PID>
Node Already Running¶
Fix:
Random Port Conflicts (Auto-Start)¶
The auto-start feature uses random ports (10000-60000). In rare cases, the selected port may be in use.
Symptoms:
- Tests fail to connect
- "Connection refused" errors during auto-start
Fix: Simply re-run the command. A new random port will be selected:
If the issue persists, check for processes using ports in the 10000-60000 range:
Temp Container Issues¶
Orphaned Temp Containers¶
If a test process is killed abruptly (e.g., kill -9), temporary containers may not be cleaned up.
Symptoms:
- Multiple
nitro-devnode-tmp-*containers running - Docker resources accumulating
Fix: Remove orphaned temp containers:
# List temp containers
docker ps -a | grep nitro-devnode-tmp
# Remove all temp containers
docker rm -f $(docker ps -aq --filter "name=nitro-devnode-tmp")
Container Not Cleaned Up After Tests¶
Normally, temp containers are cleaned up automatically. If they persist:
Fix:
# Check running containers
docker ps | grep nitro-devnode
# Stop and remove specific container
docker stop <container_id>
docker rm <container_id>
Stylus Issues¶
cargo-stylus Not Found¶
Fix:
WASM Target Missing¶
Fix:
Check Fails¶
Fix: Ensure node is running (Stylus infrastructure is deployed automatically):
Stylus Deploy Fails¶
Fix: Restart the node (Stylus infrastructure is deployed automatically on start):
Node Issues¶
Node Not Responding¶
Fix:
npx hardhat arb:node status
# If not running:
npx hardhat arb:node start
# If stuck:
npx hardhat arb:node stop
docker rm -f nitro-devnode
npx hardhat arb:node start
Node Starts But RPC Fails¶
Fix: Wait for the node to be fully ready:
The node may take 10-30 seconds to be ready after starting.
Hardhat Issues¶
Plugin Not Found¶
Fix:
Hardhat 2 Compatibility¶
Fix: This plugin requires Hardhat 3. Upgrade Hardhat:
Getting Help¶
- Check GitHub Issues
- Open a new issue with:
- Error message
- Steps to reproduce
- Environment (OS, Node version, Docker version)
- Output of
docker ps -a | grep nitro