Troubleshooting Guide
Quick Diagnostic Tool
NEW: Use the automated troubleshooting skill for instant diagnosis:- ✅ Check PM2 worker status and health
- ✅ Verify database existence and integrity
- ✅ Test worker service connectivity
- ✅ Validate dependencies installation
- ✅ Check port configuration and availability
- ✅ Provide automated fixes for common issues
v5.x Specific Issues
Viewer UI Not Loading
Symptoms: Cannot access http://localhost:37777, page doesn’t load, or shows connection error. Solutions:-
Check if worker is running on port 37777:
-
Verify worker is healthy:
-
Check worker logs for errors:
-
Restart worker service:
-
Check for port conflicts:
Theme Toggle Not Persisting
Symptoms: Theme preference (light/dark mode) resets after browser refresh. Solutions:-
Check browser localStorage is enabled:
-
Verify settings endpoint is working:
-
Clear localStorage and try again:
- Check for browser privacy mode (blocks localStorage)
SSE Connection Issues
Symptoms: Viewer shows “Disconnected” status, updates not appearing in real-time. Solutions:-
Check SSE endpoint is accessible:
-
Check browser console for errors:
- Open DevTools (F12)
- Look for EventSource errors
- Check Network tab for failed /stream requests
-
Verify worker is running:
-
Check for network/proxy issues blocking SSE
- Corporate firewalls may block SSE
- Try disabling VPN temporarily
-
Restart worker and refresh browser:
Chroma/Python Dependency Issues (v5.0.0+)
Symptoms: Installation fails with chromadb or Python-related errors. Solutions:-
Verify Python 3.8+ is installed:
-
Install chromadb manually:
-
Check chromadb health:
-
Windows-specific: Ensure Python is in PATH:
- If Chroma continues to fail, hybrid search will gracefully degrade to SQLite FTS5 only
Smart Install Caching Issues (v5.0.3+)
Symptoms: Dependencies not updating after plugin update, stale version marker. Solutions:-
Clear install cache:
-
Force reinstall:
-
Check version marker:
- Restart Claude Code after manual install
PM2 ENOENT Error on Windows (v5.1.1 Fix)
Symptoms: Worker fails to start with “ENOENT” error on Windows. Solutions:-
This was fixed in v5.1.1 - update to latest version:
-
If still experiencing issues, verify PM2 path:
-
Manual PM2 install if needed:
Worker Service Issues
Worker Service Not Starting
Symptoms: Worker doesn’t start, orpm2 status shows no processes.
Solutions:
-
Check if PM2 is running:
-
Try starting manually:
-
Check worker logs for errors:
-
Full reset:
-
Verify PM2 is installed:
Port Allocation Failed
Symptoms: Worker fails to start with “port already in use” error. Solutions:-
Check if port 37777 is in use:
-
Kill process using the port:
-
Or use a different port:
-
Verify new port:
Worker Keeps Crashing
Symptoms: Worker restarts repeatedly, PM2 shows high restart count. Solutions:-
Check error logs:
-
Check memory usage:
-
Increase memory limit in
ecosystem.config.cjs: -
Check database for corruption:
Worker Not Processing Observations
Symptoms: Observations saved but not processed, no summaries generated. Solutions:-
Check worker is running:
-
Check worker logs:
-
Verify database has observations:
-
Restart worker:
Hook Issues
Hooks Not Firing
Symptoms: No context appears, observations not saved. Solutions:-
Verify hooks are configured:
-
Test hooks manually:
-
Check hook permissions:
-
Verify hooks.json is valid JSON:
Context Not Appearing
Symptoms: No session context when Claude starts. Solutions:-
Check if summaries exist:
-
View recent sessions:
-
Check database integrity:
-
Manually test context hook:
Hooks Timeout
Symptoms: Hook execution times out, errors in Claude Code. Solutions:-
Increase timeout in
plugin/hooks/hooks.json: -
Check worker is running (prevents timeout waiting for worker):
-
Check database size (large database = slow queries):
-
Optimize database:
Dependencies Not Installing
Symptoms: SessionStart hook fails with “module not found” errors. Solutions:-
Manually install dependencies:
-
Check npm is available:
-
Check package.json exists:
Database Issues
Database Locked
Symptoms: “database is locked” errors in logs. Solutions:-
Close all connections:
-
Check for stale locks:
-
Kill processes holding locks:
-
Restart worker:
Database Corruption
Symptoms: Integrity check fails, weird errors. Solutions:-
Check database integrity:
-
Backup database:
-
Try to repair:
-
Nuclear option - recreate database:
FTS5 Search Not Working
Symptoms: Search returns no results, FTS5 errors. Solutions:-
Check FTS5 tables exist:
-
Rebuild FTS5 tables:
-
Check triggers exist:
Database Too Large
Symptoms: Slow performance, large database file. Solutions:-
Check database size:
-
Vacuum database:
-
Delete old sessions:
-
Rebuild FTS5 after deletion:
MCP Search Issues
Search Tools Not Available
Symptoms: MCP search tools not visible in Claude Code. Solutions:-
Check MCP configuration:
-
Verify search server is built:
-
Rebuild if needed:
- Restart Claude Code
Search Returns No Results
Symptoms: Valid queries return empty results. Solutions:-
Check database has data:
-
Verify FTS5 tables populated:
-
Test simple query:
-
Check query syntax:
Token Limit Errors
Symptoms: “exceeded token limit” errors from MCP. Solutions:-
Use index format:
-
Reduce limit:
-
Use filters to narrow results:
-
Paginate results:
Performance Issues
Slow Context Injection
Symptoms: SessionStart hook takes too long. Solutions:-
Reduce context sessions:
-
Optimize database:
-
Add indexes (if missing):
Slow Search Queries
Symptoms: MCP search tools take too long. Solutions:- Use more specific queries
- Add date range filters
- Add type/concept filters
- Reduce result limit
- Use index format instead of full format
High Memory Usage
Symptoms: Worker uses too much memory, frequent restarts. Solutions:-
Check current usage:
-
Increase memory limit:
-
Restart worker:
- Clean up old data (see “Database Too Large” above)
Installation Issues
Plugin Not Found
Symptoms:/plugin install claude-mem fails.
Solutions:
-
Add marketplace first:
-
Then install:
-
Verify installation:
Build Failures
Symptoms:npm run build fails.
Solutions:
-
Clean and reinstall:
-
Check Node.js version:
-
Check for TypeScript errors:
Missing Dependencies
Symptoms: “Cannot find module” errors. Solutions:-
Install dependencies:
-
Check package.json:
-
Verify node_modules exists:
Debugging
Enable Verbose Logging
Check Correlation IDs
Trace observations through the pipeline:Inspect Worker State
Database Inspection
Common Error Messages
”Worker service not responding”
Cause: Worker not running or port mismatch. Solution: Restart worker withnpm run worker:restart.
”Database is locked”
Cause: Multiple processes accessing database. Solution: Stop worker, kill stale processes, restart.”FTS5: syntax error”
Cause: Invalid search query syntax. Solution: Use simpler query, avoid special characters.”SQLITE_CANTOPEN”
Cause: Database file permissions or missing directory. Solution: Check~/.claude-mem/ exists and is writable.
”Module not found”
Cause: Missing dependencies. Solution: Runnpm install.
Getting Help
If none of these solutions work:-
Check logs:
-
Create issue: GitHub Issues
- Include error messages
- Include relevant logs
- Include steps to reproduce
- Check existing issues: Someone may have already solved your problem
Next Steps
- Configuration - Customize Claude-Mem
- Development - Build from source
- Architecture - Understand the system

