代码之家  ›  专栏  ›  技术社区  ›  joe

跑步者身体不健康,将被禁用

  •  0
  • joe  · 技术社区  · 7 年前

    我用 gitlab.com 我安装 runner 在 DigitalOcean .泰国时间2019年3月16日14:24之前天气一直很好。

    # gitlab-runner status
    Runtime platform                                    arch=amd64 os=linux pid=16937 revision=4745a6f3 version=11.8.0
    gitlab-runner: Service is running!
    # gitlab-runner unregister --all-runners
    Runtime platform                                    arch=amd64 os=linux pid=16299 revision=4745a6f3 version=11.8.0
    Running in system-mode.
    
    WARNING: Unregistering all runners
    ERROR: Unregistering runner from GitLab forbidden   runner=2bcd7af4
    ERROR: Failed to unregister runner HerrRunner
    # gitlab-runner list
    Runtime platform                                    arch=amd64 os=linux pid=16346 revision=4745a6f3 version=11.8.0
    Listing configured runners                          ConfigFile=/etc/gitlab-runner/config.toml
    HerrRunner                                          Executor=shell Token=2bcd7af455f866ede7991992a68780 URL=https://gitlab.com/
    # gitlab-runner --debug run
    Runtime platform                                    arch=amd64 os=linux pid=16395 revision=4745a6f3 version=11.8.0
    Starting multi-runner from /etc/gitlab-runner/config.toml ...  builds=0
    Checking runtime mode                               GOOS=linux uid=0
    Running in system-mode.
    
    Configuration loaded                                builds=0
    listenaddress: ""
    sessionserver:
      listenaddress: ""
      advertiseaddress: ""
      sessiontimeout: 1800
    metricsserveraddress: ""
    concurrent: 1
    checkinterval: 0
    loglevel: null
    logformat: null
    user: ""
    runners:
    - name: HerrRunner
      limit: 0
      outputlimit: 0
      requestconcurrency: 0
      runnercredentials:
        url: https://gitlab.com/
        token: 2bcd7af455f866ede7991992a68780
        tlscafile: ""
        tlscertfile: ""
        tlskeyfile: ""
      runnersettings:
        executor: shell
        buildsdir: ""
        cachedir: ""
        cloneurl: ""
        environment: []
        preclonescript: ""
        prebuildscript: ""
        postbuildscript: ""
        shell: ""
        ssh: null
        docker: null
        parallels: null
        virtualbox: null
        cache:
          type: ""
          path: ""
          shared: false
          s3: null
          gcs: null
          s3cachepath: ""
          cacheshared: false
          serveraddress: ""
          accesskey: ""
          secretkey: ""
          bucketname: ""
          bucketlocation: ""
          insecure: false
        machine: null
        kubernetes: null
    sentrydsn: null
    modtime: 2018-08-12T18:07:07.963445119Z
    loaded: true
      builds=0
    Waiting for stop signal                             builds=0
    Listen address not defined, metrics server disabled  builds=0
    Listen address not defined, session server disabled  builds=0
    Starting worker                                     builds=0 worker=0
    Feeding runners to channel                          builds=0
    Dialing: tcp gitlab.com:443 ...
    ERROR: Checking for jobs... forbidden               runner=2bcd7af4
    Feeding runners to channel                          builds=0
    ERROR: Checking for jobs... forbidden               runner=2bcd7af4
    Feeding runners to channel                          builds=0
    ERROR: Checking for jobs... forbidden               runner=2bcd7af4
    ERROR: Runner https://gitlab.com/2bcd7af455f866ede7991992a68780 is not healthy and will be disabled!
    Feeding runners to channel                          builds=0
    Feeding runners to channel                          builds=0
    Feeding runners to channel                          builds=0
    ^CWARNING: Requested service stop: interrupt          builds=0
    All workers stopped. Can exit now                   builds=0
    

    最终目标

    拿我的亚军再跑一次

    问题:

    1. 什么 not healthy 方法

    2. 我不能注销我的跑步者。如何解决这个问题?

    0 回复  |  直到 7 年前
        1
  •  4
  •   joe    7 年前

    不知道。但似乎 gitlab.com 移除我的跑步令牌。因此,我必须删除我的跑步者,注册,然后再次跑步。

        2
  •  4
  •   hi2meuk    5 年前

    我第一次整合了我的跑步者,任何熟悉gitlab的人都会知道这永远不会是在公园里散步。我花了很多时间寻找这个错误信息,结果发现我完全看错了方向。

    ERROR: Checking for jobs... forbidden               runner=s3xBVnW8
    ERROR: Checking for jobs... forbidden               runner=s3xBVnW8
    ERROR: Checking for jobs... forbidden               runner=s3xBVnW8
    ERROR: Runner https://gitlab.com/s3xBVnW8JZPTaocALN3i is not healthy and will be disabled!
    

    我现在相信我的跑步者是在告诉我gitlab的“跑步者”。com不健康,已被(我的跑步者)拒绝。当我让它继续运行并放入管道作业时,它处理得很好,在我这边没有问题,我花了几个小时什么都没找!

        3
  •  2
  •   Vitalii Ivanov    5 年前

    我也面临同样的问题。按照安装说明中的说明注册runner。去 admin/runners 点击 Show runner installation instructions 按钮最重要的是 Register runner 你必须跑步的课程 register 用于解决所述问题的命令。例如,linux:

    sudo gitlab-runner register --url YOUR_GITLAB_SERVER_URL --registration-token TOKEN
    
    # YOUR_GITLAB_SERVER_URL like http://localhost:8100/ or https://mygitlabserver.com/
    

    按照指示去做,你就可以出发了。

    一旦你的跑步者被设置并运行,你就可以对配置文件进行修改,在配置更改后停止并再次启动它。

    你可以找到复制品 [[runners]] 部分,如果您尝试自行配置,然后使用 登记 命令没关系,只留下一个最新的。

    推荐文章