Troubleshooting¶
Common issues and solutions when using the Nautobot MCP Server.
Installation Issues¶
Python Version Errors¶
Symptom:
Solution: Ensure you're using Python 3.11:
Dependency Installation Failures¶
Symptom:
Solution:
Connection Issues¶
Nautobot Connection Failed¶
Symptom:
Solutions:
-
Check URL:
-
Verify Token:
-
Check Environment:
SSL Certificate Errors¶
Symptom:
Solution for Development:
Solution for Production: Install proper certificates or configure SSL properly.
MCP Integration Issues¶
VS Code Can't Find Server¶
Symptom: Server doesn't appear in Copilot's available tools.
Solutions:
-
Check Configuration Path: Ensure path in
mcp.jsonis absolute: -
Restart VS Code: Close all windows and reopen.
-
Check Output Log:
View → Output → GitHub Copilot Chat
Tools Not Working¶
Symptom: Copilot doesn't use MCP tools.
Solutions:
-
Verify Server Status: Check VS Code Output panel for errors.
-
Test Manually:
-
Be Explicit:
Knowledge Base Issues¶
Repository Clone Fails¶
Symptom:
Solutions:
-
Add GitHub Token:
-
Check Repository Access:
-
Verify Disk Space:
Search Returns No Results¶
Symptom: Knowledge base searches return empty results.
Solutions:
-
Initialize Repositories:
-
Check Repository Status: Use the
nautobot_kb_repo_statustool. -
Verify ChromaDB:
Performance Issues¶
Slow Startup¶
Symptom: Server takes minutes to start.
Causes & Solutions:
- First-time Model Download:
- Normal on first run (~90MB download)
-
Subsequent starts will be faster
-
Repository Indexing:
- Happens on first run or after updates
-
Can take 5-10 minutes for large repos
-
Disable Auto-Update: Comment out auto-update in
server.pytemporarily.
Slow Searches¶
Symptom: Searches take > 5 seconds.
Solutions:
-
Reduce Search Results:
-
Use Lighter Model:
-
Check Disk I/O:
Database Issues¶
ChromaDB Permission Errors¶
Symptom:
Solution:
ChromaDB Corruption¶
Symptom:
Solution:
# Backup
cp -r backend/ backend_backup/
# Remove and reinitialize
rm -rf backend/nautobot_mcp/
python server.py # Will recreate
API Issues¶
401 Unauthorized¶
Symptom: All API calls return 401.
Solutions:
-
Check Token:
-
Verify Environment:
429 Rate Limit¶
Symptom:
Solution: Wait or implement request throttling in your application.
500 Server Error¶
Symptom:
Solution: Check Nautobot server logs for the actual error.
Logging & Debugging¶
Enable Debug Logging¶
View Logs¶
# Run with output
python server.py 2>&1 | tee server.log
# In VS Code
# View → Output → GitHub Copilot Chat
Test Components¶
# Test endpoint searcher
from helpers.endpoint_searcher_chroma import EndpointSearcherChroma
searcher = EndpointSearcherChroma()
results = searcher.search("device", n_results=3)
print(results)
# Test knowledge base
from helpers.nb_kb_v2 import EnhancedNautobotKnowledge
kb = EnhancedNautobotKnowledge()
results = kb.search("custom fields", n_results=3)
print(results)
Getting Help¶
Before Asking for Help¶
- Check this troubleshooting guide
- Review logs with
LOG_LEVEL=DEBUG - Test individual components
- Verify configuration
Where to Get Help¶
- GitHub Issues: Open an issue
- Discussions: GitHub Discussions
- Email: kvncampos@duck.com
What to Include¶
When reporting issues:
- Error messages (full traceback)
- Configuration (sanitized
.env) - Steps to reproduce
- Environment (OS, Python version)
- Logs (with DEBUG level)
Next Steps¶
- Configuration - Configuration reference
- Examples - Usage examples
- Architecture - System design