Skip to content

Debug a Tentacle

Diagnose and resolve issues with a tentacle that isn’t working as expected.

  • tntc CLI configured with MCP access
  • A deployed tentacle exhibiting issues
Terminal window
tntc status my-tentacle --detail

This shows:

  • Deployment readiness (replicas, conditions)
  • Image and runtime class
  • Pod status and recent events
  • Health classification (Green/Amber/Red)
Terminal window
tntc logs my-tentacle --tail 50

Look for:

  • Startup errors (missing modules, config issues)
  • Runtime errors (network failures, auth errors, node crashes)
  • Timeout messages
Terminal window
tntc run my-tentacle --timeout 60s

The response includes execution results or error details.

Terminal window
tntc audit my-tentacle

Checks:

  • RBAC — service account permissions
  • NetworkPolicy — egress rules match contract
  • PSA — Pod Security Admission labels

If the tentacle is running but producing wrong results, query the detailed health endpoint via MCP:

The wf_health tool classifies tentacles as:

  • Green — running, low error rate
  • Amber — running but elevated error rate or last run failed
  • Red — not running or very high error rate
Terminal window
tntc validate
tntc test
tntc dev # test locally with hot-reload
  • Issue is identified in logs or health status
  • Fix is applied and verified locally with tntc test
  • Redeployment resolves the issue (tntc deploy)
  • tntc status shows Green health
SymptomLikely CauseResolution
Pod CrashLoopBackOffNode throws on startupCheck logs for the exception, fix node code
connection refused to external APINetworkPolicy blockingVerify dependency in contract, check tntc audit
403 Forbidden from APIWrong or expired secretUpdate .secrets.yaml, redeploy
Timeout errorsSlow external serviceIncrease config.timeout, add retries
module not foundImport path errorCheck node paths in workflow.yaml
Stale code after deployConfigMap not updatedForce a rollout: undeploy and redeploy
Health shows Amber/RedRecent errorsCheck detailed health for lastError and errorRate