Troubleshooting deploys

Why a deploy failed or an app crashed, and what to do: read `oalo logs`, then find the message you got, from a refused deploy to a release that never answered.

Something went wrong with oalo deploy, or the app runs but crashes. Start with the logs, then find the message you got below. Each section quotes what you see, then says what to run and what to change.

Start with the logs

oalo logs --app <slug>                        # the preview (dev)
oalo logs --app <slug> --env prod             # the live app
oalo logs --app <slug> --env prod --process build --limit 2000
oalo logs --app <slug> --follow               # new lines as they come, until Ctrl-C

--process keeps one process's lines:

ProcessWhat it is
webThe process that serves HTTP.
a worker's nameEach other line of the Procfile (worker, jobs).
releaseThe Procfile's release: line, run once per live deploy (--env prod).
buildThe live build's own log (--env prod), for server and web apps.
oaloOalo's own notes: which command started (starting package.json dev on port 9101), when a process exited and with what status (web exited with status 1), secrets found in commits.

What is kept:

  • The last 2,000 lines of each env, all processes together. --limit shows 200 by default and up to 2,000. A line over 4 KB is cut.
  • In memory only. Restarting your Oalo Base empties them. A live app's new lines appear again after the restart, but the earlier ones are gone.
  • Server apps only, for the preview. A web app's preview (React, Expo, Flutter, Figma) prints nothing to oalo logs. Its live build does, as build in prod.

The deploy itself prints its progress as it runs, one phase: message line at a time, and a live deploy streams the build's lines (release:build_log:). Reading logs, like deploying, needs Developer access.

oalo deploy was refused

A refused deploy changes nothing: not the app's code, not the preview, not the live app.

"you have uncommitted changes"

you have uncommitted changes, and a deploy sends commits. Commit them (or stash), or pass --allow-dirty to deploy the last commit anyway.

A deploy sends commits, never your working files. Commit, or pass --allow-dirty to deploy the last commit as it is. The uncommitted changes still aren't sent.

"the app on Oalo has newer commits than yours"

deploy failed: the app on Oalo has newer commits than yours. Run `oalo deploy --pull`, then deploy again.
  on Oalo only: 3f2a9c1 Builder agent: add pricing page

Someone changed the app on Oalo (the builder agent, a teammate in the dashboard) after your last deploy. The commits only Oalo has are listed, up to ten. Nothing is overwritten. Bring them in, then deploy:

oalo deploy --app <slug> --pull     # fetches them as the branch oalo/<slug>
git merge oalo/<slug>
oalo deploy --app <slug>

"the app on Oalo has commits your branch doesn't, and yours has commits it doesn't"

Both sides moved. Same fix: --pull, merge, deploy.

"your repo and the app on Oalo share no history"

your repo and the app on Oalo share no history (the app was created on Oalo or imported). Run oalo deploy --pull and merge, or oalo deploy --replace to make your branch the app's code (the current code is tagged first).

--replace makes your branch the app's code. The old code is tagged first (the deploy says old code tagged oalo-before-replace-<time>), so it can be recovered. Use it only when your branch should win.

"the app is being changed on Oalo right now"

the app is being changed on Oalo right now (by the builder agent or a teammate). Try again in a minute.

The builder agent, or a teammate, has uncommitted changes to the app's code on Oalo. Wait a minute and deploy again.

"another deploy of <slug> is running"

One deploy per app at a time. Wait for the other one to finish (oalo logs shows its progress), then deploy again.

"the bundle is over 200 MB"

What is sent is a git bundle of your commits, and it can be 200 MB at most. The first deploy from a repo sends its whole history, later ones only the new commits. The usual cause is large files committed at some point: build output, videos, a node_modules folder. Take them out of the history (or start a fresh repo without them), and keep them out with .gitignore.

"only admins and members with Developer access can deploy"

only admins and members with Developer access can deploy. An admin can turn on Developer for you under Team.

Ask an admin to turn on Developer for you under Team. The same access is needed for oalo logs, oalo env, oalo secrets and rollbacks.

Other refusals

