在nano服务器

时间:2016-10-18 07:40:36

标签: docker tfs azure-devops azure-pipelines windows-server-2016

我希望在其上使用nano服务器在docker镜像上运行vsts代理。容器上已安装.Net Core。我使用Download Agent和config.cmd命令下载了vsts代理。出现以下错误

An error occurred while sending the request. Failed to connect.  Try again or ctrl-c to quit

以下是详细信息

Windows版:Microsoft Windows [版本10.0.14393]

.Net核心版本:1.0.1
.Net核心版本:cee57bf6c981237d80aa1631cfe83cb9ba329f12

查看诊断日志,我收到以下错误

  

[2016-10-18 07:29:46Z ERR终端] System.Net.Http.HttpRequestException:发送请求时发生错误。 ---&GT; System.Net.Http.WinHttpException:参数不正确      在System.Net.Http.WinHttpAuthHelper.SetWinHttpCredential(SafeWinHttpHandle requestHandle,ICredentials凭证,Uri uri,UInt32 authScheme,UInt32 authTarget)      在System.Net.Http.WinHttpAuthHelper.CheckResponseForAuthentication(WinHttpRequestState state,UInt32&amp; proxyAuthScheme,UInt32&amp; serverAuthScheme)      在System.Net.Http.WinHttpHandler.d__101.MoveNext()      ---内部异常堆栈跟踪结束---      在Microsoft.VisualStudio.Services.Common.VssHttpRetryMessageHandler.d__3.MoveNext()   ---从抛出异常的先前位置开始的堆栈跟踪结束---      在System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(任务任务)      在System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(任务任务)      在System.Net.Http.HttpClient.d__58.MoveNext()   ---从抛出异常的先前位置开始的堆栈跟踪结束---      在System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(任务任务)      在System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(任务任务)      在System.Runtime.CompilerServices.ConfiguredTaskAwaitable 1.ConfiguredTaskAwaiter.GetResult() at Microsoft.VisualStudio.Services.WebApi.VssHttpClientBase.<SendAsync>d__45.MoveNext() --- End of stack trace from previous location where exception was thrown --- at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task) at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task) at System.Runtime.CompilerServices.ConfiguredTaskAwaitable 1.ConfiguredTaskAwaiter.GetResult()      在Microsoft.VisualStudio.Services.WebApi.VssHttpClientBase.d__42 1.MoveNext() --- End of stack trace from previous location where exception was thrown --- at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task) at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task) at System.Runtime.CompilerServices.ConfiguredTaskAwaitable 1.ConfiguredTaskAwaiter.GetResult()      在Microsoft.VisualStudio.Services.Location.Client.LocationHttpClient.d__6.MoveNext()   ---从抛出异常的先前位置开始的堆栈跟踪结束---      在System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(任务任务)      在System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(任务任务)      在System.Runtime.CompilerServices.ConfiguredTaskAwaitable`1.ConfiguredTaskAwaiter.GetResult()      在Microsoft.VisualStudio.Services.WebApi.Location.VssServerDataProvider.d__41.MoveNext()   ---从抛出异常的先前位置开始的堆栈跟踪结束---      在System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(任务任务)      在System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(任务任务)      在Microsoft.VisualStudio.Services.Agent.AgentServer.d__3.MoveNext()   ---从抛出异常的先前位置开始的堆栈跟踪结束---      在System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(任务任务)      在System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(任务任务)      在Microsoft.VisualStudio.Services.Agent.Listener.Configuration.ConfigurationManager.d__10.MoveNext()   ---从抛出异常的先前位置开始的堆栈跟踪结束---      在System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(任务任务)      在System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(任务任务)      在Microsoft.VisualStudio.Services.Agent.Listener.Configuration.ConfigurationManager.d__7.MoveNext()   [2016-10-18 07:29:46Z ERR终端] WRITE ERROR:连接失败。再试一次或按ctrl-c退出

有人可以帮忙吗?

1 个答案:

答案 0 :(得分:1)

我把它作为产品团队的一个问题提出来了。 https://github.com/Microsoft/vsts-agent/issues/483

目前尚不支持该方案。即VSTS代理无法运行Windows Nano Server。以下是摘自团队的回复

“这可能不仅仅是这个问题。代理的Windows版本目前假设安装了.NET。它具有验证检查,验证.NET&gt; = 4.5已安装。听起来它缺少验证区分.NET Full和.NET Core。

我的理解是Nano没有.NET Full,只有.NET Core。考虑到Nano约束,我们需要通过代理程序,并找出对在Nano上运行的代理程序意味着什么。“