我在安装gitlab ee时出现gitlab-runner和奇怪的x509证书的问题

时间:2019-01-23 08:48:54

标签: gitlab gitlab-ci gitlab-ci-runner

在过去的几个月中,我正在使用Gitlab EE 11.7.0-ee(c02f0d4)完美运行服务器。

在拥有正确SSL证书的情况下在拥有的子域上运行

使用Gitlab手册中指示的步骤,尝试安装gitlab-runner

curl -L https://packages.gitlab.com/install/repositories/runner/gitlab-

runner/script.deb.sh | sudo bash
 cat <<EOF | sudo tee /etc/apt/preferences.d/pin-gitlab-runner.pref
 Explanation: Prefer GitLab provided packages over the Debian native ones
 Package: gitlab-runner
 Pin: origin packages.gitlab.com
 Pin-Priority: 1001
 EOF
sudo apt-get install gitlab-runner

此后,我试图注册我的第一个共享跑步者

  1. 转到管理员/运行者
  2. 在shel运行命令进行注册
gitlab-runner register
Runtime platform                                    arch=amd64 os=linux pid=8467 revision=8bb608ff version=11.7.0
Running in system-mode.

Please enter the gitlab-ci coordinator URL (e.g. https://gitlab.com/):
https://gitlab.castris.com/
Please enter the gitlab-ci token for this runner:
zBTcN59V-GGGGGGGGGGG
Please enter the gitlab-ci description for this runner:
[gitlab]: test
Please enter the gitlab-ci tags for this runner (comma separated):
test
ERROR: Registering runner... failed                 runner=zBTcN59V status=couldn't execute POST against https://gitlab.castris.com/api/v4/runners: Post https://gitlab.castris.com/api/v4/runners: x509: certificate is valid for m169-571.powervow.com, not gitlab.castris.com
PANIC: Failed to register this runner. Perhaps you are having network problems 
cat /etc/gitlab-runner/config.toml
concurrent = 1
check_interval = 0

[session_server]
  session_timeout = 1800

0 个答案:

没有答案