MessageWhat to do
oalo deploy needs a CLI token or a CLI token is requiredoalo login <slug>
this CLI token belongs to another workspaceLog in to this workspace: oalo login <its slug>.
which app? Pass --app <slug> or no app <slug>oalo apps lists the slugs. oalo link --app <slug> saves one for this folder.
this project is linked to prod ... pass --env prod to confirmThe folder is linked to prod. Live deploys need --env prod on the command line.
a new app starts on its previewRun oalo deploy --new without --env prod, then deploy it live.
<slug> already exists. Deploy to it without --new, or pick another name.Drop --new, or give another name: oalo deploy --new <name>.
not inside a git repoRun it in the repo's folder.
runs an older Oalo than this CLI, so ... isn't available there yetYour Oalo Base is older than your CLI. It works once the workspace is updated.
This workspace needs @oalo-ai/cli <version> or newernpm i -g @oalo-ai/cli
the connection closed before the deploy finishedoalo apps shows the app's state. Then deploy again.

"Nothing runs yet"

Oalo couldn't tell what kind of app this is, so nothing runs yet. It looks at the repo's root for a language or framework file (package.json with Vite or a start script, requirements.txt, go.mod, Gemfile, mix.exs, Cargo.toml, composer.json, pom.xml, a .csproj) or a Dockerfile.

The code is saved on the app (saved <sha> to <slug>, but nothing runs yet), but Oalo found nothing at the repo's root that says how to run it. A live deploy of such an app is refused with the same message, since it would serve nothing.

  • The app lives in a subfolder (a monorepo): add a Dockerfile at the root that builds it.
  • A Node app with no start: give package.json a start script (or use Vite).
  • Anything else: add the language's usual file at the root.

Commit, then oalo deploy --app <slug>. Every deploy checks again, and the app becomes what is found then. Bring your repo has the details.

The preview didn't start, or doesn't answer

A dev deploy succeeds once the code is in, even when the preview then fails. Read the warnings in its output: they say what happened.

How a server app's preview starts

The first of these that the repo has:

  1. A Procfile: Procfile.dev first, then Procfile. Its web: line serves HTTP, and every other line (except release:) starts beside it as a worker. Each line runs through sh, with $PORT set.
  2. package.json scripts (Node and Bun): dev, else start.
  3. The language's usual start, such as main, index.js or server.js for Node, main.py (uvicorn), app.py (Flask) or manage.py (Django) for Python.

Which languages get a preview, and their defaults: Live server apps.

"has nothing to start"

the preview didn't start: <slug> has nothing to start: add a Procfile with a web: line, or a package.json start script

None of the rules above found a command. Add a Procfile with a web: line:

web: node server.js

"exited before it answered" or "didn't answer HTTP within 30s"

the preview exited before it answered (it must listen on $PORT). See oalo logs. Last lines: ...

After a restart, the deploy waits up to 30 seconds for the server to answer an HTTP request on its port, with any status. When .oalo/app.json names a health path, that path must answer with a 2xx or 3xx.

  • It exited: it crashed on start. The last 15 lines are in the message, and oalo logs --app <slug> has the rest. Often a missing variable: set it with oalo env set NAME=value --app <slug> (see App environment).
  • It never answered: it listens on the wrong port or address. Read the port from $PORT and listen on 0.0.0.0, not localhost or a fixed port.
  • It's slow to start (a first compile): it may come up after the 30 seconds. Check oalo logs --follow.

"dependencies changed: installing"

A dev deploy installs the app's dependencies again when a dependency file changed: package.json or its lockfile, requirements.txt, pyproject.toml, Gemfile, go.mod, Cargo.toml, composer.json, mix.exs, pubspec.yaml, deno.json, pom.xml, a Gradle file, a .csproj, or one of their lockfiles. It also installs on an app's first deploy and after --replace.

the install failed; the preview may be missing packages. Check the install locally.

The install's own output isn't in oalo logs. Run the same install on your machine to see the error: npm install, pnpm install, yarn install, or pip install -r requirements.txt. The usual causes are a lockfile out of step with package.json, or a package that doesn't exist. Fix it, commit, deploy again.

"too many previews are running on this Base"

Ten server app previews can run on one Oalo Base at a time. Idle previews stop on their own and free their place. The code is saved, so deploy again in a few minutes.

A web app's preview

A web app's preview picks up the new code on each deploy, and restarts when its dependencies changed. There is no port check and no log. Open its address to see it.

