简体   繁体   English

Azure DevOps Agent - 无法运行

[英]Azure DevOps Agent - not able to run

I am running an Ubuntu self-hosted build agent for Azure DevOps in Container Instances and container outputs only: Determining matching Azure Pipelines agent.我正在为 Azure DevOps 在容器实例和容器输出中运行 Ubuntu 自托管构建代理: Determining matching Azure Pipelines agent. and that's it.就是这样。

It has PAT with full access to whole organization, given agent pool really exists and the URL is correct as well.它具有对整个组织的完全访问权限的 PAT,假设代理池确实存在并且 URL 也是正确的。 THe only thing that comes to my mind is that I see our URL as https://XXXX.visualstudio.com/ but I gave the agent url like https://dev.azure.com/XXX which still seems to be working when used in the browser.我唯一想到的是我看到我们的 URL 为https://XXXX.visualstudio.com/但我给了代理 url 就像https://dev.azure.com/XXX时似乎仍然有效在浏览器中使用。

How to solve this, please?请问这个怎么解决?

I suppose that your issue is caused by the agent upgrades to support .NET 6 (.NET core 3.1 will be out of support in December).我想您的问题是由于代理升级支持 .NET 6 (.NET core 3.1 将在 12 月停止支持)引起的。 You could test to upgrade the container version to 20.04 or higher.您可以测试将容器版本升级到 20.04 或更高版本。

You could also refer to this issue#3834 for more information.您也可以参考这个 问题#3834了解更多信息。

The problem was that Agent was put into the su.net which had not NSG, therefore it denied all in/outbound traffic.问题是 Agent 被放入没有 NSG 的 su.net 中,因此它拒绝了所有入站/出站流量。 So we added a NSG to this su.net with outbound rule for port 443 TCP and it works now.因此,我们向此 su.net 添加了一个 NSG,其中包含端口 443 TCP 的出站规则,它现在可以工作了。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM