{
  "id": "cicd/teamcity-build-agent-disk-full",
  "signature": "Failed to publish artifacts: No space left on device (28)",
  "signature_zh": "发布工件失败：设备上没有空间（28）",
  "regex": "Failed to publish artifacts: No space left on device \\(28\\)",
  "domain": "cicd",
  "category": "system_error",
  "subcategory": null,
  "root_cause": "The TeamCity build agent's disk is full, preventing artifact publication or build execution due to insufficient storage space.",
  "root_cause_type": "generic",
  "root_cause_zh": "TeamCity 构建代理的磁盘已满，由于存储空间不足，无法发布工件或执行构建。",
  "versions": [
    {
      "version": "TeamCity 2022.04+",
      "introduced": null,
      "deprecated": null,
      "removed": null,
      "behavior_change": null,
      "status": "active"
    },
    {
      "version": "TeamCity 2023.05+",
      "introduced": null,
      "deprecated": null,
      "removed": null,
      "behavior_change": null,
      "status": "active"
    },
    {
      "version": "Linux build agents",
      "introduced": null,
      "deprecated": null,
      "removed": null,
      "behavior_change": null,
      "status": "active"
    }
  ],
  "os_specific": {},
  "dead_ends": [
    {
      "action": "Clearing the build agent's temp directory manually without stopping the agent",
      "why_fails": "The agent may be actively writing to some files, causing deletion failures or file locks; stopping the agent is required for safe cleanup.",
      "fail_rate": 0.4,
      "condition": "",
      "sources": []
    },
    {
      "action": "Increasing the disk size on the host machine without reconfiguring the agent's build checkout directory",
      "why_fails": "If the disk is partitioned, increasing the partition may not be possible without downtime, and the agent's build directory may still point to a full partition.",
      "fail_rate": 0.6,
      "condition": "",
      "sources": []
    }
  ],
  "workarounds": [
    {
      "action": "Stop the TeamCity build agent (`teamcity-agent stop`), clean up old build artifacts and temp files in `<agent-home>/work/` and `<agent-home>/temp/`, then restart the agent (`teamcity-agent start`).",
      "success_rate": 0.9,
      "how": "Stop the TeamCity build agent (`teamcity-agent stop`), clean up old build artifacts and temp files in `<agent-home>/work/` and `<agent-home>/temp/`, then restart the agent (`teamcity-agent start`).",
      "condition": "",
      "sources": []
    },
    {
      "action": "Configure the agent to use a different partition with more space by setting `workDir` and `tempDir` in `<agent-home>/conf/buildAgent.properties`: `workDir=/mnt/large_disk/work` and `tempDir=/mnt/large_disk/temp`",
      "success_rate": 0.85,
      "how": "Configure the agent to use a different partition with more space by setting `workDir` and `tempDir` in `<agent-home>/conf/buildAgent.properties`: `workDir=/mnt/large_disk/work` and `tempDir=/mnt/large_disk/temp`",
      "condition": "",
      "sources": []
    }
  ],
  "workarounds_zh": [
    "Stop the TeamCity build agent (`teamcity-agent stop`), clean up old build artifacts and temp files in `<agent-home>/work/` and `<agent-home>/temp/`, then restart the agent (`teamcity-agent start`).",
    "Configure the agent to use a different partition with more space by setting `workDir` and `tempDir` in `<agent-home>/conf/buildAgent.properties`: `workDir=/mnt/large_disk/work` and `tempDir=/mnt/large_disk/temp`"
  ],
  "transition_graph": {
    "leads_to": [],
    "preceded_by": [],
    "frequently_confused_with": []
  },
  "official_doc_url": "https://www.jetbrains.com/help/teamcity/build-agent-configuration.html",
  "official_doc_section": null,
  "error_code": "28",
  "verification_tier": "ai_generated",
  "confidence": 0.88,
  "fix_success_rate": 0.9,
  "resolvable": "true",
  "first_seen": "2023-09-22",
  "last_confirmed": "2024-06-01",
  "last_updated": "2024-06-01",
  "evidence_count": 1,
  "tags": [],
  "locale": "en",
  "aliases": []
}