Skip to content

Troubleshooting

SymptomCauseFix
codesign: command not foundXcode CLTools not installedxcode-select --install
Entitlement crash on launchBinary not codesignedjust doctor to diagnose, then just run (signs automatically)
CAPSEM_ASSETS_DIR errorAssets not builtjust build-assets (first time only)
vmlinuz not foundMissing kernel assetjust build-kernel
rootfs.img not foundMissing rootfs assetjust build-rootfs
SymptomCauseFix
Stuck at “VsockConnected”Agent crashed or missingRebuild initrd: just run repacks automatically
Boot > 1 secondSlow venv creationCheck uv is on PATH in rootfs; fallback to python3 -m venv is 10x slower
Network setup slowDNS/iptables issueCheck capsem-doctor -k network for L1-L2 failures
SymptomCauseFix
curl: (60) SSL certificate problemCA bundle not injectedCheck capsem-doctor -k "ca_env"
Domain blocked unexpectedlyNot in allow listCheck ~/.capsem/user.toml domain policy
All HTTPS failsMITM proxy not runningCheck capsem-doctor -k "net_proxy" for L2 status
Slow downloadsExpected for air-gapped proxyAll traffic routes through the MITM proxy by design
SymptomCauseFix
claude: command not foundNot in PATHCheck /opt/ai-clis/bin is in PATH: echo $PATH
disabled by policy at bootAPI key not configuredAdd key to ~/.capsem/user.toml
CLI hangs on first runWaiting for network it can’t reachCheck provider is in the domain allow list

When something goes wrong, capsem-doctor is the fastest way to pinpoint the issue:

Terminal window
just run "capsem-doctor" # Full diagnostic suite (~10s)
just run "capsem-doctor -k sandbox" # Just sandbox/security checks
just run "capsem-doctor -k network" # Just network stack
just run "capsem-doctor -x" # Stop on first failure

The test suite is layered L1-L7. Failures at lower layers explain failures at higher layers — fix from the bottom up.

Every VM session records telemetry to a SQLite database:

Terminal window
just inspect-session # Most recent session
just inspect-session <id> # Specific session

This shows MCP tool usage, network requests, boot timing, and snapshot operations. Useful for diagnosing slow operations or missing telemetry.