Skip to main content
Use this page when a build failed, stopped early or never started on a runner. Find what you see in the table, then go to that section. For sign-in, sync and work-item problems, see Troubleshoot the CLI.

Find out why a build ended

Start from the work item, not the host. Every build records how it ended, the session that ran in it, and the runner’s log.
  1. Run outerlayer work status --item <n> --json. The item’s claims list every build, newest first.
  2. Read the newest claim’s outcome, stage, exitCode and reason. Look them up in Outcomes and reasons.
  3. Find the build’s session. It is the session whose claimId matches the claim’s id. It shows what the agent did last.
  4. Run outerlayer work logs --item <n> to print the runner’s log for the newest build. Add --attempt <id> for an earlier build.
  5. Run outerlayer work threads --item <n> to read what a reviewer asked for.
The item page shows the same facts. The Activity section of the Overview tab has one entry for each build, with how it ended and the reason. Open an entry and select Show the runner log to read that build’s runner log. A build that stopped and needs a person has the same link in the panel at the top of the tab.
A work item page that reads Build failed. A panel says the build stopped and needs a person, gives the reason and the runner, and names the Build again button. The Activity section lists Build 1 failed

An item whose build failed: the reason is at the top of the Overview tab, and Build again is at the foot.

outerlayer work logs exits with an error while the build still runs. When a build ends in provision, sync, cleanup or report, the log ends with the last lines of that stage. An agent can read the same data through the MCP server, with get_work_item, get_runner_log and get_work_item_threads.
Never signal a build’s processes by hand on a runner host. A build that ends this way is lost, and nothing on the item shows who ended it.
Log in to the host only when these steps do not answer your question.

Read the runner’s log on the host

outerlayer runner logs <item> prints the log of the item’s newest build. The runner’s own log has one line for each event, with the item number after #:
When a build sets up, its log also says what it ran on:
  • The snapshot a sandbox build came from: sandbox <id> comes from snapshot <name>.
  • The CLI build that made the build image, beside the runner’s own version. An image that a newer CLI made than the runner can fail to start.
  • The file each package tool runs after the runtime install: tools: node v24.22.1 at <file> · npm at <file> · pnpm at <file> · yarn at <file>. A path under corepack means Corepack runs that tool, and Corepack picks its version from the folder a command starts in.
A line that ends continuing or retrying next tick is a failure the runner recovered from. A failure that repeats is logged as still failing: <message>, then recovered: when it stops.

Before the first build

outerlayer doctor says the installation “has not accepted” a permission

Builds need a permission that the GitHub App installation has not accepted.
  1. Open the settings page that outerlayer doctor links.
  2. Accept the permission. You must be an owner of the installation.
If outerlayer doctor says the App’s own settings must add the permission, you cannot accept it yet. OuterLayer must add it to the App first. See Check what each repository is missing.

A runner key is refused on a new machine

The runner says the key is “bound to another host’s key”, and OuterLayer refuses its requests with runner_key_signature_invalid. A runner key works only on the first machine that used it.
  • If you moved the key to this machine on purpose, open Settings → API keys and select Clear host key. The next claim binds the key to the new host. See Moving a runner to a new host.
  • If you did not move the key, treat it as leaked. Revoke it and make a new one.

When the gateway refuses a signature

The runner signs each request with its host key. OuterLayer answers a request it cannot verify with a 401 and one of these codes. It also writes runner_key_signature_refused to the organization audit log.

When the Image build limit check fails

outerlayer doctor fails the “Image build limit” check, and the runner claims nothing. Docker’s Buildx plugin is missing or older than 0.18. This applies to builtin:container hooks, and to builtin:vm hooks with runner.build.imageBuild set to host.
  1. Install Buildx 0.18 or later. On Debian and Ubuntu, install docker-buildx-plugin from Docker’s apt repository, or docker-buildx from Ubuntu’s own packages.
  2. Run outerlayer doctor again.
The runner takes work again with no restart. If it still claims nothing, its log names why the builder did not start. See Image builds.

When no build starts

When nothing is building an item

