Forkspan

Check a machine with forkspan doctor

Read the doctor report, fix what it names, and confirm a machine can take work.

forkspan doctor inspects the host and the installation. It changes nothing, so you can run it at any time. Run it before you install, after you install, and when a machine stops taking work.

Run the report

Before installation, run the executable from the directory where you saved it. On Linux, run it as root. As another user, doctor cannot inspect the state directory and exits 3.

sudo ./forkspan doctor

After installation, use the stable command path:

sudo forkspan doctor

Each line starts with a state and a check name. A check that has a fix prints a remedy: line under it. This report comes from a Linux host before installation, run without root:

[pass] platform: linux-x86_64 is supported
[pass] host command: docker: docker is available
[pass] host command: getent: getent is available
[pass] docker: reachability and architecture: Docker answers on x86_64
[pass] service manager: systemd is available
[pass] configuration: no saved settings yet; defaults apply
[not checked] filesystem permissions: the state directory at /var/lib/forkspan-sandbox cannot be created: permission denied
       remedy: run doctor as the installation owner
[pass] free disk: 2588905472 bytes are free
[pass] capacity: capacity covers the reserve: 20000 millicores, 67148804096 bytes memory, 1 slots
[pass] repository images: repository images are pulled per assignment and are not host prerequisites
[not checked] registration: no installation is present yet
doctor: the report is incomplete or has failures

The last line is doctor: ok when every required check passes.

States

StateMeaning
passThe check passed.
warningThe machine works, but a value is low. For example, less than 2 GiB of free disk.
failureA requirement is not met.
not checkedDoctor could not run the check. The line gives the reason, such as a missing permission or a failed prerequisite. A check that is not checked is not the same as a check that failed.

Checks

Doctor runs these checks in this order. Some checks run only on an installed machine.

CheckWhat it looks at
platformLinux or macOS on x86-64 or ARM64.
host command: dockerThe docker command is installed.
host command: getentLinux only. The command that reads the docker group.
docker: reachability and architecturedocker info answers, and Docker runs on the architecture of this release.
service managersystemd on Linux. On macOS, launchctl for the logged-in user.
configurationThe saved service.toml settings can be read.
filesystem permissionsDoctor can create or read the installation and state directories.
free diskFree space for sandboxes and images. Less than 2 GiB is a warning.
capacityThe configured capacity is at least 500 CPU millicores, 512 MiB of memory and one concurrent run. Less than one core or 1 GiB is a warning.
repository imagesInformation only.
registrationThe machine has a stored registration. Before installation this check is information only.
engine payloadInstalled machines. The bundled sandbox engine is complete and matches the release.
docker: service identity accessInstalled machines. The service account can reach Docker.
api connectivityThe Forkspan API answers at the saved base URL.
reported compatibilityInstalled machines. The running service reported its compatibility in the last 60 seconds.
smokeOnly with --smoke.

Options

OptionEffect
--offlineSkip the network checks. They show as not checked.
--smokeRun one small, fixed sandbox through the bundled engine. It uses no custom command, image or repository. It refuses to run when it would displace active work, and it removes only what it created.
--jsonWrite one JSON document to stdout. Progress goes to stderr.

Each check has a 10-second limit, and the whole report has a 60-second limit.

Doctor exits 0 when every required check passes. See Exit codes for the other codes and for --offline.

forkspan status reports the installation, the service, the registration, the engine, the connection and the maintenance state. Plain status exits 0 whenever it can inspect the machine. status --check exits 0 only when the machine can accept work.

sudo forkspan status --check

forkspan logs prints the last 200 lines of service logs. Add --follow to stream them.

forkspan diagnostics --output <path> writes one private archive for a support request. It contains 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. Nothing is uploaded.

For fixes to common failures, see Troubleshooting.

On this page