{
  "id": "kubernetes/port-conflict-ingress",
  "signature": "Error: listen tcp :80: bind: address already in use",
  "signature_zh": "错误：监听 tcp :80：绑定：地址已在使用中",
  "regex": "Error: listen tcp :\\d+: bind: address already in use",
  "domain": "kubernetes",
  "category": "runtime_error",
  "subcategory": null,
  "root_cause": "The port 80 or 443 is already occupied by another process on the host, preventing the ingress controller or kube-proxy from binding.",
  "root_cause_type": "generic",
  "root_cause_zh": "端口 80 或 443 已被主机上的另一个进程占用，阻止了入口控制器或 kube-proxy 绑定。",
  "versions": [],
  "os_specific": {},
  "dead_ends": [
    {
      "action": "Delete and recreate the ingress controller pod",
      "why_fails": "The pod inherits the host network; the port conflict persists on the node regardless of pod lifecycle.",
      "fail_rate": 0.8,
      "condition": "",
      "sources": []
    },
    {
      "action": "Change the ingress controller's service type to NodePort",
      "why_fails": "NodePort still uses host ports; the conflict remains unless the port is freed.",
      "fail_rate": 0.6,
      "condition": "",
      "sources": []
    }
  ],
  "workarounds": [
    {
      "action": "Identify and stop the process using the port: 'sudo lsof -i :80' then 'sudo kill -9 <PID>' or 'sudo systemctl stop nginx' if it's the default web server.",
      "success_rate": 0.9,
      "how": "Identify and stop the process using the port: 'sudo lsof -i :80' then 'sudo kill -9 <PID>' or 'sudo systemctl stop nginx' if it's the default web server.",
      "condition": "",
      "sources": []
    },
    {
      "action": "Configure the ingress controller to use a different host port via hostPort in the deployment spec, e.g., 'hostPort: 8080'.",
      "success_rate": 0.85,
      "how": "Configure the ingress controller to use a different host port via hostPort in the deployment spec, e.g., 'hostPort: 8080'.",
      "condition": "",
      "sources": []
    }
  ],
  "workarounds_zh": [
    "Identify and stop the process using the port: 'sudo lsof -i :80' then 'sudo kill -9 <PID>' or 'sudo systemctl stop nginx' if it's the default web server.",
    "Configure the ingress controller to use a different host port via hostPort in the deployment spec, e.g., 'hostPort: 8080'."
  ],
  "transition_graph": {
    "leads_to": [],
    "preceded_by": [],
    "frequently_confused_with": []
  },
  "official_doc_url": "https://kubernetes.io/docs/concepts/services-networking/ingress-controllers/",
  "official_doc_section": null,
  "error_code": "EADDRINUSE",
  "verification_tier": "ai_generated",
  "confidence": 0.87,
  "fix_success_rate": 0.88,
  "resolvable": "true",
  "first_seen": "2023-11-20",
  "last_confirmed": "2024-06-01",
  "last_updated": "2024-06-01",
  "evidence_count": 1,
  "tags": [],
  "locale": "en",
  "aliases": []
}