Troubleshooting
Fixes for the errors you can see while you install a sandbox server and start a review.
Start with forkspan doctor. It names the failed check and, for most checks, the fix. See
Check a machine with forkspan doctor.
The command blocks on this page have a tab for Linux and a tab for macOS. Commands in the text
leave out sudo: on Linux, run them as root. For what each exit code means, see
Exit codes.
Installation
Each installer error starts with error:. A failed prerequisite looks like
error: the <check> prerequisite is not met: <detail>. <remedy>.
| Message | Cause and fix |
|---|---|
docker is not installed | Install Docker Engine on Linux, or Docker Desktop or another Docker runtime on macOS. Forkspan does not install Docker. |
docker info exited with <status> | Docker is not running, or the installing user cannot reach it. Start Docker and run docker info as the same user. |
the Docker probe did not finish in time | Docker did not answer within 10 seconds. Wait until Docker is ready, then try again. |
Docker runs on the <arch> architecture while this release targets <arch> | The executable is for another architecture. Use the executable for the architecture of the machine. |
the host reports no docker group | Linux only. Install Docker Engine with its docker group. The service account reaches Docker through that group. |
systemd is not available | Linux only. Use a host with systemd, such as Ubuntu 22.04 or 24.04. |
install as the logged-in user without sudo | macOS only. Run the installer again without sudo. |
<os>-<arch> is not a supported platform | Use Linux or macOS on x86-64 or ARM64. Windows is not supported, including WSL2. |
--base-url is required; an interactive terminal prompts for it | Add --base-url with the address of the Forkspan web app. |
the registration token is never accepted as an argument | Pass the token on standard input with --token-stdin, as the wizard command does. |
--token-stdin was given but the token on stdin is empty | The TOKEN variable is empty. Set it again, then run the command. |
the command path is occupied by another link or an unrelated executable occupies the command path | Another file is at forkspan in the command directory. Remove it, or choose another directory with --bin-dir. |
the directory is not empty and carries no forkspan marker | The installation directory holds files that Forkspan did not write. Empty it, or choose another --prefix. |
the installed binary differs from this release | A different executable with the same version is already installed. Use the executable that installed the machine. |
On Linux, the installer needs root. It does not check for root first. Without sudo, it fails
with exit code 4 when it cannot create the service account or write system directories.
Registration
Registration errors start with error: registration was refused.
| Message | Cause and fix |
|---|---|
the enrollment token was already consumed | Each token registers one machine. Create a new token in the wizard. |
ENROLLMENT_TOKEN_EXPIRED | The token is older than 15 minutes. Select Create a new token in the wizard. |
ENROLLMENT_TOKEN_REPLACED | Someone created a newer token for this registration. Use the newest token. |
ENROLLMENT_TOKEN_NOT_FOUND | The token is wrong, or the registration was cancelled. Copy the token again, or start a new registration. |
OWNERSHIP_MISMATCH | The token is for a workspace-owned machine. Add --ownership workspace, as the wizard command does. |
REGISTRATION_REVOKED | The registration was revoked in the web app. Start a new registration. |
this machine is already registered as <id> | The machine already has a registration. To replace it with the new token, add --reregister. |
If the installer fails at registration, the service files are already installed but the service
does not start. Create a new token, then run forkspan register --token-stdin and
forkspan start. See Register an installed machine.
error: registration failed with exit code 4 means that the Forkspan API did not answer. Check
outbound HTTPS from the machine to the address in --base-url, then try again.
The wizard does not move on
The wizard checks for the machine every 5 seconds. If it keeps waiting:
forkspan status. The registration line must show registered.forkspan doctor. The api connectivity check must pass.forkspan logs.A machine does not take work
Run forkspan status --check. It exits 0 only when the machine can take work. If it exits 3,
read the status output:
| Line | What to check |
|---|---|
service | The service must run. Start it with forkspan start. |
registration | not registered means the machine has no credential. Register it. |
connection | Disconnected means the service cannot reach Forkspan. Check outbound HTTPS. Revoked means the registration was revoked in the web app. |
maintenance | draining means the machine is not taking new work. Run forkspan resume to clear a local drain. |
If maintenance shows draining (maintenance record unreadable by the service …), root owns the
maintenance record and the service cannot read it. Run sudo forkspan doctor --fix. The service
also gets the record back at its next start.
An update waits at the drain
sudo forkspan update prints what it waits for every 10 seconds, for example
waiting for 0.3.0 to drain: 20s of 3600s, 0 active, the backend has not confirmed settled work.
If Forkspan refuses the machine credential, the update stops early and tells you to register the
machine again with --reregister. Nothing changes on the machine.
An update from 0.2.0 runs the 0.2.0 command, which cannot say why it waits. If it prints nothing, open a second terminal and give the maintenance record to the service account:
sudo chown forkspan-sandbox:forkspan-sandbox /var/lib/forkspan-sandbox/maintenance.jsonAfter the update finishes, run sudo forkspan doctor --fix once.
On macOS, the machine takes work only while you are signed in and Docker runs. After a restart, start Docker and sign in.
Change a setting
Save the change with forkspan config set, then restart the service. The service loads the new
value at its next start:
sudo forkspan config set cpu-millicores 8000
sudo forkspan restartThe keys and their limits are in Settings.
Reviews
The review form checks the prerequisites before you start. These messages come from that check.
| Message | Cause and fix |
|---|---|
| That repository is not connected to this workspace | No repository profile uses this repository. Create a repository profile with the clone URL of the repository. |
| Your own credential is missing | Your personal GitHub account is not connected. The screen to connect it is planned. See Connect your GitHub account. |
A failed Credential · claude precheck | You have no active Anthropic credential that includes you. Ask an Owner or Admin to add one with Who draws it set to Members. See Add an Anthropic credential. |
A failed Sandbox profile precheck | The repository profile is disabled. Enable it on the profile. |
| Choose a sandbox server for this review | Select a server in Sandbox server. |
| This pull request already has a review record | Open the existing record instead. |
When a review stays in the queue, it often waits for the image. Build the repository profile on the server that you chose for the review.
Collect diagnostics
For a support request, write a diagnostic archive:
sudo forkspan diagnostics --output ~/forkspan-diagnostics.tar.gzThe archive holds version details, the doctor report, settings without secrets and at most 24 hours of service logs. It excludes credentials, tokens, repository files, prompts and workload output. The command does not upload anything, and it refuses to replace an existing file.