Gitlab

Gitlab - 錯誤:將工件作為“junit”上傳到協調器

  • September 22, 2020

我有一個 gitlab-runner(作為 shell)無法上傳到“協調器”,因為我懷疑是 gitlab 伺服器。這是一個java項目。任何人以前見過這個錯誤,或者有關於如何修復的建議?將 gitlab server + runner 都更新到了最新版本,但仍然是同樣的錯誤。

錯誤資訊是:

WARNING: Retrying...                                context=artifacts-uploader error=invalid argument
WARNING: Uploading artifacts as "junit" to coordinator... failed  id=2926 responseStatus=500 Internal Server Error status=500 token=wWcXeTqY
WARNING: Retrying...                                context=artifacts-uploader error=invalid argument
ERROR: Uploading artifacts as "junit" to coordinator... error  error=couldn't execute POST against https://git.infosynergi.no/api/v4/jobs/2926/artifacts?artifact_format=gzip&artifact_type=junit: Post https://git.infosynergi.no/api/v4/jobs/2926/artifacts?artifact_format=gzip&artifact_type=junit: gzip.Write: non-Latin-1 header string id=2926 token=wWcXeTqY
FATAL: invalid argument                            
ERROR: Job failed: exit status 1

開發人員減少了上傳的測試數量,從而解決了這個問題。

引用自:https://serverfault.com/questions/1034460