Skip to main content

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 deploy succeeds but CVM exits immediately
  • dstack-cloud status shows “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 status shows 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

  1. Check the Safe web interface for transaction status
  2. Check if the timelock has expired
  3. 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 logs shows network timeout errors

Diagnosis

Common Causes and Fixes

Emergency Operations

Revoke a Compromised Measurement

  1. Draft a governance transaction to remove the measurement from DstackKms
  2. Request expedited approval from all signers
  3. Wait for the timelock (cannot be bypassed)
  4. Execute after the delay
  5. Verify the measurement is no longer authorized

KMS Key Compromise

If the KMS root key may have been compromised:
  1. Stop the KMS immediately: dstack-cloud stop
  2. Audit all workloads that received keys from the compromised KMS
  3. Rotate affected application keys
  4. Deploy a new KMS instance with fresh measurements
  5. Register the new KMS measurements on-chain
  6. Revoke the old KMS measurements
  7. Restart workloads against the new KMS

Full System Recovery

  1. Stop all CVMs and KMS instances
  2. Verify blockchain state is consistent
  3. Redeploy from known-good configuration
  4. Re-register measurements if needed
  5. Verify end-to-end key delivery
  6. Review governance activity for suspicious transactions

Diagnostic Commands Cheat Sheet

Next Steps