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.

Logs

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

Plain words unless the person is a developer. Never invent a link, name or code. Rules Needs first: status.

The recent output of a server app. If the latest build failed, you get that build's log, which names the failing command. If it built but would not start, you get the output of the container that crashed, plus its exit code.

Connector: read_app · action "logs"

Done when: You found the cause, fixed it, redeployed, and the app is live.

With the connector

  1. Call read_app { action: "logs", appName, stream: "stderr" }.

Over HTTP

  1. GET https://ship.embarko.ai/apps/{app-name}/logs?stream=stderr, with the token once the app is claimed.

Example: Runtime logs

curl -sS 'https://ship.embarko.ai/apps/my-app/logs?stream=stderr'

Reply 200:

{"available":true,"source":"runtime","stream":"stderr","logs":"...tail of recent output...","task":{"state":"dead","failed":true,"restarts":2,"exitCode":1,"oomKilled":false,"events":[{"type":"Terminated","message":"Exit Code: 1"}]},"next":"The container exited with code 1 (it was restarted 2 times)."}

Limits

  • About the last 8KB; a snapshot, not a stream.
  • source says what you got: "runtime" (the app's output) or "build" (the latest build's output). Add ?source=runtime or ?source=build to choose.
  • After a failed build the reply has source "build" and the build output. After a deploy that built but crashed on start, it has that new container's output, not the previous version's.
  • task has the container's exit code, OOM kill, restarts and events. Read it when logs is empty: an app can die before printing anything.
  • If logs is empty and otherStreamHasOutput is true, ask for the other stream.
  • When no runtime output exists, the build log comes back with runtime.reason saying why.
  • Static sites have no logs (available: false).
  • If the log names _litestream_seq or _litestream_lock as unknown or about to be dropped, the start command runs a schema sync against a database Embarko keeps those tables in: see the data topic. Do not add a force flag.

What to tell the person

  • failed: "It didn't go live because of a problem in the code. I'm fixing it now."

Next: Fix what the log names and redeploy. Do not paste the log to the person unless they ask. If the app's incidents show cause "platform", tell the person that outage is Embarko's side: nothing in the app changes for it (see alerts). Still fix and redeploy what the log names.

Related: deploy · rollback · alerts · feedback


Guide home · JSON: add .json