【发布时间】:2020-08-26 07:43:19
【问题描述】:
代理版本和平台
2.173.0 上 centos-release-7-6.1810.2.el7.centos.x86_64
它是部署池的发布代理。
Azure DevOps 类型和版本
dev.azure.com(云)
什么不起作用?
# Running run once with agent version 2.160.1
./run.sh --once
Scanning for tool capabilities.
Connecting to the server.
2020-08-25 21:31:02Z: Listening for Jobs
Agent update in progress, do not shutdown agent.
Downloading 2.173.0 agent
Waiting for current job finish running.
Generate and execute update script.
Agent will exit shortly for update, should back online within 10 seconds.
‘/root/azagent/_diag/SelfUpdate-20200825-213148.log’ -> ‘/root/azagent/_diag/SelfUpdate-20200825-213148.log.succeed’
Scanning for tool capabilities.
Connecting to the server.
# this now runs indefinitely
有没有办法停止自动更新?生产机器上的多个代理处于脱机状态,到目前为止,我不知道如何解决这个问题。
编辑:它是部署组中的发布代理。另外,现在有一个 Github 问题https://github.com/microsoft/azure-pipelines-agent/issues/3093
【问题讨论】:
-
您在日志中看到
[2020-08-25 21:31:58Z WARN VisualStudioServices] Authentication failed with status code 401.这一行了吗?看起来代理收到 401。运行代理的用户是否具有正确的权限? -
您可以停止自动更新,代理池=>设置=>禁用
Allow agents in this pool to automatically update。 -
@Gimly 用户是 root 用户,应该拥有所有必要的权限,是的。
-
@LanceLi-MSFT 代理是释放代理,因此该设置不可用。现在GitHub上也有问题(github.com/microsoft/azure-pipelines-agent/issues/3093)。
标签: azure-devops