首页 > 解决方案 > 代理版本 2.173.0 无法连接到 Azure DevOps

问题描述

代理版本和平台

centos-release-7-6.1810.2.el7.centos.x86_64 上的 2.173.0

它是部署池的发布代理。

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

标签: azure-devops

解决方案


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

manage1.创建一个有权限的新PAT :

在此处输入图像描述

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

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

在此处输入图像描述

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

在此处输入图像描述


推荐阅读