Documentation Index
Fetch the complete documentation index at: https://mintlify.com/S1LV4/th0th/llms.txt
Use this file to discover all available pages before exploring further.
Quick Diagnostics
Run the comprehensive health check to identify issues:Common Issues
API Not Starting
Port already in use
Port already in use
Symptom: Error message
EADDRINUSE: address already in use ::1:3333Solution:-
Check what’s using port 3333:
-
Either stop the conflicting service or change th0th’s port:
-
For Docker:
Environment variables not loaded
Environment variables not loaded
Symptom: API uses default values instead of
.env configurationSolution:-
Verify
.envfile location (must be at project root): -
Check file permissions:
-
For Docker, ensure environment is passed:
-
Restart the service after changes:
Database initialization errors
Database initialization errors
Symptom: Errors about missing or locked database filesSolution:
-
Ensure data directory exists and is writable:
-
For Docker, check volume permissions:
-
Clear corrupted databases (⚠️ DELETES ALL DATA):
Ollama Connection Issues
Ollama not responding
Ollama not responding
Embedding model not found
Embedding model not found
Symptom: Error
model 'nomic-embed-text' not foundSolution:-
List available models:
-
Pull the required model:
-
Update
.envto match available model: -
Restart th0th:
Slow embedding generation
Slow embedding generation
Symptom: Indexing or search operations take too longPerformance tuning:
-
Use GPU acceleration (if available):
-
Switch to smaller model:
-
Enable embedding cache:
-
Increase Ollama concurrency:
Docker Issues
Container exits immediately
Container exits immediately
Symptom: Common causes:
docker compose up shows container exiting with code 0 or 1Diagnosis:- Missing Ollama connection: Ensure
OLLAMA_BASE_URLpoints to accessible Ollama instance - Permission errors: Check volume mount permissions
- Port conflict: Another service using port 3333
Health check failing
Health check failing
Symptom: Container shows as Solutions:
unhealthy in docker psDiagnosis:-
Increase start period (for slow systems):
-
Check if API is actually running:
-
View API logs:
Volume data not persisting
Volume data not persisting
Symptom: Indexed projects disappear after container restartSolution:
-
Verify volume is mounted:
-
Check volume exists:
-
Inspect volume location:
-
Ensure using named volume (not bind mount):
Search and Indexing Issues
Search returns no results
Search returns no results
Symptom: Search endpoint returns empty results for known contentDiagnosis:
-
Check if project is indexed:
-
Verify project ID:
-
Re-index the project:
-
Check embedding cache:
Indexing fails or is very slow
Indexing fails or is very slow
Symptom: Project indexing times out or takes hoursSolutions:
-
Check available disk space:
-
Exclude large directories:
-
Increase memory limits (Docker):
-
Monitor progress:
Cache not working
Cache not working
Symptom: Every search takes same time, no cache hitsDiagnosis:Solutions:
-
Verify cache configuration:
-
Check cache database:
-
Clear corrupted cache:
Memory and Performance
High memory usage
High memory usage
Symptom: Process using excessive RAM (> 2GB)Diagnosis:Solutions:
-
Reduce cache sizes:
-
Restart service periodically (clears in-memory cache):
-
Set Node.js memory limits:
Slow API responses
Slow API responses
Configuration Issues
Environment variables not applied
Environment variables not applied
Symptom: Changes to
.env file not taking effectSolution:-
Restart the service (required for changes to apply):
-
Verify variables are loaded:
-
For source deployment, ensure
.envis in correct location:
Config file ignored
Config file ignored
Symptom: For MCP client, use config file:
~/.config/th0th/config.json changes not appliedNote:For API configuration, use .env file:Data and Database Issues
Database corruption
Database corruption
Symptom: SQLite errors, crashes, or inconsistent resultsRecovery:
Disk space issues
Disk space issues
Symptom: Out of disk space errorsSolutions:
-
Check database sizes:
-
Clear old caches:
-
Reduce cache limits:
- Remove unused projects (requires manual database cleanup or full reset)
Getting Help
If you’re still experiencing issues:Check existing issues
Search the GitHub issues for similar problems
Next Steps
Deployment
Review deployment configuration
Monitoring
Set up monitoring and health checks