[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M6F80KK0X2BPBV0FF3VHA1HX":3,"skill-same:01M6F80KK0X2BPBV0FF3VHA1HX":75},{"skillNo":4,"name":5,"nameZh":6,"description":7,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":16,"categories":17,"keywords":18,"publishedAt":39,"linkOnly":40,"markdownContent":41,"markdownBody":42,"frontMatter":43,"refName":52,"commitSha":53,"skillDirectory":54,"forksCount":55,"repositoryHtmlUrl":56,"repositoryHomepageUrl":57,"ownerHtmlUrl":58,"ownerBlogUrl":6,"ownerDescription":59,"updatedAt":60,"install":61,"resources":74},"01M6F80KK0X2BPBV0FF3VHA1HX","castai-common-errors",null,"Diagnose and fix CAST AI agent, API, and autoscaler errors.\nUse when the CAST AI agent is offline, nodes are not scaling,\nor API calls return errors.\nTrigger with phrases like \"cast ai error\", \"cast ai not working\",\n\"cast ai agent offline\", \"cast ai debug\", \"fix cast ai\".","ComeOnOliver\u002Fskillshub","ComeOnOliver","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F43215937?v=4","01M6E5JNFECJAAVFE0W7SMWWD2","Haoran Shu","01M6E5JNNDQS7AJZDYFQ8TPZCK",67,"MIT","https:\u002F\u002Fgithub.com\u002FComeOnOliver\u002Fskillshub\u002Fblob\u002Fmain\u002Fskills\u002Fjeremylongshore\u002Fclaude-code-plugins-plus-skills\u002Fcastai-common-errors\u002FSKILL.md",[],[19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38],"castai common errors","common","read","castai","error","trigger","io","scaling","cast","use","fix","kubernetes","Bash","api","kubectl","Optimization","offline","code","diagnose","ai agent","2026-11-10 10:12:30",false,"---\nname: castai-common-errors\ndescription: |\n  Diagnose and fix CAST AI agent, API, and autoscaler errors.\n  Use when the CAST AI agent is offline, nodes are not scaling,\n  or API calls return errors.\n  Trigger with phrases like \"cast ai error\", \"cast ai not working\",\n  \"cast ai agent offline\", \"cast ai debug\", \"fix cast ai\".\nallowed-tools: Read, Bash(kubectl:*), Bash(curl:*), Grep\nversion: 1.0.0\nlicense: MIT\nauthor: Jeremy Longshore \u003Cjeremy@intentsolutions.io>\ntags: [saas, kubernetes, cost-optimization, castai]\ncompatible-with: claude-code\n---\n\n# CAST AI Common Errors\n\n## Overview\n\nDiagnostic guide for the 10 most common CAST AI issues, covering agent connectivity, API errors, autoscaler failures, and node provisioning problems.\n\n## Prerequisites\n\n- `kubectl` access to the cluster\n- `CASTAI_API_KEY` configured\n- Access to CAST AI console for log correlation\n\n## Error Reference\n\n### 1. Agent Pod CrashLoopBackOff\n\n```bash\nkubectl get pods -n castai-agent\nkubectl logs -n castai-agent deployment\u002Fcastai-agent --tail=50\n```\n\n**Causes and fixes:**\n- **Invalid API key**: Regenerate at console.cast.ai > API\n- **Wrong provider**: Set `--set provider=eks|gke|aks` correctly in Helm\n- **RBAC missing**: Apply the required ClusterRole and ClusterRoleBinding\n- **Network blocked**: Ensure outbound HTTPS to `api.cast.ai` is allowed\n\n### 2. Agent Shows \"Disconnected\" in Console\n\n```bash\n# Check agent heartbeat\nkubectl logs -n castai-agent deployment\u002Fcastai-agent | grep -i \"heartbeat\\|connect\\|error\"\n\n# Verify network connectivity from inside the cluster\nkubectl run castai-debug --image=curlimages\u002Fcurl --rm -it --restart=Never -- \\\n  curl -s -o \u002Fdev\u002Fnull -w \"%{http_code}\" https:\u002F\u002Fapi.cast.ai\u002Fv1\u002Fkubernetes\u002Fexternal-clusters\n```\n\n**Fix**: Restart the agent pod: `kubectl rollout restart deployment\u002Fcastai-agent -n castai-agent`\n\n### 3. API Returns 401 Unauthorized\n\n```bash\n# Test API key\ncurl -s -o \u002Fdev\u002Fnull -w \"%{http_code}\" \\\n  -H \"X-API-Key: ${CASTAI_API_KEY}\" \\\n  https:\u002F\u002Fapi.cast.ai\u002Fv1\u002Fkubernetes\u002Fexternal-clusters\n# Should return 200, not 401\n```\n\n**Fix**: Generate a new API key at console.cast.ai > API > API Access Keys.\n\n### 4. Nodes Not Scaling Up (Unschedulable Pods)\n\n```bash\n# Check for pending pods\nkubectl get pods --all-namespaces --field-selector=status.phase=Pending\n\n# Verify unschedulable pods policy is enabled\ncurl -s -H \"X-API-Key: ${CASTAI_API_KEY}\" \\\n  \"https:\u002F\u002Fapi.cast.ai\u002Fv1\u002Fkubernetes\u002Fclusters\u002F${CASTAI_CLUSTER_ID}\u002Fpolicies\" \\\n  | jq '.unschedulablePods'\n```\n\n**Causes:**\n- `unschedulablePods.enabled` is `false` -- enable it\n- Cluster limits reached -- increase `clusterLimits.cpu.maxCores`\n- No matching node template -- check constraints match pod requirements\n\n### 5. Nodes Not Scaling Down (Empty Nodes)\n\n```bash\n# Check node downscaler configuration\ncurl -s -H \"X-API-Key: ${CASTAI_API_KEY}\" \\\n  \"https:\u002F\u002Fapi.cast.ai\u002Fv1\u002Fkubernetes\u002Fclusters\u002F${CASTAI_CLUSTER_ID}\u002Fpolicies\" \\\n  | jq '.nodeDownscaler'\n```\n\n**Causes:**\n- `nodeDownscaler.enabled` is `false`\n- Pods with `PodDisruptionBudget` blocking eviction\n- DaemonSet-only nodes with system pods preventing drain\n- Delay too high -- reduce `emptyNodes.delaySeconds`\n\n### 6. Spot Instance Fallback Not Working\n\n```bash\n# Check spot configuration\ncurl -s -H \"X-API-Key: ${CASTAI_API_KEY}\" \\\n  \"https:\u002F\u002Fapi.cast.ai\u002Fv1\u002Fkubernetes\u002Fclusters\u002F${CASTAI_CLUSTER_ID}\u002Fpolicies\" \\\n  | jq '.spotInstances'\n```\n\n**Fix**: Enable `spotDiversityEnabled: true` and set `spotDiversityPriceIncreaseLimitPercent` to 20-30 for better availability.\n\n### 7. Evictor Too Aggressive\n\nSymptoms: Pods being evicted too frequently, service disruption.\n\n```bash\nkubectl get events --field-selector reason=Evicted -A --sort-by=.lastTimestamp | tail -20\n```\n\n**Fix**: Increase evictor cycle interval or switch to non-aggressive mode:\n```bash\nhelm upgrade castai-evictor castai-helm\u002Fcastai-evictor \\\n  -n castai-agent \\\n  --set castai.apiKey=\"${CASTAI_API_KEY}\" \\\n  --set castai.clusterID=\"${CASTAI_CLUSTER_ID}\" \\\n  --set evictor.aggressiveMode=false \\\n  --set evictor.cycleInterval=600\n```\n\n### 8. Terraform State Drift\n\n```bash\nterraform plan -var-file=environments\u002Fprod.tfvars\n# If drift detected:\nterraform refresh -var-file=environments\u002Fprod.tfvars\n```\n\n**Fix**: Avoid mixing Terraform and console-based policy changes. Pick one source of truth.\n\n### 9. Helm Chart Version Mismatch\n\n```bash\n# Check installed versions\nhelm list -n castai-agent\nhelm search repo castai-helm --versions | head -10\n\n# Update to latest\nhelm repo update\nhelm upgrade castai-agent castai-helm\u002Fcastai-agent -n castai-agent \\\n  --reuse-values\n```\n\n### 10. Workload Autoscaler Not Recommending\n\n```bash\nkubectl logs -n castai-agent deployment\u002Fcastai-workload-autoscaler --tail=50\n```\n\n**Causes:**\n- Insufficient metrics data (wait 24h)\n- Missing annotation `autoscaling.cast.ai\u002Fenabled: \"true\"`\n- Workload autoscaler pod not running\n\n## Escalation Path\n\n1. Collect debug info: Helm releases, agent logs, cluster events\n2. Check https:\u002F\u002Fstatus.cast.ai for platform issues\n3. Contact support with cluster ID and screenshots\n\n## Resources\n\n- [CAST AI Troubleshooting](https:\u002F\u002Fdocs.cast.ai\u002Fdocs\u002Fcasti-ai-components)\n- [CAST AI Status](https:\u002F\u002Fstatus.cast.ai)\n- [Autoscaler Checklist](https:\u002F\u002Fdocs.cast.ai\u002Fdocs\u002Fautoscaler-checklist)\n\n## Next Steps\n\nFor comprehensive diagnostics, see `castai-debug-bundle`.\n\n","# CAST AI Common Errors\n\n## Overview\n\nDiagnostic guide for the 10 most common CAST AI issues, covering agent connectivity, API errors, autoscaler failures, and node provisioning problems.\n\n## Prerequisites\n\n- `kubectl` access to the cluster\n- `CASTAI_API_KEY` configured\n- Access to CAST AI console for log correlation\n\n## Error Reference\n\n### 1. Agent Pod CrashLoopBackOff\n\n```bash\nkubectl get pods -n castai-agent\nkubectl logs -n castai-agent deployment\u002Fcastai-agent --tail=50\n```\n\n**Causes and fixes:**\n- **Invalid API key**: Regenerate at console.cast.ai > API\n- **Wrong provider**: Set `--set provider=eks|gke|aks` correctly in Helm\n- **RBAC missing**: Apply the required ClusterRole and ClusterRoleBinding\n- **Network blocked**: Ensure outbound HTTPS to `api.cast.ai` is allowed\n\n### 2. Agent Shows \"Disconnected\" in Console\n\n```bash\n# Check agent heartbeat\nkubectl logs -n castai-agent deployment\u002Fcastai-agent | grep -i \"heartbeat\\|connect\\|error\"\n\n# Verify network connectivity from inside the cluster\nkubectl run castai-debug --image=curlimages\u002Fcurl --rm -it --restart=Never -- \\\n  curl -s -o \u002Fdev\u002Fnull -w \"%{http_code}\" https:\u002F\u002Fapi.cast.ai\u002Fv1\u002Fkubernetes\u002Fexternal-clusters\n```\n\n**Fix**: Restart the agent pod: `kubectl rollout restart deployment\u002Fcastai-agent -n castai-agent`\n\n### 3. API Returns 401 Unauthorized\n\n```bash\n# Test API key\ncurl -s -o \u002Fdev\u002Fnull -w \"%{http_code}\" \\\n  -H \"X-API-Key: ${CASTAI_API_KEY}\" \\\n  https:\u002F\u002Fapi.cast.ai\u002Fv1\u002Fkubernetes\u002Fexternal-clusters\n# Should return 200, not 401\n```\n\n**Fix**: Generate a new API key at console.cast.ai > API > API Access Keys.\n\n### 4. Nodes Not Scaling Up (Unschedulable Pods)\n\n```bash\n# Check for pending pods\nkubectl get pods --all-namespaces --field-selector=status.phase=Pending\n\n# Verify unschedulable pods policy is enabled\ncurl -s -H \"X-API-Key: ${CASTAI_API_KEY}\" \\\n  \"https:\u002F\u002Fapi.cast.ai\u002Fv1\u002Fkubernetes\u002Fclusters\u002F${CASTAI_CLUSTER_ID}\u002Fpolicies\" \\\n  | jq '.unschedulablePods'\n```\n\n**Causes:**\n- `unschedulablePods.enabled` is `false` -- enable it\n- Cluster limits reached -- increase `clusterLimits.cpu.maxCores`\n- No matching node template -- check constraints match pod requirements\n\n### 5. Nodes Not Scaling Down (Empty Nodes)\n\n```bash\n# Check node downscaler configuration\ncurl -s -H \"X-API-Key: ${CASTAI_API_KEY}\" \\\n  \"https:\u002F\u002Fapi.cast.ai\u002Fv1\u002Fkubernetes\u002Fclusters\u002F${CASTAI_CLUSTER_ID}\u002Fpolicies\" \\\n  | jq '.nodeDownscaler'\n```\n\n**Causes:**\n- `nodeDownscaler.enabled` is `false`\n- Pods with `PodDisruptionBudget` blocking eviction\n- DaemonSet-only nodes with system pods preventing drain\n- Delay too high -- reduce `emptyNodes.delaySeconds`\n\n### 6. Spot Instance Fallback Not Working\n\n```bash\n# Check spot configuration\ncurl -s -H \"X-API-Key: ${CASTAI_API_KEY}\" \\\n  \"https:\u002F\u002Fapi.cast.ai\u002Fv1\u002Fkubernetes\u002Fclusters\u002F${CASTAI_CLUSTER_ID}\u002Fpolicies\" \\\n  | jq '.spotInstances'\n```\n\n**Fix**: Enable `spotDiversityEnabled: true` and set `spotDiversityPriceIncreaseLimitPercent` to 20-30 for better availability.\n\n### 7. Evictor Too Aggressive\n\nSymptoms: Pods being evicted too frequently, service disruption.\n\n```bash\nkubectl get events --field-selector reason=Evicted -A --sort-by=.lastTimestamp | tail -20\n```\n\n**Fix**: Increase evictor cycle interval or switch to non-aggressive mode:\n```bash\nhelm upgrade castai-evictor castai-helm\u002Fcastai-evictor \\\n  -n castai-agent \\\n  --set castai.apiKey=\"${CASTAI_API_KEY}\" \\\n  --set castai.clusterID=\"${CASTAI_CLUSTER_ID}\" \\\n  --set evictor.aggressiveMode=false \\\n  --set evictor.cycleInterval=600\n```\n\n### 8. Terraform State Drift\n\n```bash\nterraform plan -var-file=environments\u002Fprod.tfvars\n# If drift detected:\nterraform refresh -var-file=environments\u002Fprod.tfvars\n```\n\n**Fix**: Avoid mixing Terraform and console-based policy changes. Pick one source of truth.\n\n### 9. Helm Chart Version Mismatch\n\n```bash\n# Check installed versions\nhelm list -n castai-agent\nhelm search repo castai-helm --versions | head -10\n\n# Update to latest\nhelm repo update\nhelm upgrade castai-agent castai-helm\u002Fcastai-agent -n castai-agent \\\n  --reuse-values\n```\n\n### 10. Workload Autoscaler Not Recommending\n\n```bash\nkubectl logs -n castai-agent deployment\u002Fcastai-workload-autoscaler --tail=50\n```\n\n**Causes:**\n- Insufficient metrics data (wait 24h)\n- Missing annotation `autoscaling.cast.ai\u002Fenabled: \"true\"`\n- Workload autoscaler pod not running\n\n## Escalation Path\n\n1. Collect debug info: Helm releases, agent logs, cluster events\n2. Check https:\u002F\u002Fstatus.cast.ai for platform issues\n3. Contact support with cluster ID and screenshots\n\n## Resources\n\n- [CAST AI Troubleshooting](https:\u002F\u002Fdocs.cast.ai\u002Fdocs\u002Fcasti-ai-components)\n- [CAST AI Status](https:\u002F\u002Fstatus.cast.ai)\n- [Autoscaler Checklist](https:\u002F\u002Fdocs.cast.ai\u002Fdocs\u002Fautoscaler-checklist)\n\n## Next Steps\n\nFor comprehensive diagnostics, see `castai-debug-bundle`.\n\n",{"name":5,"tags":44,"author":47,"license":15,"version":48,"description":49,"allowed-tools":50,"compatible-with":51},[45,30,46,22],"saas","cost-optimization","Jeremy Longshore \u003Cjeremy@intentsolutions.io>","1.0.0","Diagnose and fix CAST AI agent, API, and autoscaler errors.\nUse when the CAST AI agent is offline, nodes are not scaling,\nor API calls return errors.\nTrigger with phrases like \"cast ai error\", \"cast ai not working\",\n\"cast ai agent offline\", \"cast ai debug\", \"fix cast ai\".\n","Read, Bash(kubectl:*), Bash(curl:*), Grep","claude-code","main","def8531e65114c0fca8fb8551c1871ee0eed705c","skills\u002Fjeremylongshore\u002Fclaude-code-plugins-plus-skills\u002Fcastai-common-errors",24,"https:\u002F\u002Fgithub.com\u002FComeOnOliver\u002Fskillshub","https:\u002F\u002Fskillshub.wtf","https:\u002F\u002Fgithub.com\u002FComeOnOliver","AI & Blockchain Engineer\r\n","2026-06-24 22:07:19",{"source":8,"skillName":5,"commands":62,"prompt":72,"zipAvailable":73},[63,66,69],{"tool":64,"command":65},"npx","npx skills add ComeOnOliver\u002Fskillshub --skill castai-common-errors",{"tool":67,"command":68},"bunx","bunx skills add ComeOnOliver\u002Fskillshub --skill castai-common-errors",{"tool":70,"command":71},"pnpm","pnpm dlx skills add ComeOnOliver\u002Fskillshub --skill castai-common-errors","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002FComeOnOliver\u002Fskillshub\u002Fblob\u002Fmain\u002Fskills\u002Fjeremylongshore\u002Fclaude-code-plugins-plus-skills\u002Fcastai-common-errors\u002FSKILL.md",true,[],[76,85,94,103,109,115],{"skillNo":77,"name":78,"nameZh":6,"description":6,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":79,"categories":80,"keywords":81,"publishedAt":39},"01M6FKJN13GMG4KY57J3QD8GY5","model-hierarchy-skill","https:\u002F\u002Fgithub.com\u002FComeOnOliver\u002Fskillshub\u002Fblob\u002Fmain\u002Fskills\u002Fzscole\u002Fmodel-hierarchy-skill\u002Fmodel-hierarchy-skill\u002FSKILL.md",[],[82,83,84],"model","model hierarchy","model hierarchy skill",{"skillNo":86,"name":87,"nameZh":6,"description":6,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":88,"categories":89,"keywords":90,"publishedAt":39},"01M6FKJJJ6GCAMR4PPPRD12M5X","zoom-mcp","https:\u002F\u002Fgithub.com\u002FComeOnOliver\u002Fskillshub\u002Fblob\u002Fmain\u002Fskills\u002Fzoom\u002Fskills\u002Fzoom-mcp\u002FSKILL.md",[],[91,92,93],"MCP","zoom","zoom mcp",{"skillNo":95,"name":96,"nameZh":6,"description":6,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":97,"categories":98,"keywords":99,"publishedAt":39},"01M6FKJE3KYT3KPEZMEEHYKA6K","zoom-apps-sdk","https:\u002F\u002Fgithub.com\u002FComeOnOliver\u002Fskillshub\u002Fblob\u002Fmain\u002Fskills\u002Fzoom\u002Fskills\u002Fzoom-apps-sdk\u002FSKILL.md",[],[100,101,102,92],"sdk","zoom apps sdk","apps",{"skillNo":104,"name":105,"nameZh":6,"description":6,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":106,"categories":107,"keywords":108,"publishedAt":39},"01M6FKJ9EDH9Q5VWDF8HAJRSP0","windows","https:\u002F\u002Fgithub.com\u002FComeOnOliver\u002Fskillshub\u002Fblob\u002Fmain\u002Fskills\u002Fzoom\u002Fskills\u002Fwindows\u002FSKILL.md",[],[105],{"skillNo":110,"name":111,"nameZh":6,"description":6,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":112,"categories":113,"keywords":114,"publishedAt":39},"01M6FKJ666BEEFC3AE9GJ72Q93","whiteboard","https:\u002F\u002Fgithub.com\u002FComeOnOliver\u002Fskillshub\u002Fblob\u002Fmain\u002Fskills\u002Fzoom\u002Fskills\u002Fwhiteboard\u002FSKILL.md",[],[111],{"skillNo":116,"name":117,"nameZh":6,"description":6,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":118,"categories":119,"keywords":120,"publishedAt":39},"01M6FKJ21WFCDGTJQ2Q91T9DVW","websockets","https:\u002F\u002Fgithub.com\u002FComeOnOliver\u002Fskillshub\u002Fblob\u002Fmain\u002Fskills\u002Fzoom\u002Fskills\u002Fwebsockets\u002FSKILL.md",[],[117]]