Embarko is inBeta

Embarko is the cloud for small apps built by AI. The AI builds the app; Embarko gets it online, keeps it running, and helps the AI take the next useful step.

Agents start with the Markdown quickstart. Every page is also available as Markdown and JSON.

Undo a bad update

On this page: With the connector, Over HTTP, Limits, Errors, What to tell the person

Plain words unless the person is a developer. Never invent a link, name or code. Rules Needs first: claim (over HTTP only).

Switch the app back to an earlier successful deploy, with no rebuild. With no deploymentId it goes to the most recent successful deploy that is not the current one. It keeps today's env vars and domains, and DATA_DIR is not rolled back: older code runs against today's data. A feature added after that version (such as a login) is gone until you redeploy.

Connector: update_app · rollback; read_app · deployments

Done when: The previous version is serving and works.

With the connector

  1. Call update_app { action: "rollback", appName } for the previous version. If the newest successful deploy is itself the broken one, call read_app { action: "deployments", appName } and pass the deploymentId of the last deploy before the problem started.
  2. Anything added after that version (such as a login) disappears until you redeploy a fixed version: tell the person.

Over HTTP

  1. Optional: GET https://ship.embarko.ai/api/apps/{app-name}/deployments to pick one (rollbackTarget: true marks valid ones). If the latest successful deploy is itself the broken one, pick the one before it: deploys are newest first, so take the first rollbackTarget entry older than the deploy where the problem started (compare times and versions).
  2. POST https://ship.embarko.ai/api/apps/{app-name}/rollback with {} or {"deploymentId": "..."}, the token and X-Agent-Name.
  3. The reply is 202 with statusUrl: poll it until terminal is true.

Limits

  • Only the last 5 builds are kept.

Errors

CodeStatusRetryWhat to do
no_rollback_target422NoNo earlier good deploy. Fix forward instead.
rollback_image_unavailable422NoThat version is too old to restore; retainCount says how far back you can go.
unauthorized401NoBad token.
permission_denied403NoThe person who made this token is not allowed to do this. The reply names the permission and their access to the app (or their role). Nothing changed. Tell the person (say_to_user.no_permission); do not try another way round it.

What to tell the person

  • done: "I put the previous version back, so your app works again. I'll fix the new version next."

Next: Roll back when the app is down and the cause is not clear yet, then fix and redeploy.

Related: logs · deploy


Guide home · JSON: add .json