Installation Issues
ModuleNotFoundError: No module named ‘memori’
Python cannot find the Memori module
Python cannot find the Memori module
Missing Dependencies for Database Drivers
ImportError: No module named 'psycopg2' or similar
ImportError: No module named 'psycopg2' or similar
SSL Certificate Errors
SSL: CERTIFICATE_VERIFY_FAILED
SSL: CERTIFICATE_VERIFY_FAILED
-
Update certificates (recommended):
-
Corporate proxy/firewall: Configure SSL verification:
-
Development only - disable verification (NOT for production):
Configuration Issues
API Key Not Recognized
MEMORI_API_KEY environment variable issues
MEMORI_API_KEY environment variable issues
- Still hitting IP-based quota limits
- Authentication errors
- Quota command shows lower limits than expected
Restart your application
Connection String Issues
Database connection string errors
Database connection string errors
-
Verify connection string format:
-
Check URL encoding for special characters:
-
Test connectivity separately:
-
Verify network access:
Embedding Model Download Failures
Cannot download sentence-transformers models
Cannot download sentence-transformers models
-
Manual download with retry:
-
Configure cache directory:
-
Use offline mode (pre-download):
-
Check firewall/proxy settings:
Runtime Issues
Memory Not Being Recalled
LLM interactions not recalling previous context
LLM interactions not recalling previous context
- LLM doesn’t remember previous conversations
- No context from past sessions
- Memories created but not retrieved
Verify memories are being created
Slow Performance
High latency or slow response times
High latency or slow response times
- High latency (>500ms) for memory recall
- Slow LLM response times
- Application feels sluggish
-
Optimize recall settings:
-
Use faster embedding model:
-
Check database performance (BYODB):
-
Use connection pooling:
-
Profile your code:
Memory Leaks
Application memory usage growing over time
Application memory usage growing over time
- High RAM usage
- OOM (Out of Memory) errors after running for extended periods
- Slow degradation of performance
-
Reduce thread pool size:
-
Explicitly close connections:
-
Process in batches:
-
Monitor with memory profiler:
LLM Provider Issues
OpenAI Integration Issues
OpenAI client not working with Memori
OpenAI client not working with Memori
-
Verify OpenAI version:
-
Correct initialization order:
-
Check API key:
-
Test without Memori first:
Anthropic Integration Issues
Anthropic Claude client issues
Anthropic Claude client issues
-
Verify Anthropic SDK version:
-
Correct usage:
-
Check API key:
Streaming Not Working
Streaming responses fail or are incomplete
Streaming responses fail or are incomplete
- Stream stops prematurely
- Incomplete responses
- Memory not recorded for streamed content
-
Ensure proper iteration:
-
Don’t manually close stream early:
-
Async streaming:
Database-Specific Issues
PostgreSQL Connection Issues
Cannot connect to PostgreSQL/CockroachDB
Cannot connect to PostgreSQL/CockroachDB
-
Verify connection parameters:
-
Test connection separately:
-
CockroachDB SSL requirements:
-
Check firewall:
-
Verify PostgreSQL is running:
MongoDB Connection Issues
Cannot connect to MongoDB
Cannot connect to MongoDB
-
Verify connection string:
-
Test connection:
-
Check MongoDB is running:
-
Verify network access:
SQLite Permission Issues
SQLite database permission errors
SQLite database permission errors
-
Check file permissions:
-
Ensure directory exists and is writable:
-
Use absolute path:
-
Check disk space:
CockroachDB Cluster Management
Cluster Creation Fails
CockroachDB cluster start command fails
CockroachDB cluster start command fails
python -m memori cockroachdb cluster start fails.Symptoms:-
Install required dependencies:
- Wait longer (can take 2+ minutes): The cluster creation process can take several minutes. Be patient.
-
Check network connectivity:
-
Verify API access:
-
Try again:
If it fails, the cluster is automatically cleaned up. Simply retry:
Cannot Access Cluster
Lost connection string or cannot access cluster
Lost connection string or cannot access cluster
-
Delete the old cluster:
-
Create a new cluster:
- Save the connection string immediately in a secure password manager.
Getting Help
Collect Diagnostic Information
When reporting issues, include:Enable Debug Logging
Common Error Messages
| Error Message | Likely Cause | Quick Fix |
|---|---|---|
ModuleNotFoundError: No module named 'memori' | Not installed | pip install memori |
No attribution set | Missing attribution | mem.attribution(entity_id=..., process_id=...) |
could not connect to server | Database unreachable | Check connection string, network |
CERTIFICATE_VERIFY_FAILED | SSL certificate issue | Update certificates |
quota exceeded | Hit quota limit | Sign up for API key or upgrade |
No module named 'psycopg' | Missing driver | pip install memori[cockroachdb] |