Troubleshooting & FAQ Guide
Troubleshooting guide addressing common setup, operational, and runtime issues.
Common Issues & Solutions
1. ValueError: Fernet key must be 32 url-safe base64-encoded bytes.
ValueError: Fernet key must be 32 url-safe base64-encoded bytes.- Cause: Missing or invalid in environment (
FERNET_KEY)..env - Solution: Run to generate and save a valid 32-byte key into
python scripts/generate_fernet_key.py --write-env.services/api/.env
2. django.db.utils.OperationalError: Ident authentication failed for user "metapilot"
django.db.utils.OperationalError: Ident authentication failed for user "metapilot"- Cause: is set to PostgreSQL in
DATABASE_URL, but local PostgreSQL is not running..env - Solution: Leave blank in
DATABASE_URL=to use the local SQLite database (services/api/.env).db.sqlite3
3. redis.exceptions.TimeoutError: Timeout reading from localhost:6379
redis.exceptions.TimeoutError: Timeout reading from localhost:6379- Cause: Redis server is stopped or Channel Layer connection timed out.
- Solution: Ensure Redis is running (->
redis-cli ping). Restart Daphne backend server (PONG)../scripts/backend.sh
4. Celery Workers Not Executing Tasks
- Cause: Worker processes stopped or wrong Redis database index targeted.
- Solution: Verify Celery worker daemon is running ().
celery -A core inspect active