Forkspan

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>.

MessageCause and fix
docker is not installedInstall 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 timeDocker 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 groupLinux only. Install Docker Engine with its docker group. The service account reaches Docker through that group.
systemd is not availableLinux only. Use a host with systemd, such as Ubuntu 22.04 or 24.04.
install as the logged-in user without sudomacOS only. Run the installer again without sudo.
<os>-<arch> is not a supported platformUse Linux or macOS on x86-64 or ARM64. Windows is not supported, including WSL2.
--base-url is required; an interactive terminal prompts for itAdd --base-url with the address of the Forkspan web app.
the registration token is never accepted as an argumentPass the token on standard input with --token-stdin, as the wizard command does.
--token-stdin was given but the token on stdin is emptyThe 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 pathAnother 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 markerThe installation directory holds files that Forkspan did not write. Empty it, or choose another --prefix.
the installed binary differs from this releaseA 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.

MessageCause and fix
the enrollment token was already consumedEach token registers one machine. Create a new token in the wizard.
ENROLLMENT_TOKEN_EXPIREDThe token is older than 15 minutes. Select Create a new token in the wizard.
ENROLLMENT_TOKEN_REPLACEDSomeone created a newer token for this registration. Use the newest token.
ENROLLMENT_TOKEN_NOT_FOUNDThe token is wrong, or the registration was cancelled. Copy the token again, or start a new registration.
OWNERSHIP_MISMATCHThe token is for a workspace-owned machine. Add --ownership workspace, as the wizard command does.
REGISTRATION_REVOKEDThe 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:

Run forkspan status. The registration line must show registered.
Run forkspan doctor. The api connectivity check must pass.
Read the service logs with 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:

LineWhat to check
serviceThe service must run. Start it with forkspan start.
registrationnot registered means the machine has no credential. Register it.
connectionDisconnected means the service cannot reach Forkspan. Check outbound HTTPS. Revoked means the registration was revoked in the web app.
maintenancedraining 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.json

After 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 restart

The keys and their limits are in Settings.

Reviews

The review form checks the prerequisites before you start. These messages come from that check.

MessageCause and fix
That repository is not connected to this workspaceNo repository profile uses this repository. Create a repository profile with the clone URL of the repository.
Your own credential is missingYour personal GitHub account is not connected. The screen to connect it is planned. See Connect your GitHub account.
A failed Credential · claude precheckYou 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 precheckThe repository profile is disabled. Enable it on the profile.
Choose a sandbox server for this reviewSelect a server in Sandbox server.
This pull request already has a review recordOpen 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.gz

The 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.

On this page