cicd
resource_error
ai_generated
true
将工件上传到协调器...太大
Uploading artifacts to coordinator... too large
ID: cicd/gitlab-runner-artifact-size-limit
85%修复率
85%置信度
1证据数
2023-06-15首次发现
版本兼容性
| 版本 | 状态 | 引入 | 弃用 | 备注 |
|---|---|---|---|---|
| GitLab CE 15.0+ | active | — | — | — |
| GitLab Runner 15.0+ | active | — | — | — |
| GitLab EE 15.0+ | active | — | — | — |
根因分析
GitLab Runner 无法上传作业工件,因为其超出了 GitLab 实例或 runner 上配置的最大允许大小。
English
GitLab Runner failed to upload a job artifact because it exceeds the maximum allowed size configured on the GitLab instance or runner.
官方文档
https://docs.gitlab.com/ee/ci/yaml/#artifactsreports解决方案
-
Increase the maximum artifact size in the GitLab admin panel (Admin Area > Settings > CI/CD > Artifacts > Maximum artifacts size (MB)) and restart the runner: `gitlab-runner restart`
-
Compress the artifact before uploading by adding a job step to tar and gzip the output: `tar -czf output.tar.gz build/ && artifacts: paths: [output.tar.gz]`
无效尝试
常见但无效的做法:
-
Increasing the artifact size limit in the project's CI/CD settings without restarting the runner
40% 失败
The runner's cache or configuration may still enforce the old limit; a runner restart is required for the new limit to take effect.
-
Setting the artifact size limit to an extremely high value (e.g., 999999 MB) in the GitLab admin panel
60% 失败
The GitLab instance may have a hard-coded maximum limit (e.g., 1 GB) that cannot be overridden via the admin UI; also, unlimited size can cause disk space issues.