AdminUpgrade from v1.4 to v1.5

Upgrade from v1.4 to v1.5

Last edited by Joey Orlando

Upgrading to v1.5 needs a short stop: a migration removes a database column that v1.4 reads, so stop v1.4 before v1.5 migrates. Take a backup first; it is your only way back to v1.4.

What Changes for Your Deployment

Skip any item for a feature you do not use.

Removed

  • Read-only Vault (READONLY_VAULT as ARCHESTRA_SECRETS_MANAGER, team Vault folders, ARCHESTRA_DATABASE_URL_VAULT_REF). The migration refuses to run while any credential still uses it. Move to DB or VAULT on v1.4 first; see Before You Upgrade.
  • agent:configure-runtime. Custom roles that held it get Can use and configure on every Agent Runtime. Update role automation.
  • Identity provider edits for Platform Admin. Editing a provider decides who signs in as which member, so only Admins can create or edit identity providers now.
  • Adoption page and Client connections log, with their /api/connected-clients/* endpoints. Use GET /api/statistics/agent-usage and the audit log.

Renamed

  • Agent run tools: start_run is now start_agent_run, and the other *_run tools follow; list_runs is gone. Update prompts, Guardrails rules, and automation.
  • OAuth client APIs: /api/llm-oauth-clients and /api/mcp-oauth-clients are now /api/oauth-clients.
  • Permissions: llmCost is now usage, and Guardrails records need guardrailsLog instead of log. Custom roles convert on their own; update scripts and Terraform.
  • Default model: /api/members/default-model and its environment variables are gone. Set it under Settings → Agents.

Behavior

Before You Upgrade

  1. If you use read-only Vault, move those credentials, then confirm none are left. This must print 0:

    bash
    PGPASS=$(kubectl get secret archestra-platform-postgresql -n archestra -o jsonpath='{.data.password}' | base64 -d)
    kubectl exec -n archestra archestra-platform-postgresql-0 -- \
      env PGPASSWORD="$PGPASS" psql -U archestra -d archestra_dev -tAc \
      "SELECT count(*) FROM secret WHERE is_byos_vault AND NOT is_vault AND secret <> '{}'::jsonb"
    
  2. Update Helm Values and Environment Variables.

  3. With Argo CD or Flux, pause auto-sync so it does not restart v1.4 mid-upgrade.

Upgrade With Helm

For the release archestra-platform in the namespace archestra with the bundled PostgreSQL, as in Helm.

  1. Note the replica counts, stop v1.4, and wait for its pods to go:

    bash
    kubectl get deployment archestra-platform archestra-platform-worker -n archestra
    kubectl scale deployment archestra-platform archestra-platform-worker -n archestra --replicas=0
    kubectl wait pod -n archestra --for=delete --timeout=5m \
      -l 'app.kubernetes.io/instance=archestra-platform,app.kubernetes.io/component in (web,worker)'
    
  2. Back up the database (or use your own backup for an external one):

    bash
    PGPASS=$(kubectl get secret archestra-platform-postgresql -n archestra -o jsonpath='{.data.password}' | base64 -d)
    kubectl exec -n archestra archestra-platform-postgresql-0 -- \
      env PGPASSWORD="$PGPASS" pg_dump -U archestra -d archestra_dev -Fc > archestra-v1.4.dump
    
  3. Upgrade the chart. It migrates the database first. Do not add --atomic, --rollback-on-failure, or --reuse-values.

    bash
    export ARCHESTRA_VERSION="1.5.0" # x-release-please-version
    helm upgrade archestra-platform \
      oci://ghcr.io/archestra-ai/helm-charts/archestra-platform \
      --version "$ARCHESTRA_VERSION" --namespace archestra \
      --values values.yaml --timeout 30m
    
  4. Scale back to your replica counts (or minReplicas with autoscaling) and wait:

    bash
    kubectl scale deployment archestra-platform archestra-platform-worker -n archestra --replicas=1
    kubectl rollout status deployment archestra-platform -n archestra --timeout=30m
    kubectl rollout status deployment archestra-platform-worker -n archestra --timeout=15m
    

To keep the migration logs if it fails, follow them from a second terminal: kubectl logs -n archestra -f job/archestra-platform-migrate. Never start v1.4 on the migrated database: roll back instead.

Upgrade With Docker

  1. Stop the container and back up both volumes:

    bash
    docker stop --time 120 <container>
    for volume in archestra-postgres-data archestra-app-data; do
      docker run --rm -v "$volume":/data -v "$PWD":/backup alpine \
        tar czf "/backup/$volume-v1.4.tgz" -C /data .
    done
    docker rm <container>
    
  2. Start v1.5 on the same volumes. It migrates on start. Pin the version, since latest can be a release candidate:

    bash
    docker run \
      -p 127.0.0.1:3000:3000 \
      -e ARCHESTRA_QUICKSTART=true \
      -v /var/run/docker.sock:/var/run/docker.sock \
      -v archestra-postgres-data:/var/lib/postgresql/data \
      -v archestra-app-data:/app/data \
      archestra/platform:1.5.0 # x-release-please-version
    

After You Upgrade

  1. Settings → Guardrails: check Guardrails mode and Review summary model.
  2. Settings → Agents: set the default model and the Agent Runtime tier sizes.
  3. Review spend limits.

Helm Values

  • archestra.imageTag: delete it, or set the v1.5 version.
  • archestra.imageVariant: the chart runs the -slim image. Mirror that tag if you mirror images.
  • archestra.runAsNonRoot: pods run as UID 10001. Run chown -R 10001 on NFS or hostPath volumes first. On OpenShift, set it to false.
  • archestra.readOnlyRootFilesystem: the root filesystem is read-only. Mount a volume for any other path a custom image writes to, or set it to false.
  • vaultSecrets.entrypoint: no longer runs through a shell; give the command and arguments directly.
  • database.cloudSqlProxy.enabled and database.alloyDbProxy.enabled: v1.5 honors these. Delete a leftover true.
  • With orchestrator.kubernetes.rbac.create: false, add list and delete on persistentvolumeclaims to your Role.

Environment Variables

Remove these; they are ignored or rejected in v1.5:

Roll Back

Rolling back means restoring the backup; v1.4 cannot read a migrated database.

  1. Stop v1.5 the same way you stopped v1.4.

  2. Restore the backup as the PostgreSQL superuser:

    bash
    PGSUPER=$(kubectl get secret archestra-platform-postgresql -n archestra -o jsonpath='{.data.postgres-password}' | base64 -d)
    kubectl exec -i -n archestra archestra-platform-postgresql-0 -- \
      env PGPASSWORD="$PGSUPER" pg_restore -U postgres -d postgres --clean --if-exists --create < archestra-v1.4.dump
    
  3. Run helm rollback archestra-platform <v1.4 revision> -n archestra (helm history lists them), then scale back up.

With Docker, remove the v1.5 container, restore both volumes, and start your v1.4 image:

bash
for volume in archestra-postgres-data archestra-app-data; do
  docker volume rm "$volume"
  docker run --rm -v "$volume":/data -v "$PWD":/backup alpine \
    tar xzf "/backup/$volume-v1.4.tgz" -C /data
done