Documentation Index
Fetch the complete documentation index at: https://docs.emergence.ai/llms.txt
Use this file to discover all available pages before exploring further.
Upgrades
This guide covers the em-runtime Helm chart upgrade process, version promotion through environments, migration procedures, and rollback strategies.Upgrade Procedures
Standard Helm Upgrade
For direct Helm deployments (not using ArgoCD):Pre-Upgrade Checklist
Before upgrading:- Review the changelog for breaking changes and required migrations
- Back up databases:
- Verify current health:
- Test in non-production first — promote through dev and staging before production
Database Migrations
EM-Runtime services run Alembic database migrations automatically on startup. Each service manages its own database migrations independently.Migration Behavior
| Aspect | Behavior |
|---|---|
| Trigger | Automatic on pod startup |
| Direction | Forward only (upgrade) |
| Scope | Per-service, per-database |
| Safety | Idempotent — safe to run multiple times |
Migration Order
Migrations are applied in service startup order:If a migration fails, the pod will restart and retry. Check pod logs for migration errors before investigating further.
Rollback
Helm Rollback
Database Rollback Considerations
- Schema-only changes (add column, add table): Generally safe to keep during rollback; old code ignores new columns
- Data migrations: Require database restore from pre-upgrade backup
- Destructive migrations (drop column, rename): Require database restore
Direct Helm
Always specify--version in production:
Upgrade Troubleshooting
Pods stuck in CrashLoopBackOff after upgrade
Pods stuck in CrashLoopBackOff after upgrade
Check pod logs for migration errors:Common causes:
- Database migration conflict (two migrations with same parent)
- Missing database or extension
- Incompatible secret format
Init containers timing out
Init containers timing out
Init containers wait for dependencies (PostgreSQL, Redis, Keycloak). Check that all infrastructure services are healthy:
HTTPS/CORS errors after upgrade
HTTPS/CORS errors after upgrade
Verify that
hostname and scheme values match your Gateway and DNS configuration:ArgoCD shows OutOfSync after promotion
ArgoCD shows OutOfSync after promotion
The CMP plugin may need to rebuild the chart dependency. Force a sync:
Next Steps
Values Reference
Complete reference for all Helm chart values.

