【问题标题】:Disconnected Jenkins agents using websocket使用 websocket 断开 Jenkins 代理
【发布时间】:2020-05-28 03:26:14
【问题描述】:

我正在尝试移动我的构建代理以使用 websocket 协议而不是 JNLP。看起来很接近,但我的代理显示为断开连接。

如果我查看代理的日志,它会说:

Inbound agent connected from x.x.x.x < agent's IP

并且在代理的日志中显示:

2020-05-13T16:36:33.132-04:00 INFO: http://jenkins.domain.internal/login is not ready: 503 < waiting for Jenkins to join the lb
2020-05-13T16:36:43.749-04:00 May 13, 2020 8:36:43 PM hudson.remoting.jnlp.Main$CuiListener status
2020-05-13T16:36:43.749-04:00 INFO: WebSocket connection open
2020-05-13T16:36:43.749-04:00 May 13, 2020 8:36:43 PM hudson.remoting.jnlp.Main$CuiListener status
2020-05-13T16:36:43.749-04:00 INFO: Connected

但代理显示为离线。我无法解决这个问题。如果我将代理从 Jenkins 中删除,那么我会在 Jenkins 日志中看到一行表示无法识别代理。

【问题讨论】:

  • 只关注这个帖子!我也卡在同一阶段。顺便说一句,您是否使用了最新版本的 jenkins 2.217 及更高版本。还有agent.jar 4.0 或更高版本。
  • 我确实使用了最新的 Jenkins。 GSM 是对的,docker 容器上的代理 jar 是 4.1,Jenkins 的代理管理页面上的代理是 4.0。使用 4.0 代理,一切都是开箱即用的,我不再打开端口 50000。哇!

标签: jenkins


【解决方案1】:

JNLP 入站代理的版本 inbound-jenkins-agent:4.0.1-1 似乎可以正常工作。其他,更高版本有问题。至少在我们的环境中,使用此版本后,一切都开始工作了。

看到这个问题:https://github.com/jenkinsci/docker-inbound-agent/issues/172

【讨论】:

  • 这是正确的,使用你从 Jenkins 代理页面获取的 jar 后它工作了,最新的 jnlp 容器附带的版本太新了,没有。
  • 使用最新(非 TLS)的 Jenkins 开箱即用。
猜你喜欢
  • 1970-01-01
  • 2017-06-01
  • 2016-05-22
  • 1970-01-01
  • 2018-08-28
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
  • 2011-05-20
相关资源
最近更新 更多