VA

vastai-common-errors

Diagnose Vast.ai errors using standard status codes and troubleshooting guides for GPU instance management.

Install

mkdir -p .claude/skills/vastai-common-errors && curl -L -o skill.zip "https://agentskills.codes/api/skills/download/8787" && unzip -o skill.zip -d .claude/skills/vastai-common-errors && rm skill.zip

Installs to .claude/skills/vastai-common-errors

Activation

This is the description your AI agent reads to decide when to run this skill — the better it matches your request, the more reliably it fires.

Diagnose and fix Vast.ai common errors and exceptions.
54 charsno explicit “when” trigger
Intermediate

Key capabilities

  • Map HTTP status codes to fixes
  • Diagnose instance status errors
  • Troubleshoot SSH connection issues
  • Verify GPU and CUDA availability
  • Check platform connection status

How it works

The tool maps specific API responses and instance states to known causes and corrective commands.

Inputs & outputs

You give it
Error code or instance status
You get back
Actionable resolution steps

When to use vastai-common-errors

  • Debug Vast.ai API authentication errors
  • Troubleshoot instance creation and docker loading failures
  • Resolve GPU rental configuration issues
  • Check Vast.ai platform status for connection errors

About this skill

Vast.ai Common Errors

Overview

Quick reference for the most common Vast.ai errors across CLI, REST API, and instance operations. Vast.ai uses HTTP status codes for API errors and instance status strings for machine-level issues.

Prerequisites

  • Vast.ai CLI installed (pip install vastai)
  • API key configured

Instructions

API Errors

HTTP CodeErrorCauseFix
401UnauthorizedInvalid or missing API keyVerify with vastai show user; regenerate at cloud.vast.ai
403ForbiddenInsufficient balance or permissionsAdd credits; check account restrictions
404Not FoundInstance or offer ID does not existRe-search offers; instance may have been destroyed
409ConflictOffer already rented by someone elseSearch again and pick another offer
429Rate LimitedToo many API requestsWait 60s and retry with backoff
500Server ErrorVast.ai platform issueCheck status.vast.ai; retry after 5 minutes

Instance Status Errors

StatusMeaningAction
loadingDocker image downloadingWait; large images can take 5-10 min
runningInstance readyConnect via SSH
exitedContainer stoppedCheck logs: vastai logs INSTANCE_ID
errorProvisioning failedDestroy and try a different offer
offlineHost machine went downDestroy; provision on a different host

Common CLI Errors

# Error: "No offers found"
# Cause: Filters too restrictive
# Fix: Relax filters
vastai search offers 'num_gpus=1 rentable=true' --limit 5  # broader search

# Error: "Insufficient funds"
# Fix: Check balance and add credits
vastai show user --raw | python3 -c "import sys,json; d=json.load(sys.stdin); print(f'Balance: \${d[\"balance\"]:.2f}')"

# Error: "Instance creation failed"
# Fix: Try a different offer or smaller disk
vastai create instance OFFER_ID --image ubuntu --disk 10

Docker Image Errors

# Error: Instance stuck in "loading" for >10 minutes
# Cause: Very large Docker image or slow host internet
# Fix: Use smaller base images or pre-cached templates
# Good: pytorch/pytorch:2.2.0-cuda12.1-cudnn8-runtime (4GB)
# Bad:  custom-image-with-everything:latest (30GB)

# Error: "Container exited immediately"
# Cause: Bad entrypoint or missing dependencies
# Fix: Check logs
vastai logs INSTANCE_ID --tail 50

SSH Connection Errors

# Error: "Connection refused" after instance shows "running"
# Cause: SSH server not yet started inside container
# Fix: Wait 30-60 seconds after status changes to running

# Error: "Permission denied (publickey)"
# Cause: SSH key not uploaded to Vast.ai
# Fix: Upload at cloud.vast.ai > Account > SSH Keys

# Error: "Host key verification failed"
# Fix: Use -o StrictHostKeyChecking=no for ephemeral instances
ssh -p PORT -o StrictHostKeyChecking=no root@HOST

