Visual Studio 团队服务 - 构建在部署后开始中断
Visual Studio Team Services - builds have started to break after deployment
我们 运行 Azure VM 在 Visual Studio Team Services(以前是 Visual Studio Online)后面做 CI 的时间最长,并且一切正常.
最近,几乎每个构建都开始中断,/之后/部署完成,在最后 "Copy binaries" 步骤
Copy binaries to drop Exception Message: The HTTP request timed out
after 00:01:40. (type TimeoutException) Exception Stack Trace: at
Microsoft.TeamFoundation.Build.Workflow.Activities.FileContainerDropProvider.EndCopyDirectory(IAsyncResult
result) at
Microsoft.TeamFoundation.Build.Workflow.Activities.CopyDirectory.EndExecute(AsyncCodeActivityContext
context, IAsyncResult result) at
System.Activities.AsyncCodeActivity.CompleteAsyncCodeActivityData.CompleteAsyncCodeActivityWorkItem.Execute(ActivityExecutor
executor, BookmarkManager bookmarkManager)
Inner Exception Details:
Exception Message: A task was canceled. (type TaskCanceledException)
Exception Stack Trace: at
System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task
task) at
System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task
task) at
System.Runtime.CompilerServices.ConfiguredTaskAwaitable`1.ConfiguredTaskAwaiter.GetResult()
at
Microsoft.VisualStudio.Services.Common.VssHttpMessageHandler.d__0.MoveNext()
关于可能是什么问题的任何想法?生成服务器已重新启动,其放置文件夹已清理。
看起来像是超时问题。增加请求等待时间,然后尝试查看是否仍然可以看到问题。详情参考这个link:Timeouts uploading bits to drop folder from on-prem build controller connected to VSO.
FIX:
Finally came to find a fix. In tfsbuildservicehost.exe.config* add the
appSettings key of ServerDrop.MaxRequestTimeInSeconds with an int
value for seconds. As an example add this…
<appSettings>
<add key=”ServerDrop.MaxRequestTimeInSeconds” value=”300″/>
</appSettings>
…and now the timeout is 5 minutes.
HTH, Trevor
我们 运行 Azure VM 在 Visual Studio Team Services(以前是 Visual Studio Online)后面做 CI 的时间最长,并且一切正常.
最近,几乎每个构建都开始中断,/之后/部署完成,在最后 "Copy binaries" 步骤
Copy binaries to drop Exception Message: The HTTP request timed out after 00:01:40. (type TimeoutException) Exception Stack Trace: at Microsoft.TeamFoundation.Build.Workflow.Activities.FileContainerDropProvider.EndCopyDirectory(IAsyncResult result) at Microsoft.TeamFoundation.Build.Workflow.Activities.CopyDirectory.EndExecute(AsyncCodeActivityContext context, IAsyncResult result) at System.Activities.AsyncCodeActivity.CompleteAsyncCodeActivityData.CompleteAsyncCodeActivityWorkItem.Execute(ActivityExecutor executor, BookmarkManager bookmarkManager)
Inner Exception Details:
Exception Message: A task was canceled. (type TaskCanceledException) Exception Stack Trace: at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task) at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task) at System.Runtime.CompilerServices.ConfiguredTaskAwaitable`1.ConfiguredTaskAwaiter.GetResult() at Microsoft.VisualStudio.Services.Common.VssHttpMessageHandler.d__0.MoveNext()
关于可能是什么问题的任何想法?生成服务器已重新启动,其放置文件夹已清理。
看起来像是超时问题。增加请求等待时间,然后尝试查看是否仍然可以看到问题。详情参考这个link:Timeouts uploading bits to drop folder from on-prem build controller connected to VSO.
FIX:
Finally came to find a fix. In tfsbuildservicehost.exe.config* add the appSettings key of ServerDrop.MaxRequestTimeInSeconds with an int value for seconds. As an example add this…
<appSettings> <add key=”ServerDrop.MaxRequestTimeInSeconds” value=”300″/> </appSettings>
…and now the timeout is 5 minutes.
HTH, Trevor