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 code (first time only)
vmlinuz not foundMissing kernel assetjust build-kernel <arch> code
rootfs.erofs not foundMissing rootfs assetjust build-rootfs <arch> code
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 unexpectedlyMatching block/ask ruleCheck the active profile/corp enforcement rules and the VM security ledger
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 bootProfile/corp rule or broker state blocked materializationCheck profile rules, corp rules, and credential broker status
CLI hangs on first runWaiting for network it can’t reachCheck provider HTTP/DNS rules and brokered credential state

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 exec "capsem-doctor" # Full diagnostic suite (~10s)
just exec "capsem-doctor -k sandbox" # Just sandbox/security checks
just exec "capsem-doctor -k network" # Just network stack
just exec "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.