Gitlab大工件上传失败-等待响应报头超时

时间:2019-12-05 15:26:15

标签: gitlab gitlab-ci gitlab-ci-runner gitlab-omnibus gitlab-ce

我一直在尝试从我们自托管的Gitlab实例中的管道中上传约2GB的工件,但出现此错误:

ERROR: Uploading artifacts to coordinator… error error=couldn’t execute POST against https://git.onerain.com/api/v4/jobs/25628/artifacts?artifact_format=zip&artifact_type=archive&expire_in=30+days: Post https://git.onerain.com/api/v4/jobs/25628/artifacts?artifact_format=zip&artifact_type=archive&expire_in=30+days: net/http: timeout awaiting response headers id=25628 token=t8k_zdxV
WARNING: Retrying… error=invalid argument
ERROR: Uploading artifacts to coordinator… error error=couldn’t execute POST against https://git.onerain.com/api/v4/jobs/25628/artifacts?artifact_format=zip&artifact_type=archive&expire_in=30+days: Post https://git.onerain.com/api/v4/jobs/25628/artifacts?artifact_format=zip&artifact_type=archive&expire_in=30+days: net/http: timeout awaiting response headers id=25628 token=t8k_zdxV
WARNING: Retrying… error=invalid argument
ERROR: Uploading artifacts to coordinator… error error=couldn’t execute POST against https://git.onerain.com/api/v4/jobs/25628/artifacts?artifact_format=zip&artifact_type=archive&expire_in=30+days: Post https://git.onerain.com/api/v4/jobs/25628/artifacts?artifact_format=zip&artifact_type=archive&expire_in=30+days: net/http: timeout awaiting response headers id=25628 token=t8k_zdxV
FATAL: invalid argument
ERROR: Job failed: exit code 1

在/ var / log / gitlab / gitlab-workhorse / current中,我看到:

{“correlation_id”:“aRQJ7UtGjb”,“error”:“handleFileUploads: extract files from multipart: persisting multipart file: unexpected EOF”,“level”:“error”,“method”:“POST”,“msg”:“error”,“time”:“2019-12-04T23:34:56Z”,“uri”:"/api/v4/jobs/25628/artifacts?artifact_format=zip\u0026artifact_type=archive\u0026expire_in=30+days"}

我已经看到其他一些人遇到了这个问题,并且我尝试了许多建议:

  • 增加独角兽['worker_timeout']
  • 确保工件的最大大小足以容纳实例/组/项目
  • 确保最大附件大小足够大
  • 增加gitlab_workhorse [‘api_ci_long_polling_duration’] =“ 15m0s”和gitlab_workhorse [‘proxy_headers_timeout’] =“ 15m0s”
  • 增加的nginx ['proxy_read_timeout'] = 3600和nginx ['proxy_connect_timeout'] = 3600
  • 设置nginx ['client_max_body_size'] = 0

我正在使用gitlab ce 12.5.2和gitlab-runner 12.5.0。我们的服务器在工件目录中有足够的空间。我没主意了。其他人有吗?

谢谢!

0 个答案:

没有答案