Troubleshooting Guide
Solutions to common issues and problems.
Table of Contents
- Connection Issues
- Instance Problems
- Performance Issues
- Storage Issues
- Network Issues
- CLI Issues
- API Issues
- Billing Issues
Connection Issues
Cannot Connect via SSH
Symptoms:
- Connection timeout
- Connection refused
- Permission denied
Diagnosis:
# Check instance status
lambda status inst_abc123
# Check firewall rules
lambda firewall list inst_abc123
# Verify SSH key
lambda ssh-keys list
# Test connection
ssh -v lambda@instance-ipSolutions:
Instance Not Running
# Start instance
lambda start inst_abc123
# Wait for ready
lambda wait inst_abc123Firewall Blocking SSH
Via Dashboard:
- Go to Dashboard → Instances
- Click on your instance
- Go to "Firewall" tab
- Check if there's a rule allowing port 22 from your IP
- If missing, click "Add Rule":
- Port:
22 - Source: Your IP (auto-detected) or
0.0.0.0/0for anywhere - Click "Save"
- Port:
Via CLI:
# Check if port 22 is open
lambda firewall list inst_abc123 | grep "22"
# Allow SSH from your IP
lambda firewall allow inst_abc123 --port 22 --source $(curl -s ifconfig.me)/32Wrong SSH Key
Via Dashboard:
- Go to Dashboard → Settings → SSH Keys
- Check which keys are registered
- Add your key if missing: Click "Add SSH Key" and paste public key
- Go to your instance → "SSH Keys" tab
- Add the key to the instance
Via CLI:
# List keys on instance
lambda ssh-keys list --instance inst_abc123
# Add correct key
lambda ssh-keys add --name my-key --file ~/.ssh/id_rsa.pub
# Update instance
lambda ssh-keys update inst_abc123 --add key_new123Wrong Username
Default username is lambda, not root or ubuntu:
# Correct
ssh lambda@instance-ip
# Incorrect
ssh root@instance-ip # ✗
ssh ubuntu@instance-ip # ✗Instance Problems
Instance Won't Start
Symptoms:
- Instance stuck in "starting" state
- Timeout errors
Diagnosis:
# Check instance status
lambda status inst_abc123
# Check quotas
lambda quotas
# Check billing
lambda billing statusSolutions:
Quota Exceeded
# View current usage
lambda quotas
# Request quota increase
lambda quotas request --instances 20 --vcpu 100Billing Payment Failed
# Check billing status
lambda billing status
# Update payment method
lambda billing payment-method update
# Pay outstanding balance
lambda billing pay --invoice inv_abc123Region Capacity
Try a different region:
lambda create instance \
--name my-instance \
--type compute-4x \
--region eu-west-1 # Different regionInstance Won't Stop
Symptoms:
- Instance stuck in "stopping" state
Solutions:
# Force stop
lambda stop inst_abc123 --force
# If still stuck, contact support
lambda support create-ticket \
--subject "Instance stuck in stopping state" \
--instance inst_abc123Instance Deleted Accidentally
Recovery:
# List recent snapshots
lambda snapshot list --instance inst_abc123
# Restore from snapshot
lambda create instance \
--from-snapshot snap_most_recent \
--name restored-instancePrevention:
Enable snapshot protection:
# Schedule automatic snapshots
lambda snapshot schedule inst_abc123 \
--frequency daily \
--retain 7 \
--protect true # Cannot be deleted accidentallyPerformance Issues
High CPU Usage
Diagnosis:
# Check CPU metrics
lambda metrics inst_abc123 --metric cpu --period 1h
# SSH in and investigate
lambda ssh inst_abc123
top -bn1Common Causes:
-
Insufficient Resources
# Resize to larger instance lambda resize inst_abc123 --type compute-8x -
Runaway Process
# Identify process ps aux --sort=-%cpu | head -10 # Kill if necessary kill -9 <PID> -
Crypto Mining / Compromise
# Check for suspicious processes ps aux | grep -E "(xmrig|minerd|cryptonight)" # If compromised, destroy and rebuild lambda destroy inst_abc123 lambda create instance --from-snapshot snap_clean_backup
High Memory Usage
Diagnosis:
# Check memory metrics
lambda metrics inst_abc123 --metric memory
# SSH in and investigate
lambda ssh inst_abc123
free -h
ps aux --sort=-%mem | head -10Solutions:
-
Resize Instance
lambda resize inst_abc123 --type memory-8x -
Identify Memory Leak
# Monitor memory over time watch -n 1 'free -h' # Check application logs for leaks -
Add Swap (temporary)
sudo fallocate -l 4G /swapfile sudo chmod 600 /swapfile sudo mkswap /swapfile sudo swapon /swapfile
Slow Disk I/O
Diagnosis:
# Check IOPS
lambda metrics inst_abc123 --metric disk_iops
# Test disk performance
lambda ssh inst_abc123
sudo fio --name=test --size=1G --rw=randrw --bs=4k --ioengine=libaio --iodepth=16Solutions:
-
Upgrade to Storage-Optimized
lambda resize inst_abc123 --type storage-4x -
Use High-Performance Volumes
lambda create volume \ --name high-perf \ --size 500GB \ --type nvme-high-performance
Network Latency
Diagnosis:
# Check network metrics
lambda metrics inst_abc123 --metric network_latency
# Test latency
ping instance-ip
traceroute instance-ipSolutions:
-
Choose Closer Region
# Migrate to closer region lambda snapshot create inst_abc123 lambda create instance \ --from-snapshot snap_abc123 \ --region closest-region -
Use CDN for static assets
-
Enable HTTP/2 or HTTP/3
Storage Issues
Volume Won't Attach
Symptoms:
- Error: "Volume already attached"
- Error: "Volume in use"
Solutions:
# Check volume status
lambda volume info vol_abc123
# Detach from previous instance
lambda volume detach vol_abc123
# Attach to new instance
lambda volume attach vol_abc123 --instance inst_xyz789Disk Full
Diagnosis:
lambda ssh inst_abc123
df -h
du -sh /* 2>/dev/null | sort -rh | head -10Solutions:
-
Clean Up Space
# Remove old logs sudo journalctl --vacuum-time=7d # Clean package cache sudo apt clean # Remove old kernels sudo apt autoremove -
Expand Volume
# Resize volume lambda volume resize vol_abc123 --size 200GB # Extend filesystem lambda ssh inst_abc123 sudo resize2fs /dev/vdb -
Add New Volume
lambda create volume --name extra-storage --size 500GB lambda attach volume vol_new123 --instance inst_abc123
Failed Snapshot
Diagnosis:.
lambda snapshot list --filter failed
lambda snapshot info snap_failed123Solutions:
# Retry snapshot
lambda snapshot create inst_abc123 --name "retry-$(date +%s)"
# If volume is too active, stop instance first
lambda stop inst_abc123
lambda snapshot create inst_abc123 --name "snapshot-while-stopped"
lambda start inst_abc123Network Issues
Cannot Reach Instance
Diagnosis:
# Check instance public IP
lambda network info inst_abc123
# Test connectivity
ping instance-ip
telnet instance-ip 80
# Check firewall
lambda firewall list inst_abc123Solutions:
# Ensure firewall allows traffic
lambda firewall allow inst_abc123 --port 80 --source 0.0.0.0/0
# Check instance has public IP
lambda network info inst_abc123
# If no public IP, assign one
lambda network assign-public-ip inst_abc123High Network Usage
Diagnosis:
# Check network metrics
lambda metrics inst_abc123 --metric network_bytes
# SSH in and investigate
lambda ssh inst_abc123
sudo iftopSolutions:
-
Identify Traffic Source
sudo nethogs -
Check for DDoS
# View connection count netstat -ntu | wc -l # Enable DDoS protection lambda firewall enable-ddos-protection inst_abc123 -
Rate Limit with Firewall
lambda firewall rate-limit inst_abc123 \ --connections-per-minute 100
CLI Issues
CLI Command Not Found
Solution:
# Reinstall CLI
curl -fsSL https://get.lambda.io/install.sh | bash
# Or via npm
npm install -g @lambda/cli
# Verify installation
lambda --versionCLI Authentication Failed
Solutions:
# Re-authenticate
lambda login
# Or set API key
export LAMBDA_API_KEY="λ_sk_your_key_here"
# Verify authentication
lambda whoamiCLI Slow or Hanging
Diagnosis:
# Enable debug mode
lambda --debug command
# Check network
ping api.lambda.ioSolutions:
-
Update CLI
lambda update -
Clear Cache
lambda cache clear -
Use Different Region
lambda config set region eu-west-1
API Issues
401 Unauthorized
Cause: Invalid API key
Solution:
# Check API key
echo $LAMBDA_API_KEY
# Create new key if needed
lambda api-keys create --name "new-key"429 Too Many Requests
Cause: Rate limit exceeded
Solution:
# Check rate limit status
curl -H "Authorization: Bearer $LAMBDA_API_KEY" \
https://api.lambda.io/v1/account/rate-limit
# Wait and retry with exponential backoff
# Or upgrade plan for higher limits500 Internal Server Error
Solution:
# Check status page
curl https://status.lambda.io/api/status
# Retry request
# If persists, contact support with request IDBilling Issues
Payment Failed
Solutions:
# Update payment method
lambda billing payment-method update
# Retry payment
lambda billing retry-payment
# View outstanding invoices
lambda billing invoices --status unpaidUnexpected Charges
Diagnosis:
# View detailed usage
lambda billing usage --month current --detailed
# Export for analysis
lambda billing export --format csv --output usage.csvCommon Causes:
-
Forgotten Running Instances
# List all instances lambda list instances --all-regions # Stop or destroy unused lambda stop inst_forgotten123 -
Large Snapshots
# List snapshots by size lambda snapshot list --sort-by size # Delete old snapshots lambda snapshot delete snap_old123 -
Committed Use Not Applied
# Contact billing support lambda support create-ticket --category billing
Getting More Help
Collect Diagnostics
# Generate diagnostic report
lambda diagnostics inst_abc123 --output diagnostics.txt
# Include in support ticket
lambda support create-ticket \
--subject "Issue description" \
--attach diagnostics.txtContact Support
- Community Forum: https://community.lambda.io
- Email: support@lambda.io
- Discord: https://discord.gg/lambda
- Emergency (Enterprise): +1-555-LAMBDA-911
Support Response Times
| Plan | Response Time | Channels |
|---|---|---|
| Community | 48 hours | Email, Forum |
| Professional | 12 hours | Email, Chat, Forum |
| Enterprise | 1 hour | Email, Chat, Phone, Forum |
Preventive Measures
Enable Monitoring
lambda monitoring enable inst_abc123 \
--alerts cpu,memory,disk \
--notify email:you@example.comSchedule Backups
lambda snapshot schedule inst_abc123 \
--frequency daily \
--time "02:00 UTC" \
--retain 7Set Budget Alerts
lambda billing set-budget \
--limit 500 \
--alert-at 80 \
--notify email:billing@example.comReview Security
# Security audit
lambda audit inst_abc123
# Apply recommendations
lambda security harden inst_abc123Next Step
Return to the documentation overview.
Think Lambda, Think Privacy
Last Updated: January 24, 2026
