【问题标题】:Buildbot tutorial failure - worker can't connect to masterBuildbot 教程失败 - worker 无法连接到 master
【发布时间】:2018-11-14 14:58:14
【问题描述】:

我正在尝试 buildbot,并按照教程进行操作。我成功安装并启动了master,如下图twistd.log部分文件所示。

2018-11-14 08:32:52-0600 [-] BuildMaster is running
2018-11-14 08:32:52-0600 [-] buildbotNetUsageData: sending 
{'installid': '38122a5be5d93ebdf0ef631a1584f36f418d12c0', 'versions': 
{'Python': '3.6.3', 'Buildbot': '1.5.0', 'Twisted': '18.9.0'}, 
'platform': {'platform': 'Darwin-18.2.0-x86_64-i386-64bit', 'system': 
'Darwin', 'machine': 'x86_64', 'processor': 'i386', 
'python_implementation': 'CPython', 'version': 'Darwin Kernel Version 
18.2.0:', 'distro': '10.14.2'}, 'plugins': 
{'buildbot/worker/base/Worker': 1, 'buildbot/config/BuilderConfig': 1, 
'buildbot/schedulers/basic/SingleBranchScheduler': 1, 
'buildbot/schedulers/forcesched/ForceScheduler': 1, 
'buildbot/changes/gitpoller/GitPoller': 1, 
'buildbot/steps/source/git/Git': 1, 
'buildbot/steps/shell/ShellCommand': 1}, 'db': 'sqlite', 'mq': 
'simple', 'www_plugins': ['waterfall_view', 'console_view', 'grid_view']}

安装和设置worker后,worker无法连接到master,我也无法加载localhost:8010,因为教程指示应该运行。我已验证我创建的工作人员使用与 master.cfg 文件指定的工作人员名称和密码相同。对我错过了什么有什么想法吗?

部分工作人员 twistd.log 如下:

2018-11-14 08:32:34-0600 [-] Connecting to localhost:9989
2018-11-14 08:32:34-0600 [Uninitialized] Connection to localhost:9989 failed: Connection Refused
2018-11-14 08:32:34-0600 [Uninitialized] <twisted.internet.tcp.Connector object at 0x10d8e6080> will retry in 62 seconds
2018-11-14 08:32:34-0600 [Uninitialized] Retry attempt 4/inf
2018-11-14 08:32:34-0600 [-] Stopping factory <buildbot_worker.pb.BotFactory object at 0x10d8d6c50>
2018-11-14 08:33:37-0600 [-] Starting factory <buildbot_worker.pb.BotFactory object at 0x10d8d6c50>
2018-11-14 08:33:37-0600 [-] Connecting to localhost:9989
2018-11-14 08:33:37-0600 [Uninitialized] Connection to localhost:9989 failed: Connection Refused

【问题讨论】:

    标签: buildbot


    【解决方案1】:

    请尝试使用 buildbot reconfig (http://docs.buildbot.net/1.5.0/manual/cfg-intro.html?highlight=reconfig) 或 buildbot upgrade-master (http://docs.buildbot.net/1.5.0/manual/cmdline.html?highlight=upgrade-master#)

    此外,您可以在 Buildbot 快速浏览中找到对 reconfig 的参考:(http://docs.buildbot.net/1.5.0/tutorial/tour.html)

    您应该在 Buildbot 决策(工人、时间表、通知者、工厂等)每次更改后使用它

    【讨论】:

    • 谢谢。我已经尝试了所有三个建议,但我仍然遇到完全相同的问题。 worker 连接被拒绝,localhost:8010 也是如此。
    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 2021-08-24
    • 1970-01-01
    • 2020-05-29
    • 2017-04-28
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多