The live build failed

oalo deploy --env prod builds the commit away from your Oalo Base, then starts it. While it builds, the deploy prints the build's lines. When the build fails:

deploy failed: going live failed, and the previous release is still live. the build failed (FAILED). Its last lines: ...

The message ends with up to the build's last 40 lines, cut to its last 1,500 characters. The whole log is in oalo logs --app <slug> --env prod --process build --limit 2000. A build can take 30 minutes at most (the live build didn't finish in 30 minutes).

A failed build changes nothing live: the current release keeps serving. The team chat gets Production build failed for <slug>.

A web app (React, Expo, Figma, Flutter)

The build runs, in the app's folder:

  1. The install, with the repo's package manager: npm install, pnpm install or yarn install (Flutter: flutter pub get).
  2. The build: <package manager> run build (Expo: npx expo export -p web, Flutter: flutter build web).
  3. A check that the build wrote dist/index.html (Flutter: build/web/index.html).

Common causes:

  • No build script. npm says the script is missing. Add one to package.json, such as "build": "vite build".
  • The wrong output folder. The log says the build made no dist/index.html. The build must write the site to dist/ at the repo's root. Set your bundler's output folder to dist.
  • A failing install: see the install above. Run npm install and npm run build on your machine from a clean clone.
  • A build that needs a secret. A web app's build gets only public variables, never secret ones, because whatever it sees ends up in the browser. See App environment.

A folder with an index.html and no package.json is copied as it is, with no install and no build.

A server app

The first build line says how the image is built: building with the repo's Dockerfile, building with Oalo's <language> Dockerfile, or building with buildpacks. oalo dockerfile --app <slug> shows which, and the Dockerfile's text.

Look at the build log for the first error. Usually the install failed (a lockfile out of step, a private package) or the compile did. Build the same commit on your machine, and with Docker if the app has a Dockerfile. The build sees the app's public prod variables only: secret ones never reach a build.

"this Base has no ..."

live builds aren't set up on this Base yet, or a message that says this Base has no and names a setting, is a setup problem on Oalo's side, not in your code. Contact Oalo support.

The release command failed

The Procfile's release: line (migrations, say) runs once, after the build and before the new release starts, with the app's prod variables. When it fails:

deploy failed: going live failed, and the previous release is still live. the release command exited 1, so the live app wasn't changed: ...

Nothing changed live: the current release keeps serving. Whatever the command did before it failed (half a migration, say) is not undone. Its output is in oalo logs --app <slug> --env prod --process release.

The command can run for 15 minutes at most:

the release command couldn't run: release didn't finish in 900s

The new release crashed or never answered

After the release command, the new release starts next to the current one. Its web process has 60 seconds to answer an HTTP request on $PORT (or its health path with a 2xx or 3xx). Only then does the live address move to it and the old release stop. If it crashes or never answers, its containers are stopped and the previous release keeps serving (a release that breaks after it went live, in its first 15 minutes, is rolled back on its own; see Live server apps):

deploy failed: going live failed, and the previous release is still live. the app exited before it answered (it must listen on $PORT). Its last lines: ... The live app wasn't changed.

or the app didn't answer on its port within 60s. The message has its last 15 lines, and oalo logs --app <slug> --env prod has the rest. The usual causes:

  • It listens on the wrong port or address. Read $PORT and listen on 0.0.0.0.

  • A missing prod variable. Variables are per env: one set for dev isn't there live. oalo env --app <slug> --env prod lists them.

  • It writes to its own folder. A live process runs as uid 1000 on a read-only filesystem. Only /tmp is writable, up to 256 MB. Keep data in the database or in storage.

  • A worker with no command. With the repo's Dockerfile, only web runs the image's own command:

    could not start worker: worker has no command: a Dockerfile image runs its own command only for web; give worker a line in the Procfile

    Give each worker a line in the Procfile.

Without a health path, any HTTP answer counts, whatever its status, so a release that answers with errors still goes live. Name a health path in .oalo/app.json to require a 2xx or 3xx, and check the app after a deploy.

Note that a failure at any step reads going live failed, and the previous release is still live., followed by what failed. Read the rest of the message.

Size and capacity refusals

