{
  "id": "cicd/bitbucket-pipeline-artifact-cache-key-mismatch",
  "signature": "Warning: Cache 'node-modules-v1' not found for key 'node-modules-v1-abc123'. Restoring from fallback.",
  "signature_zh": "警告：未找到键 'node-modules-v1-abc123' 的缓存 'node-modules-v1'。正在从回退中恢复。",
  "regex": "Warning: Cache '[^']+' not found for key '[^']+'\\. Restoring from fallback\\.",
  "domain": "cicd",
  "category": "config_error",
  "subcategory": null,
  "root_cause": "Bitbucket Pipelines cannot find a cache entry for the given key because the cache was evicted, the key format has changed, or the cache was never created due to a failed step.",
  "root_cause_type": "generic",
  "root_cause_zh": "Bitbucket Pipelines 无法找到给定键的缓存条目，因为缓存被逐出、键格式已更改，或由于步骤失败而从未创建缓存。",
  "versions": [
    {
      "version": "Bitbucket Pipelines 2.0+",
      "introduced": null,
      "deprecated": null,
      "removed": null,
      "behavior_change": null,
      "status": "active"
    },
    {
      "version": "bitbucket-pipelines.yml schema v2",
      "introduced": null,
      "deprecated": null,
      "removed": null,
      "behavior_change": null,
      "status": "active"
    }
  ],
  "os_specific": {},
  "dead_ends": [
    {
      "action": "Increasing the cache size limit in the pipeline settings without changing the cache key",
      "why_fails": "The cache key mismatch is unrelated to size; it's a key generation issue that requires updating the cache key format in the YAML.",
      "fail_rate": 0.5,
      "condition": "",
      "sources": []
    },
    {
      "action": "Manually deleting the cache from the Bitbucket UI and hoping a new one is created automatically",
      "why_fails": "Deleting the cache does not trigger a new cache creation; the pipeline must be re-run with a valid cache step to generate a new entry.",
      "fail_rate": 0.7,
      "condition": "",
      "sources": []
    }
  ],
  "workarounds": [
    {
      "action": "Update the cache key in bitbucket-pipelines.yml to use a dynamic hash based on the lock file: `caches: node-modules: key: node-modules-v1-{{ checksum \"package-lock.json\" }}`",
      "success_rate": 0.8,
      "how": "Update the cache key in bitbucket-pipelines.yml to use a dynamic hash based on the lock file: `caches: node-modules: key: node-modules-v1-{{ checksum \"package-lock.json\" }}`",
      "condition": "",
      "sources": []
    },
    {
      "action": "Add a fallback cache key to restore from a previous cache: `caches: node-modules: key: node-modules-v1-{{ checksum \"package-lock.json\" }} restore-keys: node-modules-v1-`",
      "success_rate": 0.9,
      "how": "Add a fallback cache key to restore from a previous cache: `caches: node-modules: key: node-modules-v1-{{ checksum \"package-lock.json\" }} restore-keys: node-modules-v1-`",
      "condition": "",
      "sources": []
    }
  ],
  "workarounds_zh": [
    "Update the cache key in bitbucket-pipelines.yml to use a dynamic hash based on the lock file: `caches: node-modules: key: node-modules-v1-{{ checksum \"package-lock.json\" }}`",
    "Add a fallback cache key to restore from a previous cache: `caches: node-modules: key: node-modules-v1-{{ checksum \"package-lock.json\" }} restore-keys: node-modules-v1-`"
  ],
  "transition_graph": {
    "leads_to": [],
    "preceded_by": [],
    "frequently_confused_with": []
  },
  "official_doc_url": "https://support.atlassian.com/bitbucket-cloud/docs/cache-dependencies/",
  "official_doc_section": null,
  "error_code": null,
  "verification_tier": "ai_generated",
  "confidence": 0.85,
  "fix_success_rate": 0.8,
  "resolvable": "true",
  "first_seen": "2024-04-12",
  "last_confirmed": "2024-06-01",
  "last_updated": "2024-06-01",
  "evidence_count": 1,
  "tags": [],
  "locale": "en",
  "aliases": []
}