Troubleshooting Guide¶
This comprehensive troubleshooting guide helps you diagnose and resolve common issues with RapidTriageME. Follow the systematic approach below to quickly identify and fix problems.
Quick Diagnosis¶
Start with this quick checklist to identify the issue category:
flowchart TD
START["🔍 Issue with RapidTriageME?"] --> CHECK1{"Can you access<br/>http://localhost:3025?"}
CHECK1 -->|Yes| CHECK2{"Extension visible<br/>in DevTools?"}
CHECK1 -->|No| SERVER["🔧 Server Issues"]
CHECK2 -->|Yes| CHECK3{"AI assistant<br/>recognizes tools?"}
CHECK2 -->|No| EXT["📱 Extension Issues"]
CHECK3 -->|Yes| CHECK4{"Tools working<br/>correctly?"}
CHECK3 -->|No| MCP["🤖 MCP Issues"]
CHECK4 -->|Yes| SUCCESS["✅ System Working"]
CHECK4 -->|No| TOOLS["🛠️ Tool Issues"]
style SERVER fill:#ffcdd2
style EXT fill:#ffe0b2
style MCP fill:#f3e5f5
style TOOLS fill:#e8f5e8
style SUCCESS fill:#c8e6c9
Issue Categories¶
🔧 Server Issues¶
Symptoms: Cannot access localhost:3025, server won't start
Common causes: Port conflicts, permission issues, Node.js problems
📱 Extension Issues¶
Symptoms: No DevTools panel, extension not loading
Common causes: Chrome extension problems, manifest issues
🤖 MCP Issues¶
Symptoms: AI doesn't see tools, MCP connection fails
Common causes: IDE configuration, MCP server problems
🛠️ Tool Issues¶
Symptoms: Screenshots fail, no console logs, Lighthouse errors
Common causes: Browser permissions, service failures
Common Issues and Solutions¶
Server Won't Start (Port 3025)¶
Symptom¶
Diagnosis¶
# Check what's using port 3025
lsof -i :3025
# Example output:
COMMAND PID USER FD TYPE DEVICE SIZE/OFF NODE NAME
node 12345 user 18u IPv6 0x1234 0t0 TCP *:3025 (LISTEN)
Solutions¶
Chrome Extension Not Loading¶
Symptoms¶
- Extension not visible in
chrome://extensions/
- No RapidTriage panel in DevTools
- Extension loads but shows errors
Diagnosis Steps¶
-
Check Extension Status
-
Check Chrome Console
Solutions¶
MCP Server Not Recognized¶
Symptoms¶
- AI assistant doesn't show RapidTriage tools
- "Command not found" errors
- MCP connection timeout
Diagnosis¶
# Test MCP server directly
npx @yarlisai/rapidtriage-mcp
# Expected output:
Connected to browser tools server at http://localhost:3025
MCP Server running...
Available tools: screenshot_capture, get_console_logs, ...
Solutions¶
Screenshot Capture Fails¶
Symptoms¶
- "Screenshot capture failed" errors
- Blank or corrupted images
- Timeout errors
Solutions¶
Diagnostic Commands¶
System Health Check¶
#!/bin/bash
# rapidtriage-health-check.sh
echo "🔍 RapidTriageME Health Check"
echo "============================"
# Check Node.js
echo "📦 Node.js version:"
node --version || echo "❌ Node.js not found"
# Check npm packages
echo "\n📦 Package versions:"
npm list -g @yarlisai/rapidtriage-server @yarlisai/rapidtriage-mcp 2>/dev/null || echo "❌ Packages not installed globally"
# Check server port
echo "\n🔌 Port 3025 status:"
if lsof -i :3025 >/dev/null 2>&1; then
echo "✅ Port 3025 is in use"
lsof -i :3025
else
echo "❌ Port 3025 is free - server not running"
fi
# Check Chrome processes
echo "\n🌐 Chrome processes:"
ps aux | grep -i chrome | grep -v grep | wc -l | xargs echo "Chrome processes:"
# Test server endpoint
echo "\n🏥 Server health:"
curl -s http://localhost:3025/.identity | jq '.status' 2>/dev/null || echo "❌ Server not responding"
echo "\n✅ Health check complete"
Extension Diagnostics¶
// Run in Chrome DevTools console
// Check extension status
console.group('🔍 RapidTriage Extension Diagnostics');
// Check if extension is loaded
const extensionId = chrome.runtime.id;
console.log('Extension ID:', extensionId);
// Check WebSocket connection
if (window.rapidTriageWS) {
console.log('WebSocket state:', window.rapidTriageWS.readyState);
console.log('WebSocket URL:', window.rapidTriageWS.url);
} else {
console.warn('WebSocket not found');
}
// Check DevTools panel
const panel = document.querySelector('#rapidtriage-panel');
console.log('DevTools panel:', panel ? 'Found' : 'Not found');
// Check local storage
console.log('Extension settings:', localStorage.getItem('rapidtriage-settings'));
console.groupEnd();
Network Debugging¶
# Test all endpoints
echo "Testing RapidTriageME endpoints:"
echo "================================="
# Identity endpoint
echo "Identity:"
curl -w "Status: %{http_code}\n" -s http://localhost:3025/.identity | jq .
# Console logs
echo "\nConsole logs:"
curl -w "Status: %{http_code}\n" -s "http://localhost:3025/console-logs?limit=5" | jq .
# Network requests
echo "\nNetwork requests:"
curl -w "Status: %{http_code}\n" -s "http://localhost:3025/network-requests?limit=5" | jq .
# Health check
echo "\nHealth:"
curl -w "Status: %{http_code}\n" -s http://localhost:3025/health | jq .
Performance Issues¶
High Memory Usage¶
Symptoms¶
- Browser becomes slow
- System memory usage increases
- Extension becomes unresponsive
Solutions¶
Slow Screenshot Capture¶
Solutions¶
Advanced Debugging¶
Enable Debug Logging¶
# Server debugging
export DEBUG=rapidtriage:*
export LOG_LEVEL=debug
npx @yarlisai/rapidtriage-server --verbose
# MCP debugging
export DEBUG=mcp:*
npx @yarlisai/rapidtriage-mcp --debug
Capture Network Traffic¶
# Use netstat to monitor connections
netstat -an | grep 3025
# Monitor WebSocket traffic
wscat -c ws://localhost:3025/ws
Debug Extension Background Script¶
1. Open chrome://extensions/
2. Click "Inspect views: background script"
3. Check Console, Network, Sources tabs
4. Set breakpoints in background.js
Getting Help¶
If these troubleshooting steps don't resolve your issue:
Before Reporting Issues¶
- Run diagnostic commands above
- Check logs for error messages
- Try minimal reproduction case
- Update to latest versions
Information to Include¶
# System information
echo "OS: $(uname -a)"
echo "Node: $(node --version)"
echo "Chrome: $(google-chrome --version 2>/dev/null || echo 'Not found')"
# Package versions
npm list @yarlisai/rapidtriage-server @yarlisai/rapidtriage-mcp
# Error logs
tail -n 50 ~/.rapidtriage/logs/error.log
Support Channels¶
-
🐛 GitHub Issues
Bug reports and feature requests
-
💬 Discord Community
Real-time help and discussions
-
📚 Documentation
Common issues and FAQ
-
🔧 Common Issues
Detailed troubleshooting guide
Most issues can be resolved quickly by following this systematic troubleshooting approach. Don't hesitate to reach out to the community for help!