Each process's size comes from .oalo/app.json in the commit being launched ("sizes": {"web": "small"}). The file is checked before the build starts, so a mistake fails fast:

MessageWhat to change
.oalo/app.json isn't valid JSON (...)Fix the JSON.
.oalo/app.json has size, which Oalo doesn't readA misspelled key. It reads sizes, health, env, tools, targets and auto_rollback.
.oalo/app.json: sizes.web is "huge"; sizes are ...Use tiny, small, medium or large.
.oalo/app.json: sizes.web asks for xlarge, which a Base can't run yetUse large at most.
.oalo/infra.json isn't read any moreSizes moved into .oalo/app.json. The message prints the file to write; delete infra.json.
STRIPE_KEY is required by .oalo/app.json but not set for the live appoalo env set STRIPE_KEY --env prod, then deploy again.
the app didn't answer /healthz with a 2xx or 3xxhealth in .oalo/app.json names that path; make it answer once the app is ready, or fix the path.

When the processes won't fit:

could not start web: this Base's room for apps is full (2.5 of 2 vCPUs, 6144 of 8192 MB with this one): use a smaller size or fewer processes in .oalo/app.json. Previews free their share when they go idle

All apps on your Oalo Base share part of it. Memory counts every running app process, previews included. CPUs count only live processes. The release being replaced doesn't count, since it stops once the new one answers. Choose smaller sizes in .oalo/app.json, or drop a worker. Idle previews free their share on their own. A preview can be refused the same way. The sizes are in Live server apps.

Memory is a hard limit. A live process that goes over it is stopped and restarted, so a process that keeps restarting may need a bigger size.

Secrets found in commits

Every deploy scans the commits it brings for keys and tokens. It never blocks the deploy. It warns:

1 possible secret committed to shop:
  src/pay.js:12: looks like stripe access token (commit 3f2a9c14)
For each: rotate it with its provider (it stays in the repo's history), set the new one
with `oalo env set NAME --secret --app shop`, and read it from the environment in the code.
If one isn't a secret, `oalo secrets --app shop` lists each with its fingerprint and
`oalo secrets dismiss <fingerprint> --app shop` stops it being reported.

The same note goes to the team chat and to oalo logs (dev, as oalo). Each finding is reported once. Then:

oalo secrets --app shop                       # the open findings, each with its fingerprint
oalo env set STRIPE_KEY --secret --app shop   # the new key, typed without echo
oalo secrets dismiss <fingerprint> --app shop # one that isn't a secret
oalo secrets --app shop --all                 # dismissed ones too

Rotate the key first: deleting the line isn't enough, because the old commit keeps it. Oalo never keeps the value, only where it is.

Rolling back

oalo deploy --app <slug> --history              # the live releases, newest first
oalo deploy --app <slug> --rollback             # the release before this one
oalo deploy --app <slug> --rollback --to 3f2a9c1

A rollback is a live deploy of that earlier commit:

  • It builds again, unless an identical build exists. For a server app that means the same commit, the same public prod variables and the same Oalo Dockerfile. For a web app, the same commit and the same build variables and commands. If you changed a public prod variable since, it rebuilds.
  • It uses today's variables, secrets included, but that commit's Procfile and .oalo/app.json. Its release: line runs again.
  • It is checked like any live deploy. If it fails, the current release stays live.
  • It streams its progress. The CLI waits up to 35 minutes. If it stops waiting, the rollback may still be running: --history shows which release is live.
  • It leaves the app's code alone. The next oalo deploy --env prod deploys your branch again.
MessageMeaning
this app has no earlier live release to go back toIt has never been live, or only with one commit.
<sha> was never live--history lists the ones that were.
<sha> matches more than one release; give more of the shaGive more characters.
--to takes a commit sha, at least 7 charactersGive at least 7.

A variable change didn't take effect

  • dev: oalo env set restarts the preview with the new values, unless you passed --no-restart.
  • prod: the live app keeps its values until the next live deploy. Run oalo deploy --app <slug> --env prod. It works with no new commits: the deploy says already at this commit, then builds and starts the release with the new values.
  • Web apps bake public values in when they build, so a prod change always needs that deploy. Secret values never reach them.

More in App environment.

Related
Try it on your own Base

Sign up, install the CLI, and deploy your repo in a few minutes.

bring your repo