V2EX = way to explore
V2EX 是一个关于分享和探索的地方
现在注册
已注册用户请  登录
Bruin
V2EX  ›  程序员

gitlab-runner clone 不了代码

  •  
  •   Bruin · 2019-05-14 22:20:01 +08:00 · 2388 次点击
    这是一个创建于 1807 天前的主题,其中的信息可能已经有所发展或是发生改变。

    背景:阿里云搭了一台 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:[email protected]/tuitui/test-ci.git/': The requested URL returned error: 500

    第 1 条附言  ·  2019-05-14 23:00:52 +08:00
    大佬们,求解答
    5 条回复    2019-05-15 11:21:12 +08:00
    sunzongzheng
        1
    sunzongzheng  
       2019-05-14 23:23:16 +08:00 via Android
    切到 gitlab-runner 那个用户去调试
    jakehu
        2
    jakehu  
       2019-05-15 09:16:40 +08:00
    提权,将 gitlab-runner 用户提权到 root 权限
    Bruin
        3
    Bruin  
    OP
       2019-05-15 09:23:00 +08:00
    @jakehu gitlab-runner install --user=root --working-directory=/var/www 用的 root
    Bruin
        4
    Bruin  
    OP
       2019-05-15 09:24:06 +08:00
    @sunzongzheng 也就是说用 host 绑定域名是行得通得是吧?之前用的是 gitlab-runner 用户,现在改成了 root 用户还是不行
    Bruin
        5
    Bruin  
    OP
       2019-05-15 11:21:12 +08:00
    有知道原因的么
    关于   ·   帮助文档   ·   博客   ·   API   ·   FAQ   ·   我们的愿景   ·   实用小工具   ·   3291 人在线   最高记录 6543   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 27ms · UTC 12:19 · PVG 20:19 · LAX 05:19 · JFK 08:19
    Developed with CodeLauncher
    ♥ Do have faith in what you're doing.