Troubleshooting Guide¶
Common issues and solutions for SteadyText.
Installation Issues¶
Model Download Problems¶
Issue: Models fail to download automatically
Solutions: 1. Enable model downloads:
-
Check internet connection and firewall settings
-
Manually download models:
-
Clear model cache and retry:
Permission Errors¶
Issue: Permission denied errors when installing or running
Solutions: 1. Install in user directory:
-
Use virtual environment:
-
Fix cache directory permissions:
Runtime Issues¶
Memory Problems¶
Issue: Out of memory errors or high memory usage
Solutions: 1. Reduce cache sizes:
export STEADYTEXT_GENERATION_CACHE_CAPACITY=64
export STEADYTEXT_GENERATION_CACHE_MAX_SIZE_MB=10.0
export STEADYTEXT_EMBEDDING_CACHE_CAPACITY=128
export STEADYTEXT_EMBEDDING_CACHE_MAX_SIZE_MB=20.0
-
Use smaller models:
-
Disable daemon mode:
-
Use memory cache backend:
Context Length Exceeded¶
Issue: ContextLengthExceededError
when generating text
Solutions: 1. Reduce input length or split into smaller chunks
-
Increase context window:
-
Use streaming generation for long outputs:
Slow Performance¶
Issue: Generation or embedding is slow
Solutions: 1. Enable daemon mode (if not already enabled):
-
Increase cache capacity:
-
Use smaller models for better speed:
-
Preload models:
Daemon Issues¶
Connection Problems¶
Issue: Cannot connect to daemon
Solutions: 1. Check if daemon is running:
-
Start daemon:
-
Check daemon configuration:
-
Restart daemon:
Daemon Crashes¶
Issue: Daemon process terminates unexpectedly
Solutions: 1. Check daemon logs:
-
Start daemon in foreground for debugging:
-
Clear daemon state:
PostgreSQL Extension Issues¶
Extension Not Loading¶
Issue: PostgreSQL extension fails to load
Solutions: 1. Check PostgreSQL logs for error messages
-
Ensure Python and SteadyText are properly installed:
-
Check plpython3u extension:
-
Reinstall extension:
Python Path Issues¶
Issue: Python modules not found in PostgreSQL
Solutions: 1. Set Python path in PostgreSQL:
ALTER SYSTEM SET plpython3.python_path = '/path/to/steadytext/venv/lib/python3.x/site-packages';
SELECT pg_reload_conf();
- Use virtual environment path:
Async Worker Issues¶
Issue: Async functions not working
Solutions: 1. Check worker status:
-
Restart worker:
-
Check worker logs:
Cache Issues¶
Cache Corruption¶
Issue: Cache returns invalid results
Solutions: 1. Clear all caches:
-
Reset cache directory:
-
Switch to memory backend temporarily:
Cache Size Problems¶
Issue: Cache files growing too large
Solutions: 1. Reduce cache limits:
export STEADYTEXT_GENERATION_CACHE_MAX_SIZE_MB=25.0
export STEADYTEXT_EMBEDDING_CACHE_MAX_SIZE_MB=50.0
- Regular cache cleanup:
Shell Integration Issues¶
Completion Not Working¶
Issue: Tab completion not functioning
Solutions: 1. Reinstall completions:
-
Restart shell or source configuration:
-
Check completion installation:
ZSH Plugin Issues¶
Issue: ZSH suggestions not working
Solutions: 1. Check plugin configuration:
-
Enable suggestions:
-
Restart ZSH:
Development Issues¶
Testing Problems¶
Issue: Tests fail or hang
Solutions: 1. Allow model downloads for tests:
-
Use memory cache for tests:
-
Skip model-dependent tests:
Import Errors¶
Issue: Cannot import steadytext modules
Solutions: 1. Check installation:
-
Reinstall in development mode:
-
Check Python path:
Getting Help¶
If you continue to experience issues:
- Check the FAQ for common questions
- Review the Configuration Guide for advanced settings
- Open an issue on GitHub
- Include error messages, system information, and configuration details
Debug Information¶
To gather debug information:
# System information
uname -a
python --version
pip list | grep steadytext
# SteadyText status
st --version
st daemon status
st cache status
# Environment variables
env | grep STEADYTEXT
Include this information when reporting issues.