警告:将工件作为“存档”上传到协调器...失败 id=1515 responseStatus=500 内部服务器错误状态=500

Kri*_*ris 5 gitlab gitlab-ci gitlab-ci-runner

我正在使用Gitlab自助服务器社区版ci/cd功能,一直运行良好,但是突然有一天,gitlab/cicd中的所有项目都失败了,它提到以下错误:

Uploading artifacts for successful job
Uploading artifacts...
promotion-api/my-boot-module-system/target/*.jar: found 1 matching files and directories 
WARNING: Uploading artifacts as "archive" to coordinator... failed  id=1515 responseStatus=500 Internal Server Error status=500 token=xrDFnLeB
WARNING: Retrying...                                context=artifacts-uploader error=invalid argument
WARNING: Uploading artifacts as "archive" to coordinator... failed  id=1515 responseStatus=500 Internal Server Error status=500 token=xrDFnLeB
WARNING: Retrying...                                context=artifacts-uploader error=invalid argument
WARNING: Uploading artifacts as "archive" to coordinator... failed  id=1515 responseStatus=500 Internal Server Error status=500 token=xrDFnLeB
FATAL: invalid argument                            
ERROR: Job failed: exit code 1
Run Code Online (Sandbox Code Playgroud)

以下是.gitlab-ci.yml中的代码

deploy-java:
  stage: deploy
  dependencies:
    - build-java
  image:
    name: docker/compose:latest
  before_script:
    - docker info
    - docker-compose -v
  script:
    - cd promotion-api
    - docker-compose build
    - docker images
    - docker ps -a
    - docker-compose up -d
  tags:
    - promotion
Run Code Online (Sandbox Code Playgroud)

2021年3月29日:

我将运行程序从 linux 版本切换到 docker,到目前为止似乎一切都很好

Edu*_*ord 6

对我来说,问题是 gitlab 磁盘空间不足。
删除不必要的工件和文件后,一切都再次正常工作。

您可以在此处检查您的系统状态(如果您托管自己的 gitlab):www.gitlab-url.com/admin/system_info
(转到:管理区域 > 监控 > 系统信息

希望能帮助到你!


Gog*_*sch 1

您遇到了 GitLab 本身的错误。它应该明确说明问题所在,而不是相当晦涩的 HTTP 状态 500。这可能不是您的存储库或 CI 设置中的问题。

请关注以下问题以了解更多信息: