• 请不要在回答技术问题时复制粘贴 AI 生成的内容
Bruin
V2EX  ›  程序员

gitlab-runner clone 不了代码

  •  
  •   Bruin · May 14, 2019 · 3059 views
    This topic created in 2738 days ago, the information mentioned may be changed or developed.

    背景:阿里云搭了一台 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

    Supplement 1  ·  May 14, 2019
    大佬们,求解答
    5 replies  •  2019-05-15 11:21:12 +08:00
    zhangyiming
    zhangyiming
    May 14, 2019 via Android
    1
    切到 gitlab-runner 那个用户去调试
    jakehu
    jakehu
    May 15, 2019
    2
    提权,将 gitlab-runner 用户提权到 root 权限
    Bruin
    Bruin
    OP
    May 15, 2019
    3
    @jakehu gitlab-runner install --user=root --working-directory=/var/www 用的 root
    Bruin
    Bruin
    OP
    May 15, 2019
    4
    @sunzongzheng 也就是说用 host 绑定域名是行得通得是吧?之前用的是 gitlab-runner 用户,现在改成了 root 用户还是不行
    Bruin
    Bruin
    OP
    May 15, 2019
    5
    有知道原因的么
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Privacy   ·   Solana   ·   1017 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 25ms · UTC 18:37 · PVG 02:37 · LAX 10:37 · JFK 13:37
    ♥ Do have faith in what you're doing.