gitlab-runner clone 不了代码

2019-05-14 22:20:01 +08:00
 Bruin

背景:阿里云搭了一台 gitlab server,没有解析域名,绑定了 hosts 127.0.0.1 git.server,另外一台机子上有 gitlab-runner 用来构建代码,机子上 hosts 也做了绑定 116...17 git.server,正常使用 ssh 克隆代码没有问题,

问题:用 runner 构建时,出现如下错误 fatal: unable to access 'http://gitlab-ci-token:xxxxxxxxxxxxxxxxxxxx@git.server/tuitui/test-ci.git/': The requested URL returned error: 500

2443 次点击
所在节点    程序员
5 条回复
sunzongzheng
2019-05-14 23:23:16 +08:00
切到 gitlab-runner 那个用户去调试
jakehu
2019-05-15 09:16:40 +08:00
提权,将 gitlab-runner 用户提权到 root 权限
Bruin
2019-05-15 09:23:00 +08:00
@jakehu gitlab-runner install --user=root --working-directory=/var/www 用的 root
Bruin
2019-05-15 09:24:06 +08:00
@sunzongzheng 也就是说用 host 绑定域名是行得通得是吧?之前用的是 gitlab-runner 用户,现在改成了 root 用户还是不行
Bruin
2019-05-15 11:21:12 +08:00
有知道原因的么

这是一个专为移动设备优化的页面(即为了让你能够在 Google 搜索结果里秒开这个页面),如果你希望参与 V2EX 社区的讨论,你可以继续到 V2EX 上打开本讨论主题的完整版本。

https://www.v2ex.com/t/564178

V2EX 是创意工作者们的社区,是一个分享自己正在做的有趣事物、交流想法,可以遇见新朋友甚至新机会的地方。

V2EX is a community of developers, designers and creative people.

© 2021 V2EX