{
  "id": "go/grpc-unavailable-server-shutdown",
  "signature": "rpc error: code = Unavailable desc = the server is currently shutting down",
  "signature_zh": "rpc错误：代码=不可用 描述=服务器当前正在关闭",
  "regex": "rpc\\ error:\\ code\\ =\\ Unavailable\\ desc\\ =\\ the\\ server\\ is\\ currently\\ shutting\\ down",
  "domain": "go",
  "category": "network_error",
  "subcategory": null,
  "root_cause": "The gRPC server is in the process of graceful shutdown and is not accepting new requests.",
  "root_cause_type": "generic",
  "root_cause_zh": "gRPC服务器正在优雅关闭过程中，不接受新请求。",
  "versions": [
    {
      "version": "1.0",
      "introduced": null,
      "deprecated": null,
      "removed": null,
      "behavior_change": null,
      "status": "active"
    },
    {
      "version": "1.1",
      "introduced": null,
      "deprecated": null,
      "removed": null,
      "behavior_change": null,
      "status": "active"
    }
  ],
  "os_specific": {},
  "dead_ends": [
    {
      "action": "Retry the request immediately.",
      "why_fails": "The server is still shutting down; it may take some time to become available again.",
      "fail_rate": 0.9,
      "condition": "",
      "sources": []
    },
    {
      "action": "Force the server to stop shutdown.",
      "why_fails": "Shutdown is initiated by the server; clients cannot override it.",
      "fail_rate": 1.0,
      "condition": "",
      "sources": []
    }
  ],
  "workarounds": [
    {
      "action": "Implement retry with backoff to wait for the server to restart.",
      "success_rate": 0.8,
      "how": "for i := 0; i < 5; i++ {\n    resp, err := client.SomeRPC(ctx, req)\n    if err == nil { return resp }\n    if status.Code(err) != codes.Unavailable { return err }\n    time.Sleep(time.Duration(1<<i) * time.Second)\n}",
      "condition": "",
      "sources": []
    },
    {
      "action": "Use a load balancer to redirect requests to healthy instances.",
      "success_rate": 0.85,
      "how": "Configure a load balancer that detects server health and routes traffic away from shutting down instances.",
      "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.84,
  "fix_success_rate": 0.8,
  "resolvable": "true",
  "first_seen": "2025-07-30",
  "last_confirmed": "2025-01-01",
  "last_updated": "2025-01-01",
  "evidence_count": 0,
  "tags": [],
  "locale": "en",
  "aliases": []
}