Troubleshooting Runbook
When something breaks in a dstack-cloud deployment, the root cause usually falls into one of these categories: attestation mismatch, KMS unavailability, governance hold-up, or infrastructure issues. This runbook covers the most common failure modes and how to diagnose them.RA-TLS (Remote Attestation TLS) Connection Failures
Symptoms
- Workload logs show “RA-TLS handshake failed”
- KMS logs show “connection from unverified peer”
- Workload cannot obtain keys
Diagnosis
Common Causes and Fixes
Attestation Verification Failures
Symptoms
- KMS refuses to dispatch keys
- Logs show “measurement not authorized” or “attestation verification failed”
Diagnosis
Common Causes and Fixes
CVM / Enclave Startup Failures
Symptoms
dstack-cloud deploysucceeds but CVM exits immediatelydstack-cloud statusshows “ERROR” or “STOPPED”
Diagnosis
Common Causes and Fixes
GCP-specific
Nitro-specific
On-chain Authorization Failures
Symptoms
- KMS logs show “workload not authorized”
- Keys are not dispatched despite correct attestation
Diagnosis
Common Causes and Fixes
KMS Unavailable
Symptoms
- Workloads cannot connect to KMS
dstack-cloud statusshows KMS as stopped or unreachable
Diagnosis
Common Causes and Fixes
Governance Transactions Stuck
Symptoms
- Governance proposal not advancing
- Transaction in Safe queue not executing
Diagnosis
- Check the Safe web interface for transaction status
- Check if the timelock has expired
- Verify the Safe has sufficient gas
Common Causes and Fixes
VSOCK Proxy Failures (Nitro-specific)
Symptoms
- Enclave cannot reach KMS or external services
dstack-cloud logsshows network timeout errors
Diagnosis
Common Causes and Fixes
Emergency Operations
Revoke a Compromised Measurement
- Draft a governance transaction to remove the measurement from
DstackKms - Request expedited approval from all signers
- Wait for the timelock (cannot be bypassed)
- Execute after the delay
- Verify the measurement is no longer authorized
KMS Key Compromise
If the KMS root key may have been compromised:- Stop the KMS immediately:
dstack-cloud stop - Audit all workloads that received keys from the compromised KMS
- Rotate affected application keys
- Deploy a new KMS instance with fresh measurements
- Register the new KMS measurements on-chain
- Revoke the old KMS measurements
- Restart workloads against the new KMS
Full System Recovery
- Stop all CVMs and KMS instances
- Verify blockchain state is consistent
- Redeploy from known-good configuration
- Re-register measurements if needed
- Verify end-to-end key delivery
- Review governance activity for suspicious transactions
Diagnostic Commands Cheat Sheet
Next Steps
- Monitoring and Alerting — Set up proactive monitoring
- Upgrade Procedures — Upgrade versions to fix known issues

