runner交互式Web终端未连接

runner交互式Web终端未连接

本文介绍了Gitlab-runner交互式Web终端未连接的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我已经在VM上成功安装了gitlab-runner,并且我的某些项目已使用它.我想使用

我注意到,当我在运行gitlab-runner的机器上点击0.0.0.0:8093地址时,会收到以下响应:

解决方案

您的配置应使用:

  [会话服务器]session_timeout = 1800listen_address ="0.0.0.0:8093"advertise_address =<您的跑步者IP/主机名>:8093" 

I have installed successfully a gitlab-runner on a VM, and it is used by some of my projects. I would like to use the Interactive Web Terminal to have a chance to debug when some pipeline fails.

I'm trying to configure my config.toml file, following this docu of gitlab but i'm not understanding wich ip addess i should use in the setting listen_address. Should it be the ip of the running machine? The docker container instance? Or what?

Here is my current configuration:

concurrent = 2
check_interval = 0
log_level = "panic"

[session_server]
  listen_address = "0.0.0.0:8093" #  listen on all available interfaces on port 8093
  session_timeout = 1800

[[runners]]
  name = "A test private repo"
  url = "https://gitlab.com/"
  token = "myToken"
  executor = "docker"
  [runners.custom_build_dir]
  [runners.docker]
    tls_verify = false
    image = "alpine:latest"
    privileged = false
    disable_entrypoint_overwrite = false
    oom_kill_disable = false
    disable_cache = false
    volumes = ["/cache"]
    shm_size = 0
  [runners.cache]
    [runners.cache.s3]
    [runners.cache.gcs]
  [runners.custom]
    run_exec = ""

Screen of error i get

I noticed that when i hit the 0.0.0.0:8093 address on the machine where the gitlab-runner is running i get this response:

解决方案

Your configuration should use:

[session_server]
   session_timeout = 1800
   listen_address = "0.0.0.0:8093"
   advertise_address = "<your runner IP/hostname>:8093"

Yes

这篇关于Gitlab-runner交互式Web终端未连接的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

08-01 17:35