GPU/CUDA Errors

# Error: "CUDA not available" inside container
# Cause: Docker image missing CUDA or driver mismatch
# Fix: Use NVIDIA-provided images with matching CUDA version
# Check host CUDA: vastai show instance ID --raw | jq '.cuda_max_good'

# Error: "CUDA out of memory"
# Cause: Model too large for GPU VRAM
# Fix: Search for more VRAM or reduce batch size
vastai search offers 'gpu_ram>=48 num_gpus=1' --order dph_total

Output

  • Identified error with matching resolution
  • Corrected configuration or command
  • Verification that the fix resolves the issue

Error Handling

CategoryDiagnostic Command
Auth issuesvastai show user
Instance statusvastai show instances
Instance logsvastai logs INSTANCE_ID
Offer availabilityvastai search offers 'rentable=true' --limit 5
Balance checkvastai show user --raw | jq '.balance'

Resources

Next Steps

For comprehensive debugging, see vastai-debug-bundle.

Examples

Instance won't start: Run vastai show instance ID --raw | jq '{actual_status, status_msg}' to get the status message. If error, destroy and reprovision on a different host.

Billing surprise: Run vastai show instances to check for forgotten running instances. Destroy any you're not using to stop charges.

When not to use it

  • Debugging non-Vast.ai infrastructure
  • Ignoring platform status alerts

Prerequisites

Vast.ai CLI installedAPI key configured

Limitations

  • Instance may have been destroyed
  • Host machine went down
  • Very large Docker image

How it compares

It provides a centralized diagnostic reference for Vast.ai-specific errors instead of generic troubleshooting.

Compared to similar skills

vastai-common-errors side by side with the closest alternatives in the catalog.

SkillInstallsUpdatedSafetyDifficulty
vastai-common-errors (this skill)027dReviewIntermediate
network-info35moReviewBeginner
debug-cluster28moReviewIntermediate
doctor13moCautionBeginner

Try saying

Example prompts that trigger this skill in your AI assistant.

More by jeremylongshore

View all by jeremylongshore

analyzing-logs

jeremylongshore

Analyze application logs to detect performance issues, identify error patterns, and improve stability by extracting key insights.

14123

ollama-setup

jeremylongshore

Configure auto-configure Ollama when user needs local LLM deployment, free AI alternatives, or wants to eliminate hosted API costs. Trigger phrases: "install ollama", "local AI", "free LLM", "self-hosted AI", "replace OpenAI", "no API costs". Use when appropriate context detected. Trigger with relevant phrases based on skill purpose.

1167

backtesting-trading-strategies

jeremylongshore

Backtest crypto and traditional trading strategies against historical data. Calculates performance metrics (Sharpe, Sortino, max drawdown), generates equity curves, and optimizes strategy parameters. Use when user wants to test a trading strategy, validate signals, or compare approaches. Trigger with phrases like "backtest strategy", "test trading strategy", "historical performance", "simulate trades", "optimize parameters", or "validate signals".

1071

generating-database-seed-data

jeremylongshore

Process this skill enables AI assistant to generate realistic test data and database seed scripts for development and testing environments. it uses faker libraries to create realistic data, maintains relational integrity, and allows configurable data volumes. u... Use when working with databases or data models. Trigger with phrases like 'database', 'query', or 'schema'.

1033

cursor-codebase-indexing

jeremylongshore

Execute set up and optimize Cursor codebase indexing. Triggers on "cursor index setup", "codebase indexing", "index codebase", "cursor semantic search". Use when working with cursor codebase indexing functionality. Trigger with phrases like "cursor codebase indexing", "cursor indexing", "cursor".

885

testing-mobile-apps

jeremylongshore

Execute mobile app testing on iOS and Android devices/simulators. Use when performing specialized testing. Trigger with phrases like "test mobile app", "run iOS tests", or "validate Android functionality".

810

Search skills

Search the agent skills registry