首页 > 解决方案 > 错误:上传工件 - x509:证书由未知机构签名

问题描述

我试图注册一个共享运行器--tls-ca-file,用于添加我的自签名证书,它注册得很好,但是在上传工件时它在工作期间失败。我只有一个跑步者,并重新注册了它,但我仍然有同样的错误。

ERROR: Uploading artifacts as "archive" to coordinator... error
error=couldn't execute POST against https://gitlab.me.local/api/v4/jobs/92336/artifacts?artifact_format=zip&artifact_type=archive&expire_in=1+month: Post https://gitlab.me.local/api/v4/jobs/92336/artifacts?artifact_format=zip&artifact_type=archive&expire_in=1+month: 
x509: certificate signed by unknown authority 
id=92336 token=*****
WARNING: Retrying... context=artifacts-uploader error=invalid argument

以下是跑步者的配置:

[[runners]]
  name = "myrunner"
  url = "https://gitlab.me.local/"
  token = "****************"
  tls-ca-file = "/etc/gitlab-runner/certs/ca.crt"
  executor = "docker"
  [runners.custom_build_dir]
  [runners.cache]
    [runners.cache.s3]
    [runners.cache.gcs]
    [runners.cache.azure]
  [runners.docker]
    tls_verify = false
    image = "python:2.7"
    privileged = false
    disable_entrypoint_overwrite = false
    oom_kill_disable = false
    disable_cache = false
    volumes = ["/cache"]
    shm_size = 0
[root@runner gitlab-runner]# tree /etc/gitlab-runner/
/etc/gitlab-runner/
|-- certs
|   |-- ca.crt
|   `-- gitlab.me.local.crt
|-- config.toml
`-- config.toml.lock

这里有什么问题?

标签: sslgitlabgitlab-ci-runner

解决方案


推荐阅读