azure - Azure DevOps 发布部署失败磁盘空间错误
问题描述
我有一个正在尝试通过 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 次,并会导致显示“正在尝试部署包”消息。
第二个错误将发生一次并结束部署。我已经访问了错误推荐的链接,并且没有针对此类错误的帮助部分。我下载了构建文件,它只有 49.3 MB 大,Microsoft 服务器有 10GB 的大小用于部署。我在托管的构建代理上运行,而不是私有的。
我在网上找到的与此类似的其他问题大多没有答案。有些人后来更新说部署似乎无缘无故开始工作。
任何帮助,将不胜感激。
解决方案
对于遇到同样问题的其他人,我基本上有太多其他应用程序占用了我的 azure 帐户空间。Brendan Green 链接的文章解释了这一点。(https://blogs.msdn.microsoft.com/puneetgupta/2017/06/06/azure-app-service-what-is-taking-my-disk-space-for-my-azure-web-app/)
通过转到任何 azure 应用程序(在 azure 门户中)上的配额页面,您可以查看剩余的空间量。
推荐阅读
- python - 如何在 virtualenv 中设置 python 版本 2.7.15 而不是 2.7.10
- sql - 多个表上的左连接
- go - 在结构中打印 nil 错误时出现恐慌
- ios - CIDetectorTypeQRCode 无法扫描透明图片
- javascript - Puppeteer 在屏幕截图导致片状视觉差异测试之前调整大小
- javascript - 使用 Opencv.js 在 javascript 中的图像上画一条线
- javascript - Testcafe 客户端功能失败“ClientFunction 代码中发生错误:ReferenceError:_from2 未定义”
- http - # 分隔符是否总是引入 URI 的片段部分?
- netty - ReplayingDecoder 想要收集多个传入消息并将它们传递给下一个处理程序
- c# - 如何从客户端断开 SignalR 以实现超时功能