VSTS部署Azure功能错误:4294967295

时间:2018-01-28 09:18:34

标签: azure azure-devops azure-functions webdeploy azure-pipelines-release-pipeline

我使用VSTS部署Azure功能。我从昨天早上开始在部署过程中遇到一些错误。

错误代码 4294967295 ,通常与锁定的文件夹相关,但错误消息显示用户名或密码不正确,所以我有点困惑

2018-01-28T08:31:58.6556754Z ##[error]Failed to deploy web package to App Service.
2018-01-28T08:31:58.6568081Z ##[error]Error: (1/28/2018 8:31:58 AM) An error occurred when the request was processed on the remote computer.
Error: The user name or password is incorrect.

   at Microsoft.Web.Deployment.NativeMethods.RaiseIOExceptionFromErrorCode(Win32ErrorCode errorCode, String maybeFullPath)
   at Microsoft.Web.Deployment.DirectoryEx.CreateDirectory(String path)
   at Microsoft.Web.Deployment.DirectoryEx.CreateDirectoriesFromRoot(String path)
   at Microsoft.Web.Deployment.AppOfflineRuleHandler.AddAppOfflineFilesToEachApp(DeploymentBaseContext baseContext, Boolean whatIf)
   at Microsoft.Web.Deployment.AppOfflineRuleHandler.Add(DeploymentSyncContext syncContext, DeploymentObject destinationObject, DeploymentObject& sourceObject, Boolean& proceed)
   at Microsoft.Web.Deployment.DeploymentSyncContext.HandleAdd(DeploymentObject destObject, DeploymentObject sourceObject)
   at Microsoft.Web.Deployment.DeploymentSyncContext.SyncChildren(DeploymentObject dest, DeploymentObject source)
   at Microsoft.Web.Deployment.DeploymentSyncContext.SyncChildrenNoOrder(DeploymentObject dest, DeploymentObject source)
   at Microsoft.Web.Deployment.DeploymentSyncContext.SyncChildren(DeploymentObject dest, DeploymentObject source)
   at Microsoft.Web.Deployment.DeploymentSyncContext.SyncChildrenOrder(DeploymentObject dest, DeploymentObject source)
   at Microsoft.Web.Deployment.DeploymentSyncContext.SyncChildren(DeploymentObject dest, DeploymentObject source)
   at Microsoft.Web.Deployment.DeploymentSyncContext.ProcessSync(DeploymentObject destinationObject, DeploymentObject sourceObject)
   at Microsoft.Web.Deployment.DeploymentObject.SyncToInternal(DeploymentObject destObject, DeploymentSyncOptions syncOptions, PayloadTable payloadTable, ContentRootTable contentRootTable, Nullable1 syncPassId, String syncSessionId)
   at Microsoft.Web.Deployment.DeploymentAgent.HandleSync(DeploymentAgentAsyncData asyncData, Nullable1 passId, String user, String siteName)
Error count: 1.

2018-01-28T08:31:58.6575553Z ##[error]Error: C:\Program Files\IIS\Microsoft Web Deploy V3\msdeploy.exe failed with return code: 4294967295

1 个答案:

答案 0 :(得分:0)

根据您的日志,Azure App Service Deploy任务的包或文件夹选项过于宽泛。它匹配多个.zip个文件。

在日志中,它匹配两个zip文件:

d:\a\r1\a\Stamp BigBro\drop\HeartbeatMonitor.zip
d:\a\r1\a\temp_web_package_08951874997805498.zip

d:\a\r1\a\temp_web_package_08951874997805498.zip文件(显然不符合预期)被视为msdeploy cli中的包。

所以你应该更改Package或文件夹选项,以确保它只能用于HeartbeatMonitor.zip fie。如下任何格式都可以工作:

$(System.DefaultWorkingDirectory)\**\HeartbeatMonitor.zip
$(System.DefaultWorkingDirectory)\Stamp BigBro\drop\HeartbeatMonitor.zip

enter image description here