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

gitlab-runner clone 不了代码

  •  
  •   Bruin · May 14, 2019 · 2840 views
    This topic created in 2646 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
    sunzongzheng
        1
    sunzongzheng  
       May 14, 2019 via Android
    切到 gitlab-runner 那个用户去调试
    jakehu
        2
    jakehu  
       May 15, 2019
    提权,将 gitlab-runner 用户提权到 root 权限
    Bruin
        3
    Bruin  
    OP
       May 15, 2019
    @jakehu gitlab-runner install --user=root --working-directory=/var/www 用的 root
    Bruin
        4
    Bruin  
    OP
       May 15, 2019
    @sunzongzheng 也就是说用 host 绑定域名是行得通得是吧?之前用的是 gitlab-runner 用户,现在改成了 root 用户还是不行
    Bruin
        5
    Bruin  
    OP
       May 15, 2019
    有知道原因的么
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   2707 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 21ms · UTC 15:38 · PVG 23:38 · LAX 08:38 · JFK 11:38
    ♥ Do have faith in what you're doing.