cicd resource_error ai_generated true

将工件上传到协调器...太大

Uploading artifacts to coordinator... too large

ID: cicd/gitlab-runner-artifact-size-limit

其他格式: JSON · Markdown 中文 · English
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.

generic

官方文档

https://docs.gitlab.com/ee/ci/yaml/#artifactsreports

解决方案

  1. 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`
  2. 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]`

无效尝试

常见但无效的做法:

  1. 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.

  2. 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.