我之前已经设置了从VSTS到Azure的持续部署。我以前的网站不再工作,我无法建立新的连接。当我尝试从Azure门户设置持续部署时,我收到此错误:
Failed to set up continuous deployment
DESCRIPTIONFailed to set up continuous deployment for web app myproject, using Visual Studio Team Services. Repository 'UpdateSiteSourceControl' operation failed with System.InvalidOperationException: Vso GetRepository: Cannot find repository https://myaccount.visualstudio.com/DefaultCollection/_git/myproject
at Microsoft.Web.Hosting.SourceControls.VsoProxy.<GetRepository>d__3f.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 Microsoft.Web.Hosting.Administration.VsoSiteRepositoryProvider.<UpdateSiteSourceControl>d__6.MoveNext().
STATUSError
我还尝试从旧的天蓝色门户网站continuous integration using vso进行设置。在第4步“授权完成时”,我收到错误消息,说它找不到任何存储库。
我已尝试设置新的回购,新网站,取消链接团队服务,旧门户,新门户等。
取消链接团队服务和oauth再次授予它后,我得到了这个错误(几乎相同但有点不同):
Failed to set up continuous deployment for web app myproject, using Visual Studio Team Services. Repository 'UpdateSiteSourceControl' operation failed with Microsoft.Web.Hosting.SourceControls.OAuthException: Vso ListRepositories(SOMENUMBER@live.com): (401) Unauthorized.
at Microsoft.Web.Hosting.SourceControls.VsoProxy.<ProcessResponse>d__83`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 Microsoft.Web.Hosting.SourceControls.VsoProxy.<ListRepositories>d__30.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 Microsoft.Web.Hosting.SourceControls.VsoProxy.<GetRepository>d__3f.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 Microsoft.Web.Hosting.Administration.VsoSiteRepositoryProvider.<UpdateSiteSourceControl>d__6.MoveNext().
答案 0 :(得分:2)
这似乎是由微软正在调查的问题引起的。
2016年3月3日大约在UTC时间21:30开始,工程师是 意识到有限的一部分客户可能遇到的问题 他们尝试使用Web应用程序设置持续部署时出错 通过Classic Azure Management提供Visual Studio在线团队服务 门户。 (https://manage.windowsazure.com)。
解决方法:目前有2种解决方法
1)用户可以登录他们的Visual Studio Team Services&#39;帐户和 使用新的Azure部署构建定义来设置连续 Azure Web Apps的部署
2)或者,Git存储库上的用户可以使用Azure门户 (https://portal.azure.com/)设置持续部署。
有关详细信息,请参阅此链接:Investigating issues with Continuous Deployment from Classic Azure Management Portal