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 doctorAfter installation, use the stable command path:
sudo forkspan doctorEach 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 failuresThe last line is doctor: ok when every required check passes.
States
| State | Meaning |
|---|---|
pass | The check passed. |
warning | The machine works, but a value is low. For example, less than 2 GiB of free disk. |
failure | A requirement is not met. |
not checked | Doctor 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.
| Check | What it looks at |
|---|---|
platform | Linux or macOS on x86-64 or ARM64. |
host command: docker | The docker command is installed. |
host command: getent | Linux only. The command that reads the docker group. |
docker: reachability and architecture | docker info answers, and Docker runs on the architecture of this release. |
service manager | systemd on Linux. On macOS, launchctl for the logged-in user. |
configuration | The saved service.toml settings can be read. |
filesystem permissions | Doctor can create or read the installation and state directories. |
free disk | Free space for sandboxes and images. Less than 2 GiB is a warning. |
capacity | The 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 images | Information only. |
registration | The machine has a stored registration. Before installation this check is information only. |
engine payload | Installed machines. The bundled sandbox engine is complete and matches the release. |
docker: service identity access | Installed machines. The service account can reach Docker. |
api connectivity | The Forkspan API answers at the saved base URL. |
reported compatibility | Installed machines. The running service reported its compatibility in the last 60 seconds. |
smoke | Only with --smoke. |
Options
| Option | Effect |
|---|---|
--offline | Skip the network checks. They show as not checked. |
--smoke | Run 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. |
--json | Write 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.
Related commands
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 --checkforkspan 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.