Common Issues
Out of Memory Errors
Symptom
Cause
Large repositories (10,000+ files) may exceed the default Node.js heap limit.Solution
GitNexus automatically allocates 8GB heap on first run. If you still hit OOM: Option 1: Manual heap increasePrevention
- Exclude large directories: Add to
.gitignorebefore indexing - Skip generated files: Ensure
dist/,build/,node_modules/are ignored - Use embedding limit: Embeddings auto-skip for repos >50,000 nodes
Stale Index Warning
Symptom
Cause
Your repository has new commits since the last index. The knowledge graph may be out of sync with your code.Solution
Option 1: Re-analyze (incremental)Check Index Status
- Last indexed commit
- Current commit
- Number of nodes/edges
- Index freshness
Parser Errors
Symptom
Cause
Tree-sitter may fail on:- Minified code (e.g.,
bundle.min.js) - Extremely large files (>10MB single file)
- Syntax errors (incomplete or invalid code)
- Unsupported language (file extension not recognized)
Solution
Option 1: Exclude problematic files Add to.gitignore:
.gitignore. Add files you want to skip:
KuzuDB Errors
Symptom
Cause
- Corrupted database (power loss, disk error)
- Permission issues (can’t write to
.gitnexus/) - Disk full (no space for database)
Solution
Option 1: Delete and re-indexEmbedding Model Download Fails
Symptom
Cause
- No internet connection
- Firewall blocking Hugging Face
- Disk full (model is ~90MB)
Solution
Option 1: Skip embeddingsMCP Server Not Responding
Symptom
- Cursor/Claude shows “MCP server error”
- Tools not available
- “gitnexus not found”
Cause
- Not installed globally (using
npxis recommended) - Wrong config path
- Server crashed
Solution
Option 1: Restart editor Close and reopen Cursor/Claude/Windsurf. Option 2: Check MCP config Verify config file exists:”Repository not indexed” Error
Symptom
Cause
You’re trying to query a repo that hasn’t been indexed yet.Solution
Option 1: Index the repogitnexus analyze again.
Slow Indexing Performance
Symptom
Indexing takes >10 minutes for a medium-sized repo (~1,000 files).Cause
- Slow disk (HDD vs SSD)
- Many large files (e.g., 1MB+ source files)
- CPU-bound (single-core or old CPU)
- Embeddings enabled (adds significant time)
Solution
Option 1: Disable embeddings.gitignore:
Swift Parser Installation Fails
Symptom
Cause
tree-sitter-swift is an optional dependency that may fail on some platforms.
Solution
Option 1: Ignore it This is a warning, not an error. GitNexus will work for all other languages. Option 2: Install without optional dependenciesPerformance Tips
For Large Repositories
- Skip embeddings - Use default (no
--embeddingsflag) - Exclude generated code - Add
dist/,build/to.gitignore - Use SSD - Significantly faster than HDD
- Increase heap - Use
NODE_OPTIONS="--max-old-space-size=16384" - Run overnight - Very large repos (50,000+ files) may take hours
For Faster Queries
- Use specific queries - Narrow searches are faster than broad ones
- Leverage processes - Results grouped by execution flow
- Use context tool - More efficient than raw Cypher for symbol lookups
- Cache embeddings - Re-index without
--forceto reuse embeddings
For Web UI
- Use local backend - Run
gitnexus servefor already-indexed repos - Limit file selection - Don’t upload entire repos (use CLI instead)
- Use Chrome/Edge - WebGPU support for faster embeddings
Diagnostic Commands
Check Index Status
- Index freshness
- Node/edge counts
- Last indexed commit
- Embedding status
List All Indexed Repos
Verify KuzuDB
Test MCP Connection
Clean Up and Reset
Delete Index for Current Repo
.gitnexus/ directory and unregisters from global registry.
Delete All Indexes
~/.gitnexus/registry.json- All per-repo
.gitnexus/directories (requires confirmation)
Re-index from Scratch
Clear Embedding Model Cache
Debug Mode
Enable Verbose Logging
- Detailed pipeline progress
- Parser stats
- Memory usage
- Worker thread activity
Inspect Database
Use KuzuDB CLI to inspect the graph:Getting Help
GitHub Issues
Report bugs or request features: github.com/abhigyanpatwari/GitNexus/issuesDiscussions
Ask questions or share tips: github.com/abhigyanpatwari/GitNexus/discussionsDiscord
Join the community: Discord link in repoError Reference
Exit Codes
0- Success1- General error (parse failure, disk error, etc.)130- Interrupted (Ctrl+C)
Common Error Messages
| Error | Cause | Solution |
|---|---|---|
Not a git repository | Not inside a git repo | Run git init or cd to a git repo |
KuzuDB not initialized | Database connection failed | Run gitnexus clean then re-analyze |
Embedder not initialized | Model failed to load | Skip embeddings or check internet |
Worker thread timeout | Parsing stuck on a file | Exclude the problematic file |
ENOSPC: no space left | Disk full | Free up disk space |
EACCES: permission denied | Can’t write to .gitnexus/ | Check file permissions |
Best Practices
Before Indexing
- Ensure
.gitignoreis clean - Exclude build artifacts - Commit or stash changes - Cleaner index state
- Close other apps - Free up memory for large repos
After Indexing
- Verify status - Run
gitnexus status - Test MCP tools - Try
querytool in your editor - Re-index on major changes - After large refactors or branch switches
Regular Maintenance
- Re-index periodically - Run
gitnexus analyzeafter big changes - Check for updates -
npm update -g gitnexus(if installed globally) - Clean old indexes - Delete indexes for archived projects