Database Troubleshooting
Resolve PostgreSQL and SQLite issues, from connection failures to vector database configuration.
Quick Checklist
- Confirm
database.drivermatches the deployed backend (postgresorsqlite). - Run
compozy migrate statusto ensure schema migrations are current. - Verify vector database configuration (mandatory for SQLite).
- Inspect logs for
sqlordatabaseerror codes—they surface context-specific hints.
PostgreSQL Issues
SQLite Issues
Vector Database Diagnostics
Loading diagram...
- Verify vector database connectivity (
qdrant --version,redis-cli ping, or file existence). - Confirm
dimensionmatches the embedding model. - Check logs for provider-specific errors (e.g., HTTP 401 from Qdrant).
Diagnostic Commands
# Check migration status (driver auto-detected)
compozy migrate status
# Re-run migrations after configuration changes
compozy migrate up
# Verify PostgreSQL connectivity
psql "$COMPOZY_DB_CONN_STRING" -c 'SELECT version();'
# Inspect SQLite file
sqlite3 ./data/compozy.db ".tables"Escalation Checklist
- Collect Compozy logs with
--log-level=debug. - Export relevant configuration snippet (redact secrets).
- Include output of
compozy diagnose database(if feature flag enabled). - Share vector database status (provider, endpoint, health).