{
  "id": "mongodb/invalid-windows-service-name",
  "signature": "Error: 1053 (ERROR_SERVICE_REQUEST_TIMEOUT) - The service did not respond to the start or control request in a timely fashion.",
  "signature_zh": "错误：1053 (ERROR_SERVICE_REQUEST_TIMEOUT) - 服务未及时响应启动或控制请求。",
  "regex": "Error: 1053.*service did not respond",
  "domain": "mongodb",
  "category": "runtime_error",
  "subcategory": null,
  "root_cause": "MongoDB on Windows failed to start as a service within the default 30-second timeout, often due to a corrupted configuration file, insufficient system resources, or a port conflict.",
  "root_cause_type": "generic",
  "root_cause_zh": "Windows 上的 MongoDB 作为服务启动时未能在默认的 30 秒超时内启动，通常是由于配置文件损坏、系统资源不足或端口冲突。",
  "versions": [
    {
      "version": "MongoDB 5.0",
      "introduced": null,
      "deprecated": null,
      "removed": null,
      "behavior_change": null,
      "status": "active"
    },
    {
      "version": "MongoDB 6.0",
      "introduced": null,
      "deprecated": null,
      "removed": null,
      "behavior_change": null,
      "status": "active"
    },
    {
      "version": "Windows Server 2019",
      "introduced": null,
      "deprecated": null,
      "removed": null,
      "behavior_change": null,
      "status": "active"
    },
    {
      "version": "Windows Server 2022",
      "introduced": null,
      "deprecated": null,
      "removed": null,
      "behavior_change": null,
      "status": "active"
    }
  ],
  "os_specific": {},
  "dead_ends": [
    {
      "action": "",
      "why_fails": "The service will eventually time out again if the root issue (e.g., port conflict or corrupt config) is not addressed.",
      "fail_rate": 0.85,
      "condition": "",
      "sources": []
    },
    {
      "action": "",
      "why_fails": "The same configuration file or port conflict remains, causing the same timeout.",
      "fail_rate": 0.9,
      "condition": "",
      "sources": []
    },
    {
      "action": "",
      "why_fails": "This bypasses the service manager but leaves the system without automatic restart on boot, and may miss environment-specific settings.",
      "fail_rate": 0.7,
      "condition": "",
      "sources": []
    }
  ],
  "workarounds": [
    {
      "action": "Check the MongoDB log file (e.g., C:\\Program Files\\MongoDB\\Server\\6.0\\log\\mongod.log) for specific errors. Common fixes: ensure port 27017 is not in use with `netstat -ano | findstr :27017`, or correct the config file path in the service.",
      "success_rate": 0.8,
      "how": "Check the MongoDB log file (e.g., C:\\Program Files\\MongoDB\\Server\\6.0\\log\\mongod.log) for specific errors. Common fixes: ensure port 27017 is not in use with `netstat -ano | findstr :27017`, or correct the config file path in the service.",
      "condition": "",
      "sources": []
    },
    {
      "action": "Remove and recreate the MongoDB service with explicit parameters: `sc delete MongoDB` then `mongod.exe --config \"C:\\Program Files\\MongoDB\\Server\\6.0\\bin\\mongod.cfg\" --install --serviceName MongoDB`.",
      "success_rate": 0.85,
      "how": "Remove and recreate the MongoDB service with explicit parameters: `sc delete MongoDB` then `mongod.exe --config \"C:\\Program Files\\MongoDB\\Server\\6.0\\bin\\mongod.cfg\" --install --serviceName MongoDB`.",
      "condition": "",
      "sources": []
    },
    {
      "action": "Temporarily increase service start timeout via registry (HKEY_LOCAL_MACHINE\\SYSTEM\\CurrentControlSet\\Control, ServicesPipeTimeout = 60000) to allow more time for startup, then diagnose logs.",
      "success_rate": 0.75,
      "how": "Temporarily increase service start timeout via registry (HKEY_LOCAL_MACHINE\\SYSTEM\\CurrentControlSet\\Control, ServicesPipeTimeout = 60000) to allow more time for startup, then diagnose logs.",
      "condition": "",
      "sources": []
    }
  ],
  "workarounds_zh": [
    "检查 MongoDB 日志文件（例如 C:\\Program Files\\MongoDB\\Server\\6.0\\log\\mongod.log）以获取具体错误。常见修复：使用 `netstat -ano | findstr :27017` 确保端口 27017 未被占用，或更正服务中的配置文件路径。",
    "删除并重新创建 MongoDB 服务，使用显式参数：`sc delete MongoDB` 然后 `mongod.exe --config \"C:\\Program Files\\MongoDB\\Server\\6.0\\bin\\mongod.cfg\" --install --serviceName MongoDB`。",
    "通过注册表临时增加服务启动超时时间（HKEY_LOCAL_MACHINE\\SYSTEM\\CurrentControlSet\\Control, ServicesPipeTimeout = 60000）以允许更多启动时间，然后诊断日志。"
  ],
  "transition_graph": {
    "leads_to": [],
    "preceded_by": [],
    "frequently_confused_with": []
  },
  "official_doc_url": "https://www.mongodb.com/docs/manual/tutorial/install-mongodb-on-windows/",
  "official_doc_section": null,
  "error_code": "1053",
  "verification_tier": "ai_generated",
  "confidence": 0.82,
  "fix_success_rate": 0.78,
  "resolvable": "true",
  "first_seen": "2024-01-10",
  "last_confirmed": "2024-06-01",
  "last_updated": "2024-06-01",
  "evidence_count": 1,
  "tags": [],
  "locale": "en",
  "aliases": []
}