【发布时间】:2021-02-15 04:56:35
【问题描述】:
我有一个正在尝试通过 azure 的 DevOps 管道部署的应用程序。我之前已经成功部署了应用程序,并且该应用程序的第一个构建部署良好。但是,所有后续构建在部署步骤都失败了。他们似乎在“部署 Azure 应用服务”步骤中特别失败,生成了 ERROR_NOT_ENOUGH_DISK_SPACE 错误代码。
部署终端输出显示以下错误:
Got connection details for Azure App Service:'MMOMarketTracker'
[command]"C:\Program Files\IIS\Microsoft Web Deploy V3\msdeploy.exe" -verb:sync -source:package='D:\a\r1\a\_MMMarketTracker\build\build.zip' -dest:contentPath='MMOMarketTracker',ComputerName='https://mmomarkettracker.scm.azurewebsites.net:443/msdeploy.axd?site=MMOMarketTracker',UserName='$MMOMarketTracker',Password='***',AuthType='Basic' -enableRule:AppOffline -enableRule:DoNotDeleteRule -userAgent:VSTS_ba2ca09f-578d-4893-99ac-412c3f26fde5_release_1_9_9_1
2018-11-22T21:02:35.2302461Z Info: Using ID 'e7a243b1-97df-4ec2-b8d9-c679c2e35512' for connections to the remote server.
Info: Adding directory (MMOMarketTracker\s\.git\objects\15).
Error: C:\Program Files\IIS\Microsoft Web Deploy V3\msdeploy.exe failed with return code: 4294967295
at ChildProcess.<anonymous> (D:\a\_tasks\AzureRmWebAppDeployment_497d490f-eea7-4f2b-ab94-48d9c1acdcb1\3.4.16\node_modules\vsts-task-lib\toolrunner.js:568:30)
at emitTwo (events.js:106:13)
at ChildProcess.emit (events.js:191:7)
at maybeClose (internal/child_process.js:886:16)
at Process.ChildProcess._handle.onexit (internal/child_process.js:226:5)
[command]"C:\Program Files\IIS\Microsoft Web Deploy V3\msdeploy.exe" -verb:sync -source:package='D:\a\r1\a\_MMMarketTracker\build\build.zip' -dest:contentPath='MMOMarketTracker',ComputerName='https://mmomarkettracker.scm.azurewebsites.net:443/msdeploy.axd?site=MMOMarketTracker',UserName='$MMOMarketTracker',Password='***',AuthType='Basic' -enableRule:AppOffline -enableRule:DoNotDeleteRule -userAgent:VSTS_ba2ca09f-578d-4893-99ac-412c3f26fde5_release_1_9_9_1
Info: Using ID '201db2e8-ee9f-4e39-9a29-2187cb7056bd' for connections to the remote server.
Info: Adding directory (MMOMarketTracker\s\.git\objects\15).
##[error]Failed to deploy web package to App Service.
##[error]Error Code: ERROR_NOT_ENOUGH_DISK_SPACE
More Information: Web Deploy detected insufficient space on disk. Learn more at: http://go.microsoft.com/fwlink/?LinkId=221672#ERROR_NOT_ENOUGH_DISK_SPACE.
Error: The error code was 0x80070070.
Error: There is not enough space on the disk.
at Microsoft.Web.Deployment.NativeMethods.RaiseIOExceptionFromErrorCode(Win32ErrorCode errorCode, String maybeFullPath)
at Microsoft.Web.Deployment.DirectoryEx.CreateDirectory(String path)
at Microsoft.Web.Deployment.DirPathProviderBase.CreateDirectory(String fullPath, DeploymentObject source)
at Microsoft.Web.Deployment.DirPathProviderBase.Add(DeploymentObject source, Boolean whatIf)
Error count: 1.
##[error]Error: C:\Program Files\IIS\Microsoft Web Deploy V3\msdeploy.exe failed with return code: 4294967295
第一个错误似乎是由于远程服务器未能添加 git 对象引起的。此错误通常会在每次部署时出现 2-3 次,并会导致显示“Retrying to deploy the package”消息。
第二个错误将发生一次并结束部署。我已经访问了错误推荐的链接,并且没有针对此类错误的帮助部分。 我下载了构建文件,它只有 49.3 MB 大,Microsoft 服务器有 10GB 的大小用于部署。我在托管的构建代理上运行,而不是私有的。
我在网上找到的与此类似的其他问题大多没有答案。有些人后来更新说部署似乎无缘无故开始工作。
任何帮助将不胜感激。
【问题讨论】:
-
能否请您剪切并粘贴错误文本并用它更新问题?这些图像很难阅读 - 我们无法选择/复制任何文本。这也是托管的构建代理,还是私有的?
-
感谢您的回答,我已经更新了问题。我在托管的构建代理上运行。
-
这可能会让你找到正确的方向:blogs.msdn.microsoft.com/puneetgupta/2017/06/06/…
-
我删除了一些旧应用程序并重试了部署,它成功了。奇怪的是我自己搜索msdn时找不到那篇文章,它帮助很大。谢谢。
-
@BrendanGreen 您可以为您提供评论作为答案,以便乔纳森接受它
标签: azure azure-devops