28
cicd
system_error
ai_generated
true
发布工件失败:设备上没有空间(28)
Failed to publish artifacts: No space left on device (28)
ID: cicd/teamcity-build-agent-disk-full
90%修复率
88%置信度
1证据数
2023-09-22首次发现
版本兼容性
| 版本 | 状态 | 引入 | 弃用 | 备注 |
|---|---|---|---|---|
| TeamCity 2022.04+ | active | — | — | — |
| TeamCity 2023.05+ | active | — | — | — |
| Linux build agents | active | — | — | — |
根因分析
TeamCity 构建代理的磁盘已满,由于存储空间不足,无法发布工件或执行构建。
English
The TeamCity build agent's disk is full, preventing artifact publication or build execution due to insufficient storage space.
官方文档
https://www.jetbrains.com/help/teamcity/build-agent-configuration.html解决方案
-
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`
无效尝试
常见但无效的做法:
-
Clearing the build agent's temp directory manually without stopping the agent
40% 失败
The agent may be actively writing to some files, causing deletion failures or file locks; stopping the agent is required for safe cleanup.
-
Increasing the disk size on the host machine without reconfiguring the agent's build checkout directory
60% 失败
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.