{
  "id": "cicd/circleci-missing-context",
  "signature": "Error: Context 'deploy-aws' not found. Please create the context or check the context name.",
  "signature_zh": "错误：未找到上下文 'deploy-aws'。请创建上下文或检查上下文名称。",
  "regex": "Error: Context '[^']+' not found\\. Please create the context or check the context name\\.",
  "domain": "cicd",
  "category": "config_error",
  "subcategory": null,
  "root_cause": "A CircleCI pipeline references a context that does not exist in the organization, either because it was deleted, the name is misspelled, or the user lacks permissions to access it.",
  "root_cause_type": "generic",
  "root_cause_zh": "CircleCI 流水线引用了组织中不存在的上下文，原因可能是上下文被删除、名称拼写错误或用户缺少访问权限。",
  "versions": [
    {
      "version": "CircleCI CLI 0.1.28000+",
      "introduced": null,
      "deprecated": null,
      "removed": null,
      "behavior_change": null,
      "status": "active"
    },
    {
      "version": "CircleCI Server 4.0+",
      "introduced": null,
      "deprecated": null,
      "removed": null,
      "behavior_change": null,
      "status": "active"
    },
    {
      "version": "CircleCI SaaS",
      "introduced": null,
      "deprecated": null,
      "removed": null,
      "behavior_change": null,
      "status": "active"
    }
  ],
  "os_specific": {},
  "dead_ends": [
    {
      "action": "Renaming the context in the CircleCI web UI without updating the .circleci/config.yml file",
      "why_fails": "The config file still references the old context name, causing the same error on the next pipeline run.",
      "fail_rate": 0.6,
      "condition": "",
      "sources": []
    },
    {
      "action": "Creating a new context with the same name but in a different organization or team",
      "why_fails": "Contexts are scoped to organizations; a context in a different org is not accessible to the pipeline.",
      "fail_rate": 0.8,
      "condition": "",
      "sources": []
    }
  ],
  "workarounds": [
    {
      "action": "Create the missing context in the CircleCI web UI (Organization Settings > Contexts > Create Context) with the exact name 'deploy-aws', then restart the pipeline from the CircleCI dashboard.",
      "success_rate": 0.95,
      "how": "Create the missing context in the CircleCI web UI (Organization Settings > Contexts > Create Context) with the exact name 'deploy-aws', then restart the pipeline from the CircleCI dashboard.",
      "condition": "",
      "sources": []
    },
    {
      "action": "Correct the context name in .circleci/config.yml by verifying the existing context list via CLI: `circleci context list --org-id <org-id>` and updating the `context` field in the job.",
      "success_rate": 0.9,
      "how": "Correct the context name in .circleci/config.yml by verifying the existing context list via CLI: `circleci context list --org-id <org-id>` and updating the `context` field in the job.",
      "condition": "",
      "sources": []
    }
  ],
  "workarounds_zh": [
    "Create the missing context in the CircleCI web UI (Organization Settings > Contexts > Create Context) with the exact name 'deploy-aws', then restart the pipeline from the CircleCI dashboard.",
    "Correct the context name in .circleci/config.yml by verifying the existing context list via CLI: `circleci context list --org-id <org-id>` and updating the `context` field in the job."
  ],
  "transition_graph": {
    "leads_to": [],
    "preceded_by": [],
    "frequently_confused_with": []
  },
  "official_doc_url": "https://circleci.com/docs/contexts/",
  "official_doc_section": null,
  "error_code": null,
  "verification_tier": "ai_generated",
  "confidence": 0.9,
  "fix_success_rate": 0.95,
  "resolvable": "true",
  "first_seen": "2023-11-05",
  "last_confirmed": "2024-06-01",
  "last_updated": "2024-06-01",
  "evidence_count": 1,
  "tags": [],
  "locale": "en",
  "aliases": []
}