{
  "id": "cicd/circleci-no-context",
  "signature": "Error: No context named 'deploy-prod' found. Please create the context or check the context name.",
  "signature_zh": "错误：未找到名为'deploy-prod'的上下文。请创建上下文或检查上下文名称。",
  "regex": "No context named '.*' found",
  "domain": "cicd",
  "category": "config_error",
  "subcategory": null,
  "root_cause": "CircleCI pipeline references a context name that does not exist in the organization's context list, often due to typo, context deletion, or insufficient permissions to access the context.",
  "root_cause_type": "generic",
  "root_cause_zh": "CircleCI流水线引用了组织中不存在的上下文名称，通常是由于拼写错误、上下文被删除或权限不足无法访问该上下文。",
  "versions": [
    {
      "version": "CircleCI Server 4.0",
      "introduced": null,
      "deprecated": null,
      "removed": null,
      "behavior_change": null,
      "status": "active"
    },
    {
      "version": "CircleCI CLI 0.1.30000",
      "introduced": null,
      "deprecated": null,
      "removed": null,
      "behavior_change": null,
      "status": "active"
    }
  ],
  "os_specific": {},
  "dead_ends": [
    {
      "action": "",
      "why_fails": "The pipeline will find the context but fail later because required secrets (e.g., AWS keys) are missing from the empty context",
      "fail_rate": 0.8,
      "condition": "",
      "sources": []
    },
    {
      "action": "",
      "why_fails": "The 'default' context may not exist or may not contain the required environment variables, causing subsequent steps to fail with missing credentials",
      "fail_rate": 0.6,
      "condition": "",
      "sources": []
    }
  ],
  "workarounds": [
    {
      "action": "List all available contexts via CircleCI CLI: `circleci context list --org-id <org-id>`. If 'deploy-prod' is missing, create it: `circleci context create <org-name> deploy-prod` and add required environment variables via UI or CLI",
      "success_rate": 0.95,
      "how": "List all available contexts via CircleCI CLI: `circleci context list --org-id <org-id>`. If 'deploy-prod' is missing, create it: `circleci context create <org-name> deploy-prod` and add required environment variables via UI or CLI",
      "condition": "",
      "sources": []
    },
    {
      "action": "Verify the context name in the CircleCI config file (.circleci/config.yml) matches exactly (case-sensitive) the context created in the CircleCI web UI under Organization Settings > Contexts",
      "success_rate": 0.9,
      "how": "Verify the context name in the CircleCI config file (.circleci/config.yml) matches exactly (case-sensitive) the context created in the CircleCI web UI under Organization Settings > Contexts",
      "condition": "",
      "sources": []
    }
  ],
  "workarounds_zh": [
    "List all available contexts via CircleCI CLI: `circleci context list --org-id <org-id>`. If 'deploy-prod' is missing, create it: `circleci context create <org-name> deploy-prod` and add required environment variables via UI or CLI",
    "Verify the context name in the CircleCI config file (.circleci/config.yml) matches exactly (case-sensitive) the context created in the CircleCI web UI under Organization Settings > Contexts"
  ],
  "transition_graph": {
    "leads_to": [],
    "preceded_by": [],
    "frequently_confused_with": []
  },
  "official_doc_url": "https://circleci.com/docs/contexts/",
  "official_doc_section": null,
  "error_code": "CIRCLECI_CONTEXT_MISSING",
  "verification_tier": "ai_generated",
  "confidence": 0.86,
  "fix_success_rate": 0.9,
  "resolvable": "true",
  "first_seen": "2024-01-08",
  "last_confirmed": "2024-06-01",
  "last_updated": "2024-06-01",
  "evidence_count": 1,
  "tags": [],
  "locale": "en",
  "aliases": []
}