{
  "id": "redis/err-unknown-command-fork",
  "signature": "ERR unknown command 'FORK'",
  "signature_zh": "ERR 未知命令 'FORK'",
  "regex": "ERR unknown command '[A-Z]+'",
  "domain": "redis",
  "category": "runtime_error",
  "subcategory": null,
  "root_cause": "A client sent a command that does not exist in the Redis command table, often due to a typo or using a command from a different database (e.g., PostgreSQL FORK).",
  "root_cause_type": "generic",
  "root_cause_zh": "客户端发送了一个 Redis 命令表中不存在的命令，通常是由于拼写错误或使用了其他数据库（如 PostgreSQL 的 FORK）的命令。",
  "versions": [
    {
      "version": "Redis 7.2.0",
      "introduced": null,
      "deprecated": null,
      "removed": null,
      "behavior_change": null,
      "status": "active"
    },
    {
      "version": "Redis 6.2.14",
      "introduced": null,
      "deprecated": null,
      "removed": null,
      "behavior_change": null,
      "status": "active"
    },
    {
      "version": "redis-py 5.0.1",
      "introduced": null,
      "deprecated": null,
      "removed": null,
      "behavior_change": null,
      "status": "active"
    }
  ],
  "os_specific": {},
  "dead_ends": [
    {
      "action": "",
      "why_fails": "The command name is still not recognized as a built-in Redis command.",
      "fail_rate": 0.9,
      "condition": "",
      "sources": []
    },
    {
      "action": "",
      "why_fails": "Redis command set is fixed and not configurable.",
      "fail_rate": 0.99,
      "condition": "",
      "sources": []
    }
  ],
  "workarounds": [
    {
      "action": "Check the application code for the exact command string and replace it with the correct Redis command. For example, change `FORK` to `BGSAVE` if the intent was to fork a background save.",
      "success_rate": 0.95,
      "how": "Check the application code for the exact command string and replace it with the correct Redis command. For example, change `FORK` to `BGSAVE` if the intent was to fork a background save.",
      "condition": "",
      "sources": []
    },
    {
      "action": "Use Redis' `COMMAND INFO` to verify the command exists: `redis-cli COMMAND INFO FORK` returns empty if unknown.",
      "success_rate": 0.9,
      "how": "Use Redis' `COMMAND INFO` to verify the command exists: `redis-cli COMMAND INFO FORK` returns empty if unknown.",
      "condition": "",
      "sources": []
    },
    {
      "action": "If the command is from a third-party library, update the library to use Redis-compatible commands. Example in Python: `r.execute_command('BGSAVE')` instead of `r.execute_command('FORK')`.",
      "success_rate": 0.85,
      "how": "If the command is from a third-party library, update the library to use Redis-compatible commands. Example in Python: `r.execute_command('BGSAVE')` instead of `r.execute_command('FORK')`.",
      "condition": "",
      "sources": []
    }
  ],
  "workarounds_zh": [
    "Check the application code for the exact command string and replace it with the correct Redis command. For example, change `FORK` to `BGSAVE` if the intent was to fork a background save.",
    "Use Redis' `COMMAND INFO` to verify the command exists: `redis-cli COMMAND INFO FORK` returns empty if unknown.",
    "If the command is from a third-party library, update the library to use Redis-compatible commands. Example in Python: `r.execute_command('BGSAVE')` instead of `r.execute_command('FORK')`."
  ],
  "transition_graph": {
    "leads_to": [],
    "preceded_by": [],
    "frequently_confused_with": []
  },
  "official_doc_url": "https://redis.io/docs/latest/commands/",
  "official_doc_section": null,
  "error_code": null,
  "verification_tier": "ai_generated",
  "confidence": 0.9,
  "fix_success_rate": 0.95,
  "resolvable": "true",
  "first_seen": "2024-01-10",
  "last_confirmed": "2024-06-01",
  "last_updated": "2024-06-01",
  "evidence_count": 1,
  "tags": [],
  "locale": "en",
  "aliases": []
}