skybox doctor
Diagnose common issues with your SkyBox setup, dependencies, and configuration.
Usage
skybox doctorArguments
This command takes no arguments.
Options
This command has no options.
Description
The doctor command runs a series of health checks to verify that SkyBox and its dependencies are properly configured. It checks:
| Check | Description |
|---|---|
| Docker | Verifies Docker is installed and the daemon is running |
| Mutagen | Verifies the Mutagen sync binary is installed and up to date; auto-repairs if missing or outdated |
| Devcontainer CLI | Verifies the devcontainer CLI is installed |
| Configuration | Verifies SkyBox config exists and is valid |
| SSH Connectivity | Tests SSH connection to all configured remotes |
Each check reports one of three statuses:
| Status | Icon | Meaning |
|---|---|---|
| Pass | ✓ | Check passed successfully |
| Warning | ! | Non-critical issue, SkyBox may still work |
| Fail | ✗ | Critical issue that must be fixed |
For warnings and failures, the command suggests a fix.
Examples
# Run all health checks
skybox doctorExample Output (All Passing)
SkyBox Doctor
────────────────────────────────────────
✓ Docker: Docker 24.0 is running
✓ Mutagen: Mutagen v0.18.1
✓ Devcontainer CLI: devcontainer 0.62.0
✓ Configuration: Config loaded (2 remotes)
✓ SSH: work: Connected to work-server
✓ SSH: personal: Connected to personal-server
────────────────────────────────────────
6 passed
All checks passed. SkyBox is ready to use!Example Output (With Issues)
SkyBox Doctor
────────────────────────────────────────
✓ Docker: Docker 24.0 is running
✓ Mutagen: Mutagen v0.18.1 (installed)
✓ Devcontainer CLI: devcontainer 0.62.0
✓ Configuration: Config loaded (2 remotes)
✓ SSH: work: Connected to work-server
✗ SSH: personal: Cannot connect: Connection refused
Fix: Check SSH key and host configuration for 'personal'
────────────────────────────────────────
4 passed, 1 warnings, 1 failed
Some checks failed. Please fix the issues above.Exit Codes
| Code | Meaning |
|---|---|
| 0 | All checks passed (warnings are allowed) |
| 1 | One or more checks failed |
Common Issues and Fixes
Docker not running
✗ Docker: Docker is installed but not running
Fix: Start Docker Desktop applicationStart Docker Desktop or run systemctl start docker on Linux.
Mutagen not installed or outdated
Doctor automatically detects missing, outdated, or corrupted Mutagen binaries and attempts to repair them by re-extracting from the bundled asset (or downloading as a fallback). If repair succeeds, you'll see:
✓ Mutagen: Mutagen v0.18.1 (installed)If automatic repair fails:
✗ Mutagen: Mutagen not installed — automatic repair failed
Fix: Download Mutagen manually and place at ~/.skybox/bin/mutagenDevcontainer CLI not found
! Devcontainer CLI: Devcontainer CLI not found
Fix: brew install devcontainerInstall the devcontainer CLI. On macOS with Homebrew:
brew install devcontainerOr via npm (any platform):
npm install -g @devcontainers/cliSSH connection failed
✗ SSH: myserver: Cannot connect: Permission denied
Fix: Check SSH key and host configuration for 'myserver'Verify:
- SSH key exists and has correct permissions (
chmod 600) - SSH host is reachable
- Correct user/host in SkyBox config
- SSH agent is running with key loaded
Configuration issues
✗ Configuration: Config file exists but failed to load
Fix: Check ~/.skybox/config.yaml for syntax errorsCheck your config file for YAML syntax errors. You can validate with:
cat ~/.skybox/config.yamlSee Also
- skybox init - Initial setup wizard
- skybox config - View/modify configuration
- Troubleshooting Guide - Common issues and solutions