No runner is building the item. The item page says why, and outerlayer work status --item <n> --json returns the cause as waiting. When a build request waits and no runner takes it, the item reads Not picked up. A runner counts as checked in while its last heartbeat is newer than three of its poll intervals. An item queued for a managed runner reads Queued, and the item page says what it waits for. Examples are a missing Anthropic API key, a spending cap and a limit on builds at once. See Limits on managed builds.

When the runner is blocked

The runner logs claiming nothing: and a reason, and takes no work. It cannot run a build as it is set up. A typical line:
The reason names the cause and the fix. Do what it says. The runner then logs the runner can run its work again · taking work and claims on its next poll. In the runner container image, set OUTERLAYER_BUILD_MEMORY or OUTERLAYER_CONCURRENCY in the env file for the last two rows. Then recreate the container. Two fixes need a restart of the service: access to /dev/kvm, and a credential added to claude.env. The others take effect on the next poll. The runner checks as the service’s account, not as your shell. A shell that shows the kvm group says nothing about the service. outerlayer doctor reports what the running service has.

When the runner holds off for disk

The runner takes no work and logs this line. It has less free disk than it needs.
Free space on the file system that holds <config dir>/runner, or lower runner.housekeeping.minFreeDisk. By default the minimum equals runner.build.disk, which is room for one more build. The runner keeps the builds it already has. When there is room, it logs free disk is back above the minimum · taking work again and claims again with no restart. The runner removes what its own builds leave behind. It does not remove other files, such as Docker images that a person pulled. See Housekeeping.

When the gateway refuses the runner’s version

The item reads Not picked up, with the caption “runner needs an update”. The runner’s log has this line:
The runner’s CLI version is below the lowest version that OuterLayer accepts. The build request stays unused.
  1. Do the steps in Update a runner for the way your runner runs.
  2. Open Settings → Runners and check that the runner’s status is Ready, not Refused.
The runner takes work again on its next poll. The support window says which versions OuterLayer accepts.

When a failed item is not built again

One build request starts one build. A build that ends ok, incomplete, failed, timed_out or idle uses up its request, so no runner takes the item again. So does a claim that expires, and a build that a person stops through OuterLayer. To build again, do one of these:
  • Run outerlayer work build --item <n>.
  • On the item page, choose Build again at the foot of the page. After a build that you stopped or that timed out, the foot shows Resume first. Resume continues the same agent session. Build again starts a new one.
  • With an open pull request and a review that waits on an agent, select the rerun button beside Build time in the sidebar (in a narrow Inbox pane, behind Details), then Rerun.
You need the Add work permission. An item with an open pull request has no rerun while no review waits on an agent. To send the agent back to the pull request, choose Request changes. See Rerun a Stuck item. A build that ends interrupted or lease_lost keeps its request, so a runner takes the item again without being asked. So does a build that the provision hook declines with exit 75, and a build stopped on the host. The second lease_lost build of one request uses the request up. The item then waits until you rerun the build. This limit stops an item whose build ends its runner each time from building without end. A provision failure that can clear by itself also keeps its request. The runner treats these failures that way:
  • The sandbox provider does not answer, asks the runner to slow down, or answers with a server error.
  • A fetch of the control plane fails, or a request to OuterLayer for its token fails for a moment.
  • GitHub refuses the control plane or the repository to the token that OuterLayer issued.
After such a failure, the runner takes no work for 5 minutes. After a second one for the same item, it waits 10 minutes. The third in a row ends the build failed. Its reason ends with (provision failed this way 3 times in a row).

When a build ends early

When a build has no build skill

The build fails in the provision stage, and the agent never starts. The reason reads the build has no `build` skill, so /build would load nothing, then lists the paths the runner checked. The implement command runs /build, and the runner found no build skill in any of these places:
  • .agents/skills/build/SKILL.md in the clone
  • the skills folder of the build’s agent in the clone, such as .claude/skills/build/SKILL.md for Claude Code
  • the governed context delivered to the build
A common cause is a .gitignore line such as build/, which also matches .claude/skills/build/. Run outerlayer doctor to find it. To see what a repository’s builds receive, run outerlayer context show.

When only OuterLayer can fix a managed build

