Troubleshooting
First Steps
Section titled “First Steps”Before diving into specific issues, run the preflight check:
vybn checkThis validates gcloud authentication, project configuration, API access, and network-specific prerequisites. It often catches the root cause immediately.
Enable verbose output
Section titled “Enable verbose output”Add --verbose to any command to enable shell trace output (set -x). This shows every command as it executes, which is useful for diagnosing failures:
vybn --verbose deployvybn --verbose connectYou can also set VYBN_VERBOSE=true in ~/.vybnrc to enable it permanently.
General
Section titled “General”SSH connection timeout
Section titled “SSH connection timeout”The VM may still be starting up. Wait and retry, or check its state:
vybn statusStartup script not completing
Section titled “Startup script not completing”If deploy times out, vybn automatically prints the last 30 lines of the setup log. To view the full log:
vybn ssh 'cat /var/log/vybn-setup.log'tmux sessions lost after stop/start
Section titled “tmux sessions lost after stop/start”This is expected. tmux runs in memory and doesn’t survive VM shutdown. Your repos and files on disk persist. Create new sessions after restarting:
vybn connect# orvybn session myprojectTailscale Issues
Section titled “Tailscale Issues””Tailscale is not running or not logged in”
Section titled “”Tailscale is not running or not logged in””Start Tailscale on your local machine:
tailscale upDeploy times out waiting for SSH
Section titled “Deploy times out waiting for SSH”The auth key may be invalid or expired. Generate a new one at the Tailscale admin console.
You can also check the startup log directly:
# GCP provider — via GCP serial consolegcloud compute ssh root@<vm-name> -- cat /var/log/vybn-setup.log
# SSH provider — via bootstrap SSHssh user@your-server cat /var/log/vybn-setup.log“Host key verification failed”
Section titled ““Host key verification failed””After redeploying, the host key changes. vybn deploy clears stale entries automatically, but if it persists:
ssh-keygen -R <hostname> -f ~/.vybn/ssh/known_hostsVM not visible on tailnet after stop/start
Section titled “VM not visible on tailnet after stop/start”Tailscale reconnects automatically but it may take a moment. Check with:
tailscale statusConnecting from iOS
Section titled “Connecting from iOS”- Install the Tailscale app and join the same tailnet
- Use any SSH client (e.g., Termius) to connect to
claude@<petname>(the Tailscale hostname shown during deploy) - Import the private key from
~/.vybn/ssh/id_ed25519into the SSH client
IAP Issues
Section titled “IAP Issues””gcloud credentials are expired”
Section titled “”gcloud credentials are expired””Re-authenticate with the Google Cloud SDK:
gcloud auth loginSSH Provider Issues
Section titled “SSH Provider Issues””VYBN_SSH_HOST is not set”
Section titled “”VYBN_SSH_HOST is not set””Set the host in ~/.vybnrc or run vybn init to configure the SSH provider:
vybn initCannot connect to server via SSH
Section titled “Cannot connect to server via SSH”Verify you can reach the server directly:
ssh -o ConnectTimeout=10 user@your-serverCommon causes:
- Wrong hostname, user, port, or key path
- Server firewall blocking your IP
- SSH service not running on the server
Setup script fails on the server
Section titled “Setup script fails on the server”The setup script requires root or sudo access. Check the log:
ssh user@your-server cat /var/log/vybn-setup.logEnsure the server runs Ubuntu 22.04+, Ubuntu 24.04, or Debian 12+.
”VM lifecycle is managed externally”
Section titled “”VM lifecycle is managed externally””vybn start and vybn stop are not available for the SSH provider. Start and stop your server directly through your hosting provider or OS tools.
Toolchain Issues
Section titled “Toolchain Issues””Unknown toolchain” error
Section titled “”Unknown toolchain” error”The toolchain name must exactly match a file in vm-setup/toolchains/. Valid names are:
nodepythonrustgodocker
Common mistakes: nodejs instead of node, golang instead of go, or uppercase names like Node. Names are case-sensitive and must be lowercase.
Claude Code checksum verification failed
Section titled “Claude Code checksum verification failed”The downloaded binary didn’t match the SHA-256 hash in Anthropic’s manifest. This usually means a transient download error.
Fix: Re-run vybn deploy (or vybn update). The installer retries the download.
If the manifest itself is unreachable (e.g., network issue), the installer logs a warning and continues without verification. Check vybn logs for details.