{
  "id": "python/fastapi-runtimeerror-uvicorn-worker-failed-to-start",
  "signature": "RuntimeError: Uvicorn worker failed to start",
  "signature_zh": "RuntimeError: Uvicorn 工作进程启动失败",
  "regex": "RuntimeError:\\ Uvicorn\\ worker\\ failed\\ to\\ start",
  "domain": "python",
  "category": "system_error",
  "subcategory": null,
  "root_cause": "Uvicorn encountered an error during startup, often due to missing dependencies or incorrect application import.",
  "root_cause_type": "generic",
  "root_cause_zh": "Uvicorn 在启动过程中遇到错误，通常是由于缺少依赖项或应用程序导入不正确。",
  "versions": [
    {
      "version": "3.x",
      "introduced": null,
      "deprecated": null,
      "removed": null,
      "behavior_change": null,
      "status": "active"
    }
  ],
  "os_specific": {},
  "dead_ends": [
    {
      "action": "Reinstalling uvicorn without checking Python version.",
      "why_fails": "Uvicorn requires Python 3.7+; older versions may cause startup failure.",
      "fail_rate": 0.6,
      "condition": "",
      "sources": []
    },
    {
      "action": "Using wrong module path in uvicorn command.",
      "why_fails": "If the module path is incorrect, uvicorn cannot find the application.",
      "fail_rate": 0.8,
      "condition": "",
      "sources": []
    }
  ],
  "workarounds": [
    {
      "action": "Ensure correct module path and app instance.",
      "success_rate": 0.95,
      "how": "uvicorn myapp:app --reload",
      "condition": "",
      "sources": []
    },
    {
      "action": "Check that all dependencies are installed.",
      "success_rate": 0.9,
      "how": "pip install -r requirements.txt",
      "condition": "",
      "sources": []
    }
  ],
  "workarounds_zh": [],
  "transition_graph": {
    "leads_to": [],
    "preceded_by": [],
    "frequently_confused_with": []
  },
  "official_doc_url": null,
  "official_doc_section": null,
  "error_code": null,
  "verification_tier": "ai_generated",
  "confidence": 0.83,
  "fix_success_rate": 0.8,
  "resolvable": "true",
  "first_seen": "2024-10-12",
  "last_confirmed": "2025-01-01",
  "last_updated": "2025-01-01",
  "evidence_count": 0,
  "tags": [],
  "locale": "en",
  "aliases": []
}