A build on a managed runner fails in the provision stage, and the agent never starts. The reason reads like this:
The part after the colon names the fault. It is in OuterLayer’s build image, its sandbox provider or its setup of the build’s sandbox. Nothing in your repository or settings causes it.
  • Build the item again later. OuterLayer must fix the fault first.
  • You pay nothing for the build. See How a build is counted.
Run outerlayer work logs --item <n> to read the runner’s full reason. It names the runner’s own settings, which you cannot change on a managed runner.

When a build is killed and the runner did not end it

The build fails with one of these reasons:
  • the command exited 137, the status of a process killed by SIGKILL; the runner did not end it
  • the command was killed by SIGTERM on the host; the runner did not end it
Something outside the runner ended the command. Check the machine’s kernel log for an out-of-memory kill. Check whether a supervisor or a person ended the process. A build that the runner ends itself has another outcome: timed_out, idle, lease_lost or stopped.

When a build ends as lease expired

The Activity section says the build “ended when its lease expired”, with the time the runner last renewed the claim. In outerlayer work status --item <n> --json, the claim has leaseExpired: true. The runner stopped without ending the build. For example, the machine lost power or the runner’s process was killed. The claim then expired, 15 minutes after its last renewal. The expired claim uses up its build request. To build again, see When a failed item is not built again. A runner can also lose a claim before its build starts. When the runner next checks in, it ends that claim itself and logs the lease lapsed with no build on this host. The item is then available again. This covers claims that expired in the last 24 hours.

When a build finished but its release failed

The runner’s log has a line such as this one, and no released line for the build:
OuterLayer did not answer when the runner reported the end of the build. outerlayer runner status --recent marks the build (release failed). The next outerlayer runner start sends the report again. Until then, no runner builds the item again. If release failed repeats, check the runner’s network path to OuterLayer.

When a build ends without a pull request

The item reads Needs attention, and the Work page shows a sentence from the agent under the title. The agent ended the build with outerlayer work needs-attention, because it could not finish. The sentence says what stopped the build and what you can do. Examples are a build variable that the tests need, or a test that fails on the default branch.
  1. Do what the sentence says.
  2. Choose Build again at the foot of the item page.
When the agent recorded no sentence, the reason is “the build opened no pull request for the item”. Open the build’s session to learn why.

When a build finds no change is needed

The item reads No change needed, and no pull request opens. The build found that the issue needs no change. For example, the default branch already fixes the bug, or the issue duplicates another issue. The item page shows the build’s reason, with a link to the evidence when the build gave one. OuterLayer also posts the reason as a comment on the issue in GitHub, Linear or Jira. OuterLayer does not close the issue, because the agent can be wrong.
  1. Read the reason and the evidence on the item page.
  2. If the reason is right, close the issue in the tracker.
  3. If the reason is wrong, select the rerun button beside Build time. Add instructions that say what the build missed, then choose Rerun.
See outerlayer work no-change.

Memory and disk

When a build runs out of memory

A microVM build fails with this reason:
Raise runner.build.memory. Then check that the builds still fit the host, as Memory limits says. Only that build ends. The runner and its other builds carry on. A build that is killed below its limit means the host needs more memory. Lower runner.concurrency to leave more room. Each microVM build has a memory limit of its own only under the service that outerlayer runner install --service writes. With a unit you wrote yourself, outerlayer doctor warns. Run outerlayer runner install --service --replace to write the unit again.

When an image build runs out of memory

The build fails in the provision stage with this reason:
A step of the image build used more than runner.build.memory. The build log that the reason names shows the step. Raise runner.build.memory. Then check that the builds still fit the host, as Memory limits says. After the change, the next image build starts with an empty cache.

When a build or an image build runs out of disk

A microVM build has a disk of a fixed size, so it never ends with the first two reasons.

Network and pushes

When an image build calls a host the tunnel refuses

With builtin:vm hooks, the build fails in the provision stage. The reason names each refused host:
A recipe step called a host that is not in runner.build.allowHosts, or a private address.
  • If the step needs a public host, add the host to runner.build.allowHosts. Hosts an image build needs lists the hosts that the default recipe needs.
  • If the step needs a private address, such as a registry on your own network, set runner.build.imageBuild to host. A managed runner cannot do this.

