Warning: file_get_contents(/data/phpspider/zhask/data//catemap/1/asp.net/29.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181

Warning: file_get_contents(/data/phpspider/zhask/data//catemap/6/codeigniter/3.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Azure devops Azure DevOps(VSTS)自托管代理更新URL_Azure Devops_Azure Pipelines - Fatal编程技术网

Azure devops Azure DevOps(VSTS)自托管代理更新URL

Azure devops Azure DevOps(VSTS)自托管代理更新URL,azure-devops,azure-pipelines,Azure Devops,Azure Pipelines,我正在尝试将Azure DevOps(VSTS代理)所需的访问URL列入白名单 但是,在尝试执行自我更新时,我收到以下错误(文件为/vsts-agent/_diag/agent_20181127-213126-utc.log): [2018-11-27 21:37:49Z ERR Terminal]写入错误:发生错误:响应状态代码不表示成功:403(禁止)。 [2018-11-27 21:37:49Z ERR AgentProcess]System.Net.Http.HttpRequestExc

我正在尝试将Azure DevOps(VSTS代理)所需的访问URL列入白名单

但是,在尝试执行自我更新时,我收到以下错误(文件为/vsts-agent/_diag/agent_20181127-213126-utc.log):

[2018-11-27 21:37:49Z ERR Terminal]写入错误:发生错误:响应状态代码不表示成功:403(禁止)。 [2018-11-27 21:37:49Z ERR AgentProcess]System.Net.Http.HttpRequestException:响应状态代码不表示成功:403(禁止)。 在System.Net.Http.HttpResponseMessage.EnsureSuccessStatusCode()中 位于System.Net.Http.HttpClient.FinishGetStreamAsync(任务'1 getTask) 位于Microsoft.VisualStudio.Services.Agent.Listener.SelfUpdater.DownloadLatestAgent(CancellationToken令牌) 位于Microsoft.VisualStudio.Services.Agent.Listener.SelfUpdater.SelfUpdate(AgentRefreshMessage updateMessage、IJobDispatcher jobDispatcher、Boolean restartInteractiveAgent、CancellationToken令牌) 位于Microsoft.VisualStudio.Services.Agent.Listener.Agent.RunAsync(代理设置) 位于Microsoft.VisualStudio.Services.Agent.Listener.Agent.RunAsync(代理设置) 位于Microsoft.VisualStudio.Services.Agent.Listener.Agent.RunAsync(代理设置) 位于Microsoft.VisualStudio.Services.Agent.Listener.Agent.ExecuteCommand(CommandSettings命令) 位于Microsoft.VisualStudio.Services.Agent.Listener.Program.MainAsync(IHostContext上下文,字符串[]args)

但是,没有列出白名单的URL

我发现最接近的是:


注意:代理已成功配置,并且可以成功运行生成。只是每次更新都会失败,并且在删除/重新配置之前不会运行构建(不是选项-这是一个代理,不是交互式的)。

管道代理是开源的。代码可以找到

浏览一下跟踪,我猜它在这里抛出了错误:

using (Stream result = await httpClient.GetStreamAsync(_targetPackage.DownloadUrl))
通过指定下载URL查看,我猜这是您想要的URL:

https://vstsagentpackage.azureedge.net/agent/<AGENT_VERSION>/vsts-agent-win-x64-<AGENT_VERSION>.zip
https://vstsagentpackage.azureedge.net/agent//vsts-agent-win-x64-.zip

作为最后手段,您可以在不受限制的服务器上安装Hosted Agent,并在更新过程中监控流量。