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 unexpectedlyNo matching Profile V2 enforcement allow rule, or a higher-priority block matchedCheck Settings -> Policy, capsem logs, and the profile rule provenance
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 bootProvider, credential reference, or profile section is disabled/lockedCheck the selected profile and Service Settings V2 credential references
CLI hangs on first runWaiting for network it cannot reachCheck provider/package rules and profile asset/package contract

Docker builds (kernel, rootfs, cross-compile, install tests) accumulate images and build cache inside the Colima VM. The VM disk only grows — freed space isn’t returned to macOS without fstrim.

The build system auto-prunes after Docker-heavy recipes (_docker-gc: stale images/cache >72h + fstrim). If your disk is already full:

Terminal window
# One-time recovery
docker system prune -af --volumes # free space inside VM
colima ssh -- sudo fstrim /mnt/lima-colima # release it to macOS
# Check current state
du -sh ~/.colima # host disk usage
colima ssh -- docker system df # Docker usage inside VM

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.

When reporting an installed-release issue, include a debug report first:

Terminal window
capsem debug

The same report is available in Settings -> About as Copy debug report. It includes the binary version, build hash, setup-state flags, profile catalog state, selected profile id/revision, VM asset hashes, Security Engine health, runtime rule counters, and redacted service/gateway log tails needed to map the report back to a specific release payload.

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.

For security-rule issues, prefer the typed surfaces first:

  • capsem logs <id> for decision/finding attribution;
  • Settings -> Policy for live enforcement/detection rules and backtests;
  • /debug/report or capsem debug for profile/catalog/runtime health;
  • Rule Authoring for priority and ownership semantics.