When a managed build cannot reach a host

A setup script or a build on a managed runner fails. Its reason ends with a line like this:
A managed build reaches only the default hosts and the hosts in the factory’s Allowed hosts. The build’s network refused a host that is in neither. A package install that downloads from its own server often causes this.
  1. Open the factory’s Settings → Build settings.
  2. Add each host the reason names under Allowed hosts. See Managed build settings.
  3. Build the item again.
A reason names the first refused hosts and counts the rest. To see each refused host, run outerlayer work logs --item <n>. The log has one tunnel refused <host> line for each.

When a task runner hides the proxy variables

A task that downloads something cannot connect, such as a Next.js build that fetches Google Fonts. This applies only to a build through your own hook’s exec. A task runner that filters the environment hides the proxy variables from the tasks it starts. Turborepo does this by default. For Turborepo, list HTTP_PROXY, HTTPS_PROXY, NO_PROXY, their lowercase forms and NODE_USE_ENV_PROXY in globalPassThroughEnv in turbo.json. A container or microVM build is not affected. Its network sends every connection to the tunnel, with or without the variables.

When a build’s push is refused

A container or microVM build pushes through the runner, and the runner refuses a push that breaks the branch rule. The runner logs push refused: <refs>, and git prints one of the messages below. The rule: a build may push only to the claim’s branch. On an outerlayer/ branch, any push goes through, a force-push included. On any other branch, the push must create the branch or fast-forward it. The runner refuses a whole push. Some tools push refs of their own from a git hook, such as a checkpoint tool that pushes refs/<tool>/*. A push that sends the branch and such a ref together updates neither. If the tool’s pre-push hook exits non-zero when its own push is refused, git stops the push of the branch too.

After the build

When a pull request conflicts with its base branch

The Activity section shows Conflicts with and the base branch. For a pull request that a runner built, a runner resolves the conflict without being asked. If no run starts, check these causes:
  • Resolve merge conflicts automatically is off in Settings → Automations.
  • A person opened the pull request from their own session. A runner resolves conflicts only on a pull request that a runner built.
  • The runner already tried on this head of the pull request. It tries once for each head.
The Activity section says why no run started. To ask for a resolution, choose Request changes and say what you want. When the runner cannot resolve a conflict, it pushes nothing. Its comment on the item names the conflicting files and the decision it needs. Choose Request changes and give your answer. That starts a new run, and your answer is its instruction. See When a pull request conflicts with its base branch.

When a GitHub check fails

A runner fixes a failed GitHub check on a pull request that a runner built. If no run starts, check these causes:
  • Fix failed GitHub checks is off in Settings → Automations.
  • A person pushed the head. The runner acts only on a head that the factory pushed.
  • A GitHub check on the head still runs. The runner waits until none runs.
  • The runner reached its Attempts limit since a person last acted. The item says so.
The Activity section says why no run started. To ask for a fix, choose Request changes. To change the limit, open Settings → Automations, choose Fix failed GitHub checks, then Edit. See When a GitHub check fails.

Outcomes and reasons

Every build ends with an outcome. A build that did not finish often records a reason too. outerlayer work status --item <n> --json returns both, and the Activity section of the item page shows both.

Outcomes

A stopped build with the reason stopped by <name> through OuterLayer was ended with Stop build or outerlayer work stop. No runner builds the item again until someone asks. Without that reason, a person ran outerlayer runner stop --now or pressed Ctrl-C twice on the host. A runner then takes the item again. After incomplete, failed, timed_out or idle, no runner takes the item again until someone asks. See When a failed item is not built again.

Reasons

The tables group the reasons by the part of a build where they arise. A reason about memory, disk, a refused host or a killed command has its own section above. Where the item page shows a sentence for a code, the sentence follows the code in bold. A reason holds at most 200 characters, so a long reason ends early. outerlayer work logs --item <n> prints the rest. A hook of your own can write any other reason. See The cleanup hook.

Claim, token and repository

Governed context

These reasons apply to a repository that a control plane governs.

The runner and its host

Image

Runtimes and setup

When the context is unavailable

context_unavailable means the runner could not get the control plane. The reason says which of these happened. Then run outerlayer doctor.