【问题标题】:Agent version 2.173.0 fails to connect to Azure DevOps代理版本 2.173.0 无法连接到 Azure DevOps
【发布时间】: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

有没有办法停止自动更新?生产机器上的多个代理处于脱机状态,到目前为止,我不知道如何解决这个问题。

agent.log

编辑:它是部署组中的发布代理。另外,现在有一个 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


【解决方案1】:

要解决Authentication failed with status code 401,您可以尝试以下步骤:

1.创建具有manage权限的新PAT:

然后使用config.sh 文件重新配置代理。

2.如果不行,请尝试创建一个新的代理池来注册新的代理:

要停止自动更新,您应该禁用此选项(组织设置=>代理池=>设置):

【讨论】:

  • 感谢您的回复。但是这个代理是一个释放代理,所以这个设置不可用。
猜你喜欢
  • 1970-01-01
  • 1970-01-01
  • 2022-06-18
  • 2020-09-27
  • 2022-11-28
  • 2021-10-27
  • 1970-01-01
  • 2020-01-12
  • 1970-01-01
相关资源
最近更新 更多