Troubleshooting
Common issues and solutions.
Worker Issues
Worker Not Starting
Symptoms: Worker service doesn't start or crashes immediately.
Solutions:
- Check if port is already in use:
lsof -i :7432- Kill existing process:
kill $(cat ~/.mem-oracle/worker.pid)- Start with a different port:
MEM_ORACLE_PORT=8080 bun run workerWorker Not Responding
Symptoms: Health check fails or requests timeout.
Check health:
curl http://localhost:7432/healthView logs:
tail -f ~/.mem-oracle/worker.logRestart worker:
# Stop
kill $(cat ~/.mem-oracle/worker.pid)
# Start
bun run workerIndexing Issues
Indexing Stuck
Symptoms: Status shows pages stuck in "pending" state.
Solutions:
- Check crawler logs:
tail -100 ~/.mem-oracle/worker.log | grep -i crawl- Verify the URL is accessible:
curl -I https://example.com/docs- Force re-index:
curl -X POST http://localhost:7432/refresh \
-H "Content-Type: application/json" \
-d '{"baseUrl": "https://example.com", "force": true}'Pages Failing to Index
Symptoms: Many pages in "failed" status.
Common causes:
- Rate limiting by the target site
- JavaScript-rendered content
- Authentication required
Solutions:
- Increase request delay:
{
"crawler": {
"requestDelay": 2000
}
}- Check failed pages:
curl http://localhost:7432/status | jq '.docsets[].indexStatus.errorPages'Content Not Extracted
Symptoms: Pages indexed but no meaningful content.
Solutions:
-
The site may use JavaScript rendering. Mem- Oracle works best with static HTML or server-rendered pages.
-
Check if the site has a sitemap or alternative documentation source.
Search Issues
No Results Found
Symptoms: Search returns empty results.
Solutions:
- Verify documentation is indexed:
curl http://localhost:7432/status- Try a broader query with a higher topK:
curl -X POST http://localhost:7432/retrieve \
-H "Content-Type: application/json" \
-d '{"query": "getting started", "topK": 10}'- Check if the query matches indexed content topics.
Low Quality Results
Symptoms: Results don't match the query well.
Solutions:
- Use a better embedding provider:
{
"embedding": {
"provider": "openai",
"model": "text-embedding-3-small",
"apiKey": "sk-..."
}
}- Re-index after changing providers:
# Delete existing docset
curl -X DELETE http://localhost:7432/docset/{id}
# Re-index
curl -X POST http://localhost:7432/index ...Plugin Issues
Claude Code Plugin Not Working
Symptoms: Documentation not being injected into prompts.
Solutions:
- Verify plugin is installed:
/plugin list- Check worker is running:
curl http://localhost:7432/health- Reinstall plugin:
/plugin remove mem-oracle
/plugin marketplace add jagjeevanak/mem-oracle && /plugin install mem-oracle- Restart Claude Code.
OpenCode Plugin Not Loading
Symptoms: Plugin not recognized by OpenCode.
Solutions:
- Verify files are in correct location:
ls -la .opencode/plugin/
ls -la .opencode/skills/
ls -la .opencode/command/- Check file permissions:
chmod +x .opencode/plugin/mem-oracle.ts- Restart OpenCode.
Storage Issues
Disk Space
Symptoms: Errors about disk space or storage.
Check usage:
du -sh ~/.mem-oracle/
du -sh ~/.mem-oracle/cache/
du -sh ~/.mem-oracle/vectors/Clean up:
# Remove old cache files
find ~/.mem-oracle/cache -mtime +30 -delete
# Or delete a specific docset
curl -X DELETE http://localhost:7432/docset/{id}Database Corruption
Symptoms: SQLite errors or inconsistent state.
Solutions:
- Backup and rebuild:
cp ~/.mem-oracle/metadata.db ~/.mem-oracle/metadata.db.backup
rm ~/.mem-oracle/metadata.db
# Worker will recreate on next start- Re-index your documentation.
API Key Issues
OpenAI API Errors
Symptoms: Embedding fails with authentication errors.
Solutions:
- Verify API key:
echo $OPENAI_API_KEY- Check config:
cat ~/.mem-oracle/config.json | jq '.embedding'- Test API key directly:
curl https://api.openai.com/v1/embeddings \
-H "Authorization: Bearer $OPENAI_API_KEY" \
-H "Content-Type: application/json" \
-d '{"input": "test", "model": "text-embedding-3-small"}'Getting Help
If you're still having issues:
- Check the GitHub Issues
- Search existing issues for similar problems
- Open a new issue with:
- Your configuration (without API keys)
- Relevant log output
- Steps to reproduce